CN111065064A - ZigBee-based mobile internet curtain motor control system, method and device - Google Patents

ZigBee-based mobile internet curtain motor control system, method and device Download PDF

Info

Publication number
CN111065064A
CN111065064A CN201911181596.9A CN201911181596A CN111065064A CN 111065064 A CN111065064 A CN 111065064A CN 201911181596 A CN201911181596 A CN 201911181596A CN 111065064 A CN111065064 A CN 111065064A
Authority
CN
China
Prior art keywords
zigbee
control
node
curtain motor
state data
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.)
Withdrawn
Application number
CN201911181596.9A
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.)
Guangdong Rex Intelligent Technology Co ltd
Original Assignee
Guangdong Rex 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 Guangdong Rex Intelligent Technology Co ltd filed Critical Guangdong Rex Intelligent Technology Co ltd
Priority to CN201911181596.9A priority Critical patent/CN111065064A/en
Publication of CN111065064A publication Critical patent/CN111065064A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/38Services specially adapted for particular environments, situations or purposes for collecting sensor information
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47HFURNISHINGS FOR WINDOWS OR DOORS
    • A47H5/00Devices for drawing draperies, curtains, or the like
    • A47H5/02Devices for opening and closing curtains
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P5/00Arrangements specially adapted for regulating or controlling the speed or torque of two or more electric motors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47HFURNISHINGS FOR WINDOWS OR DOORS
    • A47H5/00Devices for drawing draperies, curtains, or the like
    • A47H5/02Devices for opening and closing curtains
    • A47H2005/025Devices for opening and closing curtains controlled by electronic sensors

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Power Engineering (AREA)
  • Selective Calling Equipment (AREA)
  • Curtains And Furnishings For Windows Or Doors (AREA)

Abstract

The embodiment of the application discloses a ZigBee-based mobile internet curtain motor control system, method, device and storage medium. According to the technical scheme provided by the embodiment of the application, the ZigBee curtain motors can be configured into main nodes or sub-nodes, the ZigBee sensors can be configured into sub-nodes, the sub-nodes are used for summarizing state data to the subordinate main nodes and receiving control data sent by the subordinate main nodes, the ZigBee curtain motors and the ZigBee sensors can be directly in signal connection with the ZigBee gateway, and the ZigBee curtain motors and the ZigBee sensors are subjected to skip transmission through the nodes or directly perform interaction of the state data and the control data with the server through the ZigBee gateway; by adopting the technical means, the cooperative control of the control terminal on the plurality of curtain motors of the curtain motor system can be realized, the control data and the state data are transmitted in a ZigBee module ad hoc network mode, the reliability, the stability and the expandability of a data transmission network are ensured, and the control distance of the curtain motor system is further extended.

Description

ZigBee-based mobile internet curtain motor control system, method and device
Technical Field
The embodiment of the application relates to the technical field of Internet of things control, in particular to a ZigBee-based mobile internet curtain motor control system, method and device.
Background
Conventional window coverings are usually opened or closed manually, which is inconvenient. Especially for the curtain with a large area, the curtain can be manually pulled to close or open the curtain with great effort, and the use experience of the user is relatively poor. Along with the continuous improvement of the living standard of people and the continuous development of electronic technology, more and more automatic and intelligent products are moved into the lives of people, and great convenience is provided for the living and living of people. The motorized window shades are one of the more common automated products. The curtain motor drives the curtain to be drawn in or out, so that a user does not need to manually open or close the curtain, and great convenience is provided for the user.
However, the existing curtain motors control the opening or closing of the curtain through a remote controller or a strong and weak current panel, the control distance is relatively short, the point-to-point control mode is relatively single, and the intelligent degree is relatively low.
Disclosure of Invention
The embodiment of the application provides a ZigBee-based mobile internet curtain motor control system, method, device and storage medium, which can realize the cooperative and intelligent control of a curtain motor.
In a first aspect, an embodiment of the present application provides a ZigBee-based mobile internet curtain motor control system, including:
the system comprises a server, a ZigBee gateway, a plurality of ZigBee curtain motors and a plurality of ZigBee sensors;
the ZigBee curtain motor comprises a ZigBee module and a corresponding curtain motor, and the ZigBee sensor comprises a ZigBee module and a corresponding sensor; each ZigBee module is in signal connection with a corresponding curtain motor or sensor and is used for uploading state data and issuing control data;
the ZigBee curtain motor can be configured into a main node or a sub-node, the ZigBee sensor can be configured into a sub-node, and the sub-node is used for summarizing state data to the subordinate main node and receiving control data sent by the subordinate main node; the ZigBee gateway is in signal connection with each main node and is used for forwarding the state data uploaded by each main node to the server and forwarding the control data issued by the server to the corresponding sub-nodes through the main nodes; the ZigBee curtain motor and the ZigBee sensor can also be directly connected with the ZigBee gateway through signals to carry out interaction of state data and control data;
the server is used for receiving and forwarding the state data uploaded by the ZigBee gateway to the corresponding control terminal, and issuing control data to the ZigBee gateway according to a control instruction of the control terminal.
Further, the method also comprises the following steps:
and the ZigBee host is used for carrying out network access configuration of each ZigBee module and configuration of the main node and the sub-nodes.
Further, the method also comprises the following steps:
and the associated ZigBee device is used for receiving the linkage control data issued by the server based on the corresponding state data and carrying out linkage control on the associated ZigBee device and the curtain motor based on the linkage control data.
In a second aspect, an embodiment of the present application provides a ZigBee-based mobile internet curtain motor control method, including:
each child node uploads the state data of the corresponding curtain motor or sensor to the subordinate main node;
each main node receives the state data of the corresponding sub-node and uploads the state data of the main node and the state data of the corresponding sub-node to a server through a ZigBee gateway; the ZigBee curtain motors and the ZigBee sensors which are directly in signal connection with the ZigBee gateway upload state data to a server through the ZigBee gateway;
the server receives the state data uploaded by the ZigBee gateway, forwards the state data to the control terminal, receives a control instruction of the control terminal in real time, generates control data according to the control instruction, and sends the control data to a corresponding ZigBee curtain motor or a ZigBee sensor through the ZigBee gateway;
and the corresponding main node receives the control data, transmits the control data to the corresponding sub-node for output or directly outputs the control data, and the control data is used for outputting the control data to the corresponding curtain motor or sensor.
Further, before each child node uploads the state data of the corresponding curtain motor or sensor to the slave master node, the method further includes:
the corresponding ZigBee curtain motor is configured into a main node or a sub-node through the ZigBee host, and the corresponding ZigBee sensor is configured into the sub-node.
Further, the state data and the control data both contain identification information, and the identification information is a unique identification of a corresponding main node or sub-node;
correspondingly, the issuing the control data to the corresponding child node for output or direct output includes:
and analyzing the identification information in the control data, and issuing the control data to the corresponding sub-node for output or direct output according to the main node or the sub-node identified by the identification information.
Further, after the server receives the status data uploaded by the ZigBee gateway, the method further includes:
and comparing the state data with a corresponding set value, if the state data reaches the corresponding set value, generating corresponding linkage control data, and sending the linkage control data to corresponding associated ZigBee equipment, wherein the associated ZigBee equipment has a preset association relation with a curtain motor or a sensor corresponding to the state data.
Further, before the corresponding master node receives the control data and issues the control data to the corresponding child node for output or direct output, the method further includes:
the control terminal is in signal connection with the ZigBee gateway and sends control data to the corresponding ZigBee curtain motor or the ZigBee sensor through the ZigBee gateway.
Further, the method also comprises the following steps:
and the child node switches a signal link with the current subordinate main node according to configuration requirements, is in signal connection with another main node or directly with the ZigBee gateway, and performs interaction of state data and control data.
In a third aspect, an embodiment of the present application provides a ZigBee-based mobile internet curtain motor control device, including:
the uploading module is used for uploading the state data of the corresponding curtain motor or sensor to the subordinate main node through each sub-node;
the receiving module is used for receiving the state data of the corresponding child nodes through the main nodes and uploading the state data of the receiving module and the state data of the corresponding child nodes to the server through the ZigBee gateway; the ZigBee curtain motor and the ZigBee sensor which are directly in signal connection with the ZigBee gateway are used for uploading state data to a server through the ZigBee gateway;
the control module is used for receiving the state data uploaded by the ZigBee gateway through a server, forwarding the state data to the control terminal, receiving a control instruction of the control terminal in real time, generating control data according to the control instruction, and sending the control data to a corresponding ZigBee curtain motor or a ZigBee sensor through the ZigBee gateway;
and the output module is used for receiving the control data through the corresponding main node, transmitting the control data to the corresponding sub-node for output or directly outputting, and the control data is used for outputting to the corresponding curtain motor or sensor.
In a fourth aspect, embodiments of the present application provide a storage medium containing computer executable instructions for performing the ZigBee-based mobile internet curtain motor control method according to the second aspect when executed by a computer processor.
According to the embodiment of the application, the server, the ZigBee gateway, the ZigBee curtain motors and the ZigBee sensors are arranged, the ZigBee curtain motors can be configured into main nodes or sub-nodes, the ZigBee sensors can be configured into sub-nodes, the sub-nodes are used for summarizing state data to the subordinate main nodes and receiving control data issued by the subordinate main nodes, the ZigBee curtain motors and the ZigBee sensors can be directly connected with the ZigBee gateway in a signal mode, and the ZigBee curtain motors and the ZigBee sensors are subjected to skip transmission through the nodes or directly perform interaction of the state data and the control data with the server through the ZigBee gateway; by adopting the technical means, the cooperative control of the control terminal to the plurality of curtain motors of the curtain motor system can be realized, and the control of the curtain motors is more intelligent by acquiring the state data of the curtain motors and the sensors and controlling the curtain motors based on the state data.
In addition, the control data and the state data are transmitted in a ZigBee module ad hoc network mode, the reliability and the expandability of a data transmission network are ensured, and the control distance of a curtain motor system is further expanded.
Drawings
Fig. 1 is a schematic structural diagram of a ZigBee-based mobile internet curtain motor control system according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an ad hoc network of each ZigBee module in the first embodiment of the present application;
fig. 3 is a flowchart of a ZigBee-based mobile internet curtain motor control method according to a second embodiment of the present application;
fig. 4 is a schematic structural diagram of a motor control device of a mobile internet curtain based on ZigBee according to a third embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, specific embodiments of the present application will be described in detail with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The application provides a mobile internet (window) curtain motor control system based on zigBee aims at carrying out the transmission of relevant state data and control data based on zigBee ad hoc network, with the help of the characteristics of zigBee ad hoc network, realizes that control terminal controls a plurality of equipment. Further, the ZigBee module is used for transmitting the state data of each curtain motor or sensor, so that the control terminal or the server can conveniently control the curtain motors based on the state data of the curtain motors or sensors, and the intelligent control of a curtain motor system is realized. Referring to the existing curtain motor control mode, a point-to-point control mode is usually adopted, and the curtain motor is controlled only by a corresponding remote controller or a strong and weak current panel. That is, a single control device can only control a single curtain motor, and cannot realize the cooperative control of the whole curtain motor system. When a user wants to control the motor, the user needs to hold a remote controller to operate the control panel towards the curtain motor receiver or walk to the control panel to control the opening and closing of the curtain motor. Moreover, the transmission distance of the control signal is relatively short, the control of the corresponding curtain motor is usually limited to a short distance range, and the networking control of the curtain motor cannot be realized. Based on this, provide this application embodiment based on zigBee's mobile internet (window) curtain motor control system to solve the simple and low technical problem of intelligent degree of current (window) curtain motor control mode.
The first embodiment is as follows:
fig. 1 shows a schematic structural diagram of a mobile internet curtain motor control system based on ZigBee according to an embodiment of the present application, and the mobile internet curtain motor control system based on ZigBee according to the embodiment of the present application is mainly applied to an intelligent home scene and is used for intelligently controlling a plurality of curtains in the scene. Referring to fig. 1, the mobile internet curtain motor control system based on ZigBee comprises a server, a ZigBee gateway, a plurality of ZigBee curtain motors, and a plurality of ZigBee sensors. The ZigBee curtain motor comprises a ZigBee module and a corresponding curtain motor, and the ZigBee sensor comprises a ZigBee module and a corresponding sensor; each ZigBee module is in signal connection with a corresponding curtain motor or sensor and is used for uploading state data and issuing control data; the ZigBee curtain motor can be configured into a main node or a sub-node, the ZigBee sensor can be configured into a sub-node, and the sub-node is used for summarizing state data to the subordinate main node and receiving control data sent by the subordinate main node; the ZigBee gateway is in signal connection with each main node and is used for forwarding the state data uploaded by each main node to the server and forwarding the control data issued by the server to the corresponding sub-nodes through the main nodes; the ZigBee curtain motor and the ZigBee sensor can also be directly connected with the ZigBee gateway through signals to carry out interaction of state data and control data; the server is used for receiving and forwarding the state data uploaded by the ZigBee gateway to the corresponding control terminal, and issuing control data to the ZigBee gateway according to a control instruction of the control terminal.
Wherein, the ZigBee module is used as a communication module of a curtain motor or a related sensor. Each ZigBee module is in signal connection with a corresponding curtain motor or sensor, one curtain motor or sensor corresponds to one ZigBee module, and the ZigBee modules are used for uploading state data of the corresponding curtain motors or sensors and issuing control data. Specifically, the sensor can be illumination sensor, temperature sensor and distance detection sensor etc. and illumination sensor can be used to detect indoor illumination intensity, then through acquireing illumination sensor's state data, can learn indoor luminance condition, and then carries out the control of (window) curtain motor according to indoor luminance condition. For example, when the illumination intensity sensor detects that the indoor illumination intensity is too strong, the server uploads the state data to the server, the server sends the state data to the control terminal or automatically adjusts and controls the state data, and finally intelligent control over the window curtain motor based on the state data can be achieved through the control terminal or the server. In a similar way, the temperature sensor is used for collecting indoor temperature information, the distance detection sensor is used for collecting the opening and closing degree of the curtain (the information can also be directly obtained through the curtain motor), the curtain motor can be further controlled based on the state data, and therefore more reasonable and more intelligent curtain motor control is achieved. The state data collected by each ZigBee module can be uploaded to a server through a ZigBee gateway, and the server processes the state data.
In addition, in the embodiment of the application, all the ZigBee modules are not in butt joint with the ZigBee gateway, and in order to extend the communication distance between the gateway and each ZigBee module, so that the ZigBee modules which are not in the communication range with the ZigBee gateway can also transmit state data and control data, and ensure that the curtain motor system can control the longer-distance ZigBee devices, the embodiment of the application utilizes the characteristics of the ZigBee module ad hoc network to realize the expandability of the transmission network through the communication between the ZigBee module nodes. When networking is carried out, the ZigBee modules are mutually connected in a communication range to form a mesh network, a plurality of ZigBee curtain motors are used as main nodes, the ZigBee curtain motors or the ZigBee sensors connected with the main nodes are used as sub-nodes, and the sub-nodes are used for summarizing state data to the subordinate main nodes and receiving control data sent by the subordinate main nodes. The mesh network has the characteristics of multi-hop interconnection and network topology, and in the mesh network, all state data of each main node and each subnode under the main node are gathered to the main node and forwarded by the main node. Similarly, when the control data is issued, the control data is also received by the host node. And the main node transmits the control data to the corresponding sub-node or outputs the control data to the corresponding curtain motor or the sensor by the main node through the ZigBee module which determines the control output of the control data. And the ZigBee gateway is in signal connection with each main node, forwards the state data uploaded by each main node to the server, and forwards the control data issued by the server to the corresponding sub-node through the main node. The server correspondingly receives and forwards the state data uploaded by the ZigBee gateway to the corresponding control terminal, and sends the control data to the ZigBee gateway according to the control instruction of the control terminal, so that the intelligent control of the control terminal on the curtain motor is realized.
Specifically, network access configuration of each ZigBee module and configuration of a main node and a sub-node in the mesh network are completed by the ZigBee host, and the main node and the sub-node are configured according to the distance between each ZigBee module and the ZigBee gateway and actual transmission requirements when the main node and the sub-node are configured by the ZigBee host. Referring to fig. 2, each master node 11 is directly in signal connection with the ZigBee gateway 13, and transmits status data and control data with the ZigBee gateway 13. It can be understood that the master node 11 needs to be guaranteed to be within the communication range of the ZigBee gateway 13 to ensure signal connection with the ZigBee gateway 13. The ZigBee gateway 13 serves as a network hub, and the access of each ZigBee module requires permission of the gateway. In addition, the ZigBee host may set ZigBee devices in a communication range of the master node 11 as the child node 12, and the child node 12 is interconnected with the master node 11 to which the child node belongs, so that the uploading of state data and the issuing of control data of the ZigBee gateway 13 can be realized. In addition, by using the characteristic of multi-hop interconnection among nodes of the ZigBee module, under the condition that the data transmission link of the main node 11 can ensure the data transmission amount of a plurality of sub-nodes, the state data can be skipped to another sub-node 13 by the inter-node data hopping transmission mode for the sub-nodes 13 not in the communication range of the main node 11, and the other sub-node 13 further summarizes the state data to the main node 11 to which the sub-node is subordinate to upload the state data.
For example, in a window curtain motor system application scenario, it is required to implement control of a window curtain of multiple floors of a building. The ZigBee gateway is arranged on the floor 1, the ZigBee gateway and the ZigBee devices corresponding to the curtains on the floors 5, 10 and 25 are required to transmit state data and control data, and the ZigBee devices on the floor 5 are set as the main nodes. The ZigBee device located on the 10 th floor is limited by communication distance and cannot be directly connected with the ZigBee gateway, and then can be in signal connection with the main node of the 5 th floor, and the ZigBee device on the 10 th floor is set as a sub-node to which the main node of the 5 th floor belongs. And the state data and the control data of the 10-floor nodes are transmitted by the 5-floor main node. In addition, the ZigBee device corresponding to the 25 th floor is also limited in that the communication distance cannot be directly connected with the ZigBee gateway or the master node of the 5 th floor by signals, and the state data is finally transmitted to the master node of the 5 th floor in a jump transmission mode by the characteristic of interconnection of ZigBee modules between floors, and is transmitted to the ZigBee gateway by the master node of the 5 th floor.
Referring to fig. 1, in practical application, part of the ZigBee curtain motors are set as master nodes, and part of the ZigBee curtain motors and the ZigBee sensors are set as child nodes, and the child nodes can be forwarded by the master nodes through the ZigBee gateway when interacting state data and control data with the server. In addition, part of the ZigBee curtain motors and part of the ZigBee sensors can be directly connected with the ZigBee gateway through signals and interact state data and control data with the server. According to actual needs, the ZigBee curtain motor and the ZigBee sensor flexibly adopt various forms to interact data with the server.
In addition, the child node in the embodiment of the present application may also perform switching of the subordinate master node according to an actual configuration requirement. For example, when the data transmission link between the currently subordinate master node and the ZigBee gateway is abnormal, the slave node may switch the subordinate slave node to be in signal connection with the remaining master nodes, so as to perform interaction of status data and control data with the server. It can be understood that, in the embodiment of the present application, the more ZigBee devices are networked, the more the child nodes select when switching the data transmission links, so as to further enhance the reliability and stability of the data transmission network.
Further, the mobile internet curtain motor control system based on the ZigBee also comprises associated ZigBee equipment, wherein the associated ZigBee equipment is used for receiving linkage control data issued by the server based on corresponding state data, and linkage control of the associated ZigBee equipment and the curtain motor is carried out based on the linkage control data. The associated ZigBee device is a related home device, such as an indoor lighting device, that uses the ZigBee module for data transmission. It will be appreciated that in practical scenarios, there are often some linkage relationships for the control of the blinds and the lighting devices. For example, when the curtain is opened and the indoor illumination is sufficient, the lighting device in the room can be controlled to be closed. Therefore, based on the application scenario, in order to realize linkage control of the curtain motor and other associated ZigBee devices, the curtain motor control system according to the embodiment of the present application may acquire state data of the curtain motor or the associated sensor in real time through the server, and when the state data reaches a set value, perform linkage control on the associated ZigBee devices. If the server learns that the current curtain is opened or the indoor illumination intensity is enough through the state data or the illumination intensity sensor of the curtain motor, the server sends control data to the indoor lighting equipment (associated ZigBee equipment) to control the indoor lighting equipment to be closed, so that the energy consumption is saved, and the intelligent control of the ZigBee-based mobile internet curtain motor control system is realized.
The ZigBee curtain motor can be configured into a main node or a sub-node, the ZigBee sensor can be configured into a sub-node, the sub-node is used for summarizing state data to the subordinate main node and receiving control data issued by the subordinate main node, the ZigBee curtain motor and the ZigBee sensor can also be directly connected with the ZigBee gateway through signals, and each ZigBee curtain motor and each ZigBee sensor are subjected to skip transmission through the nodes or directly perform interaction of the state data and the control data with the server through the ZigBee gateway; by adopting the technical means, the cooperative control of the control terminal to the plurality of curtain motors of the curtain motor system can be realized, and the control of the curtain motors is more intelligent by acquiring the state data of the curtain motors and the sensors and controlling the curtain motors based on the state data.
In addition, the control data and the state data are transmitted in a ZigBee module ad hoc network mode, the reliability and the expandability of a data transmission network are ensured, and the control distance of a curtain motor system is further expanded.
Example two:
on the basis of the above embodiments, fig. 3 is a flowchart of a ZigBee-based mobile internet curtain motor control method provided in an embodiment of the present application, and the ZigBee-based mobile internet curtain motor control method provided in this embodiment may be executed by the ZigBee-based mobile internet curtain motor control system provided in an embodiment of the present application, and the ZigBee-based mobile internet curtain motor control system may be implemented in a software and/or hardware manner.
The following description will be made taking a ZigBee-based mobile internet curtain motor control system as an example of a main body that performs a ZigBee-based mobile internet curtain motor control method. Referring to fig. 3, the ZigBee-based mobile internet curtain motor control method specifically includes:
s210, each child node uploads the state data of the corresponding curtain motor or sensor to the subordinate main node;
s220, each main node receives the state data of the corresponding sub-node, and uploads the state data of the main node and the state data of the corresponding sub-node to a server through a ZigBee gateway; the ZigBee curtain motors and the ZigBee sensors which are directly in signal connection with the ZigBee gateway upload state data to a server through the ZigBee gateway;
s230, the server receives the state data uploaded by the ZigBee gateway, forwards the state data to the control terminal, receives a control instruction of the control terminal in real time, generates control data according to the control instruction, and sends the control data to a corresponding ZigBee curtain motor or a ZigBee sensor through the ZigBee gateway;
and S240, the corresponding main node receives the control data, and transmits the control data to the corresponding sub-node for output or directly output, wherein the control data is used for being output to the corresponding curtain motor or sensor.
Before that, ZigBee modules of the curtain motor or the sensor which are connected with signals correspondingly are connected with each other in a communication range to form a mesh network, and the ZigBee modules are correspondingly configured into a main node or a sub node through a ZigBee host.
In addition, each status data or control data contains identification information, which is a unique identification of the corresponding master node or child node. The identification information may be used to determine from which ZigBee module the status data comes, or to which ZigBee module the control data is to be sent. The identification information needs to correspond to the numbers of the corresponding curtain motors or sensors one by one, so that the control data can be accurately output to the corresponding curtain motors or sensors through the ZigBee module, and meanwhile, the server side can also determine which curtain motor or sensor the state data comes from.
Illustratively, after receiving the status data forwarded by the gateway, the server obtains which ZigBee module the status data comes from by analyzing the identification information in the status data, and then forwards the analyzed status data to the control terminal. The control terminal can be intelligent equipment such as a mobile phone, the state data forwarded by the server is received and displayed through the control terminal, and a user can conveniently check the state data of the corresponding curtain motor or the sensor so as to determine information such as the opening and closing condition of the curtain, the indoor illumination condition and the indoor temperature condition.
On the other hand, in the using process of the curtain motor system, a control instruction can be sent to the server, and the control instruction is control information of the corresponding curtain motor or the sensor. The state data of the sensor collected in real time can be acquired through the control command, and the curtain motor can be controlled or the real-time state data of the curtain motor can be acquired through the control command. After the control instruction is sent to the server, the server analyzes the control instruction to determine the control data contained in the control instruction, and the control data specifies the identification information to which ZigBee module the control information needs to be sent to output. The ZigBee module corresponding to the identification information may be a master node or a child node. And the server determines corresponding identification information according to the curtain motor or the sensor correspondingly controlled by the control instruction, puts the identification information into control data, transmits the control data to the ZigBee gateway and forwards the control data to the corresponding main node. And after the main node analyzes the identification information in the control data, the main node issues the control data to the corresponding sub-node for output or directly outputs the control data according to the main node or the sub-node identified by the identification information. It can be understood that if the identification information is corresponding to the master node, the master node directly outputs the identification information to the curtain motor corresponding to the master node. If the identification information is the corresponding child node, the main node issues the control data to the corresponding child node according to the child node identified by the identification information, and the control data is output to the corresponding curtain motor or the sensor by the corresponding child node. It should be noted that the control terminal may control the curtain motor or the sensor according to the state data, or may control the curtain motor or the sensor actively by the user. And the server can automatically adjust and control the corresponding curtain motor or sensor according to the state data. For example, when the server acquires the state data of the illumination sensor corresponding to a certain curtain and displays that the current illumination intensity is too high, the server outputs control data to the curtain motor corresponding to the curtain through automatic adjustment control, and controls the corresponding curtain motor to close or fold to a certain degree.
Furthermore, the control terminal can also be directly in signal connection with the ZigBee gateway and sends control data to the corresponding main node through the ZigBee gateway. The control terminal needs to be provided with a communication module for communicating with the ZigBee gateway, so that direct communication with the ZigBee gateway is realized, one end of the server can be skipped over, direct signal connection between the control terminal and the ZigBee gateway is realized, the real-time performance of data transmission is further guaranteed, and the situations that control data and state data are lost in the transmission process of the server and the like are avoided.
In addition, according to the real-time instance of the application, after the server receives the state data, the state data is compared with the corresponding set value, if the state data reaches the corresponding set value, corresponding linkage control data is generated and sent to the corresponding associated ZigBee device, and the associated ZigBee device and a curtain motor or a sensor corresponding to the state data have a preset association relationship, so that the linkage control of the ZigBee-based mobile internet curtain motor control system and other associated ZigBee devices is realized.
The ZigBee curtain motor can be configured into a main node or a sub-node, the ZigBee sensor can be configured into a sub-node, the sub-node is used for summarizing state data to the subordinate main node and receiving control data issued by the subordinate main node, the ZigBee curtain motor and the ZigBee sensor can also be directly connected with the ZigBee gateway through signals, and each ZigBee curtain motor and each ZigBee sensor are subjected to skip transmission through the nodes or directly perform interaction of the state data and the control data with the server through the ZigBee gateway; by adopting the technical means, the cooperative control of the control terminal to the plurality of curtain motors of the curtain motor system can be realized, and the control of the curtain motors is more intelligent by acquiring the state data of the curtain motors and the sensors and controlling the curtain motors based on the state data.
In addition, the control data and the state data are transmitted in a ZigBee module ad hoc network mode, the reliability and the expandability of a data transmission network are ensured, and the control distance of a curtain motor system is further expanded.
In addition, the control data and the state data are transmitted in a ZigBee module ad hoc network mode, the reliability and the expandability of a data transmission network are ensured, and the control distance of a curtain motor system is further expanded.
Example three:
on the basis of the above embodiments, fig. 4 is a schematic structural diagram of a ZigBee-based mobile internet curtain motor control device provided in a third embodiment of the present application. Referring to fig. 4, the ZigBee-based mobile internet curtain motor control device provided in this embodiment specifically includes: an upload module 31, a receive module 32, a control module 33, and an output module 34.
The uploading module 31 is used for uploading the state data of the corresponding curtain motor or sensor to the subordinate main node through each sub-node;
the receiving module 32 is configured to receive the state data of the corresponding child node through each host node, and upload the state data of the host node and the state data of the corresponding child node to the server through the ZigBee gateway; the ZigBee curtain motor and the ZigBee sensor which are directly in signal connection with the ZigBee gateway are used for uploading state data to a server through the ZigBee gateway;
the control module 33 is used for receiving the state data uploaded by the ZigBee gateway through a server, forwarding the state data to a control terminal, receiving a control instruction of the control terminal in real time, generating control data according to the control instruction, and sending the control data to a corresponding ZigBee curtain motor or a ZigBee sensor through the ZigBee gateway;
the output module 34 is configured to receive the control data through the corresponding master node, and send the control data to the corresponding slave node for output or directly output, where the control data is used to output to the corresponding curtain motor or sensor.
The ZigBee curtain motor can be configured into a main node or a sub-node, the ZigBee sensor can be configured into a sub-node, the sub-node is used for summarizing state data to the subordinate main node and receiving control data issued by the subordinate main node, the ZigBee curtain motor and the ZigBee sensor can also be directly connected with the ZigBee gateway through signals, and each ZigBee curtain motor and each ZigBee sensor are subjected to skip transmission through the nodes or directly perform interaction of the state data and the control data with the server through the ZigBee gateway; by adopting the technical means, the cooperative control of the control terminal to the plurality of curtain motors of the curtain motor system can be realized, and the control of the curtain motors is more intelligent by acquiring the state data of the curtain motors and the sensors and controlling the curtain motors based on the state data. The control data and the state data are transmitted in a ZigBee module ad hoc network mode, the reliability and the expandability of a data transmission network are ensured, and the control distance of a curtain motor system is further expanded.
Specifically, still include:
and the configuration module is used for configuring the corresponding ZigBee curtain motor into a main node or a sub-node through the ZigBee host and configuring the corresponding ZigBee sensor into the sub-node.
Specifically, still include:
and the linkage module is used for comparing the state data with a corresponding set value, generating corresponding linkage control data if the state data reaches the corresponding set value, and sending the linkage control data to corresponding associated ZigBee equipment, wherein the associated ZigBee equipment and a curtain motor or a sensor corresponding to the state data have a preset association relationship.
The ZigBee-based mobile Internet curtain motor control device provided by the third embodiment of the application can be used for executing the ZigBee-based mobile Internet curtain motor control method provided by the second embodiment, and has corresponding functions and beneficial effects.
Example four:
embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a ZigBee-based mobile internet curtain motor control method, including: each child node uploads the state data of the corresponding curtain motor or sensor to the subordinate main node; each main node receives the state data of the corresponding sub-node and uploads the state data of the main node and the state data of the corresponding sub-node to a server through a ZigBee gateway; the ZigBee curtain motors and the ZigBee sensors which are directly in signal connection with the ZigBee gateway upload state data to a server through the ZigBee gateway; the server receives the state data uploaded by the ZigBee gateway, forwards the state data to the control terminal, receives a control instruction of the control terminal in real time, generates control data according to the control instruction, and sends the control data to a corresponding ZigBee curtain motor or a ZigBee sensor through the ZigBee gateway; and the corresponding main node receives the control data, transmits the control data to the corresponding sub-node for output or directly outputs the control data, and the control data is used for outputting the control data to the corresponding curtain motor or sensor.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations, e.g., in different computer systems connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the ZigBee-based mobile internet curtain motor control method as described above, and may also perform related operations in the ZigBee-based mobile internet curtain motor control method provided in any embodiment of the present application.
The ZigBee-based mobile internet curtain motor control device and the storage medium provided in the above embodiments may execute the Z igBee-based mobile internet curtain motor control method provided in any embodiment of the present application, and reference may be made to the ZigBee-based mobile internet curtain motor control system and method provided in any embodiment of the present application without detailed technical details described in the above embodiments.
The foregoing is considered as illustrative of the preferred embodiments of the invention and the technical principles employed. The present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.

Claims (10)

1. Mobile internet (window) curtain motor control system based on zigBee, its characterized in that includes: the system comprises a server, a ZigBee gateway, a plurality of ZigBee curtain motors and a plurality of ZigBee sensors;
the ZigBee curtain motor comprises a ZigBee module and a corresponding curtain motor, and the ZigBee sensor comprises a ZigBee module and a corresponding sensor; each ZigBee module is in signal connection with a corresponding curtain motor or sensor and is used for uploading state data and issuing control data;
the ZigBee curtain motor can be configured into a main node or a sub-node, the ZigBee sensor can be configured into a sub-node, and the sub-node is used for summarizing state data to the subordinate main node and receiving control data sent by the subordinate main node; the ZigBee gateway is in signal connection with each main node and is used for forwarding the state data uploaded by each main node to the server and forwarding the control data issued by the server to the corresponding sub-nodes through the main nodes; the ZigBee curtain motor and the ZigBee sensor can also be directly connected with the ZigBee gateway through signals to carry out interaction of state data and control data;
the server is used for receiving and forwarding the state data uploaded by the ZigBee gateway to the corresponding control terminal, and issuing control data to the ZigBee gateway according to a control instruction of the control terminal.
2. The ZigBee-based mobile Internet curtain motor control system according to claim 1, further comprising:
the ZigBee host is used for carrying out network access configuration of each ZigBee module and configuration of a main node and a sub-node;
and the associated ZigBee device is used for receiving the linkage control data issued by the server based on the corresponding state data and carrying out linkage control on the associated ZigBee device and the curtain motor based on the linkage control data.
3. A ZigBee-based mobile Internet curtain motor control method is applied to the ZigBee-based mobile Internet curtain motor control system according to any one of claims 1-2, and is characterized by comprising the following steps:
each child node uploads the state data of the corresponding curtain motor or sensor to the subordinate main node;
each main node receives the state data of the corresponding sub-node and uploads the state data of the main node and the state data of the corresponding sub-node to a server through a ZigBee gateway; the ZigBee curtain motors and the ZigBee sensors which are directly in signal connection with the ZigBee gateway upload state data to a server through the ZigBee gateway;
the server receives the state data uploaded by the ZigBee gateway, forwards the state data to the control terminal, receives a control instruction of the control terminal in real time, generates control data according to the control instruction, and sends the control data to a corresponding ZigBee curtain motor or a ZigBee sensor through the ZigBee gateway;
and the corresponding main node receives the control data, transmits the control data to the corresponding sub-node for output or directly outputs the control data, and the control data is used for outputting the control data to the corresponding curtain motor or sensor.
4. The ZigBee-based mobile Internet curtain motor control method according to claim 3, further comprising, before each child node uploads the state data of the corresponding curtain motor or sensor to the subordinate master node:
the corresponding ZigBee curtain motor is configured into a main node or a sub-node through the ZigBee host, and the corresponding ZigBee sensor is configured into the sub-node.
5. The ZigBee-based mobile Internet curtain motor control method according to claim 3, wherein the state data and the control data both comprise identification information, and the identification information is a unique identification of a corresponding main node or sub-node;
correspondingly, the issuing the control data to the corresponding child node for output or direct output includes:
and analyzing the identification information in the control data, and issuing the control data to the corresponding sub-node for output or direct output according to the main node or the sub-node identified by the identification information.
6. The ZigBee-based mobile Internet curtain motor control method according to claim 3, wherein after the server receives the state data uploaded by the ZigBee gateway, the method further comprises the following steps:
and comparing the state data with a corresponding set value, if the state data reaches the corresponding set value, generating corresponding linkage control data, and sending the linkage control data to corresponding associated ZigBee equipment, wherein the associated ZigBee equipment has a preset association relation with a curtain motor or a sensor corresponding to the state data.
7. The ZigBee-based mobile Internet curtain motor control method as claimed in claim 3, wherein before the corresponding master node receives the control data and issues the control data to the corresponding slave node for output or direct output, further comprising:
the control terminal is in signal connection with the ZigBee gateway and sends control data to the corresponding ZigBee curtain motor or the ZigBee sensor through the ZigBee gateway.
8. The ZigBee-based mobile Internet curtain motor control method as claimed in claim 3, further comprising:
and the child node switches a signal link with the current subordinate main node according to configuration requirements, is in signal connection with another main node or directly with the ZigBee gateway, and performs interaction of state data and control data.
9. The utility model provides a mobile internet (window) curtain motor control device based on zigBee which characterized in that includes:
the uploading module is used for uploading the state data of the corresponding curtain motor or sensor to the subordinate main node through each sub-node;
the receiving module is used for receiving the state data of the corresponding child nodes through the main nodes and uploading the state data of the receiving module and the state data of the corresponding child nodes to the server through the ZigBee gateway; the ZigBee curtain motor and the ZigBee sensor which are directly in signal connection with the ZigBee gateway are used for uploading state data to a server through the ZigBee gateway;
the control module is used for receiving the state data uploaded by the ZigBee gateway through a server, forwarding the state data to the control terminal, receiving a control instruction of the control terminal in real time, generating control data according to the control instruction, and sending the control data to a corresponding ZigBee curtain motor or a ZigBee sensor through the ZigBee gateway;
and the output module is used for receiving the control data through the corresponding main node, transmitting the control data to the corresponding sub-node for output or directly outputting, and the control data is used for outputting to the corresponding curtain motor or sensor.
10. A storage medium containing computer executable instructions for performing the ZigBee-based mobile internet curtain motor control method according to any one of claims 3 to 8 when executed by a computer processor.
CN201911181596.9A 2019-11-27 2019-11-27 ZigBee-based mobile internet curtain motor control system, method and device Withdrawn CN111065064A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911181596.9A CN111065064A (en) 2019-11-27 2019-11-27 ZigBee-based mobile internet curtain motor control system, method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911181596.9A CN111065064A (en) 2019-11-27 2019-11-27 ZigBee-based mobile internet curtain motor control system, method and device

Publications (1)

Publication Number Publication Date
CN111065064A true CN111065064A (en) 2020-04-24

Family

ID=70298714

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911181596.9A Withdrawn CN111065064A (en) 2019-11-27 2019-11-27 ZigBee-based mobile internet curtain motor control system, method and device

Country Status (1)

Country Link
CN (1) CN111065064A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157559A (en) * 2021-12-15 2022-03-08 深圳绿米联创科技有限公司 Network processing method, network processing system, electronic device, and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157559A (en) * 2021-12-15 2022-03-08 深圳绿米联创科技有限公司 Network processing method, network processing system, electronic device, and storage medium

Similar Documents

Publication Publication Date Title
US11449024B2 (en) Method for establishing a building automation system including installing a plurality of controllable devices in a plurality of rooms in a building
US9661120B1 (en) Auto-configuration and automation of a building management system
CN104166396B (en) A kind of intelligent home furnishing control method and system
CN110727206A (en) Curtain motor control system, method and device based on mobile internet
CN103645696B (en) An intelligent conference room wireless control system based on Z-Wave technology
CN103023733A (en) Smart home interacting method and smart home interacting system
CN103152929B (en) LED (Light Emitting Diode) lamp and Internet of Things system
CN204362376U (en) A kind of wireless lighting control system
CN201927168U (en) Intelligent classroom centralized control device
CN108572554A (en) A kind of intelligent home control system, method and relevant device
CN108737554B (en) Internet of things system and terminal management method of building equipment based on Thread protocol stack
WO2016030478A1 (en) Home automation system, communication apparatus for a home automation system and method for operating a home automation system
KR101746215B1 (en) Smart lecture room management system using internet of things, and method thereof
CN108427301A (en) Control method, system and the control device of smart home device
CN105472041B (en) A kind of control system and method based on wireless communication
KR101738784B1 (en) Intelligent integrated switch coupled wireless network function for constructing IoT environment and control method using the same
US20190174599A1 (en) Light control device as internet hub
CN111065064A (en) ZigBee-based mobile internet curtain motor control system, method and device
Li et al. A kind of intelligent lighting control system using the EnOcean network
CN106678063A (en) Intelligent electric fan with infrared bidirectional communication function and system of intelligent electric fan
KR20170062424A (en) Intelligent integrated switch coupled wireless network function for constructing IoT environment and control method using the same
Varghese et al. A study of communication protocols and wireless networking systems for lighting control application
CN203151823U (en) LED lamp and internet of things system
CN113568336A (en) Intelligent curtain control system, control method, processing terminal and storage medium
Shang et al. A smart home system based on ZigBee and iOS software

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20200424