Background technology
Now, with the development of network technology and the network equipment, user proposes more intelligence to network or housed device
The requirement of change.Such as on network or on remote terminal, as usually with remote controler, operating household electrical appliance or network distal end
Electrical equipment etc..It realizes suchlike effect, will be the application technology that has great demand.
Currently on the market, the Managed Solution of distal end smart machine is built upon on UPnP protocol, and UPnP is complete, and name is
Universal Plug and Play, mainly Microsoft is in a standard of implementation.It is various smart machines, wireless
Equipment connects the structure of (P2P) with the peer-to-peer network that the realizations such as PC spread all over the world, and is a kind of distributed, open net
Network framework, it is simple for, it is all on network as long as the vision of UPnP maximums is just desirable to any equipment one and connects to the Net
Equipment just can know that new equipment addition at once, these equipment can communicate with each other each other, more can directly use or control it,
All need not all set, complete Plug and Play --- plug and play.UPnP has promoted the development of technique of internet,
The technologies such as including IP, TCP, UDP, HTTP, SSDP and XML.Contract is based on wired application agreement on the internet, and the association
View is illustrative, stated using XML and HTTP is transmitted.It is identical with this, the clear and definite design object of UPnP
Just it is to provide such environment.Furthermore when the factor of cost, technology or funds etc. is prevented in certain medium or is accessed
When IP is used in equipment therein, UPnP can provide the media channel of non-ip protocol by way of bridge joint.But UPnP will not
API is specified for application program, therefore suppliers just need oneself to create API to meet the needs of client.
For the method having been carried out at present is both for specific equipment, ununified standard, this kind of method can only
It is limited to use under specific scene and equipment, it is controlled when there is a kind of new equipment to need without scalability and portability
When processed, the problems such as may being faced with the realization again of function, this can bring very big pressure to project implementation.
The content of the invention
In view of the foregoing deficiencies of prior art, it is an object of the invention to provide a kind of controls of distal end smart machine
Management method and remote terminal, for solving not expansible and not transplantable the asking of distal end smart machine control in the prior art
Topic.
In order to achieve the above objects and other related objects, the present invention provides a kind of control manager of distal end smart machine
Method, applied in the internet of things system for including remote terminal and smart machine, the mandate that prestores in the remote terminal arranges
Table includes at least one smart machine permitted the remote terminal and control it management, the control in the grant column list
Management method comprises the following steps:Detect that the remote terminal is got after IP address with broadcast mode to the grant column list
In at least one smart machine transmission carry search bag searching request;Receive searching at least one smart machine
Rope responds, and therefrom obtains the location information of the smart machine and recorded;According to the record position information to it is described extremely
A few smart machine sends description request;After the description information for receiving at least one smart machine response, institute is parsed
It states description information and is shown to determine at least one and corresponding control instruction of the description information;It detects for institute
When stating control instruction and being operated, send carry the control data of the control instruction at least one smart machine with
Control it operation;The control response of at least one smart machine feedback is received, and to record and show.
Preferably, the search bag is the HTTP broadcast packets with preset field.
Preferably, the foundation record position information sends description request at least one smart machine
In step, the description request includes equipment description request and service describing request;The reception at least one intelligence
In the step of description information of equipment response, the description information includes equipment description and service describing;Described in the parsing
Description information further comprises with definite at least one control instruction and the step of displaying:
The device descriptive information and service description information in the description information are parsed, and is parsed in the service describing
During to state-event variable, the event registration to match with the state-event variable is sent at least one smart machine
Message, to make the notice report of at least one smart machine real-time report and the event registering message traffic associated state
Text;Foundation receives the notice message to determine at least one control instruction and be shown.
The invention also provides a kind of remote terminal, for carrying out control pipe to the smart machine in internet of things system
Reason, including:Memory module builds a grant column list, at least one allowance remote terminal pair is included in the grant column list
It controls the smart machine of management;Search module detects that the remote terminal is got after IP address with broadcast mode to institute
State the searching request that the transmission of at least one smart machine in grant column list carries search bag;Receiving described at least one
The location information of the smart machine is therefrom obtained during the search response of a smart machine and is recorded;Describing module, according to institute
It states record position information and sends description request at least one smart machine;At least one smart machine is received to ring
After the description information answered, parse the description information and determine at least one and corresponding control instruction of the description information;
Control module, detect sent when being operated for definite control instruction the control data for carrying the control instruction to
At least one smart machine is operated with controlling it;Display module shows the description information of parsing, Yi Jijie
The control response of at least one smart machine feedback is received to record and show.
Preferably, the search bag is the HTTP broadcast packets with preset field.
Preferably, the description request that the describing module is sent includes equipment description request and service describing request, described
The description information of at least one smart machine response includes device descriptive information and service description information.
Preferably, the describing module parses the device descriptive information and service describing letter in the description information
Breath, and when being resolved in the service description information state-event variable, sends and institute at least one smart machine
The event registering message that state-event variable matches is stated, to make at least one smart machine real-time report and the event
The notice message of registration message traffic associated state;The display module according to the notice message received with determine to
A kind of few control instruction is simultaneously shown.
As described above, the present invention a kind of distal end smart machine control management method and remote terminal, at least have with
Lower advantageous effect:
(1) the method modularization controlled the smart machine in each access system, scalability and portability
Preferably;
(2) event registering message to match with the state-event variable is sent to smart machine, to make smart machine
The notice message of real-time report and event registering message traffic associated state, to monitor and control smart machine in real time;
(3) by the way of the preset authorization list in remote terminal, the security of system operation is ensured;
(4) display module shows description information and control response to user in real time, is conducive to user and intuitively sees in real time
It examines the shape body of remote equipment and it is effectively and timely controlled.
Specific embodiment
Illustrate embodiments of the present invention below by way of specific specific example, those skilled in the art can be by this specification
Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from
Various modifications or alterations are carried out under the spirit of the present invention.It should be noted that in the case where there is no conflict, following embodiment and implementation
Feature in example can be mutually combined.
It should be noted that the diagram provided in following embodiment only illustrates the basic structure of the present invention in a schematic way
Think, then only the display component related with the present invention rather than component count, shape and size during according to actual implementation in schema
It draws, kenel, quantity and the ratio of each component can be a kind of random change during actual implementation, and its assembly layout kenel
It is likely more complexity.
Referring to Fig. 1, it is shown as a kind of flow of one embodiment of control management method of distal end smart machine of the present invention
Schematic diagram, the control management method of the distal end smart machine are applied to the internet of things with remote terminal 1 with smart machine 2
In system, prestore a grant column list in the remote terminal, permits the long-range end comprising at least one in the grant column list
End controls it smart machine of management, includes the following steps:
Step S1:Detect that the remote terminal 1 is got after IP address with broadcast mode into the grant column list
At least one smart machine 2 sends the searching request for carrying search bag, and preferred described search bag is with preset field
HTTP broadcast packets limit the control authority of the remote terminal, ensure the safety of smart machine control, in a specific embodiment
In, M-SEARCH methods may be employed 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:The remote terminal 1 receives the search response of at least one smart machine 2, and therefrom obtains
The location information of the smart machine 2 is simultaneously recorded, and in specific implementation, the location information is, for example, IP address information;
Step S3:The remote terminal 1 is retouched according to the record position information at least one transmission of smart machine 2
State request, it is preferred that the description request includes equipment description request and service describing request;
Step S4:After the remote terminal 1 receives the description information of at least one smart machine 2, described in parsing
Description information is simultaneously shown, and determines at least one and corresponding control instruction of the description information;
Step S5:The remote terminal 1 detects when being operated for the control instruction, and transmission carries the control
The control data of system instruction is at least one smart machine 2, to control it operation;
Step S6:The remote terminal 1 receives the control response of at least one smart machine feedback, and to record
And displaying.
It should be noted that above-mentioned each step can be carried out modularization, in one embodiment, can pass through
Registration function is realized, for example can register corresponding request function, receptance function and control function etc..
It should be further noted that as a kind of more preferably performance of the present invention, in above-mentioned step S4, may be used also
Further comprise the steps, referring to Fig. 3, the control management method one for being shown as a kind of distal end smart machine of the present invention is real
The idiographic flow schematic diagram of the step S4 of example is applied, as shown in the figure:
Step S41:After the remote terminal 1 receives the description information that at least one smart machine 2 responds, parsing
Device descriptive information and service description information in the description information are simultaneously shown;
Step S42:When the remote terminal 1 is resolved to state-event variable in the service describing, to it is described at least
One smart machine 2 sends the event registering message to match with the state-event variable;
Step S43:2 real-time report of at least one smart machine and the event registering message traffic associated state
Notice message;
Step S44:The remote terminal 1 receives affiliated notice message, and determines at least one according to the notice message
Control instruction is simultaneously shown.
It should be noted that heretofore described smart machine can be by the remote terminal control of at least one mandate
System, the remote terminal can control at least one smart machine for permitting its control, and the control planning between them can
Think one-to-one, many-one, one-to-many or multi-to-multi etc..
Referring to Fig. 2, it is shown as a kind of structure diagram of one embodiment of remote terminal of the present invention, the remote terminal
1 to the smart machine 2 in internet of things system for carrying out control management, and the remote terminal includes:Memory module 11, search
Module 12, describing module 13, control module 14 and display module 15.
The memory module 11 has built a grant column list, and it is described long-range that at least one allowance is included in the grant column list
The smart machine of its control management of terminal-pair;
Described search module 12 detects that the remote terminal is arranged after getting IP address with broadcast mode to described authorize
At least one smart machine transmission in table carries the searching request of search bag;It is set at least one intelligence for receiving described
It therefrom obtains the location information of the smart machine during standby search response and is recorded;Preferably, the search bag is tool
There are the HTTP broadcast packets of preset field.
The describing module 13 sends description request according to the record position information at least one smart machine;
After the description information for receiving at least one smart machine response, parse the description information and determine at least one and institute
State the corresponding control instruction of description information;Preferably, the description request includes equipment description request and service describing request,
The description information of at least one smart machine response includes device descriptive information and service description information.
The control module 14, which detects, to be sent when being operated for definite control instruction and carries the control and refer to
The control data of order is operated at least one smart machine with controlling it;
The description information of the displaying of display module 15 parsing and reception at least one smart machine feedback
Control response recording and show.
It should be further noted that as a kind of more preferably performance of the present invention, parsed in the describing module 13
The device descriptive information and service description information in the description information, and it is resolved to thing in the service description information
During part state variable, the event registration to match at least one smart machine transmission with the state-event variable disappears
Breath, to make the notice report of at least one smart machine real-time report and the event registering message traffic associated state
Text;The display module 15 with definite at least one control instruction and is shown according to the notice message received.
It should be noted that the display module of the present invention is, for example, the liquid crystal touch display screen with store function,
Memory module can be to include the memory of RAM or ROM, and the smart machine in the present invention can be by least one mandate
Remote terminal control, the remote terminal can control at least one smart machine for permitting its control, they it
Between control planning can be one-to-one, many-one, one-to-many or multi-to-multi etc..
The control management method and remote terminal of a kind of distal end smart machine provided by the invention, are realizing real time remote
While controlling smart machine, at least also have the advantages that:
(1) the method modularization controlled the smart machine in each access system, scalability and portability
Preferably;
(2) event registering message to match with the state-event variable is sent to smart machine, to make smart machine
The notice message of real-time report and event registering message traffic associated state, to monitor and control smart machine in real time;
(3) by the way of the preset authorization list in remote terminal, the security of system operation is ensured;
(4) display module shows description information and control response to user in real time, is conducive to user and intuitively sees in real time
It examines the shape body of remote equipment and it is effectively and timely controlled.
So the present invention effectively overcomes various shortcoming of the prior art and has high industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe
Know the personage of this technology all can carry out modifications and changes under the spirit and scope without prejudice to the present invention to above-described embodiment.Cause
This, those of ordinary skill in the art is complete without departing from disclosed spirit and institute under technological thought such as
Into all equivalent modifications or change, should by the present invention claim be covered.