CN110012534A - Equipment state synchronous method, device, equipment and computer readable storage medium - Google Patents

Equipment state synchronous method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN110012534A
CN110012534A CN201910119930.1A CN201910119930A CN110012534A CN 110012534 A CN110012534 A CN 110012534A CN 201910119930 A CN201910119930 A CN 201910119930A CN 110012534 A CN110012534 A CN 110012534A
Authority
CN
China
Prior art keywords
state
endpoint device
gateway
status
switching
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
CN201910119930.1A
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.)
Shengdi Wisdom Technology Co Ltd
Original Assignee
Shengdi Wisdom 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 Shengdi Wisdom Technology Co Ltd filed Critical Shengdi Wisdom Technology Co Ltd
Priority to CN201910119930.1A priority Critical patent/CN110012534A/en
Publication of CN110012534A publication Critical patent/CN110012534A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the present invention provides a kind of equipment state synchronous method, device, equipment and computer readable storage medium, this method include in a broadcast mode or multicast pattern to multiple endpoint devices send status switching instruction, the status switching instruction is used to indicate the multiple endpoint device and carries out state switching to working condition, and after state switching not actively to the gateway uploaded state information;Status query instruction is sent to the multiple endpoint device respectively with polling mode;After the status information that any endpoint device returns in receiving the multiple endpoint device, the corresponding status information record of any endpoint device of this in more new state information record sheet.When the embodiment of the present invention can make the extensive endpoint device of gateway control carry out state switching, the concurrent reported event of endpoint device will not be generated, to avoid the problem that gateway caused by concurrent reported event receives event message congestion.

Description

Equipment state synchronous method, device, equipment and computer readable storage medium
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of equipment state synchronous method, device, equipment and Computer readable storage medium.
Background technique
Internet of Things is the important component of generation information technology and the important development stage of information age. ZigBee technology as a kind of short distance, low-power consumption, low cost bidirectional wireless communication technology, be widely used in Internet of Things Carry out data transmission between various electronic equipments.
There are mainly three types of the communication modes of Zigbee: unicast, broadcast and multicast.There is disposable control in Internet of things system The demand of many endpoint devices, ZigBee coordinator can control endpoint device using multicast or broadcast.
However, when the ZigBee coordinator of gateway carries out state switching using broadcast or multicast control multiple equipment, this A little equipment states meeting synchronous changes, and state reporting is carried out to ZigBee coordinator.If number of devices at 10 or more, It is easy will cause zigbee coordinator in gateway and receives blocking, and reporting the frequency of failure in equipment is more than that can lose after setting The status information of equipment.Increase that blockage problem is more serious with access device quantity, is recorded in such gateway and user terminal Device status information occurs updating delay, inconsistent with the virtual condition information of equipment.
Summary of the invention
The embodiment of the present invention provides a kind of equipment state synchronous method, device, equipment and computer readable storage medium, with When solving current gateway processes large-scale equipment synchronization carry out state update, the event as caused by equipment concurrent reported event disappears The problem of ceasing congestion.
In a first aspect, the embodiment of the present invention provides a kind of equipment state synchronous method, it is applied to gateway, comprising:
In a broadcast mode or multicast pattern is to multiple endpoint devices transmission status switching instruction, and the status switching instruction is used In indicating that the multiple endpoint device carries out state switching to working condition, and after state switching not actively on the gateway Report status information;
Status query instruction is sent to the multiple endpoint device respectively with polling mode;
After the status information that any endpoint device returns in receiving the multiple endpoint device, more new state information note Record the corresponding status information record of any endpoint device of this in table.
It is described to be looked into respectively to the multiple endpoint device transmission state with polling mode in a kind of possible embodiment Asking instruction includes:
Status query instruction successively is sent to the multiple endpoint device according to endpoint device list in a manner of polled async.
In a kind of possible embodiment, further includes:
Receive the state control message that user terminal is sent;
Determined whether in a broadcast mode according to the state control message or multicast pattern is sent out to the multiple endpoint device Send the status switching instruction.
In a kind of possible embodiment, further includes:
If the status information record sheet updates, updated status information record sheet is synchronized to server.
In a kind of possible embodiment, the gateway includes ZigBee coordinator, and the gateway is logical by ZigBee Letter mode is communicated with the multiple endpoint device.
Second aspect, the embodiment of the present invention provide a kind of equipment state synchronous method, are applied to endpoint device, comprising:
Receive gateway in a broadcast mode or multicast pattern send status switching instruction;
State switching is carried out to working condition, and after state switching not actively to the gateway uploaded state information;
After receiving the status query instruction that the gateway is sent, Xiang Suoshu gateway returns to status information;The state Information is used to indicate the corresponding status information record of the gateway more endpoint device described in new state information record sheet.
The third aspect, the embodiment of the present invention provide a kind of equipment state synchronizing device, are applied to gateway, comprising:
Status switching instruction sending module, in a broadcast mode or multicast pattern to multiple endpoint devices send state cut Instruction is changed, the status switching instruction is used to indicate the multiple endpoint device and carries out state switching to working condition, and in shape Not actively to the gateway uploaded state information after state switching;
Status query instruction sending module, for sending status inquiry to the multiple endpoint device respectively with polling mode Instruction;
State information updating module, the state returned for endpoint device any in receiving the multiple endpoint device After information, the corresponding status information record of any endpoint device of this in more new state information record sheet.
It further include state control message determination module in a kind of possible embodiment, the state control message is sentenced Cover half block is used for:
Receive the state control message that user terminal is sent;
Determined whether in a broadcast mode according to the state control message or multicast pattern is sent out to the multiple endpoint device Send the status switching instruction.
Further include updating synchronization module, the update synchronization module is used in a kind of possible embodiment:
If the status information record sheet updates, updated status information record sheet is synchronized to server.
Fourth aspect, the embodiment of the present invention provide a kind of equipment state synchronizing device, are applied to endpoint device, comprising:
Status switching instruction receiving module, for receive gateway in a broadcast mode or multicast pattern send state switching refer to It enables;
State switching module, for carrying out state switching to working condition, and after state switching not actively to the net Shut report status information;
Status information sending module, for after receiving the status query instruction that the gateway is sent, Xiang Suoshu gateway Return to status information;It is corresponding that the status information is used to indicate the gateway more endpoint device described in new state information record sheet Status information record.
5th aspect, the embodiment of the present invention provides a kind of equipment state synchronizer, comprising: at least one processor and deposits Reservoir;
The memory stores computer executed instructions;
At least one described processor executes the computer executed instructions of memory storage so that it is described at least one Processor executes equipment state synchronous method described in the various possible embodiments of first aspect and first aspect as above, or Person executes equipment state synchronous method described in second aspect as above.
6th aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage medium Computer executed instructions are stored in matter, when processor execute the computer executed instructions when, realize first aspect as above with And equipment state synchronous method described in the various possible embodiments of first aspect, or realize second aspect institute as above The equipment state synchronous method stated.
Equipment state synchronous method, device, equipment and computer readable storage medium provided in this embodiment, gateway is with wide It broadcasts mode or multicast pattern and sends status switching instruction to multiple endpoint devices, which is used to indicate multiple endpoints Equipment carries out state switching to working condition, and after state switching not actively to the gateway uploaded state information;With poll side Formula sends status query instruction to multiple endpoint device respectively;Any endpoint device is returned in receiving multiple endpoint device After the status information returned, the corresponding status information record of any endpoint device of this in more new state information record sheet.The present invention is real Apply example by make each endpoint device according in a broadcast mode or the status switching instruction of multicast pattern carry out state switching after not Active reporting, but gateway carries out status inquiry to each endpoint device respectively with polling mode, and gateway control can be made extensive When endpoint device carries out state switching, the concurrent reported event of endpoint device will not be generated, so that concurrent reported event be avoided to lead The gateway of cause receives the problem of event message congestion, improves the synchronism of state.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 is the configuration diagram of equipment state synchronization system provided in an embodiment of the present invention;
Fig. 2 is the flow diagram for the equipment state synchronous method that one embodiment of the invention provides;
Fig. 3 is the flow diagram for the equipment state synchronous method that further embodiment of this invention provides;
Fig. 4 be another embodiment of the present invention provides equipment state synchronous method flow diagram;
Fig. 5 is the message transmitting procedure schematic diagram for the equipment state synchronous method that yet another embodiment of the invention provides;
Fig. 6 is the structural schematic diagram for the equipment state synchronizing device that one embodiment of the invention provides;
Fig. 7 is the structural schematic diagram for the equipment state synchronizing device that further embodiment of this invention provides;
Fig. 8 be another embodiment of the present invention provides equipment state synchronizing device structural schematic diagram;
Fig. 9 is the hardware structural diagram for the equipment state synchronizer that one embodiment of the invention provides.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 is the configuration diagram of equipment state synchronization system provided in an embodiment of the present invention.It is provided in this embodiment to set Standby state synchronous system includes server 11, user terminal 12, gateway 13 and multiple endpoint devices 14.Server 11 is for beyond the clouds Save the status information of each endpoint device 14.User terminal 12 is for showing the status information of each endpoint device 14 to user and connecing Control instruction is sent gateway 13 by the control instruction for receiving user's input.Gateway 13 is used for the control instruction according to user with list It broadcasts, multicast or broadcast mode to each endpoint device 14 send status switching instruction.Endpoint device 13 is for receiving gateway 13 Status switching instruction carries out working condition switching and reports work state information.
Wherein, user terminal 12 can be mobile phone, computer, car-mounted terminal etc., be not limited thereto.Endpoint device 14 can be Routing node device or terminal endpoint equipment etc., are not limited thereto, such as intelligent air condition equipment, Intelligent illumination device.Gateway It can be communicated by wired communication mode or communication between 13 and endpoint device 14, such as communication mode can be with For Wi-Fi (Wireless Fidelity) communication, bluetooth (Bluetooth) communication, Zigbee communication etc. is not limited thereto.
In one embodiment, gateway 13 may include Wi-Fi mould group and Zigbee coordinator.Endpoint device 14 is tool The Zigbee equipment of standby Zigbee communication module.Gateway 13 is communicated by Wi-Fi mould group with user terminal 12, and Zigbee is passed through Coordinator is communicated with Zigbee equipment.
Fig. 2 is the flow diagram for the equipment state synchronous method that one embodiment of the invention provides.The execution of the present embodiment Main body is gateway, as shown in Fig. 2, this method comprises:
S201, in a broadcast mode or multicast pattern to multiple endpoint devices sends status switching instruction, state switching Instruction is used to indicate the multiple endpoint device and carries out state switching to working condition, and after state switching not actively to described Gateway uploaded state information.
In the present embodiment, broadcast mode is that the data for all endpoint devices that gateway sends an instruction to gateway connection pass Defeated mode.Multicast pattern is the data-transmission mode for specific multiple endpoint devices that gateway sends an instruction to gateway connection. Wherein, specific multiple endpoint devices can be distinguished according to the mark of endpoint device, for example, it may be specific multiple logical Believe that address identifies corresponding endpoint device.
Endpoint device can be determined, herein not there are many working condition according to specific endpoint device function It limits.For example, the working condition of endpoint device may include open state, close if endpoint device is Intelligent illumination device Closed state, multiple luminance states etc.;If endpoint device is intelligent air condition equipment, the working condition of endpoint device may include more A set temperature state, multiple wind intensity states, multiple air supply direction states etc..Endpoint device switches in the state that receives and refers to Working condition can be switched to specified working condition as indicated after order.
Gateway in a broadcast mode or multicast pattern to multiple endpoint devices send status switching instruction.Multiple endpoint device After receiving status switching instruction, itself working condition is switched to specified working condition.Multiple endpoint device is in state After switching active reporting is not carried out to gateway.
After the state of usual endpoint device switches, endpoint device meeting active reporting is to gateway so that gateway carries out state Synchronized update.The present embodiment is message congestion problem caused by avoiding endpoint device from concurrently reporting, and enables endpoint device according to wide It broadcasts or multicast message carries out not this next state handover event of active reporting after state switching.
S202, status query instruction is sent to the multiple endpoint device respectively with polling mode.
In the present embodiment, status query instruction is used to indicate endpoint device and returns to work state information.Polling mode is Gateway successively respectively to multiple endpoint device send status query instruction, come inquire these endpoint devices state issuer Formula.Endpoint device is inquired with unicast mode for example, gateway can be spaced at regular intervals according to setting order.Pass through The status inquiry time to these endpoint devices is staggered, to avoid endpoint device to gateway, uploaded state information is asked simultaneously Topic.
It is alternatively possible to successively send shape to the multiple endpoint device according to endpoint device list in a manner of polled async State inquiry instruction.
In the present embodiment, the column comprising each endpoint device mark that endpoint device list can locally save for gateway Table.Gateway can refer to according to status inquiry is sent to multiple endpoint device after the order elder generation of endpoint device in endpoint device list It enables.Wherein, polled async mode refers to, gateway withouts waiting for this after sending status query instruction to an endpoint device Endpoint device returns to status information and sends status query instruction to next endpoint device again, and no matter whether an endpoint device is returned It returns status message and sends inquiry instruction to next endpoint all in accordance with order.It in this way will not be because of the different of wherein some endpoint device The state for often influencing other endpoint devices, which updates, to be synchronized.
After S203, the status information that any endpoint device returns in receiving the multiple endpoint device, more new state The corresponding status information record of any endpoint device of this in information record sheet.
In the present embodiment, status information record sheet is stored in gateway, for recording the shape of gateway institute connection end point equipment State.The corresponding bar state information record of each endpoint device, status information record sheet includes that the mark of endpoint device and endpoint are set Standby work state information.
Gateway receives an endpoint after sending status query instruction to multiple endpoint device respectively with polling mode The status information that equipment returns then is updated the status information record of the endpoint device in status information record sheet, to guarantee The timeliness that state recording updates guarantees the state synchronized of endpoint device state and gateway record.
In the embodiment of the present invention, gateway is in a broadcast mode or multicast pattern sends state switching to multiple endpoint devices and refers to It enables, which is used to indicate multiple endpoint devices and carries out state switching to working condition, and after state switching not Actively to the gateway uploaded state information;Status query instruction is sent to multiple endpoint device respectively with polling mode;It is connecing After receiving the status information that any endpoint device returns in multiple endpoint device, the either end in more new state information record sheet The corresponding status information record of point device.The embodiment of the present invention is by making each endpoint device according in a broadcast mode or multicast mould The status switching instruction of formula carries out after state switching not active reporting, but gateway with polling mode respectively to each endpoint device into Row status inquiry will not generate the concurrent of endpoint device when the extensive endpoint device of gateway control can be made to carry out state switching Reported event improves the synchronization of state to avoid the problem that gateway caused by concurrent reported event receives event message congestion Property.
Fig. 3 is the flow diagram for the equipment state synchronous method that further embodiment of this invention provides.As shown in figure 3, should Method may include:
S301, the state control message that user terminal is sent is received.
In the present embodiment, the information that user terminal can be inputted according to user, which generates, disappears to the state control of endpoint device Breath, is sent to gateway for state control message.Gateway receives the state control message.
S302, determined whether in a broadcast mode according to the state control message or multicast pattern is set to the multiple endpoint Preparation send the status switching instruction.
In the present embodiment, gateway can determine whether in a broadcast mode according to state control message or multicast pattern is to more A endpoint device sends status switching instruction.For example, if only comprising disappearing to the control of an endpoint device in state control message Breath, gateway can send status switching instruction to the endpoint device with unicast mode;If comprising to multiple in state control message The control message of endpoint device, gateway can send status switching instruction to multiple endpoint device in multicast mode;If state Comprising the control message of all endpoint devices connected to gateway in control message, gateway can be in a broadcast mode to all ends Point device sends status switching instruction.
S303, if so, in a broadcast mode or multicast pattern to multiple endpoint devices send status switching instruction, the shape State switching command is used to indicate the multiple endpoint device and carries out state switching to working condition, and after state switching not actively To the gateway uploaded state information.
In the present embodiment, if gateway according to state control message determine needs in a broadcast mode or multicast pattern to this Multiple endpoint devices send status switching instructions, then in a broadcast mode or multicast pattern sends status switching instruction.
In the present embodiment, S303 is similar with the S201 in Fig. 2 embodiment, and details are not described herein again.
S304, status query instruction is sent to the multiple endpoint device respectively with polling mode.
In the present embodiment, S304 is similar with the S202 in Fig. 2 embodiment, and details are not described herein again.
After S305, the status information that any endpoint device returns in receiving the multiple endpoint device, more new state The corresponding status information record of any endpoint device of this in information record sheet.
In the present embodiment, S305 is similar with the S203 in Fig. 2 embodiment, and details are not described herein again.
The present embodiment determines the state control message that user terminal is sent by gateway, can recognize that and needs to broadcast Or the case where multicast, and then after carrying out broadcast or multicast to multiple endpoint devices, status inquiry is carried out with polling mode, it can It avoids the problem that leading to the concurrent uploaded state information of endpoint device due to broadcast or multicast, gateway messages is avoided to block, improve shape The synchronous timeliness of state.
Optionally, if the status information record sheet updates, updated status information record sheet is synchronized to Server.
In the present embodiment, if the status information record that gateway saves updates, gateway believes updated state Breath record sheet is synchronized to server, to guarantee that user terminal can get synchronous status information record from server, makes user Pass through the state switching scenario of user terminal timely learning endpoint device.
Optionally, the gateway includes ZigBee coordinator, the gateway by ZigBee communication mode with it is the multiple Endpoint device is communicated.
In the present embodiment, it is communicated between gateway and multiple endpoint device by ZigBee wireless communication signals. ZigBee coordinator and multiple endpoint device in gateway form ZigBee communication network.
Optionally, gateway can be with the state of all endpoint devices of regular check, if it find that the status information being saved The endpoint device feedback states of equipment state and timing inquiry in record sheet are inconsistent, then phase more in new state information record sheet Status information is answered, and is synchronized to cloud server.
Optionally, status information record sheet may include the device identification and the corresponding state of each endpoint device of endpoint device Mark.One of endpoint device can correspond to multiple status indicators.For example, if endpoint device is intelligent air condition equipment, it can be with Corresponding temperature mark, wind speed mark and wind direction mark etc..Status information records tableau format can be as shown in table 1:
1 status information record sheet of table
Fig. 4 be another embodiment of the present invention provides equipment state synchronous method flow diagram.The present embodiment is held Row main body is endpoint device, the specific embodiment of the present embodiment and above-mentioned shown in Fig. 2 using gateway as the implementation of executing subject Example is similar, therefore hereafter only briefly narration, does not repeat.As shown in figure 4, this method comprises:
S401, receive gateway in a broadcast mode or multicast pattern send status switching instruction.
In the present embodiment, gateway in a broadcast mode or multicast pattern to multiple endpoint devices send status switching instruction. Multiple endpoint device reception state switching command.
S402, state switching is carried out to working condition, and do not believed after state switching to the gateway uploaded state actively Breath.
In the present embodiment, gateway in a broadcast mode or multicast pattern to multiple endpoint devices send status switching instruction. After endpoint device in multiple endpoint device receives status switching instruction, itself working condition is switched to specified work State, and after state switching active reporting is not carried out to gateway.
S403, after receiving the status query instruction that the gateway is sent, Xiang Suoshu gateway returns to status information;It is described Status information is used to indicate the corresponding status information record of the gateway more endpoint device described in new state information record sheet.
In the present embodiment, gateway sends status query instruction to multiple endpoint device respectively with polling mode, this is more Endpoint device in a endpoint device returns to status information after receiving status query instruction, to gateway.Gateway more new state The corresponding status information record of the endpoint device in information record sheet.
In an application scenarios, gateway may include Wi-Fi mould group and Zigbee coordinator.Endpoint device is to have The Zigbee equipment of Zigbee communication module.Gateway is communicated by Wi-Fi mould group with user terminal, and Zigbee coordinator is passed through It is communicated with Zigbee equipment.Fig. 5 is that the message for the equipment state synchronous method that yet another embodiment of the invention provides is transmitted across Journey schematic diagram.As shown in figure 5, user terminal sends the state control message that instruction gateway carries out broadcast or multicast to gateway.Gateway The status switching instruction based on Zigbee broadcast or multicast mode is sent to multiple Zigbee equipment.Multiple Zigbee equipment exists Not to gateway active reporting after carry out state switching.Gateway is after sending status switching instruction, with polling mode respectively to multiple Zigbee equipment sends status query instruction.Gateway any Zigbee equipment in receiving multiple Zigbee equipment returns After status information, the corresponding status information record of any Zigbee equipment of this in more new state information record sheet, and state is believed Breath record sheet is synchronized to server.
In the embodiment of the present invention, gateway is in a broadcast mode or multicast pattern sends state switching to multiple endpoint devices and refers to It enables, which is used to indicate multiple endpoint devices and carries out state switching to working condition, and after state switching not Actively to the gateway uploaded state information;Status query instruction is sent to multiple endpoint device respectively with polling mode;It is connecing After receiving the status information that any endpoint device returns in multiple endpoint device, the either end in more new state information record sheet The corresponding status information record of point device.The embodiment of the present invention is by making each endpoint device according in a broadcast mode or multicast mould The status switching instruction of formula carries out after state switching not active reporting, but gateway with polling mode respectively to each endpoint device into Row status inquiry will not generate the concurrent of endpoint device when the extensive endpoint device of gateway control can be made to carry out state switching Reported event improves the synchronization of state to avoid the problem that gateway caused by concurrent reported event receives event message congestion Property.
Fig. 6 is the structural schematic diagram for the equipment state synchronizing device that one embodiment of the invention provides.As shown in fig. 6, this sets Standby state synchronizing apparatus 60 is applied to gateway, comprising: status switching instruction sending module 601, status query instruction sending module 602 and state information updating module 603.
Status switching instruction sending module 601, in a broadcast mode or multicast pattern to multiple endpoint devices send shape State switching command, the status switching instruction are used to indicate the multiple endpoint device and carry out state switching to working condition, and After state switching not actively to the gateway uploaded state information.
Status query instruction sending module 602, for sending state to the multiple endpoint device respectively with polling mode Inquiry instruction.
State information updating module 603 is returned for endpoint device any in receiving the multiple endpoint device After status information, the corresponding status information record of any endpoint device of this in more new state information record sheet.
In the embodiment of the present invention, gateway is in a broadcast mode or multicast pattern sends state switching to multiple endpoint devices and refers to It enables, which is used to indicate multiple endpoint devices and carries out state switching to working condition, and after state switching not Actively to the gateway uploaded state information;Status query instruction is sent to multiple endpoint device respectively with polling mode;It is connecing After receiving the status information that any endpoint device returns in multiple endpoint device, the either end in more new state information record sheet The corresponding status information record of point device.The embodiment of the present invention is by making each endpoint device according in a broadcast mode or multicast mould The status switching instruction of formula carries out after state switching not active reporting, but gateway with polling mode respectively to each endpoint device into Row status inquiry will not generate the concurrent of endpoint device when the extensive endpoint device of gateway control can be made to carry out state switching Reported event improves the synchronization of state to avoid the problem that gateway caused by concurrent reported event receives event message congestion Property.
Fig. 7 is the structural schematic diagram for the equipment state synchronizing device that further embodiment of this invention provides.As shown in fig. 7, this On the basis of the equipment state synchronizing device that the embodiment shown in Fig. 6 of equipment state synchronizing device 60 that embodiment provides provides, Further include: state control message determination module 604 updates synchronization module 605.
Optionally, the status query instruction sending module 602 is used for:
Status query instruction successively is sent to the multiple endpoint device according to endpoint device list in a manner of polled async.
Optionally, the state control message determination module 604 is used for:
Receive the state control message that user terminal is sent;
Determined whether in a broadcast mode according to the state control message or multicast pattern is sent out to the multiple endpoint device Send the status switching instruction.
Optionally, the update synchronization module 605 is used for:
If the status information record sheet updates, updated status information record sheet is synchronized to server.
Optionally, the gateway includes ZigBee coordinator, the gateway by ZigBee communication mode with it is the multiple Endpoint device is communicated.
Equipment state synchronizing device provided in an embodiment of the present invention can be used for executing above-mentioned using gateway as the side of executing subject Method embodiment, it is similar that the realization principle and technical effect are similar, and details are not described herein again for the present embodiment.
Fig. 8 be another embodiment of the present invention provides equipment state synchronizing device structural schematic diagram.As shown in figure 8, should Equipment state synchronizing device 80 is applied to endpoint device, comprising: status switching instruction receiving module 801, state switching module 802 And status information sending module 803.
Status switching instruction receiving module 801, for receive gateway in a broadcast mode or multicast pattern send state cut Change instruction.
State switching module 802, for carrying out state switching to working condition, and after state switching not actively to described Gateway uploaded state information.
Status information sending module 803, for after receiving the status query instruction that the gateway is sent, to the net It closes and returns to status information;The status information is used to indicate the gateway more endpoint device pair described in new state information record sheet The status information record answered.
Equipment state synchronizing device provided in an embodiment of the present invention can be used for executing above-mentioned using endpoint device as executing subject Embodiment of the method, it is similar that the realization principle and technical effect are similar, and details are not described herein again for the present embodiment.
Fig. 9 is the hardware structural diagram for the equipment state synchronizer that one embodiment of the invention provides.As shown in figure 9, Equipment state synchronizer 90 provided in this embodiment includes: at least one processor 901 and memory 902.The equipment state Synchronizer 90 further includes communication component 903.Wherein, processor 901, memory 902 and communication component 903 pass through bus 904 connections.
During specific implementation, at least one processor 901 executes the computer execution that the memory 902 stores and refers to It enables, so that at least one processor 901 executes the equipment state synchronous method for being as above applied to gateway, or executes as above application In the equipment state synchronous method of endpoint device.
The specific implementation process of processor 901 can be found in above method embodiment, and it is similar that the realization principle and technical effect are similar, Details are not described herein again for the present embodiment.
In above-mentioned embodiment shown in Fig. 9, it should be appreciated that processor can be central processing unit (English: Central Processing Unit, referred to as: CPU), can also be other general processors, digital signal processor (English: Digital Signal Processor, referred to as: DSP), specific integrated circuit (English: Application Specific Integrated Circuit, referred to as: ASIC) etc..General processor can be microprocessor or the processor is also possible to Any conventional processor etc..Hardware processor can be embodied directly in conjunction with the step of invention disclosed method to have executed At, or in processor hardware and software module combination execute completion.
Memory may include high speed RAM memory, it is also possible to and it further include non-volatile memories NVM, for example, at least one Magnetic disk storage.
Bus can be industry standard architecture (Industry Standard Architecture, ISA) bus, outer Portion's apparatus interconnection (Peripheral Component, PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, EISA) bus etc..Bus can be divided into address bus, data/address bus, control Bus etc..For convenient for indicating, the bus in illustrations does not limit only a bus or a type of bus.
The application also provides a kind of computer readable storage medium, and calculating is stored in the computer readable storage medium Machine executes instruction, and when processor executes the computer executed instructions, realizes as above synchronous applied to the equipment state of gateway Method, or realize the equipment state synchronous method for being as above applied to endpoint device.
Above-mentioned computer readable storage medium, above-mentioned readable storage medium storing program for executing can be by any kind of volatibility or non- Volatile storage devices or their combination realize that, such as static random access memory (SRAM), electrically erasable is only It reads memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM) is read-only to deposit Reservoir (ROM), magnetic memory, flash memory, disk or CD.Readable storage medium storing program for executing can be general or specialized computer capacity Any usable medium enough accessed.
A kind of illustrative readable storage medium storing program for executing is coupled to processor, to enable a processor to from the readable storage medium storing program for executing Information is read, and information can be written to the readable storage medium storing program for executing.Certainly, readable storage medium storing program for executing is also possible to the composition portion of processor Point.Processor and readable storage medium storing program for executing can be located at specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC) in.Certainly, processor and readable storage medium storing program for executing can also be used as discrete assembly and be present in equipment In.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (12)

1. a kind of equipment state synchronous method, which is characterized in that be applied to gateway, comprising:
In a broadcast mode or multicast pattern is to multiple endpoint devices transmission status switching instruction, and the status switching instruction is for referring to Show that the multiple endpoint device carries out state switching to working condition, and does not actively report shape to the gateway after state switching State information;
Status query instruction is sent to the multiple endpoint device respectively with polling mode;
After the status information that any endpoint device returns in receiving the multiple endpoint device, more new state information record sheet In the corresponding status information record of any endpoint device.
2. the method according to claim 1, wherein it is described with polling mode respectively to the multiple endpoint device Sending status query instruction includes:
Status query instruction successively is sent to the multiple endpoint device according to endpoint device list in a manner of polled async.
3. the method according to claim 1, wherein further include:
Receive the state control message that user terminal is sent;
According to the state control message determine whether in a broadcast mode or multicast pattern to the multiple endpoint device send institute State status switching instruction.
4. the method according to claim 1, wherein further include:
If the status information record sheet updates, updated status information record sheet is synchronized to server.
5. method according to any one of claims 1 to 4, which is characterized in that the gateway includes ZigBee coordinator, institute It states gateway and is communicated by ZigBee communication mode with the multiple endpoint device.
6. a kind of equipment state synchronous method, which is characterized in that be applied to endpoint device, comprising:
Receive gateway in a broadcast mode or multicast pattern send status switching instruction;
State switching is carried out to working condition, and after state switching not actively to the gateway uploaded state information;
After receiving the status query instruction that the gateway is sent, Xiang Suoshu gateway returns to status information;The status information It is used to indicate the corresponding status information record of the gateway more endpoint device described in new state information record sheet.
7. a kind of equipment state synchronizing device, which is characterized in that be applied to gateway, comprising:
Status switching instruction sending module, in a broadcast mode or multicast pattern to multiple endpoint devices send state switching refer to It enables, the status switching instruction is used to indicate the multiple endpoint device and carries out state switching to working condition, and cuts in state Not actively to the gateway uploaded state information after changing;
Status query instruction sending module refers to for sending status inquiry to the multiple endpoint device respectively with polling mode It enables;
State information updating module, the status information returned for endpoint device any in receiving the multiple endpoint device Afterwards, the corresponding status information record of any endpoint device more in new state information record sheet.
8. device according to claim 7, which is characterized in that further include state control message determination module, the state Control message determination module is used for:
Receive the state control message that user terminal is sent;
According to the state control message determine whether in a broadcast mode or multicast pattern to the multiple endpoint device send institute State status switching instruction.
9. device according to claim 7, which is characterized in that further include updating synchronization module, the update synchronization module For:
If the status information record sheet updates, updated status information record sheet is synchronized to server.
10. a kind of equipment state synchronizing device, which is characterized in that be applied to endpoint device, comprising:
Status switching instruction receiving module, for receive gateway in a broadcast mode or multicast pattern send status switching instruction;
State switching module, for carrying out state switching to working condition, and after state switching not actively on the gateway Report status information;
Status information sending module, for after receiving the status query instruction that the gateway is sent, Xiang Suoshu gateway to be returned Status information;The status information is used to indicate the gateway more corresponding shape of endpoint device described in new state information record sheet State information record.
11. a kind of equipment state synchronizer characterized by comprising at least one processor and memory;
The memory stores computer executed instructions;
At least one described processor executes the computer executed instructions of the memory storage, so that at least one described processing Device executes such as equipment state synchronous method described in any one of claim 1 to 5, or execution and sets as claimed in claim 6 Standby state synchronization method.
12. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium It executes instruction, when processor executes the computer executed instructions, realizes such as equipment described in any one of claim 1 to 5 State synchronization method, or realize equipment state synchronous method as claimed in claim 6.
CN201910119930.1A 2019-02-18 2019-02-18 Equipment state synchronous method, device, equipment and computer readable storage medium Pending CN110012534A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910119930.1A CN110012534A (en) 2019-02-18 2019-02-18 Equipment state synchronous method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910119930.1A CN110012534A (en) 2019-02-18 2019-02-18 Equipment state synchronous method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110012534A true CN110012534A (en) 2019-07-12

Family

ID=67165927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910119930.1A Pending CN110012534A (en) 2019-02-18 2019-02-18 Equipment state synchronous method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110012534A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597078A (en) * 2019-09-27 2019-12-20 南京博联智能科技有限公司 Equipment control implementation method, device, electronic equipment, storage medium and system
CN111586659A (en) * 2020-04-30 2020-08-25 杭州涂鸦信息技术有限公司 Node working mode control method, device, equipment and medium based on Sub-G network
CN111935235A (en) * 2020-07-13 2020-11-13 杭州鸿雁电器有限公司 Control method, system, device, storage medium and processor of equipment
CN112769895A (en) * 2020-12-18 2021-05-07 杭州涂鸦信息技术有限公司 Group or scene control method and related device
CN113485129A (en) * 2021-06-11 2021-10-08 杭州控客信息技术有限公司 Method for controlling and reporting equipment under contextual model of whole-house intelligent system
CN114257508A (en) * 2022-02-28 2022-03-29 蘑菇物联技术(深圳)有限公司 Method, gateway, communication system and storage medium for equipment maintenance locking

Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039131A (en) * 2007-05-21 2007-09-19 中国船舶重工集团公司第七一○研究所 Ocean towed array RF communication and feeding method
CN102238236A (en) * 2011-07-12 2011-11-09 华南理工大学 Intelligent household electric appliance system based on ZigBee and page generation and implementation method thereof
CN103533702A (en) * 2013-03-14 2014-01-22 南开大学 Intelligent space art decorative light system based on internet of things
CN103680197A (en) * 2013-11-20 2014-03-26 苏州翊高科技有限公司 Parking lot parking place inquiring method and real-time inquiring system thereof
US20140136660A1 (en) * 2012-11-12 2014-05-15 Benu Networks, Inc. Extending multicast/broadcast services to wide area networks
CN104601417A (en) * 2014-11-25 2015-05-06 华立仪表集团股份有限公司 ZIGBEE technology based wireless on-off controller and method
CN104885326A (en) * 2012-12-28 2015-09-02 株式会社日立制作所 Assembled battery system, storage battery system, and method for monitoring and controlling assembled battery system
CN104956768A (en) * 2013-01-31 2015-09-30 皇家飞利浦有限公司 Requesting information from lighting devices
CN105050027A (en) * 2015-05-29 2015-11-11 深圳市明星网络有限公司 Communication device capable of transmitting information based on broadcast mode and method for transmitting information between two communication devices
CN105208517A (en) * 2015-09-29 2015-12-30 爱国者电子科技有限公司 Wireless router device and communication method
CN105223820A (en) * 2015-09-22 2016-01-06 华南师范大学 A kind of multifunctional intellectual house control system
CN106717125A (en) * 2014-09-18 2017-05-24 奥斯兰姆施尔凡尼亚公司 Wireless control of lighting systems
CN106879049A (en) * 2017-02-13 2017-06-20 上海雍敏信息科技有限公司 The method that many equipment of intelligent home device, smart home network simultaneously
CN106996678A (en) * 2017-05-08 2017-08-01 青岛海尔电冰箱有限公司 The processing method of storing information, processing system and refrigerator in refrigerator
CN107432511A (en) * 2017-07-20 2017-12-05 东华大学 A kind of integrated universal platform based on Intelligent luminous catwalk show clothes
CN107464412A (en) * 2017-08-09 2017-12-12 国网浙江省电力公司 A kind of electric energy meter event information copy reading method
CN108173728A (en) * 2018-02-11 2018-06-15 张戈零 Intelligent appliance equipment and intelligent appliance system
CN108400914A (en) * 2018-02-11 2018-08-14 张戈零 Internet of Things network control method based on Bluetooth communication
US20180270876A1 (en) * 2017-03-15 2018-09-20 Avago Technologies General IP (Singapore) Pte. Ltd . Enhanced data rate low energy wireless communications
CN108834110A (en) * 2018-05-30 2018-11-16 上海顺舟智能科技股份有限公司 The data transfer control method and system of zigbee network

Patent Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039131A (en) * 2007-05-21 2007-09-19 中国船舶重工集团公司第七一○研究所 Ocean towed array RF communication and feeding method
CN102238236A (en) * 2011-07-12 2011-11-09 华南理工大学 Intelligent household electric appliance system based on ZigBee and page generation and implementation method thereof
US20140136660A1 (en) * 2012-11-12 2014-05-15 Benu Networks, Inc. Extending multicast/broadcast services to wide area networks
CN104885326A (en) * 2012-12-28 2015-09-02 株式会社日立制作所 Assembled battery system, storage battery system, and method for monitoring and controlling assembled battery system
CN104956768A (en) * 2013-01-31 2015-09-30 皇家飞利浦有限公司 Requesting information from lighting devices
CN103533702A (en) * 2013-03-14 2014-01-22 南开大学 Intelligent space art decorative light system based on internet of things
CN103680197A (en) * 2013-11-20 2014-03-26 苏州翊高科技有限公司 Parking lot parking place inquiring method and real-time inquiring system thereof
CN106717125A (en) * 2014-09-18 2017-05-24 奥斯兰姆施尔凡尼亚公司 Wireless control of lighting systems
CN104601417A (en) * 2014-11-25 2015-05-06 华立仪表集团股份有限公司 ZIGBEE technology based wireless on-off controller and method
CN105050027A (en) * 2015-05-29 2015-11-11 深圳市明星网络有限公司 Communication device capable of transmitting information based on broadcast mode and method for transmitting information between two communication devices
CN105223820A (en) * 2015-09-22 2016-01-06 华南师范大学 A kind of multifunctional intellectual house control system
CN105208517A (en) * 2015-09-29 2015-12-30 爱国者电子科技有限公司 Wireless router device and communication method
CN106879049A (en) * 2017-02-13 2017-06-20 上海雍敏信息科技有限公司 The method that many equipment of intelligent home device, smart home network simultaneously
US20180270876A1 (en) * 2017-03-15 2018-09-20 Avago Technologies General IP (Singapore) Pte. Ltd . Enhanced data rate low energy wireless communications
CN106996678A (en) * 2017-05-08 2017-08-01 青岛海尔电冰箱有限公司 The processing method of storing information, processing system and refrigerator in refrigerator
CN107432511A (en) * 2017-07-20 2017-12-05 东华大学 A kind of integrated universal platform based on Intelligent luminous catwalk show clothes
CN107464412A (en) * 2017-08-09 2017-12-12 国网浙江省电力公司 A kind of electric energy meter event information copy reading method
CN108173728A (en) * 2018-02-11 2018-06-15 张戈零 Intelligent appliance equipment and intelligent appliance system
CN108400914A (en) * 2018-02-11 2018-08-14 张戈零 Internet of Things network control method based on Bluetooth communication
CN108834110A (en) * 2018-05-30 2018-11-16 上海顺舟智能科技股份有限公司 The data transfer control method and system of zigbee network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ONEWING被占用: "zigbee广播限制", 《HTTPS://BLOG.CSDN.NET/U013797574/ARTICLE/DETAILS/69943348》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597078A (en) * 2019-09-27 2019-12-20 南京博联智能科技有限公司 Equipment control implementation method, device, electronic equipment, storage medium and system
CN111586659A (en) * 2020-04-30 2020-08-25 杭州涂鸦信息技术有限公司 Node working mode control method, device, equipment and medium based on Sub-G network
CN111586659B (en) * 2020-04-30 2024-01-26 杭州涂鸦信息技术有限公司 Method, device, equipment and medium for controlling node working mode based on Sub-G network
CN111935235A (en) * 2020-07-13 2020-11-13 杭州鸿雁电器有限公司 Control method, system, device, storage medium and processor of equipment
CN112769895A (en) * 2020-12-18 2021-05-07 杭州涂鸦信息技术有限公司 Group or scene control method and related device
CN112769895B (en) * 2020-12-18 2023-10-13 杭州涂鸦信息技术有限公司 Group or scene control method and related device
CN113485129A (en) * 2021-06-11 2021-10-08 杭州控客信息技术有限公司 Method for controlling and reporting equipment under contextual model of whole-house intelligent system
CN113485129B (en) * 2021-06-11 2022-02-22 杭州控客信息技术有限公司 Method for controlling and reporting equipment under contextual model of whole-house intelligent system
CN114257508A (en) * 2022-02-28 2022-03-29 蘑菇物联技术(深圳)有限公司 Method, gateway, communication system and storage medium for equipment maintenance locking
CN114257508B (en) * 2022-02-28 2022-05-17 蘑菇物联技术(深圳)有限公司 Method, gateway, communication system and storage medium for equipment maintenance locking

Similar Documents

Publication Publication Date Title
CN110012534A (en) Equipment state synchronous method, device, equipment and computer readable storage medium
CN109376197B (en) Data synchronization method, server and computer storage medium
CN109906585A (en) Management method, administrative unit and the system of network slice
CN105468302B (en) A kind of method, apparatus and system of processing data
CN114338594B (en) ARP (Address resolution protocol) response-substituting method, device, equipment and storage medium in Kubernetes environment
CN103546467A (en) Method for transmitting Modbus RTU protocol on TCP/IP network
CN104079599A (en) Real-time message synchronizing method and container wharf operation system
CN104486111A (en) 1553B data bus system network management method
CN110457078A (en) Intelligent Service method, device and equipment
CN114285695B (en) Communication method, device, apparatus, system and storage medium
CN112422485B (en) Communication method and device of transmission control protocol
CN111669322A (en) Relay bridging method and gateway
CN112052104A (en) Message queue management method based on multi-computer-room realization and electronic equipment
CN112714146B (en) Resource scheduling method, device, equipment and computer readable storage medium
CN110505614B (en) Communication method and device of ZigBee binding switch
CN110784510A (en) Method for accessing target service node to bus and information interaction method of service node
CN108900422A (en) Multicast forward method, device and electronic equipment
CN109995678A (en) Message transmitting method and device
CN102300198A (en) Method and system for realizing mobile phone remote service and mobile phone remote service center
CN104539442B (en) For improving method, the network equipment and the system of reliability
CN110457077A (en) Intelligent Service method, device and equipment
CN110290517A (en) Digital media wireless wifi communication point reading system and method
CN112995571B (en) Communication management method and communication management device for wireless conference system
CN117097814B (en) Asynchronous communication method between simulation model and terminal
CN117472845B (en) Multi-core network sharing system and control method thereof

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190712