CN108924906A - Smart machine control method, ZigBee gateway and storage medium - Google Patents

Smart machine control method, ZigBee gateway and storage medium Download PDF

Info

Publication number
CN108924906A
CN108924906A CN201810729002.2A CN201810729002A CN108924906A CN 108924906 A CN108924906 A CN 108924906A CN 201810729002 A CN201810729002 A CN 201810729002A CN 108924906 A CN108924906 A CN 108924906A
Authority
CN
China
Prior art keywords
smart machine
zigbee
network
control
sent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810729002.2A
Other languages
Chinese (zh)
Inventor
李健
杜朋初
吴强
卢杰彪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Anyi Intelligent Technology Co Ltd
Original Assignee
Guangzhou Anyi Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Anyi Intelligent Technology Co Ltd filed Critical Guangzhou Anyi Intelligent Technology Co Ltd
Priority to CN201810729002.2A priority Critical patent/CN108924906A/en
Publication of CN108924906A publication Critical patent/CN108924906A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L2012/284Home automation networks characterised by the type of medium used
    • H04L2012/2841Wireless

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of smart machine control method, ZigBee gateway and storage medium, which includes:ZigBee gateway receives the request that corresponding ZigBee-network is added in the request that smart machine is sent, wherein the request that corresponding ZigBee-network is added carries smart machine identification information;Search whether that there are the smart machine identification informations in local identification list, wherein the local identification list is used to store the corresponding smart machine identification information of smart machine that license is added;If it exists, then the corresponding ZigBee-network of license addition is sent to request to the smart machine;Responding to the corresponding ZigBee-network request of license addition for the smart machine transmission is received, the smart machine is added in corresponding ZigBee-network;When the control parameter for receiving terminal transmission, control instruction is generated according to the control parameter, and the control instruction is sent to smart machine by corresponding ZigBee-network, to control smart machine.

Description

Smart machine control method, ZigBee gateway and storage medium
Technical field
The present invention relates to field of communication technology more particularly to a kind of smart machine control methods, ZigBee gateway and storage Medium.
Background technique
With the rapid development of intelligent control technology and information technology, various smart machines are continuously emerged, such as household sense Equipment, intelligent door lock, intelligent appliance etc. are known, to meet the living needs of consumer.Smart machine is to utilize advanced computer Technology, network communications technology etc. merge individual needs, and subsystems relevant to home life are organically combined, and lead to Cross the control of networking comprehensive intelligent and management.And smart machine is connect with wireless router in the prior art, this mode is easy It goes offline, and is not also available in no network, it is extremely inconvenient.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of smart machine control method, ZigBee gateway and storage medium, purports It is solving to connect unstable technical problem when smart machine controls in the prior art.
To achieve the above object, the present invention provides a kind of smart machine control method, including:
ZigBee gateway receives the request that corresponding ZigBee-network is added in the request that smart machine is sent, wherein described The request that corresponding ZigBee-network is added carries smart machine identification information;
Search whether that there are the smart machine identification informations in local identification list, wherein the local identity column Table is used to store the corresponding smart machine identification information of smart machine that license is added;
If it exists, then the corresponding ZigBee-network of license addition is sent to request to the smart machine;
Responding to the corresponding ZigBee-network request of license addition for the smart machine transmission is received, by the smart machine It is added in corresponding ZigBee-network;
When the control parameter for receiving terminal transmission, control instruction is generated according to the control parameter, and by the control Instruction is sent to smart machine by corresponding ZigBee-network, to control smart machine.
Preferably, described that the step of there are the smart machine identification informations, tool are searched whether in local identification list Body includes:
Obtain the first distance between the ZigBee gateway and the smart machine;
When the first distance is less than the first preset value, search whether that there are the intelligence to set in local identification list Standby identification information;
When the first distance is greater than or equal to the first preset value, send refusal be added corresponding ZigBee-network request to The smart machine.
Preferably, described when the control parameter for receiving terminal transmission, control instruction is generated according to the control parameter, and After the step of control instruction is sent to smart machine by corresponding ZigBee-network, further include:
The supplemental characteristic of smart machine is obtained in real time;
The control parameter that the supplemental characteristic for the smart machine that will acquire is sent with the terminal received compares;
If comparison result is inconsistent, the control instruction is sent to intelligence again by corresponding ZigBee-network and is set It is standby.
Preferably, the request of corresponding ZigBee-network is added in the request that the ZigBee gateway receives that smart machine is sent The step of before, further include:
When the smart machine identification information for receiving terminal and sending, by the smart machine identification information storage received to described In local identification list.
Preferably, described when the control parameter for receiving terminal transmission, control instruction is generated according to the control parameter, and The step of control instruction is sent to smart machine by corresponding ZigBee-network, specifically includes:
Ciphering Key Sequence Number is sent to terminal;
Receive terminal send according to the encrypted control parameter of the Ciphering Key Sequence Number;
According to the Ciphering Key Sequence Number sent to terminal, decruption key is obtained in local key sequence;
The encrypted control parameter is decrypted to obtain control parameter according to the decruption key;
Control instruction is generated according to the control parameter, and the control instruction is sent by corresponding ZigBee-network To smart machine.
To achieve the goals above, the present invention also provides a kind of smart machine control methods, including:
Terminal receives input data, and generates control parameter according to input data;
ZigBee gateway is sent by the control parameter, is controlled so that ZigBee gateway is generated according to the control parameter Instruction, and the control instruction is sent to smart machine by corresponding ZigBee-network.
Preferably, input data is received in the terminal, and before the step of generating control parameter according to input data, also Including:
Smart machine identification information is obtained, and the smart machine identification information is sent to ZigBee gateway, so that ZigBee gateway is by the smart machine identification information storage into local identification list.
Preferably, input data is received in the terminal, and after the step of generating control parameter according to input data, institute It states and sends ZigBee gateway for the control parameter, so that ZigBee gateway generates control instruction according to the control parameter, And before the step of control instruction is sent to smart machine by corresponding ZigBee-network, further include:
Obtain the Ciphering Key Sequence Number that ZigBee gateway is sent;
The control parameter is encrypted according to the Ciphering Key Sequence Number, obtains encrypted control parameter.
In addition, to achieve the goals above, the present invention also provides a kind of ZigBee gateway, the ZigBee gateway includes: The smart machine control program that memory, processor and being stored in can be run on the memory and on the processor, institute State the step of smart machine control program is arranged for carrying out above-mentioned smart machine control method.
In addition, to achieve the goals above, the present invention also provides a kind of terminal, the terminal includes:Memory, processor And it is stored in the smart machine control program that can be run on the memory and on the processor, the smart machine control Program is arranged for carrying out the step of above-mentioned smart machine control method.
In addition, to achieve the goals above, the present invention also provides a kind of computer readable storage medium, the computer can It reads to be stored with smart machine control program on storage medium, the smart machine control program is realized above-mentioned when being executed by processor Smart machine control method the step of.
In the present invention, the request that smart machine is sent is received by ZigBee gateway, asking for corresponding ZigBee-network is added It asks, wherein the request that corresponding ZigBee-network is added carries smart machine identification information, then in local identity column Search whether that there are the smart machine identification informations in table, wherein the local identification list is used to store what license was added The corresponding smart machine identification information of smart machine, and if it exists, then send the corresponding ZigBee-network of license addition and request to described Smart machine;When receiving responding to the corresponding ZigBee-network request of license addition for the smart machine transmission, by the intelligence Equipment is added in corresponding ZigBee-network, when the control parameter for receiving terminal transmission, is generated according to the control parameter Control instruction, and the control instruction is sent to smart machine by corresponding ZigBee-network, to control smart machine, because This, smart machine is added into ZigBee-network by ZigBee gateway, realizes that intelligence is set by the local area network of ZigBee-network Control standby, between terminal, signal stabilization, it is not easy to go offline, will not be unable to control because of suspension, improve intelligence and set Stability that is standby, being controlled between terminal.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the ZigBee gateway for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of smart machine control method first embodiment of the present invention;
Fig. 3 is the flow diagram of smart machine control method second embodiment of the present invention;
Fig. 4 is the flow diagram of smart machine control method 3rd embodiment of the present invention;
Fig. 5 is the flow diagram of smart machine control method fourth embodiment of the present invention;
Fig. 6 is the flow diagram of the 5th embodiment of smart machine control method of the present invention;
Fig. 7 is the structural schematic diagram of the terminal for the hardware running environment that the embodiment of the present invention is related to;
Fig. 8 is the flow diagram of smart machine control method sixth embodiment of the present invention;
Fig. 9 is the flow diagram of the 7th embodiment of smart machine control method of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Referring to Fig.1, Fig. 1 is the ZigBee gateway architecture signal for the hardware running environment that the embodiment of the present invention is related to Figure.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
As shown in Figure 1, the ZigBee gateway may include:Processor 1001, such as central processing unit (Central Processing Unit, CPU), communication bus 1002, user interface 1003, network interface 1004, memory 1005.Wherein, Communication bus 1002 is for realizing the connection communication between these components.User interface 1003 may include display screen (Display), optional user interface 1003 can also include standard wireline interface and wireless interface, for user interface 1003 Wireline interface in the present invention can be USB interface.Network interface 1004 optionally may include the wireline interface, wireless of standard Interface (such as Wireless Fidelity (WIreless-FIdelity, WI-FI) interface).Memory 1005 can be the arbitrary access of high speed Memory (Random Access Memory, RAM) memory, is also possible to stable memory (Non-volatile Memory, NVM), such as magnetic disk storage.Memory 1005 optionally can also be the storage independently of aforementioned processor 1001 Device.
It, can be with it will be understood by those skilled in the art that structure shown in Fig. 1 does not constitute the restriction to ZigBee gateway Including perhaps combining certain components or different component layouts than illustrating more or fewer components.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium Believe that module, Subscriber Interface Module SIM and smart machine control program.
In ZigBee gateway shown in Fig. 1, network interface 1004 is mainly used for connecting background server, with the backstage Server carries out data communication;User interface 1003 is mainly used for connecting user equipment;The smart machine control equipment passes through Processor 1001 calls the smart machine control program stored in memory 1005, and executes following operation:
ZigBee gateway receives the request that corresponding ZigBee-network is added in the request that smart machine is sent, wherein described The request that corresponding ZigBee-network is added carries smart machine identification information;
Search whether that there are the smart machine identification informations in local identification list, wherein the local identity column Table is used to store the corresponding smart machine identification information of smart machine that license is added;
If it exists, then the corresponding ZigBee-network of license addition is sent to request to the smart machine;
Responding to the corresponding ZigBee-network request of license addition for the smart machine transmission is received, by the smart machine It is added in corresponding ZigBee-network;
When the control parameter for receiving terminal transmission, control instruction is generated according to the control parameter, and by the control Instruction is sent to smart machine by corresponding ZigBee-network, to control smart machine.
Further, processor 1001 can call the smart machine stored in memory 1005 to control program, also execute It operates below:
It is described that the step of there are the smart machine identification informations is searched whether in local identification list, it specifically includes:
Obtain the first distance between the ZigBee gateway and the smart machine;
When the first distance is less than the first preset value, search whether that there are the intelligence to set in local identification list Standby identification information;
When the first distance is greater than or equal to the first preset value, send refusal be added corresponding ZigBee-network request to The smart machine.
Further, processor 1001 can call the smart machine stored in memory 1005 to control program, also execute It operates below:
It is described to work as the control parameter for receiving terminal transmission, control instruction is generated according to the control parameter, and will be described After the step of control instruction is sent to smart machine by corresponding ZigBee-network, further include:
The supplemental characteristic of smart machine is obtained in real time;
The control parameter that the supplemental characteristic for the smart machine that will acquire is sent with the terminal received compares;
If comparison result is inconsistent, the control instruction is sent to intelligence again by corresponding ZigBee-network and is set It is standby.
Further, processor 1001 can call the smart machine stored in memory 1005 to control program, also execute It operates below:
The ZigBee gateway receives the step of request of corresponding ZigBee-network is added in the request that smart machine is sent Before, further include:
When the smart machine identification information for receiving terminal and sending, by the smart machine identification information storage received to described In local identification list.
Further, processor 1001 can call the smart machine stored in memory 1005 to control program, also execute It operates below:
It is described to work as the control parameter for receiving terminal transmission, control instruction is generated according to the control parameter, and will be described The step of control instruction is sent to smart machine by corresponding ZigBee-network, specifically includes:
Ciphering Key Sequence Number is sent to terminal;
Receive terminal send according to the encrypted control parameter of the Ciphering Key Sequence Number;
According to the Ciphering Key Sequence Number sent to terminal, decruption key is obtained in local key sequence;
The encrypted control parameter is decrypted to obtain control parameter according to the decruption key;
Control instruction is generated according to the control parameter, and the control instruction is sent by corresponding ZigBee-network To smart machine.
It is corresponding that the present embodiment receives the request addition that smart machine is sent through the above scheme, by ZigBee gateway The request of ZigBee-network, wherein the request that corresponding ZigBee-network is added carries smart machine identification information, so Search whether that there are the smart machine identification informations in local identification list afterwards, wherein the local identification list is used for The corresponding smart machine identification information of smart machine that storage license is added, and if it exists, then send license and corresponding ZigBee is added Network request is to the smart machine;ZigBee-network request sound is corresponded to when receiving the smart machine transmission license is added It answers, the smart machine is added in corresponding ZigBee-network, when the control parameter for receiving terminal transmission, according to described Control parameter generates control instruction, and the control instruction is sent to smart machine by corresponding ZigBee-network, with control Smart machine processed, therefore, smart machine is added into ZigBee-network by ZigBee gateway, passes through the local of ZigBee-network Net realizes the control between smart machine, terminal, signal stabilization, it is not easy to it goes offline, will not be unable to control because of suspension, Improve the stability controlled between smart machine, terminal.
Based on above-mentioned hardware configuration, the embodiment of smart machine control method of the present invention is proposed.
It is the flow diagram of smart machine control method first embodiment of the present invention referring to Fig. 2, Fig. 2.
In the first embodiment, the smart machine control method is applied to ZigBee gateway, includes the following steps:
Step S10, ZigBee gateway receives the request that corresponding ZigBee-network is added in the request that smart machine is sent, In, the request that corresponding ZigBee-network is added carries smart machine identification information.
In order to realize the intelligent control to smart machine, it is necessary first to it is corresponding that ZigBee gateway is added in smart machine In ZigBee-network, to realize the intelligent control to smart machine.
It should be understood that the executing subject of the present embodiment is ZigBee gateway.ZigBee gateway receives smart machine and sends Request the request of corresponding ZigBee-network is added, when smart machine sends the request that corresponding ZigBee-network is added in request When, smart machine identification information can be carried simultaneously in the request.
It should be noted that smart machine be added ZigBee-network before, need by other wireless networks (such as WIFI, bluetooth etc.) it is communicated with the foundation of ZigBee gateway.
Such as the identification information of intelligent door lock is ID:Ms10001, for another example the identification information of intelligent air condition is ID: kt10002。
Further, terminal obtains the smart machine mark of the smart machine after smart machine to be controlled has been determined Then information is broadcasted the smart machine identification information of the smart machine, when the smart machine receives the smart machine When identification information, when smart machine judges that the smart machine identification information is identical as its identification information, smart machine transmission is asked It asks the request that corresponding ZigBee-network is added to ZigBee gateway, smart machine so can be improved, ZigBee-network is added Safety and accuracy.
Step S20 searches whether that there are the smart machine identification informations, wherein described in local identification list Ground identification list is used to store the corresponding smart machine identification information of smart machine that license is added;
It should be understood that the executing subject of the present embodiment is ZigBee gateway.It is searched whether in local identification list There are the smart machine identification informations, can also be by the smart machine identification information (such as smart machine ID) received and this Identification information in ground identification list is compared, and judges in local identification list with the presence or absence of the smart machine mark received Information.
Local identification list, which can be, to be stored in advance in ZigBee gateway, is also possible to by being sent to after terminal definitions In ZigBee gateway, stores and establish.
Step S30, and if it exists, then send the corresponding ZigBee-network of license addition and request to the smart machine;
It should be understood that when the smart machine identification information that ZigBee gateway receives is present in local identification list In, then it can permit for the smart machine to be added in corresponding ZigBee-network, send license and corresponding ZigBee-network is added It requests to the smart machine.
Step S40 receives responding to the corresponding ZigBee-network request of license addition for the smart machine transmission, will be described Smart machine is added in corresponding ZigBee-network;
Step S50 generates control instruction according to the control parameter, and will when the control parameter for receiving terminal transmission The control instruction is sent to smart machine by corresponding ZigBee-network, to control smart machine.
Wherein, terminal can be the mobile terminals such as smart phone, PAD (tablet computer) and laptop.
It should be understood that after smart machine is successfully connected in ZigBee-network control can be sent with terminal Parameter to ZigBee gateway, ZigBee gateway generates corresponding control instruction, ZigBee gateway according to the control parameter received Control instruction is sent to smart machine by ZigBee-network.
It is corresponding that the present embodiment receives the request addition that smart machine is sent through the above scheme, by ZigBee gateway The request of ZigBee-network, wherein the request that corresponding ZigBee-network is added carries smart machine identification information, so Search whether that there are the smart machine identification informations in local identification list afterwards, wherein the local identification list is used for The corresponding smart machine identification information of smart machine that storage license is added, and if it exists, then send license and corresponding ZigBee is added Network request is to the smart machine;ZigBee-network request sound is corresponded to when receiving the smart machine transmission license is added It answers, the smart machine is added in corresponding ZigBee-network, when the control parameter for receiving terminal transmission, according to described Control parameter generates control instruction, and the control instruction is sent to smart machine by corresponding ZigBee-network, with control Smart machine processed, therefore, smart machine is added into ZigBee-network by ZigBee gateway, passes through the local of ZigBee-network Net realizes the control between smart machine, terminal, signal stabilization, it is not easy to it goes offline, will not be unable to control because of suspension, Improve the stability controlled between smart machine, terminal.
Further, as shown in figure 3, proposing that smart machine control method second of the present invention is implemented based on first embodiment Example, in the present embodiment, step S20 is specifically included:
Step S21 obtains the first distance between the ZigBee gateway and the smart machine;
Step S22 searches whether that there are institutes when the first distance is less than the first preset value in local identification list State smart machine identification information;
Step S23 sends refusal and corresponding ZigBee net is added when the first distance is greater than or equal to the first preset value Network is requested to the smart machine.
It should be understood that the first distance between the ZigBee gateway and the smart machine can be by Range sensor is arranged in ZigBee gateway, detects the distance between ZigBee gateway and smart machine.It can limit and be connected to The smart machine of the corresponding ZigBee-network of ZigBee gateway.First preset value can be to be preset in ZigBee gateway, Be also possible to user it is customized after, which is sent to ZigBee gateway by terminal, smart machine is improved and is added The accuracy of ZigBee-network, avoid smart machine to a certain extent mismatches net.
Further, as shown in figure 4, proposing that smart machine control method third of the present invention is implemented based on first embodiment , in the present embodiment, after step S50, further include:
Step S51 obtains the supplemental characteristic of smart machine in real time;
Step S52, the control parameter ratio that the supplemental characteristic for the smart machine that will acquire is sent with the terminal received It is right;
The control instruction is sent to by step S53 if comparison result is inconsistent again by corresponding ZigBee-network Smart machine.
It should be understood that by real time obtain smart machine supplemental characteristic, if the supplemental characteristic of the smart machine with The control parameter that terminal is sent is inconsistent, then retransmits control instruction to smart machine, to correct the ginseng of smart machine in time Number.
For example, terminal sends the information for closing door lock to ZigBee gateway, and ZigBee gateway is sent by taking intelligent door lock as an example Information is controlled to intelligent door lock;And without closing in time after intelligent door lock is in artificial open, ZigBee gateway is obtaining at this time After getting the information that intelligent door lock is not turned off, and detect with terminal send closing intelligent door lock information it is inconsistent when, meeting The instruction for closing door lock is retransmitted to smart machine.
Further, as shown in figure 5, proposing that smart machine control method the 4th of the present invention is implemented based on first embodiment , in the present embodiment, before step S10, further include:
Step S10 ', when the smart machine identification information for receiving terminal transmission, the smart machine identification information that will be received It stores into the local identification list.
It should be understood that local identification list can be and pre-establish, it is also possible to pass through end after user is customized ZigBee gateway is sent to after the setting of end.
Further, as shown in fig. 6, proposing that smart machine control method the 5th of the present invention is implemented based on first embodiment Example, in the present embodiment, step S50 is specifically included:
Step S51 sends Ciphering Key Sequence Number to terminal;
Step S52, receive terminal send according to the encrypted control parameter of the Ciphering Key Sequence Number;
Step S53 obtains decruption key in local key sequence according to the Ciphering Key Sequence Number sent to terminal;
Step S54 is decrypted to obtain control parameter the encrypted control parameter according to the decruption key;
Step S55 generates control instruction according to the control parameter, and the control instruction is passed through corresponding ZigBee Network is sent to smart machine.
It should be understood that ZigBee gateway sends Ciphering Key Sequence Number to terminal, receives and encrypted according to the Ciphering Key Sequence Number Control parameter afterwards, then search corresponding decruption key and be decrypted, so improve the accuracy of the control to smart machine.
Referring to Fig. 7, Fig. 7 is the terminal structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
As shown in fig. 7, the terminal may include:Processor 2001, such as central processing unit (Central Processing Unit, CPU), communication bus 2002, user interface 2003, network interface 2004, memory 2005.Wherein, communication bus 2002 For realizing the connection communication between these components.User interface 2003 may include display screen (Display), and optional user connects Mouthfuls 2003 can also include standard wireline interface and wireless interface, for user interface 2003 wireline interface in the present invention It can be USB interface.Network interface 2004 optionally may include standard wireline interface and wireless interface (such as Wireless Fidelity (WIreless-FIdelity, WI-FI) interface).Memory 2005 can be the random access memory (Random of high speed Access Memory, RAM) memory, it is also possible to stable memory (Non-volatile Memory, NVM), such as magnetic Disk storage.Memory 2005 optionally can also be the storage device independently of aforementioned processor 2001.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal of structure shown in Fig. 7, may include ratio More or fewer components are illustrated, certain components or different component layouts are perhaps combined.
As shown in fig. 7, as may include that operating system, network are logical in a kind of memory 2005 of computer storage medium Believe that module, Subscriber Interface Module SIM and smart machine control program.
In terminal shown in Fig. 7, network interface 2004 is mainly used for connecting background server, with the background server Carry out data communication;User interface 2003 is mainly used for connecting user equipment;The smart machine control equipment passes through processor The smart machine control program stored in 2001 calling memories 2005, and execute following operation:
Terminal receives input data, and generates control parameter according to input data;
ZigBee gateway is sent by the control parameter, is controlled so that ZigBee gateway is generated according to the control parameter Instruction, and the control instruction is sent to smart machine by corresponding ZigBee-network.
Further, processor 2001 can call the smart machine stored in memory 2005 to control program, also execute It operates below:
Input data is received in the terminal, and before the step of generating control parameter according to input data, further includes:
Smart machine identification information is obtained, and the smart machine identification information is sent to ZigBee gateway, so that ZigBee gateway is by the smart machine identification information storage into local identification list.
Further, processor 2001 can call the smart machine stored in memory 2005 to control program, also execute It operates below:
Input data is received in the terminal, and after the step of generating control parameter according to input data, it is described by institute It states control parameter and is sent to ZigBee gateway, so that ZigBee gateway generates control instruction according to the control parameter, and by institute Before stating the step of control instruction is sent to smart machine by corresponding ZigBee-network, further include:
Obtain the Ciphering Key Sequence Number that ZigBee gateway is sent;
The control parameter is encrypted according to the Ciphering Key Sequence Number, obtains encrypted control parameter.
Based on above-mentioned hardware configuration, the embodiment of smart machine control method of the present invention is proposed.
It is the flow diagram of smart machine control method sixth embodiment of the present invention referring to Fig. 8, Fig. 8.
In the sixth embodiment, the smart machine control method is applied to terminal, includes the following steps:
Step S60, terminal receives input data, and generates control parameter according to input data;
The control parameter is sent ZigBee gateway by step S70, so that ZigBee gateway is according to the control parameter Control instruction is generated, and the control instruction is sent to smart machine by corresponding ZigBee-network.
Further, as shown in figure 9, proposing that smart machine control method the 7th of the present invention is implemented based on sixth embodiment , in the present embodiment, before step S60, further include:
Step S60 ' obtains smart machine identification information, and the smart machine identification information is sent to ZigBee net It closes, so that ZigBee gateway is by the smart machine identification information storage into local identification list.
It should be understood that terminal obtains smart machine identification information, and smart machine identification information is sent to ZigBee gateway so that ZigBee gateway by the smart machine identification information storage into local identification list, i.e. this terrestrial reference Know list in identification information can be user carried out by terminal it is customized.Wherein, terminal obtains smart machine identification information It can be the smart machine identification information that two dimensional code or bar code by scanning smart machine obtain.
Further, as shown in figure 9, proposing that smart machine control method the 7th of the present invention is implemented based on sixth embodiment , in the present embodiment, after step S60, before step S70, further include:
Step S81 obtains the Ciphering Key Sequence Number that ZigBee gateway is sent;
Step S82 encrypts the control parameter according to the Ciphering Key Sequence Number, obtains encrypted control parameter.
In addition, the embodiment of the present invention also proposes that a kind of ZigBee gateway, the ZigBee gateway include:Memory, processing The smart machine control program that device and being stored in can be run on the memory and on the processor, the smart machine control Processing procedure sequence is arranged for carrying out the step of smart machine control method described above.
In addition, the embodiment of the present invention also proposes a kind of storage medium, smart machine control is stored on the storage medium Program, the smart machine control program realize the step of smart machine control method as described above when being executed by processor Suddenly.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.If listing equipment for drying Unit claim in, several in these devices, which can be, to be embodied by the same item of hardware.Word first, Second and the use of third etc. do not indicate any sequence, can be title by these word explanations.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium (such as read-only memory mirror image (Read Only Memory image, ROM)/random access memory (Random Access Memory, RAM), magnetic disk, CD) in, including some instructions are used so that terminal device (can be mobile phone, computer, Server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of smart machine control method, which is characterized in that including:
ZigBee gateway receives the request that corresponding ZigBee-network is added in the request that smart machine is sent, wherein the addition The request of corresponding ZigBee-network carries smart machine identification information;
Search whether that there are the smart machine identification informations in local identification list, wherein the local identification list is used In the corresponding smart machine identification information of smart machine that storage license is added;
If it exists, then the corresponding ZigBee-network of license addition is sent to request to the smart machine;
Responding to the corresponding ZigBee-network request of license addition for the smart machine transmission is received, the smart machine is added To in corresponding ZigBee-network;
When the control parameter for receiving terminal transmission, control instruction is generated according to the control parameter, and by the control instruction It is sent to smart machine by corresponding ZigBee-network, to control smart machine.
2. smart machine control method as described in claim 1, which is characterized in that it is described in local identification list search be It no the step of there are the smart machine identification informations, specifically includes:
Obtain the first distance between the ZigBee gateway and the smart machine;
When the first distance is less than the first preset value, search whether that there are the smart machine marks in local identification list Know information;
When the first distance is greater than or equal to the first preset value, sends the corresponding ZigBee-network of refusal addition and request to described Smart machine.
3. smart machine control method as described in claim 1, which is characterized in that described when the control for receiving terminal transmission Parameter generates control instruction according to the control parameter, and the control instruction is sent to by corresponding ZigBee-network After the step of smart machine, further include:
The supplemental characteristic of smart machine is obtained in real time;
The control parameter that the supplemental characteristic for the smart machine that will acquire is sent with the terminal received compares;
If comparison result is inconsistent, the control instruction is sent to smart machine again by corresponding ZigBee-network.
4. smart machine control method as described in claim 1, which is characterized in that the ZigBee gateway receives smart machine Before the step of request of corresponding ZigBee-network is added in the request of transmission, further include:
When the smart machine identification information for receiving terminal transmission, by the smart machine identification information storage received to the local In identification list.
5. smart machine control method as described in claim 1, which is characterized in that described when the control for receiving terminal transmission Parameter generates control instruction according to the control parameter, and the control instruction is sent to by corresponding ZigBee-network The step of smart machine, specifically includes:
Ciphering Key Sequence Number is sent to terminal;
Receive terminal send according to the encrypted control parameter of the Ciphering Key Sequence Number;
According to the Ciphering Key Sequence Number sent to terminal, decruption key is obtained in local key sequence;
The encrypted control parameter is decrypted to obtain control parameter according to the decruption key;
Control instruction is generated according to the control parameter, and the control instruction is sent to intelligence by corresponding ZigBee-network It can equipment.
6. a kind of smart machine control method, which is characterized in that including:
Terminal receives input data, and generates control parameter according to input data;
ZigBee gateway is sent by the control parameter, is referred to so that ZigBee gateway generates control according to the control parameter It enables, and the control instruction is sent to smart machine by corresponding ZigBee-network.
7. smart machine control method as claimed in claim 6, which is characterized in that input data is received in the terminal, and Before the step of generating control parameter according to input data, further include:
Smart machine identification information is obtained, and the smart machine identification information is sent to ZigBee gateway, so that ZigBee Gateway is by the smart machine identification information storage into local identification list.
8. smart machine control method as claimed in claim 6, which is characterized in that input data is received in the terminal, and It is described to send ZigBee gateway for the control parameter after the step of generating control parameter according to input data, so that ZigBee gateway generates control instruction according to the control parameter, and the control instruction is sent out by corresponding ZigBee-network Before the step of sending to smart machine, further include:
Obtain the Ciphering Key Sequence Number that ZigBee gateway is sent;
The control parameter is encrypted according to the Ciphering Key Sequence Number, obtains encrypted control parameter.
9. a kind of ZigBee gateway, which is characterized in that the ZigBee gateway includes:It memory, processor and is stored in described On memory and the smart machine control program that can run on the processor, smart machine control program are configured to reality Now the step of smart machine control method as described in any one of claims 1 to 5.
10. a kind of computer readable storage medium, which is characterized in that be stored with intelligence on the computer readable storage medium and set Standby control program, the smart machine control program are realized as described in any one of claims 1 to 5 when being executed by processor The step of smart machine control method.
CN201810729002.2A 2018-07-04 2018-07-04 Smart machine control method, ZigBee gateway and storage medium Pending CN108924906A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810729002.2A CN108924906A (en) 2018-07-04 2018-07-04 Smart machine control method, ZigBee gateway and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810729002.2A CN108924906A (en) 2018-07-04 2018-07-04 Smart machine control method, ZigBee gateway and storage medium

Publications (1)

Publication Number Publication Date
CN108924906A true CN108924906A (en) 2018-11-30

Family

ID=64424863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810729002.2A Pending CN108924906A (en) 2018-07-04 2018-07-04 Smart machine control method, ZigBee gateway and storage medium

Country Status (1)

Country Link
CN (1) CN108924906A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110018642A (en) * 2019-04-15 2019-07-16 美的集团股份有限公司 A kind of quick control method of smart home device, medium and smart home device
CN111901151A (en) * 2020-06-30 2020-11-06 杭州博联智能科技股份有限公司 Method, device, equipment and medium for gateway equipment to manage IOT equipment
CN111918368A (en) * 2020-06-19 2020-11-10 深圳市有方科技股份有限公司 Internet of things wireless communication networking transmission method and device and computer equipment
CN112423368A (en) * 2020-11-02 2021-02-26 上海朗绿建筑科技股份有限公司 Gateway, intelligent device, mobile terminal, network access method and network access auxiliary method and system
CN114126000A (en) * 2021-12-07 2022-03-01 施耐德电气(中国)有限公司 Networking method and device for intelligent equipment
CN114554522A (en) * 2022-01-29 2022-05-27 青岛海尔科技有限公司 Equipment control method and device, electronic equipment and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105338554A (en) * 2015-10-15 2016-02-17 珠海格力电器股份有限公司 Networking method and system for intelligent household equipment, and ZigBee gateway
CN106231754A (en) * 2016-08-16 2016-12-14 腾讯科技(深圳)有限公司 Lighting Control Assembly, illumination control method and device
CN106304059A (en) * 2015-05-19 2017-01-04 美的集团股份有限公司 ZigBee-network subnetting management method and system
CN106304247A (en) * 2015-05-11 2017-01-04 美的集团股份有限公司 The method of network entry of equipment based on Zigbee protocol
CN106792999A (en) * 2017-02-28 2017-05-31 生迪智慧科技有限公司 Zigbee gateway devices, zigbee child nodes and zigbee network-building methods
CN107463244A (en) * 2017-07-27 2017-12-12 北京小米移动软件有限公司 Enabling information processing method and device
CN107645789A (en) * 2016-07-14 2018-01-30 中兴通讯股份有限公司 The method, apparatus and system of networking

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106304247A (en) * 2015-05-11 2017-01-04 美的集团股份有限公司 The method of network entry of equipment based on Zigbee protocol
CN106304059A (en) * 2015-05-19 2017-01-04 美的集团股份有限公司 ZigBee-network subnetting management method and system
CN105338554A (en) * 2015-10-15 2016-02-17 珠海格力电器股份有限公司 Networking method and system for intelligent household equipment, and ZigBee gateway
CN107645789A (en) * 2016-07-14 2018-01-30 中兴通讯股份有限公司 The method, apparatus and system of networking
CN106231754A (en) * 2016-08-16 2016-12-14 腾讯科技(深圳)有限公司 Lighting Control Assembly, illumination control method and device
CN106792999A (en) * 2017-02-28 2017-05-31 生迪智慧科技有限公司 Zigbee gateway devices, zigbee child nodes and zigbee network-building methods
CN107463244A (en) * 2017-07-27 2017-12-12 北京小米移动软件有限公司 Enabling information processing method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110018642A (en) * 2019-04-15 2019-07-16 美的集团股份有限公司 A kind of quick control method of smart home device, medium and smart home device
CN111918368A (en) * 2020-06-19 2020-11-10 深圳市有方科技股份有限公司 Internet of things wireless communication networking transmission method and device and computer equipment
CN111901151A (en) * 2020-06-30 2020-11-06 杭州博联智能科技股份有限公司 Method, device, equipment and medium for gateway equipment to manage IOT equipment
CN112423368A (en) * 2020-11-02 2021-02-26 上海朗绿建筑科技股份有限公司 Gateway, intelligent device, mobile terminal, network access method and network access auxiliary method and system
CN114126000A (en) * 2021-12-07 2022-03-01 施耐德电气(中国)有限公司 Networking method and device for intelligent equipment
CN114554522A (en) * 2022-01-29 2022-05-27 青岛海尔科技有限公司 Equipment control method and device, electronic equipment and medium
CN114554522B (en) * 2022-01-29 2023-12-19 青岛海尔科技有限公司 Equipment control method and device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN108924906A (en) Smart machine control method, ZigBee gateway and storage medium
CN106134143B (en) Method, apparatus and system for dynamic network access-in management
US20220239524A1 (en) Network configuration method for home appliance, home appliance, mobile terminal, and storage medium
CN107770007A (en) Distribution method, apparatus, system and the computer-readable recording medium of home appliance
KR100996768B1 (en) System for remotely accessing a mass storage unit and a security storage unit in a portable communicating object
CN111628897B (en) Intelligent equipment initialization method, device and system
CN100583114C (en) System and method for remote security enablement
CN105376738A (en) Wireless network access method, apparatus and system
CN104333863A (en) Connection management method, device and electronic equipment
EP3337219A1 (en) Carrier configuration processing method, device and system, and computer storage medium
CN109041140B (en) Method for rapidly switching wireless network, intelligent hardware and terminal equipment
CN107948170A (en) Interface requests parameter encryption method, device, equipment and readable storage medium storing program for executing
CN114760112B (en) Wireless local area network-oriented intelligent home equipment networking method, system, equipment and storage medium
CN104936167A (en) Card writing method, system and equipment
US20130005402A1 (en) Method for accessing at least one service and corresponding system
CN110113734B (en) Bluetooth one-to-many data transmission method, system and storage medium
EP2881896B1 (en) Near field communication tag based data transfer
CN107659933B (en) Bidirectional pairing connection method for wireless equipment, wireless equipment and storage medium
CN109714380A (en) Partner's method for network access, device, equipment and computer readable storage medium
CN111367561B (en) Remote development method and device for software program
CN106339332B (en) A kind of information processing method, device and terminal
CN110611903B (en) Equipment binding method, device, equipment and storage medium
CN111432390A (en) Networking and configuration system and method for Internet of things equipment
EP4310407A1 (en) Control right switching method and apparatus for virtual remote control, device, and storage medium
CN103384232A (en) Identity authentication method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181130

RJ01 Rejection of invention patent application after publication