Background technology
Now, along with the development of network technology and the network equipment, user has proposed how intelligentized requirement to network or housed device.For example, on network or on remote terminal, with remote controller, operate electric equipment of household electrical appliance or network far-end etc. as at ordinary times.Realize such effect, will be the application technology that has great demand.
In the market, the Managed Solution of far-end smart machine is all based upon on UPnP agreement, and UPnP is complete, and name is UniversalPlug and Play, is mainly the standard that Microsoft is carrying out.That peer-to-peer network that the realizations such as various smart machines, wireless device and PC spread all over the world is connected the structure of (P2P), a kind of distributed, the open network architecture, simple, the vision of UPnP maximum wishes that any equipment needs only one and connects to the Net exactly, all equipment on network just can be known and have new equipment to add at once, these equipment can be communicated with each other each other, more can directly use or control it, all do not need to set, Plug and Play---plug and play completely.UPnP has promoted the development of technique of internet, comprises the technology such as IP, TCP, UDP, HTTP, SSDP and XML.In contract on internet taking wired application protocol as basis, and this agreement be illustrative, utilize XML to explain and HTTP transmits.Identical therewith, the clear and definite design object of UPnP is just to provide such environment.Moreover, when the factor of the aspects such as cost, technology or funds stoped in certain medium or access equipment wherein on while using IP, UPnP can provide by the mode of bridge joint the media channel of non-ip protocol.But UPnP can not specify API for application program, therefore suppliers meet client's demand with regard to needing oneself to create API.
The method having realized is at present all for concrete equipment, there is no unified standard, these class methods can only be limited under specific sight and equipment and use, there is no extensibility and portability, in the time having a kind of new equipment to need to be controlled, the problem such as realization again that may be faced with function, this can bring very large pressure to project implementation.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of control and management method and remote terminal of far-end smart machine, for solving can not expanding and not transplantable problem of prior art far-end smart machine control.
For achieving the above object and other relevant objects, the invention provides a kind of control and management method of far-end smart machine, be applied in the internet of things system that includes remote terminal and smart machine, a grant column list prestores in described remote terminal, in described grant column list, comprise at least one and permit the smart machine of described remote terminal to its control and management, described control and management method comprises the following steps: detect after described remote terminal gets IP address and send at least one smart machine in described grant column list the searching request that carries search bag with broadcast mode, receive the search response of at least one described smart machine, and therefrom obtain the positional information of this smart machine and give record, send to described at least one smart machine the request of description according to described record position information, receive after the descriptor of described at least one smart machine response, resolve described descriptor and shown the control command of determining that at least one is corresponding with described descriptor, detect while operation for described control command, transmission carries the control of described control command and asks to described at least one smart machine so that it is carried out to control operation, receive the control response of described at least one smart machine feedback, and in order to record and displaying.
Preferably, described search bag is the HTTP broadcast packet with preset field.
Preferably, described sends in the step of the request of description to described at least one smart machine according to described record position information, and described description request comprises device description request and service describing request; Described in described reception, in the step of the descriptor of at least one smart machine response, described descriptor comprises device description and service describing; The described descriptor of described parsing further comprises to determine at least one control command the step of being shown:
Resolve device descriptive information and service description information in described descriptor, and be resolved to state-event variable in described service describing time, send to described at least one smart machine the event registration message matching with described state-event variable, to make the notice message of described at least one smart machine real-time report and described event registration message traffic associated state; According to receiving described notice message to determine at least one control command and to be shown.
The invention allows for a kind of remote terminal, for the smart machine of internet of things system is carried out to control and management, comprise: memory module, build a grant column list, in described grant column list, comprise at least one and permit the smart machine of described remote terminal to its control and management; Search module, detects after described remote terminal gets IP address and sends at least one smart machine in described grant column list the searching request that carries search bag with broadcast mode; In the time receiving the search response of at least one described smart machine, therefrom obtain the positional information of this smart machine and give record; Describing module, sends to described at least one smart machine the request of description according to described record position information; Receive after the descriptor of described at least one smart machine response, resolve described descriptor and determine at least one control command corresponding with described descriptor; Control module, detects while operation for definite control command that sending the control that carries described control command asks to described at least one smart machine so that it is carried out to control operation; Display module, the described descriptor of showing parsing, and the control response that receives described at least one smart machine feedback is in order to record and displaying.
Preferably, described search bag is the HTTP broadcast packet with preset field.
Preferably, the description request that described describing module sends comprises device description request and service describing request, and the descriptor of described at least one smart machine response comprises device descriptive information and service description information.
Preferably, described describing module is resolved described device descriptive information and the service description information in described descriptor, and be resolved to state-event variable in described service description information time, send to described at least one smart machine the event registration message matching with described state-event variable, to make the notice message of described at least one smart machine real-time report and described event registration message traffic associated state; The described notice message that described display module foundation receives is to determine at least one control command and to be shown.
As mentioned above, control and management method and the remote terminal of a kind of far-end smart machine of the present invention, at least have following beneficial effect:
(1) the method modularization of the smart machine in each connecting system being controlled, extensibility and better portable;
(2) send to smart machine the event registration message matching with described state-event variable, to make the notice message of smart machine real-time report and event registration message traffic associated state, to monitor in real time and control smart machine;
(3) adopt the mode of presetting grant column list in remote terminal, the fail safe of guarantee system operation;
(4) display module is shown descriptor and control response to user in real time, is conducive to user and observes intuitively in real time the shape body of remote equipment and it is controlled effectively and timely.
Embodiment
Below, by specific instantiation explanation embodiments of the present invention, those skilled in the art can understand other advantages of the present invention and effect easily by the disclosed content of this specification.The present invention can also be implemented or be applied by other different embodiment, and the every details in this specification also can be based on different viewpoints and application, carries out various modifications or change not deviating under spirit of the present invention.It should be noted that, in the situation that not conflicting, the feature in following examples and embodiment can combine mutually.
It should be noted that, the diagram providing in following examples only illustrates basic conception of the present invention in a schematic way, satisfy and only show with assembly relevant in the present invention in graphic but not component count, shape and size drafting while implementing according to reality, when its actual enforcement, kenel, quantity and the ratio of each assembly can be a kind of random change, and its assembly layout kenel also may be more complicated.
Refer to Fig. 1, be shown as the schematic flow sheet of control and management method one embodiment of a kind of far-end smart machine of the present invention, the control and management method of described far-end smart machine is applied in the internet of things system with remote terminal 1 and smart machine 2, a grant column list prestores in described remote terminal, in described grant column list, comprise at least one and permit the smart machine of described remote terminal to its control and management, comprise the steps:
Step S1: detect after described remote terminal 1 gets IP address and send at least one smart machine 2 in described grant column list the searching request that carries search bag with broadcast mode, preferred described search bag is the HTTP broadcast packet with preset field, limit the control authority of described remote terminal, ensure the safety of smart machine control, in one embodiment, can adopt M-SEARCH method to send search bag, corresponding field can be:
M-SEARCH*HTTP/1.1
HOST:239.255.255.250:1900
MAN:"ssdp:discover"
MX:seconds to delay response
ST:search target;
Step S2: described remote terminal 1 receives the search response of at least one described smart machine 2, and therefrom obtains the positional information of this smart machine 2 and give record, and in concrete enforcement, described positional information is for example IP address information;
Step S3: described smart machine 1 sends to described at least one smart machine 2 request of description according to described record position information, and preferred, described description request comprises device description request and service describing request;
Step S4: described remote terminal 1 receives after the descriptor of described at least one smart machine 2, resolves described descriptor and is shown, and determines at least one control command corresponding with described descriptor;
Step S5: described remote terminal 1 detects while operation for described control command, sends the control that carries described control command and asks to described at least one smart machine 2, so that it is carried out to control operation;
Step S6: described remote terminal 1 receives the control response of described at least one smart machine feedback, and in order to record and displaying.
It should be noted that, each above-mentioned step can be carried out modularization, in one embodiment, can realize by registration function, such as registering corresponding request function, response function and control function etc.
What need to further illustrate is, as a kind of more excellent performance of the present invention, in above-mentioned step S4, also can be further comprising the steps, refer to Fig. 2, be shown as the idiographic flow schematic diagram of the step S4 of control and management method one embodiment of a kind of far-end smart machine of the present invention, as shown in the figure:
Step S41: after the descriptor that described in described remote terminal 1 receives, at least one smart machine 2 responds, resolve device descriptive information and the service description information in described descriptor and shown;
Step S42: when described remote terminal 1 is resolved to state-event variable in described service describing, send to described at least one smart machine 2 the event registration message matching with described state-event variable;
Step S43: the notice message of described at least one smart machine 2 real-time report and described event registration message traffic associated state;
Step S44: notice message under described remote terminal 1 receives, and determine at least one control command and shown according to described notice message.
It should be noted that, smart machine described in the present invention can be controlled by the described remote terminal of at least one mandate, the described smart machine that described remote terminal can be controlled at least one and permits its control, the control relation between them can for one to one, many-one, one-to-many or multi-to-multi etc.
Refer to Fig. 3, be shown as the structural representation of a kind of remote terminal one embodiment of the present invention, described remote terminal 1 carries out control and management for the smart machine 2 to internet of things system, described remote terminal comprises: memory module 11, search module 12, describing module 13, control module 14, and display module 15.
Described memory module 11 has built a grant column list, comprises at least one and permit the smart machine of described remote terminal to its control and management in described grant column list;
Described search module 12 detects after described remote terminal gets IP address and sends at least one smart machine in described grant column list the searching request that carries search bag with broadcast mode; In the time receiving the search response of at least one described smart machine, therefrom obtain the positional information of this smart machine and give record; Preferably, described search bag is the HTTP broadcast packet with preset field.
Described describing module 13 sends to described at least one smart machine the request of description according to described record position information; Receive after the descriptor of described at least one smart machine response, resolve described descriptor and determine at least one control command corresponding with described descriptor; Preferably, described description request comprises device description request and service describing request, and the descriptor of described at least one smart machine response comprises device descriptive information and service description information.
Described control module 14 detects while operation for definite control command that sending the control that carries described control command asks to described at least one smart machine so that it is carried out to control operation;
The described descriptor that described display module 15 is shown parsing, and the control response that receives described at least one smart machine feedback is in order to record and displaying.
What need to further illustrate is, as a kind of more excellent performance of the present invention, resolve described device descriptive information and the service description information in described descriptor in described describing module 13, and be resolved to state-event variable in described service description information time, send to described at least one smart machine the event registration message matching with described state-event variable, to make the notice message of described at least one smart machine real-time report and described event registration message traffic associated state; The described notice message that described display module 15 foundations receive is to determine at least one control command and to be shown.
It should be noted that, described display module of the present invention is for example for having the liquid crystal touch display screen of memory function, memory module can be the memory that comprises RAM or ROM, described smart machine in the present invention can be controlled by the described remote terminal of at least one mandate, the described smart machine that described remote terminal can be controlled at least one and permits its control, the control relation between them can for one to one, many-one, one-to-many or multi-to-multi etc.
Control and management method and the remote terminal of a kind of far-end smart machine provided by the invention, in having realized real time remote control smart machine, at least also have following beneficial effect:
(1) the method modularization of the smart machine in each connecting system being controlled, extensibility and better portable;
(2) send to smart machine the event registration message matching with described state-event variable, to make the notice message of smart machine real-time report and event registration message traffic associated state, to monitor in real time and control smart machine;
(3) adopt the mode of presetting grant column list in remote terminal, the fail safe of guarantee system operation;
(4) display module is shown descriptor and control response to user in real time, is conducive to user and observes intuitively in real time the shape body of remote equipment and it is controlled effectively and timely.
So the present invention has effectively overcome various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all can, under spirit of the present invention and category, modify or change above-described embodiment.Therefore, such as in affiliated technical field, have and conventionally know that the knowledgeable, not departing from all equivalence modifications that complete under disclosed spirit and technological thought or changing, must be contained by claim of the present invention.