Information interaction method, information interaction device, storage medium and server

By using gateway broadcast operation commands in the Zigbee network and combining them with a play-on-demand mechanism, the network congestion problem was solved, enabling accurate control of terminal status and judgment of scenario execution results, while reducing the amount of data reported.

CN116017558BActive Publication Date: 2026-04-17GUANGDONG RUIZHU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGDONG RUIZHU INTELLIGENT TECH CO LTD
Filing Date
2022-12-05
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

In Zigbee networks, as the number of devices increases, the reporting of device status data can cause network congestion and affect network performance.

Method used

The gateway broadcasts a first operation command to determine if it will receive a response from the terminal within a predetermined time. If the terminal does not receive a response, it sends a second operation command via a request method. If the terminal does not receive a response, it waits for the gateway to issue the second operation command. The terminal adds status and reason fields to the data packet.

Benefits of technology

It reduces the amount of data reported by the terminal, avoids network congestion, enables accurate control of the terminal status, and improves the gateway's ability to judge the execution results of the scenario.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116017558B_ABST
    Figure CN116017558B_ABST
Patent Text Reader

Abstract

This disclosure relates to an information interaction method, an information interaction device, a storage medium, and a server. The information interaction method includes broadcasting a first operation instruction to a terminal communicating with a gateway based on received instruction information. The first operation instruction instructs the terminal to perform a predetermined operation. It then determines whether a response to the operation instruction is received from a terminal within a predetermined time. If response information is received from some terminals within the predetermined time, a second operation instruction is broadcast to terminals that have not yet responded, according to a predetermined rule. The predetermined rule is that if a terminal does not receive a response from the gateway within the predetermined time, it waits for the gateway to issue the second operation instruction. The instruction information in the second operation instruction is the same as that in the first operation instruction. This application uses a broadcast-on-demand method based on predetermined rules, which can significantly reduce the amount of data reported by the terminal, helping to avoid network congestion and enabling more accurate control of the terminal status.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of information technology, and in particular to an information interaction method, an information interaction device, a storage medium, and a server. Background Technology

[0002] With the development of smart homes, the number of Zigbee devices in home Zigbee networks is increasing. When a large number of Zigbee devices are operated in a Zigbee scenario, the operated devices will report status data. This will cause a large amount of data to be reported in the Zigbee network in a short period of time, causing network congestion. Summary of the Invention

[0003] In view of this, the present disclosure aims to provide an information interaction method, an information interaction device, a storage medium, and a server.

[0004] The technical solution disclosed herein is implemented as follows:

[0005] Firstly, this disclosure provides an information exchange method.

[0006] The information interaction method provided in this disclosure is applied to a gateway based on Zigbee protocol communication, and the method includes:

[0007] Based on the received instruction information, a first operation instruction is broadcast to the terminal that has established communication with the gateway, wherein the first operation instruction is used to instruct the terminal to perform a predetermined operation;

[0008] Determine whether a response message from the terminal in response to the operation command is received within a predetermined time.

[0009] If the response information from some of the terminals is received within the predetermined time, the second operation instruction is played to the terminals that have not responded with the response information according to a predetermined rule. The predetermined rule is that if the terminal does not receive a response from the gateway to the response information within the predetermined time, it waits for the gateway to issue the second operation instruction. The instruction information in the second operation instruction is the same as the instruction information in the first operation instruction.

[0010] In some embodiments, the predetermined time includes: a first predetermined time and a second predetermined time after the first predetermined time;

[0011] The step of determining whether a response information is received from the terminal within a predetermined time period in response to the operation command includes:

[0012] Determine whether at least one of the terminal's response information has been received within the first predetermined time period;

[0013] If a response from any of the terminals is received within the first predetermined time period, then it is determined whether response information from all of the terminals has been received within the second predetermined time period.

[0014] If the response information from some of the terminals is received within the predetermined time, the second operation instruction is then played to the terminals that have not responded according to a predetermined rule, including:

[0015] If the response information from some of the terminals is received within the second predetermined time, the second operation instruction is then played to the terminals that have not responded with the response information, according to a predetermined rule.

[0016] In some embodiments, the step of sending the second operation instruction to a terminal that has not responded with the response information according to a predetermined rule includes:

[0017] Based on the predetermined rules, determine the amount of response information that the current width can accommodate;

[0018] Based on the number of response messages from the terminals that the current width can accommodate, the second operation instruction is sent to the number of terminals, with one second operation instruction sent to each terminal, and the number of terminals being terminals that have not provided any response information.

[0019] In some embodiments, after delivering the second operation instruction to a terminal that has not responded with the response information according to a predetermined rule, the method includes:

[0020] If no response information is received from all the terminals within the third predetermined time, the terminals that have not responded will be reported to the control logic side, and the indication information will be sent by the control logic side.

[0021] In some embodiments, before determining whether a response information from the terminal in response to the operation instruction is received within a predetermined time, the method includes:

[0022] Receive response information from the terminal;

[0023] The response information includes at least the following:

[0024] Status field information, used to characterize the current state of the terminal;

[0025] The cause field information is used to characterize the driving factors for the terminal to be in the current state after the state change; wherein, the state field information and the cause field information are integrated into a single data packet of the response information.

[0026] Secondly, this disclosure provides an information exchange method applied to a terminal communicating based on the Zigbee protocol, the method comprising:

[0027] Receive a first operation instruction sent by the gateway via broadcast, wherein the first operation instruction is used to instruct the terminal to perform a predetermined operation;

[0028] The predetermined operation is executed based on the first operation instruction, and response information in response to the first operation instruction is generated;

[0029] Based on predetermined rules, the response information is fed back to the gateway. The predetermined rules stipulate that if no response information is received from the gateway within a predetermined time, the system waits for the gateway to issue a second operation instruction. The instruction information in the second operation instruction is the same as the instruction information in the first operation instruction.

[0030] In some embodiments, the predetermined time includes: a first predetermined time and a second predetermined time after the first predetermined time;

[0031] If no response is received from the gateway within the predetermined time, the system waits for the gateway to issue a second operation instruction, including:

[0032] If no response information is received from the gateway within the first predetermined time, then wait for the gateway to send a response information within the second predetermined time.

[0033] If no response information is received from the gateway within the first predetermined time period and the second predetermined time period, then wait to receive the second operation instruction issued by the gateway.

[0034] In some embodiments, the response information includes at least:

[0035] Status field information, used to characterize the current state of the terminal;

[0036] The cause field information is used to characterize the driving factors for the terminal to be in the current state after the state change; wherein, the state field information and the cause field information are integrated into a single data packet of the response information.

[0037] Thirdly, this disclosure provides an information interaction device applied to a gateway based on Zigbee protocol communication, comprising:

[0038] The information broadcasting module is used to broadcast a first operation instruction to a terminal that has established communication with the gateway according to the received instruction information, wherein the first operation instruction is used to instruct the terminal to perform a predetermined operation;

[0039] The information determination module is used to determine whether response information from the terminal in response to the operation command has been received within a predetermined time.

[0040] The information on-demand module is used to, if it receives the response information from some of the terminals within the predetermined time, then, according to a predetermined rule, play the second operation instruction to the terminals that have not responded with the response information, wherein the predetermined rule is determined to be that if the terminal does not receive the response information from the gateway for the response information within the predetermined time, it waits for the gateway to issue the second operation instruction; wherein the instruction information in the second operation instruction is the same as the instruction information in the first operation instruction.

[0041] Fourthly, this disclosure provides an information interaction device for use in a terminal based on Zigbee protocol communication, comprising:

[0042] The information receiving module is used to receive a first operation instruction sent by the gateway via broadcast, wherein the first operation instruction is used to instruct the terminal to perform a predetermined operation;

[0043] An information generation module is used to execute the predetermined operation based on the first operation instruction and generate response information in response to the first operation instruction;

[0044] The information feedback module is used to feed back the response information to the gateway based on a predetermined rule, wherein the predetermined rule is determined that if no response information is received from the gateway within a predetermined time, the module waits for the gateway to issue a second operation instruction, wherein the instruction information in the second operation instruction is the same as the instruction information in the first operation instruction.

[0045] Fifthly, this disclosure provides a computer-readable storage medium having an information interaction program stored thereon, which, when executed by a processor, implements the information interaction methods described in the first and second aspects above.

[0046] In a sixth aspect, this disclosure provides a server, including a memory, a processor, and an information interaction program stored in the memory and executable on the processor. When the processor executes the information interaction program, it implements the information interaction methods described in the first and second aspects above.

[0047] According to the information interaction method of this disclosure, a first operation instruction is broadcast to a terminal communicating with a gateway based on received instruction information. The first operation instruction instructs the terminal to perform a predetermined operation. The method determines whether a response to the operation instruction is received from a terminal within a predetermined time. If response information is received from some terminals within the predetermined time, a second operation instruction is broadcast to terminals that have not responded, according to a predetermined rule. The predetermined rule is that if a terminal does not receive a response from the gateway within the predetermined time, it waits for the gateway to issue a second operation instruction. The instruction information in the second operation instruction is the same as that in the first operation instruction. In this application, after the gateway sends the first operation instruction, the terminal receives the first operation instruction and responds once, then enters a waiting state. If no response information is received within the predetermined time, the terminal waits for the gateway to issue a second operation instruction and does not continue to send response information. Based on the above predetermined rule, the gateway broadcasts the second operation instruction to terminals that have not responded within the predetermined time. Using a broadcast method based on predetermined rules can significantly reduce the amount of data reported by the terminal, which helps avoid network congestion and allows for more accurate control of the terminal status.

[0048] Additional aspects and advantages of this disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this disclosure. Attached Figure Description

[0049] Figure 1 This is an information interaction method flow illustrated according to an exemplary embodiment. Figure 1 ;

[0050] Figure 2 This is an information interaction method flow illustrated according to an exemplary embodiment. Figure 2 ;

[0051] Figure 3 This is a flowchart illustrating the gateway's control over the terminal in a Zigbee scenario, based on an exemplary embodiment.

[0052] Figure 4 This is a schematic diagram of the structure of an information interaction device according to an exemplary embodiment. Figure 1 ;

[0053] Figure 5 This is a schematic diagram of the structure of an information interaction device according to an exemplary embodiment. Figure 2 . Detailed Implementation

[0054] Embodiments of this disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this disclosure, and should not be construed as limiting this disclosure.

[0055] In the Zigbee protocol, Zigbee scenarios are typically used to control a large number of Zigbee devices. After receiving a scenario execution command, the devices perform the corresponding action and then report status data to the gateway. Because Zigbee scenario execution commands are transmitted via broadcast in the Zigbee network, almost all devices in the network receive the broadcast Zigbee scenario execution commands at the same time. Therefore, the Zigbee network generates a large number of device status reports in a short period, causing Zigbee network congestion. The more devices there are, the more severe the network congestion caused by the reports, and the longer the recovery time.

[0056] Application scenario: For example, in a Zigbee network, there are 30 light devices and 30 switch panels, all of which are in the off state. In a Zigbee scenario, an "on" action is performed on all 60 devices. After the scenario is executed, the 60 devices report Zigbee attribute packets due to the state change. The gateway receives the Zigbee attribute packets and replies with an ACK. If a device does not receive an ACK, it re-reports the Zigbee attribute packets, retrying 8 times by default. If the Zigbee network is congested, the retransmission of Zigbee attribute packets will exacerbate the congestion.

[0057] In view of the above situation, this disclosure provides an information exchange method applied to a gateway based on Zigbee protocol communication. Figure 1 This is an information interaction method flow illustrated according to an exemplary embodiment. Figure 1 .like Figure 1 As shown, the information interaction method includes:

[0058] Step 10: According to the received instruction information, broadcast a first operation instruction to the terminal that has established communication with the gateway, wherein the first operation instruction is used to instruct the terminal to perform a predetermined operation;

[0059] Step 11: Determine whether the terminal has received a response message in response to the operation command within a predetermined time.

[0060] Step 12: If the response information from some of the terminals is received within the predetermined time, the second operation instruction is played to the terminals that have not responded with the response information according to a predetermined rule. The predetermined rule is that if the terminal does not receive the response information from the gateway within the predetermined time, it waits for the gateway to issue the second operation instruction. The instruction information in the second operation instruction is the same as the instruction information in the first operation instruction.

[0061] In this exemplary embodiment, the logic control side can send instruction information to the gateway, instructing the terminal to perform a predetermined operation. The predetermined operation can be a data reading operation, a data storage operation, or the execution of a specific action. For example, when the terminal is a light, the predetermined operation could be turning the light on or off. When the terminal is an air conditioner, the predetermined operation could be adjusting the temperature, etc. The logic control side can be a server or a mobile terminal application (app), etc.

[0062] In this exemplary embodiment, the predetermined time can be a period of time after the gateway broadcasts the first operation instruction. The predetermined time may include: a first predetermined time and a second predetermined time following the first predetermined time;

[0063] The step of determining whether a response information is received from the terminal within a predetermined time period in response to the operation command includes:

[0064] Determine whether at least one of the terminal's response information has been received within the first predetermined time period;

[0065] If a response from any of the terminals is received within the first predetermined time period, then it is determined whether response information from all of the terminals has been received within the second predetermined time period.

[0066] If no response information is received from any of the terminals within the first predetermined time, it is determined that the first operation instruction sent by the gateway is an erroneous instruction, or the indication information issued by the logic control side is incorrect, and the error information is fed back to the logic control side.

[0067] If a response message is received from any of the terminals within the first predetermined time period, it is determined that the first operation instruction can be executed by the terminal.

[0068] If no response information is received from all the terminals within the second predetermined time, then the terminals that have not responded are identified.

[0069] If the response information from some of the terminals is received within the predetermined time, the second operation instruction is then played to the terminals that have not responded according to a predetermined rule, including:

[0070] If the response information from some of the terminals is received within the second predetermined time, the second operation instruction is then played to the terminals that have not responded with the response information, according to a predetermined rule.

[0071] In this exemplary embodiment, the step of sending the second operation instruction to a terminal that has not responded with the response information according to a predetermined rule includes:

[0072] Based on the predetermined rules, determine the amount of response information that the current width can accommodate;

[0073] Based on the number of response messages from the terminals that the current width can accommodate, the second operation instruction is sent to the number of terminals, with one second operation instruction sent to each terminal, and the number of terminals being terminals that have not provided any response information.

[0074] In this exemplary embodiment, when sending a second operation command to terminals that have not responded with the aforementioned response information, a delivery-on-demand approach can be used to avoid network congestion. Specifically, the current bandwidth state, i.e., the number of response messages that can be accommodated by the terminals, can be determined first, and the second operation command can be delivered to that number of terminals on demand. For example, if there are 10 terminals that have not responded with the aforementioned response information, but the current bandwidth can only accommodate the bandwidth of 3 response messages, then the second operation command can be delivered to 3 terminals at a time. This helps reduce network congestion.

[0075] According to the information interaction method of this disclosure, a first operation instruction is broadcast to a terminal communicating with a gateway based on received instruction information. The first operation instruction instructs the terminal to perform a predetermined operation. The method determines whether a response to the operation instruction is received from a terminal within a predetermined time. If response information is received from some terminals within the predetermined time, a second operation instruction is broadcast to terminals that have not responded within a predetermined rule. The predetermined rule is that if a terminal does not receive a response from the gateway within the predetermined time, it waits for the gateway to issue the second operation instruction. The instruction information in the second operation instruction is the same as that in the first operation instruction. In this application, after the gateway sends the first operation instruction, the terminal receives the first operation instruction and responds once, then enters a waiting state. If no response is received within the predetermined time, the terminal waits for the gateway to issue the second operation instruction and does not continue to send response information to the gateway multiple times. Based on the above predetermined rule, the gateway broadcasts the second operation instruction to terminals that have not responded within the predetermined time. Using a broadcast method based on predetermined rules can significantly reduce the amount of data reported by the terminal, which is beneficial for avoiding network congestion and enabling more accurate control of the terminal status. In the above application scenario, if the light device does not receive the Ack, it will not re-report the Zigbee attribute packet and will not repeat the default long transmission of 8 times.

[0076] In some embodiments, after delivering the second operation instruction to a terminal that has not responded with the response information according to a predetermined rule, the method includes:

[0077] If no response information is received from all the terminals within the third predetermined time, the terminals that have not responded will be reported to the control logic side, and the indication information will be sent by the control logic side.

[0078] In this exemplary embodiment, the third predetermined time is a time period based on the second predetermined time. If no response information from all the terminals is received within the third predetermined time, the terminals that have not responded are reported to the control logic side; if response information from all the terminals is received within the third predetermined time, it is determined that the state control of the terminals is successful, and the result information of successful control is fed back to the control logic side.

[0079] In some embodiments, before determining whether a response information from the terminal in response to the operation instruction is received within a predetermined time, the method includes:

[0080] Receive response information from the terminal;

[0081] The response information includes at least the following:

[0082] Status field information, used to characterize the current state of the terminal;

[0083] The cause field information is used to characterize the driving factors for the terminal to be in the current state after the state change; wherein, the state field information and the cause field information are integrated into a single data packet of the response information.

[0084] In this exemplary embodiment, to enable the gateway to determine the execution results of a Zigbee scenario, understand the reasons for device state changes, and implement more business logic, the terminal device can add a status field to the data packet reporting response information by extending the Zigbee protocol. This status field represents the current state of the terminal, while the cause field represents the driving factor that led to the terminal's current state after the state change. The status field and cause field are integrated into a single data packet of the response information. This helps the gateway understand the device state and the reasons for its changes, facilitating subsequent business operations.

[0085] For example, a private attribute can be added to the Cluster to indicate the ID of a Zigbee scenario or the reason for other triggering changes. This method only requires adding a small number of bytes from Table 2 to the existing reported data (Table 1) to report the new private attribute to the gateway in the same data packet.

[0086] The following example, using the On / Off Cluster 0x0006 in the off state, illustrates the effect of adding private attributes. The attributes defined in the ZCL official protocol are shown in Table 1. We can add 0x5000ReportSecenID, as shown in Table 2, to tell the gateway that this status report was generated after the device executed the ReportSecenID scenario. Table 1 is the attribute table defined in the ZCL official protocol. Table 2 is the extended attribute table.

[0087] Table 1. Attribute Table Defined in ZCL Official Agreement

[0088] Identifier Name Type Range Access Default 0x0000 Onoff bool 0x00-0x01 Read Only 0x 00 0x4000 OnTime bool 0x00-0x01 Read Only 0x 01 0x4001 OnTime Uint16 0x0000-0x0ffff Read Write 0x 0000

[0089] Table 1

[0090] In Table 1, Identifier is the attribute identifier, Name is the attribute name, Type is the attribute type, Range is the value range, Access is the interface characteristic, and Default is the error code. Each column in Table 1 contains relevant information.

[0091] Table 2 Extended Attribute Table

[0092]

[0093] Table 2

[0094] Similarly, other Clutster settings, such as brightness and color temperature adjustment of lights, can also be described in the status report using the above method, indicating whether the device status report was generated by the execution scenario or caused by other reasons. That is, the status field information and reason field information can be added to the data packet using Table 2.

[0095] This disclosure provides an information exchange method applied to terminals based on Zigbee protocol communication. Figure 2 This is an information interaction method flow illustrated according to an exemplary embodiment. Figure 2 .like Figure 2 As shown, the method includes:

[0096] Step 20: Receive a first operation instruction sent by the gateway via broadcast, wherein the first operation instruction is used to instruct the terminal to perform a predetermined operation;

[0097] Step 21: Execute the predetermined operation based on the first operation instruction to generate response information in response to the first operation instruction;

[0098] Step 22: Based on a predetermined rule, send the response information back to the gateway, wherein the predetermined rule is determined that if no response information is received from the gateway within a predetermined time, wait for the gateway to issue a second operation instruction, wherein the instruction information in the second operation instruction is the same as the instruction information in the first operation instruction.

[0099] In this exemplary embodiment, the logic control side can send instruction information to the gateway, instructing the terminal to perform a predetermined operation. The predetermined operation can be a data reading operation, a data storage operation, or the execution of a specific action. For example, when the terminal is a light, the predetermined operation could be turning the light on or off. When the terminal is an air conditioner, the predetermined operation could be adjusting the temperature, etc. The logic control side can be a server or a mobile terminal application (app), etc.

[0100] In this exemplary embodiment, the terminal receives a first operation instruction and executes the predetermined operation, generating response information in response to the first operation instruction. After sending the response information to the gateway, the terminal waits for a response from the gateway. If no response is received from the gateway within a predetermined time, the terminal waits for the gateway to issue a second operation instruction. Throughout the waiting process, the terminal does not repeatedly send response information to the gateway, thereby significantly reducing the amount of data reported and effectively avoiding network congestion in the event of network broadcasting. Simultaneously, the terminal receives one operation instruction and replies with one response, facilitating timely adjustment of the terminal device status by the gateway.

[0101] In this exemplary embodiment, the predetermined time includes: a first predetermined time and a second predetermined time after the first predetermined time;

[0102] If no response is received from the gateway within the predetermined time, the system waits for the gateway to issue a second operation instruction, including:

[0103] If no response information is received from the gateway within the first predetermined time, then wait for the gateway to send a response information within the second predetermined time.

[0104] If no response information is received from the gateway within the first predetermined time period and the second predetermined time period, then wait to receive the second operation instruction issued by the gateway.

[0105] In this exemplary embodiment, if no response information is received from the gateway within the first predetermined time period and the second predetermined time period, it indicates that the gateway has not received any response information from the terminal. In this case, the gateway can wait to receive the second operation instruction issued by the gateway.

[0106] In some embodiments, the response information includes at least:

[0107] Status field information, used to characterize the current state of the terminal;

[0108] The cause field information is used to characterize the driving factors for the terminal to be in the current state after the state change; wherein, the state field information and the cause field information are integrated into a single data packet of the response information.

[0109] In this exemplary embodiment, to enable the gateway to determine the execution results of a Zigbee scenario, understand the reasons for device state changes, and implement more business logic, the terminal device can add a status field to the data packet reporting response information by extending the Zigbee protocol. This status field represents the current state of the terminal, while the cause field represents the driving factor that led to the terminal's current state after the state change. The status field and cause field are integrated into a single data packet of the response information. This helps the gateway understand the device state and the reasons for its changes, facilitating subsequent business operations.

[0110] In a cluster, a private attribute is added to indicate the reason for a device state change. Besides the scenarios mentioned above, device state changes can also be triggered by other conditions. Common triggering conditions include control by other devices, receiving a single-control command, physical button presses, etc. By adding an attribute to the existing data packet to indicate the reason for the state change, the gateway can extend more business functions based on the reason for the state change.

[0111] In this disclosure, the Attribute property in the Cluster is extended so that the reason for the state change is carried with only a small increase in the length of a single state reporting data packet.

[0112] The cancellation of the ACK mechanism during scenario execution status reporting saves bandwidth used during reporting. It also avoids exacerbating congestion caused by packet loss triggering ACK retransmission.

[0113] The innovative Zigbee scene control process can enhance the gateway's ability to judge the scene execution result even when the ACK status packet is cancelled.

[0114] Under the original Zigbee protocol, the ACK mechanism for device status packets exacerbates network congestion when the number of concurrent control operations is large. Under the same bandwidth conditions and the requirement of correct execution across all devices, this disclosure, due to its bandwidth-saving features, can support a larger number of devices executing actions in a single Zigbee scenario.

[0115] Under the original Zigbee protocol, gateways could not distinguish the reasons for device state changes, making it impossible to determine the execution result of Zigbee scenarios. This disclosure provides a gateway with the ability to determine the execution result of Zigbee scenarios. By understanding the reasons for device state changes through new technology, the gateway can implement more business logic. Simultaneously, by avoiding existing Zigbee protocol attributes, it achieves compatibility with the original protocol.

[0116] Figure 3 This is a flowchart illustrating the gateway's control over the terminal in a Zigbee scenario, based on an exemplary embodiment. Figure 3 As shown, the gateway's control process for terminals in a Zigbee scenario includes:

[0117] Step 31: The gateway issues the first operation command for the Zigbee scenario;

[0118] Step 31: Wait for the status report from each device in the scene;

[0119] Step 31: Determine whether any device status report is received within the first predetermined time. If no status report is received from any device due to the scenario, it is determined that the instruction sending failed.

[0120] Step 31: If a status report is received from any device due to the scenario, determine whether all device status reports have been received within the second predetermined time.

[0121] Step 31: If no status reports are received from all devices within the second predetermined time, control the devices that have not reported status and reissue the second operation command; if all status reports are received from all devices within the second predetermined time, the control is successful.

[0122] Step 31: Determine whether all status reports from the replacement devices have been received within the third predetermined time. If no status reports from the replacement devices have been received within the third predetermined time, it is determined that a control failure has occurred. If all status reports from the replacement devices have been received within the third predetermined time, the control is successful.

[0123] This disclosure provides an information interaction device applied to a gateway based on Zigbee protocol communication. Figure 4 This is a schematic diagram of the structure of an information interaction device according to an exemplary embodiment. Figure 1 .like Figure 4 As shown, the information interaction device includes:

[0124] The information broadcasting module 40 is used to broadcast a first operation instruction to a terminal that has established communication with the gateway according to the received instruction information, wherein the first operation instruction is used to instruct the terminal to perform a predetermined operation;

[0125] Information determination module 41 is used to determine whether response information from the terminal in response to the operation command is received within a predetermined time.

[0126] The information on-demand module 42 is used to, if the response information of some of the terminals is received within the predetermined time, to play the second operation instruction to the terminals that have not responded with the response information according to a predetermined rule, wherein the predetermined rule is determined to be that if the terminal does not receive the response information of the gateway to the response information within the predetermined time, it waits for the gateway to issue the second operation instruction; wherein the instruction information in the second operation instruction is the same as the instruction information in the first operation instruction.

[0127] In some embodiments, the predetermined time includes: a first predetermined time and a second predetermined time after the first predetermined time;

[0128] Information determination module, used for

[0129] Determine whether at least one of the terminal's response information has been received within the first predetermined time period;

[0130] If a response from any of the terminals is received within the first predetermined time period, then it is determined whether response information from all of the terminals has been received within the second predetermined time period.

[0131] Information on demand module, used for

[0132] If the response information from some of the terminals is received within the second predetermined time, the second operation instruction is then played to the terminals that have not responded with the response information, according to a predetermined rule.

[0133] Information on demand module, used for

[0134] Based on the predetermined rules, determine the amount of response information that the current width can accommodate;

[0135] Based on the number of response messages from the terminals that the current width can accommodate, the second operation instruction is sent to the number of terminals, with one second operation instruction sent to each terminal, and the number of terminals being terminals that have not provided any response information.

[0136] The information on-demand module is used to report the terminals that have not responded to the control logic side if no response information is received from all the terminals within a third predetermined time period. The indication information is sent by the control logic side.

[0137] In some embodiments, before determining whether a response information from the terminal responding to the operation instruction is received within a predetermined time, the information determination module is used to...

[0138] Receive response information from the terminal;

[0139] The response information includes at least the following:

[0140] Status field information, used to characterize the current state of the terminal;

[0141] The cause field information is used to characterize the driving factors for the terminal to be in the current state after the state change; wherein, the state field information and the cause field information are integrated into a single data packet of the response information.

[0142] This disclosure provides an information interaction device for use in terminals based on the Zigbee protocol communication. Figure 5 This is a schematic diagram of the structure of an information interaction device according to an exemplary embodiment. Figure 2 .like Figure 5 As shown, the information interaction device includes:

[0143] Information receiving module 50 is used to receive a first operation instruction sent by the gateway via broadcast, wherein the first operation instruction is used to instruct the terminal to perform a predetermined operation;

[0144] The information generation module 51 is used to execute the predetermined operation based on the first operation instruction and generate response information in response to the first operation instruction;

[0145] The information feedback module 52 is used to feed back the response information to the gateway based on a predetermined rule, wherein the predetermined rule is determined that if no response information is received from the gateway within a predetermined time, the module waits for the gateway to issue a second operation instruction, wherein the instruction information in the second operation instruction is the same as the instruction information in the first operation instruction.

[0146] In some embodiments, the predetermined time includes: a first predetermined time and a second predetermined time after the first predetermined time;

[0147] Information feedback module, used for

[0148] If no response information is received from the gateway within the first predetermined time, then wait for the gateway to send a response information within the second predetermined time.

[0149] If no response information is received from the gateway within the first predetermined time period and the second predetermined time period, then wait to receive the second operation instruction issued by the gateway.

[0150] In some embodiments, the response information includes at least:

[0151] Status field information, used to characterize the current state of the terminal;

[0152] The cause field information is used to characterize the driving factors for the terminal to be in the current state after the state change; wherein, the state field information and the cause field information are integrated into a single data packet of the response information.

[0153] This disclosure provides a computer-readable storage medium storing an information interaction program thereon, which, when executed by a processor, implements the information interaction methods described in the above embodiments.

[0154] This disclosure provides a server, including a memory, a processor, and an information interaction program stored in the memory and executable on the processor. When the processor executes the information interaction program, it implements the information interaction method described in the above embodiments.

[0155] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.

[0156] It should be understood that various parts of this disclosure can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0157] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0158] In the description of this disclosure, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," and "circumferential" indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing this disclosure and simplifying the description, and are not intended to indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this disclosure.

[0159] Furthermore, the terms "first," "second," etc., used in the embodiments of this disclosure are for descriptive purposes only and should not be construed as indicating or implying relative importance, or implicitly specifying the number of technical features indicated in this embodiment. Therefore, features defined with terms such as "first" and "second" in the embodiments of this disclosure can explicitly or implicitly indicate that the embodiment includes at least one of those features. In the description of this disclosure, the word "multiple" means at least two or more, such as two, three, four, etc., unless otherwise explicitly specified in the embodiments.

[0160] In this disclosure, unless otherwise explicitly specified or limited in the embodiments, the terms "installation," "connection," "joining," and "fixing," etc., appearing in the embodiments should be interpreted broadly. For example, a connection can be a fixed connection, a detachable connection, or an integral part; it can also be a mechanical connection, an electrical connection, etc. Of course, it can also be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication between two components, or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this disclosure based on the specific implementation.

[0161] In this disclosure, unless otherwise expressly specified and limited, "above" or "below" the second feature can mean that the first and second features are in direct contact, or that the first and second features are in indirect contact through an intermediate medium. Furthermore, "above," "on top of," and "over" the second feature can mean that the first feature is directly above or diagonally above the second feature, or simply that the first feature is at a higher horizontal level than the second feature. "Below," "below," and "under" the second feature can mean that the first feature is directly below or diagonally below the second feature, or simply that the first feature is at a lower horizontal level than the second feature.

[0162] Although embodiments of the present disclosure have been shown and described above, it is to be understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present disclosure.

Claims

1. An information exchange method, characterized in that, The method, applied to a gateway for Zigbee protocol communication, includes: Based on the received instruction information, a first operation instruction is broadcast to the terminal that has established communication with the gateway, wherein the first operation instruction is used to instruct the terminal to perform a predetermined operation; Determine whether a response message from the terminal in response to the operation command is received within a predetermined time. If the response information from some of the terminals is received within the predetermined time, a second operation instruction is sent to the terminals that have not responded with the response information according to a predetermined rule. The predetermined rule is that if the terminal does not receive a response from the gateway to the response information within the predetermined time, it waits for the gateway to issue a second operation instruction. The instruction information in the second operation instruction is the same as the instruction information in the first operation instruction. The step of sending the second operation instruction to the terminal that has not responded with the response information according to a predetermined rule includes: Based on the predetermined rules, determine the amount of response information that the current width can accommodate; Send the second operation instruction to the number of terminals, with one terminal corresponding to one second operation instruction; The response information includes at least the following: Status field information, used to characterize the current state of the terminal; The cause field information is used to characterize the driving factors for the terminal to be in the current state after the state change; wherein, the state field information and the cause field information are integrated into a single data packet of the response information.

2. The information interaction method according to claim 1, characterized in that, The predetermined time includes: a first predetermined time and a second predetermined time after the first predetermined time; The step of determining whether a response information is received from the terminal within a predetermined time period in response to the operation command includes: Determine whether at least one of the terminal's response information has been received within the first predetermined time period; If a response from any of the terminals is received within the first predetermined time period, then it is determined whether response information from all of the terminals has been received within the second predetermined time period. If the response information from some of the terminals is received within the predetermined time, the second operation instruction is then played to the terminals that have not responded according to a predetermined rule, including: If the response information from some of the terminals is received within the second predetermined time, the second operation instruction is then played to the terminals that have not responded with the response information, according to a predetermined rule.

3. The information interaction method according to claim 1 or 2, characterized in that, The step of sending the second operation instruction to the terminal that has not responded with the response information according to a predetermined rule further includes: Based on the number of response messages from the terminals that the current width can accommodate, the second operation instruction is sent to the number of terminals, with one second operation instruction sent to each terminal, and the number of terminals being terminals that have not provided any response information.

4. The information interaction method according to claim 1, characterized in that, After the second operation instruction is played to the terminal that has not responded according to the predetermined rules, the method includes: If no response information is received from all the terminals within the third predetermined time, the terminals that have not responded will be reported to the control logic side, and the indication information will be sent by the control logic side.

5. The information interaction method according to claim 1, characterized in that, Before determining whether a response information from the terminal in response to the operation command is received within a predetermined time, the method includes: Receive response information from the terminal.

6. An information exchange method, characterized in that, The method, applied to terminals communicating based on the Zigbee protocol, includes: Receive a first operation instruction sent by the gateway via broadcast, wherein the first operation instruction is used to instruct the terminal to perform a predetermined operation; The predetermined operation is executed based on the first operation instruction, and response information in response to the first operation instruction is generated; Based on a predetermined rule, the response information is fed back to the gateway. The predetermined rule is that if no response information is received from the gateway within a predetermined time, the system waits for the gateway to issue a second operation instruction. The instruction information in the second operation instruction is the same as the instruction information in the first operation instruction. The waiting for the gateway to issue a second operation instruction includes: After the gateway determines, based on the predetermined rules, the number of response messages that the current width can accommodate from the terminals, it sends the second operation instruction to the number of terminals, with one second operation instruction sent to each terminal. The response information includes at least the following: Status field information, used to characterize the current state of the terminal; The cause field information is used to characterize the driving factors for the terminal to be in the current state after the state change; wherein, the state field information and the cause field information are integrated into a single data packet of the response information.

7. The information interaction method according to claim 6, characterized in that, The predetermined time includes: a first predetermined time and a second predetermined time after the first predetermined time; If no response is received from the gateway within the predetermined time, the system waits for the gateway to issue a second operation instruction, including: If no response information is received from the gateway within the first predetermined time, then wait for the gateway to send a response information within the second predetermined time. If no response information is received from the gateway within the first predetermined time period and the second predetermined time period, then wait to receive the second operation instruction issued by the gateway.

8. An information interaction device, characterized in that, Gateways used for Zigbee protocol-based communication include: The information broadcasting module is used to broadcast a first operation instruction to a terminal that has established communication with the gateway according to the received instruction information, wherein the first operation instruction is used to instruct the terminal to perform a predetermined operation; The information determination module is used to determine whether response information from the terminal in response to the operation command has been received within a predetermined time. The information on-demand module is used to, if the response information of some of the terminals is received within the predetermined time, then according to a predetermined rule, play a second operation instruction to the terminals that have not responded with the response information, wherein the predetermined rule is determined to be that if the terminal does not receive the response information of the gateway to the response information within the predetermined time, then waits for the gateway to issue a second operation instruction; wherein the instruction information in the second operation instruction is the same as the instruction information in the first operation instruction; The step of sending the second operation instruction to the terminal that has not responded with the response information according to a predetermined rule includes: Based on the predetermined rules, determine the amount of response information that the current width can accommodate; Send the second operation instruction to the number of terminals, with one terminal corresponding to one second operation instruction; The response information includes at least the following: Status field information, used to characterize the current state of the terminal; The cause field information is used to characterize the driving factors for the terminal to be in the current state after the state change; wherein, the state field information and the cause field information are integrated into a single data packet of the response information.

9. An information interaction device, characterized in that, Terminals used for Zigbee protocol communication include: The information receiving module is used to receive a first operation instruction sent by the gateway via broadcast, wherein the first operation instruction is used to instruct the terminal to perform a predetermined operation; An information generation module is used to execute the predetermined operation based on the first operation instruction and generate response information in response to the first operation instruction; The information feedback module is used to feed back the response information to the gateway based on a predetermined rule, wherein the predetermined rule is determined that if no response information is received from the gateway within a predetermined time, the module waits for the gateway to issue a second operation instruction, wherein the instruction information in the second operation instruction is the same as the instruction information in the first operation instruction. The waiting for the gateway to issue a second operation instruction includes: After the gateway determines, based on the predetermined rules, the number of response messages that the current width can accommodate from the terminals, it sends the second operation instruction to the number of terminals, with one second operation instruction sent to each terminal. The response information includes at least the following: Status field information, used to characterize the current state of the terminal; The cause field information is used to characterize the driving factors for the terminal to be in the current state after the state change; wherein, the state field information and the cause field information are integrated into a single data packet of the response information.

10. A computer-readable storage medium, characterized in that, It stores an information interaction program, which, when executed by a processor, implements the information interaction method according to any one of claims 1-7.

11. A server, characterized in that, The system includes a memory, a processor, and an information interaction program stored in the memory and executable on the processor. When the processor executes the information interaction program, it implements the information interaction method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Communication setting modification method for wireless communication networking

    CN105979490A

  • Zigbee data transmission method, Zigbee data transmission system and Zigbee data transmission device

    CN111246519A