Summary of the invention
Technical problem to be solved by the invention is to provide a kind of based on the home gateway system of Web site and its setting sideMethod, to solve the complicated for operation, control due to caused by more producers, polytypic, multi-functional smart home device in domestic consumerThe problem of making inconvenient problem and consumer wideband IP address dynamic change.
The present invention provides a kind of home gateway systems based on Web site, comprising: Web server, for generating userLog-on webpage, control webpage, setting webpage;Database, required Various types of data, the storage user for storing generation webpage are wideBand dynamic IP addressing;IP packet transmission unit sends IP data packet to IP packet receiving unit for timing;IP packet receiving unit is usedIn the IP data packet that reception is sent out from IP packet transmission unit, source IP address (i.e. consumer wideband dynamic IP addressing) is extracted, by thisAddress is deposited in database.
The present invention provides a kind of setting methods of home gateway based on Web site, the described method comprises the following steps:
A) user enters setting webpage;
B) user selects addition or editor;
C) when user selects to add, new control button editing area is generated;
D) when user selects to edit, can prefix part, port numbers and radio button to control button editing area intoEdlin or selection;
E) by editor and selection of the user to editing area, can customize the control object of control button in the control page,Control command and execution method;
F) editor completes to be saved, more new database.
The present invention provides the method controlled smart home devices multiple in family on a webpage, facilitatesThe operation of user solves in family and carries out central controlled demand and more equipment control hardly possible to different type smart home deviceThe problem of, while also solve the problems, such as broadband dynamic IP addressing is not used as real-time control.By providing self-settingMethod allows users to that control webpage is edited and is arranged according to the needs of itself.
Specific embodiment
Technical solution of the present invention is described in further detail in the following with reference to the drawings and specific embodiments, so that thisThe technical staff in field may be better understood the present invention and can be practiced, but example is not as to limit of the inventionIt is fixed.
Fig. 1 show the gateway system overall structure diagram of the invention based on Web site.Including database 101,Web server 102, the internet Internet 103, wide-band terminal 104, home router 105, Intelligent housing unit 106,IP packet transmission unit 107, IP packet receiving unit 108.
Fig. 2 show user's log-on webpage 201.
Fig. 3 show the control webpage 301 after user logs in.
Fig. 4 show working-flow figure, now in conjunction with Fig. 1, Fig. 2, Fig. 3, to the home gateway system based on Web siteWorkflow and principle are explained in detail.In step 401, user passes through the computer of access internet, the browsing of mobile terminalDevice accesses Web server, and Web server returns to user's log-on webpage 201, and user inputs correct username and password.In stepRapid 402, after the user that Web server verifying logs in is legal, the number to match with the user account is obtained from database 101According to this data is mainly made of four parts: 1) prefix part data, for generating the prefix part of control button order (such asHttp: //, ftp: //, mms: // etc.);2) IP address data, the address are the broadband dynamic IP addressings of the user obtained in real time,It is obtained by the device that IP transmission unit 107, IP receiving unit 108 etc. form and is deposited in database 101;3) port numberAccording to according to the different controlled Intelligent housing unit 106 of port numbers different instructions, which needs the void of same family routerThe port numbers setting of quasi- web sites function is corresponding;4) method radio button data, this data determine user press it is a certain control byCommand mode transmitted by button 302 (such as list button command method=" post ", method=" get ").In step403, according to the data that step 402 obtains, Intelligent housing webpage 301 is generated, the webpage is by different 302 groups of control buttonAt wherein each control button 302 is composed of the 4 kinds of data obtained in step 402.In step 404 when user needsWhen controlling some Intelligent housing unit 106, corresponding control button 302 is clicked.In step 405, user's browsingDevice sends corresponding order, opens the homepage of controlled Intelligent housing unit 106, or the specific journey of load in different waysThe controlled Intelligent housing unit 106 of ordered pair is directly controlled.
When obtaining the data to match with account in Fig. 4 step 402, second part IP address data therein are referred toIt is stored in the real-time dynamic IP addressing of the consumer wideband in database 101, is by including IP packet transmission unit 107, the reception of IP packetWhat the device of the equipment such as unit 108 composition obtained.Though because of the equipment of broadband user from access carrier IP address obtainedIt is so public network address, but this is the address of a dynamic change being periodically flushed, i.e., with broadband broken string, Provider Equipment periodProperty refresh and continually changing, for such address, using constantly extracting newest IP address information, and deposit in databaseIn method solved.IP transmission unit 107 is by the singlechip group with Ethernet interface at the single-chip microcontroller in the present embodimentIt is loaded with ICP/IP protocol stack, by programming, periodically sends the IP data that TCP or udp protocol form to IP packet receiving unit 108Packet extracts source IP address, as consumer wideband dynamic IP addressing, and will after IP packet receiving unit 108 receives the data packetThe address is deposited in database 101, since IP packet transmission unit constantly sends IP data packet at a certain time interval, is madeNewest IP address information is remained in database 101, to solve the Intelligent housing unit using this address pair106 purposes controlled.
Fig. 5 show setting webpage 501, which is user after the control webpage 301 of Fig. 3 clicks setting button 305The webpage jumped.The webpage include control button editing area 504 corresponding with 301 arrangement position of Fig. 3 control button, save byButton 502, addition button 503.505 show the amplified details of control button editing area 504, which includes prefix part506 editing areas, 508 editing area of port numbers, method radio button area 509 and IP address 507 can not editing areas.
Fig. 6 show the flow chart of setting method of the invention, and the flow chart is described in detail now in conjunction with Fig. 5:
In step 601, user clicks the setting button 303 in Fig. 3 in a browser.In step 602, the browser of userSetting webpage 501 is returned from Web server 102.In step 603, user selects editor or addition control button.When user selectsAddition is selected, process goes to 604.In step 604, user clicks addition button 503.In step 605, in setting webpage 501The lower section of control button editing area 504 generates a new control button editing area.In step 606, user carries out editing areaEditor, in the details 505 of control button editing area 504, settable 506 editing area of prefix part of user, according to differentPurposes and method editable are provided for opening the http of webpage: //, be used for transmission the ftp of file: //, be used to open videoMms: //, the mstsc/v for being used to open remote desktop etc..IP address 507 part attribute be can not edit field, the IPLocation is derived from the broadband dynamic IP addressing for the login user stored in database 101.In 508 editing area of port numbers, user can be withDifferent port numbers are arranged in editor, to control different Intelligent housing units 106.It is more about port numbers settingDatail description is as follows: user can be configured in forward rule-virtual server in home router 105, make public networkThe different port of IP address is mapped to port corresponding to IP address different in home router Intranet, to reach a public networkAccess of the IP address to multiple Intelligent housing units 106.In 509 editing area of method radio button, user can pass through choosingSelect different method and determine that user clicks order submission method caused by control button 302, this method can be with list byThe mode of button sends http protocol data (such as method=" get ", method=" post " etc.), can also open specific journeyThe mode of sequence is communicated (such as input type=button onclick=" with controlled Intelligent housing unit 106Exec (' mstsc/v:60.179.133.236 ') ").In step 607, user clicks to save and press after the completion of addition or editorThe information that button 502, all additions or editor complete is sent to database 101 by Web server 102 and is saved.In step603, when user selects to edit, process skips to step 606, repeats the above description to step 606 and step 607.
Although description through the embodiment of the present invention illustrates the present invention, and although has described in detailEmbodiment, but the scope of the claims is not restricted to so in detail by present invention applicant in any way.For abilityField technique personnel are it is understood that it is still possible to modify the technical solutions described in the foregoing embodiments, or to itMiddle some technical characteristics are equivalently replaced, and these are modified or replaceed, and it does not separate the essence of the corresponding technical solution originallyInvent the range of each embodiment technical solution.