Summary of the invention
The purpose of the present invention is overcome the deficiencies of the prior art and provide a kind of things system for dividing timesharing management.
Technical scheme is as follows: the present invention provides a kind of things system for dividing timesharing management, comprising: terminal is setStandby system, the cloud with the router of the terminal device system communication and by the router and terminal device system communicationServer cluster;The terminal device system includes: control centre, several data terminals communicated respectively with the control centreEquipment and several execution terminal devices and remote controler;The data terminal equipment and execution terminal device possess uniquely respectively7 bytes SN code, the remote controler includes several appliance remote controls and several network remote controllers, the appliance remote control withThe execution terminal device direct communication, the network remote controller and control centre's direct communication.
The control centre is using 34 frequency range link data terminal equipments and executes terminal device, and 34 frequency ranges are1st to 34 frequency range, the 1st to 33 frequency range are working frequency range, and the 34th frequency range is remote control frequency range.
The control centre is using 2.4GHz ISM band link data terminal equipment and executes terminal device.
Control centre management data terminal equipment and the executing terminal device of the task include: that scanning device, control are setStandby, addition equipment, sweep equipment, channels broadcast and data collection;
Scanning device: for the execution terminal device in terminal device system, periodic scanning when control centre's free time, in timeThe equipment state variation for executing terminal device is uploaded, so that equipment state is synchronous with cloud server cluster;
Control equipment: when there is operation equipment, control centre sends control device directive, controls device directive priorityHeight executes after terminal device receives instruction and is immediately performed, guarantees the response speed of operation equipment;
It adds equipment: being used for networking operation, increase network equipment member, control centre increases the SN code of equipment;Equipment addsAfter netting successfully, the hardware address of current control centre is recorded, starts quick screening convenient for next time;
Sweep equipment: control centre's sweep equipment removes reminiscence to factory mode;
Channels broadcast: control centre's channels broadcast packet includes control centre MAC information, networked information, system clock, serviceDevice information quickly identifies and screening convenient for terminal device;
Data collection: after control centre distributes channels broadcast packet, the number of a fixed time slot gather data terminal device is hadAccording to network remote controller, data terminal equipment can upload data to cloud server cluster at this time.
Control centre's timesharing management data terminal equipment and execution terminal device;The control centre works normallyWhen, scan round equipment is inserted into a broadcast packet every 200ms;When control centre's control equipment, attempt to connect specified setStandby interaction data does not connect still if attempting connection number up to 10 times, prompts control failure;If designated equipment in connection, completeThe data communication of forming apparatus;The control centre is inserted into a broadcast packet when controlling equipment, every 200ms.
The things system of the frequency dividing timesharing management further includes the first mode remote controler with the router communication, describedFirst mode remote controler is the mobile phone for being equipped with corresponding software.
The things system of the frequency dividing timesharing management further includes the second mode remote control communicated with the cloud server clusterDevice, the second mode remote controler are the mobile phone for being equipped with corresponding software.
The things system of the frequency dividing timesharing management further includes set on control centre and executing the relaying between terminal deviceEquipment.
The trunking is the execution terminal device of tape relay function.
The execution terminal device includes switch, socket, lamp controller, lamp, remote controler etc.;The data terminal equipment packetSmoke alarm, door sensor alarm, water immersion alarm, Temperature Humidity Sensor, air quality sensor etc. are included.
Using the above scheme, the things system of frequency dividing timesharing management provided by the invention is adopted by self-defining communication protocolEach terminal device, compatible control relay function, Ke Yiti are managed with 2.4GHz ISM band chained device, and using time-frequency divisionFor stabilization, reliable, high performance-price ratio Internet of Things (IOT) terminal equipment solutions;It can be set with quick and easy realization systemStandby Integrated Development reduces the integrated threshold of vendor product.
Specific embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
Referring to Fig. 1, the present invention provides a kind of things system for dividing timesharing management, can be adopted with self-defining communication protocolEach terminal device, compatible control relay function, Ke Yiti are managed with 2.4GHz ISM band chained device, and using time-frequency divisionFor stabilization, reliable, high performance-price ratio Internet of Things (IOT) terminal equipment solutions;It can be set with quick and easy realization systemStandby Integrated Development reduces the integrated threshold of vendor product.The things system includes: terminal device system, sets with the terminalCloud server cluster for the router of system communication and by the router and terminal device system communication.The terminalDevice systems include: control centre, several data terminal equipments communicated respectively with the control centre and several execution terminalsEquipment and remote controler.The control centre is using wired or wireless way and the router communication, it is preferred to use the side wifiFormula communication.The data terminal equipment and execution terminal device possess the SN code of unique 7 bytes respectively, in order to which terminal is setStandby system identification management.The remote controler includes several appliance remote controls and several network remote controllers, the appliance remote control withThe execution terminal device direct communication realizes point-to-point control (without network support);In the network remote controller and controlHeart direct communication, the network remote controller are equipped with corresponding software APP, and scene, the linkage control of system may be implemented.
The control centre possesses highest permission in entire terminal device system, is responsible for all devices in management this system,One control centre most multipotency is supported to 99 execution terminal devices.Multiple terminal devices are that frequency dividing coexists, and equipment is avoided to communicateConflict.The control centre is using 34 frequency range link data terminal equipments and executes terminal device, and 34 frequency ranges are the 1stTo 34 frequency ranges, the 1st to 33 frequency range is working frequency range, and the 34th frequency range is remote control frequency range.Remote controller equipment oneself individually occupiesOne frequency range, if can be worked with frequency hopping to different frequency ranges after remote controler successful matching, remote controller equipment is being usedDuring, each key be when initial blank need to be matched remote keying after reuse.In the controlThe heart is using 2.4GHz ISM band link data terminal equipment and executes terminal device.
Further, the things system of the frequency dividing timesharing management further includes distant with the first mode of the router communicationControl device and the second mode remote controler communicated with the cloud server cluster, it is distant by first mode remote controler and second modeControl device can remotely realize scene, the linkage control of system.The first mode remote controler is the hand for being equipped with corresponding software APPMachine, the second mode remote controler are the mobile phone for being equipped with corresponding software APP, and the mobile phone is Android system or IOS system.
There is the things system cloud computing platform to realize dynamic scalable using distributed cloud server clusterThe real-time connection of Working level node is supported, supports connection and more IDC redundancy with failover capabilities etc. in global range, for user provide it is safe,Reliable Internet of Things cloud service.
APP and the network remote controller control of terminal device are realized in the execution terminal device mission control center instruction;It holdsThe real-time uploading device state of row terminal device is to APP and cloud server cluster.The execution terminal device includes switch, insertsVarious equipment in the households such as seat, lamp controller, lamp, remote controler.The real-time uploading device state of data terminal equipment to APP andCloud server cluster, no execution function, equipment are generally in standby mode, and when needing to upload data, starting sends data.InstituteThe application that data terminal equipment is suitble to battery power supply low-power consumption is stated, includes smoke alarm, door sensor alarm, water logging alarmThe various kinds of sensors such as device, Temperature Humidity Sensor, air quality sensor.
Control centre management data terminal equipment and the executing terminal device of the task include: that scanning device, control are setStandby, addition equipment, sweep equipment, channels broadcast and data collection;
Scanning device: for the execution terminal device in terminal device system, periodic scanning when control centre's free time, in timeThe equipment state variation for executing terminal device is uploaded, so that equipment state is synchronous with cloud server cluster.
Control equipment: when there is operation equipment, control centre sends control device directive, controls device directive priorityHeight executes after terminal device receives instruction and is immediately performed, guarantees the response speed of operation equipment.
It adds equipment: being used for networking operation, increase network equipment member, control centre increases the SN code of equipment;Equipment addsAfter netting successfully, the hardware address of current control centre is recorded, starts quick screening convenient for next time.
Sweep equipment: control centre's sweep equipment removes reminiscence to factory mode.
Channels broadcast: control centre's channels broadcast packet includes control centre MAC information, networked information, system clock, serviceDevice information quickly identifies and screening convenient for terminal device.
Data collection: after control centre distributes channels broadcast packet, the number of a fixed time slot gather data terminal device is hadAccording to network remote controller, data terminal equipment can upload data to cloud server cluster at this time.
The order that the things system also relates to includes:
Center broadcast channel occupies order: after control centre issues this order, the one of channel divided in advance is occupied,The equipment of different channels will not influence each other;
Networking command is added in center broadcasts equipment: after control centre issues this order, the equipment for receiving broadcast, which will be added, to be sent outChannel where Broadcasting Control center out carries out the communication of next step in identical channel with control centre;
Center broadcasts equipment frequency hopping packet: after control centre issues this order, the equipment for receiving broadcast will be from present channelOn the channel that frequency hopping is specified into order;
Center notice equipment suspension packet: after control centre issues this order, notice equipment suspension (disconnects the chain with serverIt connects).
Control centre's timesharing management data terminal equipment and execution terminal device: the control centre works normallyWhen, scan round equipment is inserted into a broadcast packet every 200ms, as shown in Figure 2;When control centre's control equipment, attemptDesignated equipment interaction data is connected, if attempting connection number up to 10 times, does not connect still, prompts control failure;If referring in connectionLocking equipment then completes the data communication of equipment;The control centre is inserted into a broadcast packet when controlling equipment, every 200ms,As shown in Figure 3.Addition, the process of sweep equipment are similar with control equipment flowsheet, no longer burdensome explanation.
The data terminal equipment and execution terminal device uploading device state, SN code and remotely monitored sensing data are to controlCenter.
The things system of the frequency dividing timesharing management further includes set on control centre and executing the relaying between terminal deviceEquipment.This relay function is when if there is equipment off-line, and control centre will ceaselessly issue to all trunkings,The signal for searching terminal device, if finding and receiving return, which networks success again.This function be becauseThe limitation of 2.4G power and coverage area causes some places that cannot cover signal (such as corner or hypertelorism), can produceRaw the case where going offline, using trunking, network structure is not only enriched, but also products application range can be enriched, is promotedUser experience saves cost.Preferably, trunking can be the execution terminal device of tape relay function.
The cloud server cluster is additionally provided with third party's network interface, to facilitate third party to connect.
In conclusion the present invention provides a kind of things system for dividing timesharing management, by self-defining communication protocol, use2.4GHz ISM band chained device, and each terminal device is managed using time-frequency division, compatible control relay function can provideStablize, reliable, high performance-price ratio Internet of Things (IOT) terminal equipment solutions;It can be with quick and easy realization system equipmentIntegrated Development, reduce the integrated threshold of vendor product.
The above is merely preferred embodiments of the present invention, be not intended to restrict the invention, it is all in spirit of the invention andMade any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within principle.