CN114401490A - Information interaction method, device, broadcast type network, electronic device, and storage medium - Google Patents

Information interaction method, device, broadcast type network, electronic device, and storage medium Download PDF

Info

Publication number
CN114401490A
CN114401490A CN202210030874.6A CN202210030874A CN114401490A CN 114401490 A CN114401490 A CN 114401490A CN 202210030874 A CN202210030874 A CN 202210030874A CN 114401490 A CN114401490 A CN 114401490A
Authority
CN
China
Prior art keywords
interaction
information
request information
response
interaction device
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
CN202210030874.6A
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.)
Hangzhou C Sky Microsystems Co Ltd
Original Assignee
Hangzhou C Sky Microsystems 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 Hangzhou C Sky Microsystems Co Ltd filed Critical Hangzhou C Sky Microsystems Co Ltd
Priority to CN202210030874.6A priority Critical patent/CN114401490A/en
Publication of CN114401490A publication Critical patent/CN114401490A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

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

Abstract

The embodiment of the application provides an information interaction method, information interaction equipment, a broadcast type network, electronic equipment and a storage medium, wherein the information interaction method comprises the following steps of: a receiving step: receiving response information sent by a second interactive device in the broadcast type network in response to the request information of the first interactive device; an updating step: updating the request information according to the received response information, wherein the updated request information indicates the receiving state of the first interaction equipment to the response information sent by the plurality of second interaction equipment in the broadcast type network; a sending step: sending updated request information to a plurality of second interaction devices, so that the sent response information is not received by the first interaction devices, and the second interaction devices respond to the updated request information to send response information; and returning to the receiving step to continue the execution until a termination condition is met. The scheme can improve the reliability of information interaction between the devices in the broadcast network.

Description

Information interaction method, device, broadcast type network, electronic device, and storage medium
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to an information interaction method, information interaction equipment, a broadcast network, electronic equipment and a storage medium.
Background
With the continuous development and progress of communication technology, broadcast type networks such as Bluetooth (Bluetooth) networks and Wireless Fidelity (WiFi) networks are widely used. For example, the bluetooth network can be applied to scenes of internet of things such as building automation, intelligent security, intelligent home and the like.
At present, when a first interaction device in a broadcast network performs information interaction with a plurality of second interaction devices, the first interaction device sends request information to each second interaction device in a broadcast mode, and each second interaction device sends response information to the first interaction device after receiving the request information.
However, after the plurality of second interaction devices receive the request information at the same time, each second interaction device that receives the request information may send response information to the first interaction device at the same time, because the data processing capability of the first interaction device is effective, and the response information sent by the plurality of first interaction devices interfere with each other, the first interaction device may only receive a part of the response information sent by the second interaction device, and reliability of information interaction between the first interaction device and each second interaction device is affected.
Disclosure of Invention
In view of the above, embodiments of the present application provide an information interaction scheme in a broadcast type network to at least partially solve the above problem.
According to a first aspect of embodiments of the present application, there is provided an information interaction method applied to a first interaction device in a broadcast type network, the information interaction method including: a receiving step: receiving response information sent by a second interactive device in the broadcast type network in response to the request information of the first interactive device; an updating step: updating the request information according to the received response information, wherein the updated request information indicates the receiving state of the response information sent by the first interactive device to the plurality of second interactive devices in the broadcast type network; a sending step: sending the updated request information to the plurality of second interaction devices, so that the sent response information is not received by the first interaction device, and the second interaction device responds to the updated request information to send response information; and returning to the receiving step to continue the execution until a termination condition is met.
According to a second aspect of embodiments of the present application, there is provided an information interaction method applied to a second interaction device in a broadcast type network, the information interaction method including: receiving request information sent by first interactive equipment in the broadcast type network; determining whether the first interactive device has received response information sent by the second interactive device in response to the request information according to the request information; and if the first interaction equipment does not receive the response information, responding to the request information and sending the response information to the first interaction equipment.
According to a third aspect of embodiments of the present application, there is provided an interaction device applied to a first interaction device in a broadcast type network, comprising: a first receiving unit, configured to receive response information sent by a second interaction device in response to the request information of the first interaction device in the broadcast type network; an updating unit, configured to update the request information according to the received response information, where the updated request information indicates a receiving state of the response information sent by the first interaction device to the plurality of second interaction devices in the broadcast type network; a first sending unit, configured to send the updated request information to the plurality of second interaction devices, so that a second interaction device that has not received the sent response information by the first interaction device sends response information in response to the updated request information, and trigger the first receiving unit to perform the operation of receiving the response information sent by the second interaction device in the broadcast type network in response to the request information of the first interaction device until a termination condition is satisfied.
According to a fourth aspect of embodiments of the present application, there is provided an interaction device applied as a second interaction device in a broadcast type network, comprising: a second receiving unit, configured to receive request information sent by a first interaction device in the broadcast-type network; a determining unit, configured to determine, according to the request information, whether the first interaction device has received response information sent by the second interaction device in response to the request information; a second sending unit, configured to send the response information to the first interaction device in response to the request information when the first interaction device does not receive the response information.
According to a fifth aspect of embodiments of the present application, there is provided a broadcast type network including: at least one first interactive device and at least two second interactive devices; the first interactive device is used for sending request information to the at least two second interactive devices; the second interactive device is used for responding to the request information and sending response information to the first interactive device; the first interactive device is further configured to circularly execute the following processing until a termination condition is met: receiving response information sent by the second interaction devices, updating the request information according to the received response information, and sending the updated request information to the at least two second interaction devices, wherein the updated request information indicates the receiving state of the first interaction device on the response information sent by the at least two second interaction devices; the second interactive device is further configured to cyclically execute the following processing: and after receiving the request information every time, determining whether the first interaction equipment has received the response information sent by the second interaction equipment according to the request information, and if the first interaction equipment does not receive the response information sent by the second interaction equipment, responding to the updated request information and sending the response information to the first interaction equipment.
According to a sixth aspect of the embodiments of the present application, there is provided an information interaction method, including: a first interactive device in a broadcast type network sends request information to a plurality of second interactive devices in the broadcast type network, wherein the second interactive devices comprise one of: the system comprises switching equipment, lighting equipment, security equipment, a storage bin and air conditioning equipment; the plurality of second interaction devices respond to the request information and send working state information to the first interaction device; the first interaction device receives the working state information sent by the second interaction device, updates the request information according to the received working state information, and sends the updated request information to the plurality of second interaction devices, wherein the updated request information indicates the receiving state of the first interaction device on the working state information sent by the plurality of second interaction devices; each second interaction device determines whether the first interaction device has received the working state information sent by the second interaction device according to the received updated request information, and if the first interaction device does not receive the working state information sent by the second interaction device, the second interaction device responds to the updated request information and sends the working state information to the first interaction device; and returning the working state information which is sent by the second interaction equipment and received by the first interaction equipment, updating the request information by the first interaction equipment according to the received working state information, and sending the updated request information to the plurality of second interaction equipment for continuous execution until a termination condition is met.
According to a seventh aspect of embodiments of the present application, there is provided an electronic apparatus, including: the processor, the memory and the communication interface complete mutual communication through the communication bus; the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the information interaction method according to the first aspect or the second aspect.
According to an eighth aspect of embodiments of the present application, there is provided a computer storage medium having a computer program stored thereon, the program, when executed by a processor, implementing the information interaction method according to the first or second aspect.
According to the information interaction scheme applied to the broadcast network provided by the embodiment of the application, the first interaction device sends request information in multiple rounds in a broadcast mode, before each round sends the request information, the request information is updated according to the response information received after the request information is sent in the previous round, so that the updated request information can indicate the receiving state of the first interaction device on the response information sent by each second interaction device, after the updated request information is sent to the second interaction devices, only the second interaction devices which do not send the response information and are not received by the first interaction device can send the response information to the first interaction device again, therefore, as the number of the request information sending rounds is increased, the number of the second interaction devices which send the response information to the first interaction device is gradually reduced, the request information is sent through the limited round, and the first interaction device can obtain all the response information sent by the second interaction devices, thereby, the reliability of information interaction between devices in a broadcast type network can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present application, and other drawings can be obtained by those skilled in the art according to the drawings.
FIG. 1 is a schematic diagram of a broadcast-type network of one embodiment of the present application;
FIG. 2 is an internal block diagram of a first interactive device according to one embodiment of the present application;
FIG. 3 is an internal block diagram of a second interactive device according to an embodiment of the present application;
FIG. 4 is a flowchart of an information interaction method applied to a first interaction device according to an embodiment of the present application;
FIG. 5 is a flowchart of an information interaction method applied to a second interaction device according to an embodiment of the present application;
FIG. 6 is a flow chart of a method of information interaction according to one embodiment of the present application;
fig. 7 is a signaling interaction diagram of an information interaction method according to an embodiment of the present application;
FIG. 8 is a schematic view of an electronic device of an embodiment of the application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application shall fall within the scope of the protection of the embodiments in the present application.
Aiming at the technical problem that when a plurality of second interaction devices in a broadcast type network simultaneously send information to a first interaction device, the first interaction device cannot receive the information sent by each second interaction device, the embodiment of the application provides an information interaction scheme, the first interaction device circularly sends request information to each second interaction device for a plurality of times and receives response information returned by the second interaction device in response to the request information, and after the first interaction device receives the response information sent by the second interaction device each time, the request information sent next time is updated according to the received response information, so that after each second interaction device receives the request information again, the second interaction device which has sent the response information and is received by the first interaction device does not respond to the request information any more, the number of the second interaction devices which return the response information is gradually reduced, and the first interaction device sends the request information through a limited wheel, response information returned by all the second interaction devices can be acquired, so that the reliability of information interaction between the interaction devices in the broadcast network can be improved.
The embodiment of the application can be applied to a broadcast type network. Broadcast type networks typically comprise a single communication channel, shared by all devices in the network, i.e. a plurality of devices are linked to different branch points on a communication line, and messages sent by any one device are received by other devices. The broadcast type network transmits data or signaling in a broadcast manner. The broadcast type network includes a bluetooth network, a ZigBee (ZigBee) network, a WiFi network, an infrared network, a Near Field Communication (NFC) network, and the like.
Devices in a broadcast type network transmit information to other devices in a broadcast manner, which is a one-to-many wireless communication manner. The broadcast type network may be classified into a one-to-many network and a wireless mesh network (wireless mesh network) according to the manner in which devices broadcast information. A one-to-many network is a device that communicates directly with multiple devices and sends information to be sent to the devices with which it can communicate directly. A wireless mesh network, also known as a multi-hop (multi-hop) network, in which each device can receive and transmit signals, each device can communicate directly with one or more devices, and when data is transmitted to a device that is not its destination, the device transmits the received data to one or more devices that can communicate directly with it until the data packet reaches the destination. The information interaction scheme provided by the embodiment of the application is suitable for both the traditional one-to-many network and the wireless mesh network.
Bluetooth is an open global specification for wireless data and voice communications, and is a special short-range wireless technology connection that establishes a communication environment for fixed and mobile devices based on a low-cost short-range wireless connection. Invalid information interaction can be carried out among the mobile phone, the notebook computer, the tablet personal computer, the intelligent loudspeaker box, the Bluetooth earphone, the intelligent watch and various intelligent hardware through Bluetooth. In the smart home field, the intelligent hardware may include intelligent lighting devices, intelligent security devices, intelligent switching devices, intelligent refrigerators, intelligent air conditioners, and the like. In the field of intelligent factories, intelligent hardware can include intelligent storage bins, intelligent carrier vehicles and the like.
The Bluetooth network is used as a small-range wireless connection network, and can realize low-cost and low-power-consumption information interaction between devices. The Bluetooth network can be applied to scenes of the Internet of things such as building automation, intelligent security, intelligent home and intelligent logistics. A typical bluetooth network is a bluetooth mesh network, i.e. a wireless mesh network implemented by bluetooth technology. In the embodiment of the present application, an information interaction method is described by taking a bluetooth network as an example, but the embodiment of the present application does not limit a specific form of a broadcast type network, and reference may be made to the description in the embodiment of the present application for information interaction between devices in other forms of broadcast type networks.
Broadcast type network
Fig. 1 is a schematic diagram illustrating a broadcast type network suitable for an information interaction method according to an embodiment of the present application. As shown in fig. 1, the broadcast type network includes: at least one first interactive device 10 and at least two second interactive devices 20. The first interactive device 10 may transmit information to the second interactive devices 20 in a broadcast form, and each second interactive device 20 may also transmit information to the first interactive device 10.
Only one first interactive device 10 is shown in the broadcast type network shown in fig. 1, in other embodiments, the number of the first interactive devices 10 may be multiple, each first interactive device 10 may send information to each second interactive device 20, and each second interactive device 20 may also send information to each first interactive device 10. In addition, the first interactive devices 10 and the second interactive devices 20 can send information to each other.
In some embodiments, the first interaction device 10 may be a management device in a broadcast type network, which may manage the second interaction device 20. For example, the first interactive device 10 may acquire the state of the second interactive device 20, and may also control the operating state of the second interactive device 20. The first interaction device 10 may comprise any one or more user devices adapted to send and receive information via a broadcast type network and to manage the second interaction device 20. For example, the second interaction device 20 may include a mobile device, a tablet computer, a laptop computer, a desktop computer, a wearable computer, a game console, a media player, a vehicle entertainment system, and/or any other suitable type of user device.
In some embodiments, the first interaction device 10 and the second interaction device 20 have the same functional hardware, that is, each device in the broadcast type network can broadcast information to other devices, and in different application scenarios, the device in the broadcast type network can be used as both the first interaction device 10 and the second interaction device 20. For example, a device in a broadcast type network may broadcast information to other devices as the first interaction device 10 in some scenarios, and may receive information broadcast by the first interaction device 10 as the second interaction device 20 in other scenarios.
In the embodiment of the present application, the first interaction device 10 sends the request information to the second interaction devices 20 in a broadcast manner, so as to obtain the response information returned by each second interaction device 20 for the request information. After the first interaction device 10 sends the request information to the second interaction devices 20 in a broadcast manner, the second interaction devices 20 send response information to the first interaction device 10 in a relatively concentrated time after receiving the request information, and when the number of the second interaction devices 20 is large, the first interaction device 10 can only receive part of the response information sent by the second interaction devices 20 due to the limitation of the processing performance of the first interaction device 10 and the interference and annihilation between signals sent by different second interaction devices 20.
After receiving the response information sent by the second interaction devices 20, the first interaction device 10 updates the request information, and sends the updated request information to each second interaction device 20 again. After receiving the updated request information, the second interaction device 20 may determine, according to the updated request information, whether the response information sent by the second interaction device is received by the first interaction device 10, if the response information sent by the second interaction device is received by the first interaction device 10, no response information is sent to the first interaction device 10 in response to the request information, and if the response information sent by the second interaction device is not received by the first interaction device 10, the response information is sent to the first interaction device 10 in response to the request information again. The first interactive device 10 and each second interactive device 20 execute the above processes in a circulating manner, the number of the second interactive devices 20 returning response information is gradually reduced, and through a finite round of circulation, the first interactive device 10 can acquire the response information of all the second interactive devices 20, so that the reliability of information interaction between devices in the broadcast network can be improved.
Internal structure of first interaction device
Fig. 2 is a schematic diagram of an interaction device applied to a first interaction device in a broadcast-type network according to an embodiment of the present application, where as shown in fig. 2, the interaction device 10 includes:
a first receiving unit 101, configured to receive response information sent by a second interaction device in response to the request information of the first interaction device in the broadcast type network;
an updating unit 102, configured to update request information according to the received response information, where the updated request information indicates a receiving state of the response information sent by the first interaction device to the plurality of second interaction devices in the broadcast type network;
a first sending unit 103, configured to send the updated request information to a plurality of second interaction devices, so that the second interaction devices whose sent response information is not received by the first interaction device send response information in response to the updated request information, and trigger the first receiving unit to perform an operation of receiving the response information sent by the second interaction device in response to the request information of the first interaction device in the broadcast type network until a termination condition is satisfied.
In this embodiment, after the first receiving unit 101 receives response information sent by the second interaction device, the updating unit 102 updates the request information according to the response information received by the first receiving unit 101, so that the updated request information can indicate a receiving state of the response information sent by the first interaction device to each second interaction device, then the first sending unit 103 sends the updated request information to the second interaction device, only the second interaction device that does not send the response information and is not received by the first receiving unit 101 will send the response information again, the first receiving unit 101, the updating unit 102, and the first sending unit 103 perform multiple rounds of operations according to the above method, as the number of operation rounds increases, the number of the second interaction devices that send the response information to the first interaction device gradually decreases, and by sending the request information through the limited round, the first interaction device can acquire all the response information sent by the second interaction devices, thereby, the reliability of information interaction between devices in a broadcast type network can be improved.
It should be noted that, the operation of each unit in the first interaction device 10 in the information interaction process will be described in detail in the following information interaction method embodiment, and specifically, reference may be made to the description in the following information interaction method embodiment.
Internal structure of second interactive device
Fig. 3 is a schematic diagram of an interaction device applied to a second interaction device in a broadcast-type network according to an embodiment of the present application, where as shown in fig. 3, the interaction device 20 includes:
a second receiving unit 201, configured to receive request information sent by a first interaction device in a broadcast type network;
a determining unit 202, configured to determine, according to the request information, whether the first interaction device has received response information sent by the second interaction device in response to the request information;
a second sending unit 203, configured to send response information to the first interaction device in response to the request information when the first interaction device does not receive the response information.
In this embodiment of the application, after the second receiving unit 201 receives the request information sent by the first interaction device, the determining unit 202 determines whether the first interaction device has received the response information sent by the second sending unit 203 according to the request information, if the determining unit 202 determines that the first interaction device has received the response information sent by the second sending unit 203, the response information is no longer sent to the first interaction device in response to the request information received by the second receiving unit 201, and if the determining unit 202 determines that the first interaction device has not received the response information sent by the second sending unit 203, the second sending unit 203 sends the response information to the first interaction device in response to the request information received by the second receiving unit 201. When the first interactive device sends request information to the plurality of second interactive devices, the first interactive device sends the request information in a broadcasting mode in a multi-round mode, each second interactive device sends response information to the first interactive device in response to the request information, and the second interactive devices, which send the response information and are received by the first interactive device, no longer send the response information in response to the request information, so that the second interactive devices sending the response information to the first interactive device gradually decrease along with the increase of the number of rounds of sending the request information by the first interactive device, and the first interactive device can obtain the response information sent by all the second interactive devices by sending the request information in a limited round, so that the reliability of information interaction among the devices in the broadcasting type network can be improved.
It should be noted that, the operation of each unit in the second interaction device 20 in the information interaction process will be described in detail in the following information interaction method embodiment, and specifically, reference may be made to the description in the following information interaction method embodiment.
Information interaction method applied to first interaction equipment
Based on the broadcast type network, the embodiment of the present application provides an information interaction method, which is applied to a first interaction device in the broadcast type network. Fig. 4 is a schematic flowchart of an information interaction method applied to a first interaction device according to an embodiment of the present application, and as shown in fig. 4, the information interaction method includes the following steps:
step 401, receiving response information sent by the second interactive device in response to the request information of the first interactive device in the broadcast type network.
The first interaction device and the second interaction device are both devices in a broadcast type network, and in order to acquire the working state of each second interaction device or control each second interaction device, the first interaction device sends request information to each second interaction device in a broadcast mode so as to acquire response information sent by each second interaction device. For different purposes of sending the request information by the first interaction device, the response information returned by the second interaction device includes different contents, for example, the response information may indicate a working state of the corresponding second interaction device, or indicate an execution result of the corresponding second interaction device on the control instruction, and the like.
And after the first interactive equipment sends the request information to each second interactive equipment in a broadcasting mode, receiving response information sent by each second interactive equipment in response to the request information. However, since each second interactive device transmits response information to the first interactive device in a relatively concentrated time, the first interactive device can only receive part of the response information transmitted by the second interactive device due to the limitation of the performance of the first interactive device and the interference and annihilation of the signal transmitted by each second interactive device. For example, 80 second interaction devices send response information to the first interaction device in response to the request information, and the first interaction device receives the response information sent by 20 second interaction devices.
Step 402, updating the request information according to the received response information.
After receiving the response information sent by the second interactive device, the first interactive device determines whether all the response information sent by the second interactive device has been received. If the first interactive device receives part of the response information sent by the second interactive device, the first interactive device updates the request information, so that the updated request information can indicate the receiving state of the first interactive device for the response information sent by each second interactive device, that is, the first interactive device can determine which response information sent by the second interactive device has not been received by the first interactive device through the request information.
For example, the broadcast type network includes 1 first interaction device and 100 second interaction devices, the first interaction device receives response information sent by 20 second interaction devices after the current round of request information transmission, and the first interaction device receives response information sent by 40 second interaction devices after each previous round of request information transmission, so that after the current round of request information transmission, the first interaction device receives response information sent by 60 second interaction devices in total, and response information sent by 40 second interaction devices is not received by the first interaction device. After the current round of request information is sent, the first interaction device updates the request information according to the received response information, so that the updated request information can indicate the receiving state of the first interaction device on the response information sent by each second interaction device.
It should be noted that, when the read request information is updated, only the part of the update request information that indicates the receiving status of the response information sent by the first interaction device to each second interaction device does not change the function of the request information itself. For example, the request information is used to obtain the operation state information of the second interaction device, and the updated request information is still used to obtain the operation state information of the second interaction device.
And step 403, sending the updated request information to each second interactive device.
And after updating the request information, the first interactive equipment sends the updated request information to each second interactive equipment in a rebroadcasting mode. After receiving the updated request information, the second interaction device determines whether response information sent by the second interaction device in response to the request information is received by the first interaction device according to the request information, if the first interaction device has received the response information sent by the first interaction device, the second interaction device does not respond to the received request information any more, namely, the second interaction device does not send the response information to the first interaction device, and if the first interaction device does not receive the response information sent by the first interaction device, the second interaction device sends the response information to the first interaction device in response to the received request information.
For example, after 100 second interaction devices receive the updated request information, 60 of the second interaction devices determine, according to the request information, that the response information sent by the second interaction devices has been received by the first interaction device, and another 40 second interaction devices determine, according to the request information, that the response information sent by the second interaction devices has not been received by the first interaction device, so that the 40 second interaction devices that do not receive the response information sent by the first interaction device will again respond to the request information and send the response information to the first interaction device.
After the updated request information is sent to each second interaction device, the second interaction device, which has not sent the response information received by the first interaction device, will send the response information to the first interaction device again in response to the request information, so the execution is continued by returning to the step 401 until the termination condition is satisfied. The termination condition may be that the first interaction device acquires response information sent by all the second interaction devices, or that the number of rounds of sending the request information by the first interaction device reaches a preset round threshold.
When the termination condition is that the first interaction device acquires all response information sent by the second interaction device, the first interaction device completes one round of request information sending, and after receiving the response information, the first interaction device determines whether all response information sent by the second interaction device has been received, if all response information sent by the second interaction device has been received, the information interaction method is ended, if all response information sent by the second interaction device has not been received, the first interaction device updates the request information again, sends the updated request information, and circularly executes the process until all response information sent by the second interaction device is acquired.
When the termination condition is that the number of rounds of request information sending of the first interactive device reaches a preset round number threshold, the first interactive device finishes one round of request information sending, and after receiving the response information, the first interactive device judges whether the number of rounds of request information sending reaches the preset round number threshold, if the number of rounds of request information sending reaches the preset round number threshold, the request information is updated, the information interaction method is ended, if the number of rounds of request information sending does not reach the preset round number threshold, the request information is updated according to the received response information, the updated request information is sent, and the process is executed in a circulating mode until the number of rounds of request information sending reaches the preset round number threshold. The condition that the number of rounds of sending the request information by the first interactive device reaches the threshold of the number of rounds is taken as a termination condition, so that the situation that the first interactive device continuously sends the request information due to the fact that the second interactive device cannot receive the request information or cannot send the response information can be avoided, and the first interactive device is guaranteed to have low power consumption and long service life.
In some embodiments, the termination condition may include that the first interaction device acquires response information sent by all the second interaction devices, and the number of rounds of sending the request information by the first interaction device reaches a preset round threshold. After the first interactive device completes one round of request information transmission and receives the response information, whether the response information transmitted by all the second interactive devices is received or not is judged, if all the response messages sent by the second interaction equipment have been received, the message interaction method is ended, if all the response messages sent by the second interaction equipment have not been received, judging whether the number of rounds of sending the request information reaches a preset round number threshold value or not, if so, the information interaction method is ended, if the preset round number threshold value is not reached, the request information is updated according to the received response information, and sending the updated request information, and circularly executing the process until the first interactive device acquires all response information sent by the second interactive device, or the number of rounds of sending the request information by the first interactive device reaches a preset round threshold.
In the embodiment of the application, a first interactive device sends request information in multiple rounds in a broadcasting manner, before each round of sending the request information, the request information is updated according to response information received after the request information is sent in the previous round, so that the updated request information can indicate the receiving state of the first interactive device on the response information sent by each second interactive device, after the updated request information is sent to the second interactive device, only the second interactive device which does not receive the sent response information by the first interactive device can send the response information to the first interactive device again, therefore, as the number of rounds of sending the request information increases, the number of the second interactive devices which send the response information to the first interactive device gradually decreases, and the first interactive device can obtain all the response information sent by the second interactive device by sending the request information in limited rounds, thereby, the reliability of information interaction between devices in a broadcast type network can be improved.
In a possible implementation manner, the request information includes a multicast address (groupaddress) and a control instruction, the multicast address identifies each second interaction device that needs to perform information interaction, and each second interaction device located in the multicast address may receive the request information sent by the first interaction device. The control instruction indicates a type of controlling the second interactive device, such as acquiring a switch state of the second interactive device.
In a possible implementation manner, when the request information is updated according to the received response information, the second interaction devices that have received the response information sent by the first interaction device in each second interaction device may be determined according to the received response information, and then the state identification field in the request information is updated according to the second interaction devices that have received the response information sent by the first interaction device, so that the updated state identification field may identify at least one of the following two types of information:
(i) the second interaction equipment which receives the response information sent by the second interaction equipment by the first interaction equipment;
(ii) and the response information sent by each second interaction device is not received by the second interaction device received by the first interaction device.
It should be understood that, when determining, according to the received response information, that the sent response information has been received by the first interaction device by the second interaction device, the received response information refers to all response information received by the first interaction device for the request information. For example, the first interactive device has performed N rounds of request information transmission, and when the request information to be transmitted in the (N + 1) th round is updated, the first interactive device transmits the M received after the first N rounds of request information transmissionNA response message, M, determining that the sent response message has been received by the first interactive deviceNThe second interactive equipment further updates the state identification field in the request information, so that the updated state identification field identifies the MNThe response information sent by the second interactive equipment is received by the first interactive equipment.
In this embodiment of the present application, it is determined, according to the received response information, that the sent response information has been received by the second interaction device of the first interaction device, and then, according to the sent response information having been received by the second interaction device of the first interaction device, the status identification field in the request information is updated, so that the status identification field can indicate the second interaction device of which the corresponding response information has been received by the first interaction device, or the second interaction device of which the corresponding response information has not been received by the first interaction device. After the updated request information is sent to each second interaction device, the second interaction device may determine whether the response information sent by the second interaction device has been received by the first interaction device according to the status identification field in the request information, so that only the second interaction device whose response information has not been received by the first interaction device responds to the request information, and the second interaction device whose response information has been received by the first interaction device does not respond to the request information any more, thereby gradually reducing the number of the second interaction devices sending the response information to the first interaction device, and achieving the purpose of gradually acquiring all the response information sent by the second interaction device.
When the status identification field identifies the second interaction devices that have received the response information sent by the second interaction devices, after receiving the request information, each second interaction device may determine whether the status identification field identifies that the response information sent by the second interaction device has been received by the first interaction device, if the status identification field identifies that the response information sent by the second interaction device has been received by the first interaction device, the second interaction node no longer responds to the request information, that is, no response information is sent to the first interaction device, and if the status identification field does not identify that the response information sent by the second interaction device has been received by the first interaction device, the second interaction device responds to the request information and sends the response information to the first interaction device.
When the status identification field identifies the second interaction device that the response information sent by each second interaction device is not received by the first interaction device, after each second interaction device receives the request information, it may be determined whether the status identification field identifies that the response information sent by the second interaction device is not received by the first interaction device, if the status identification field identifies that the response information sent by the second interaction device is not received by the first interaction device, the second interaction device responds to the request information and sends the response information to the first interaction device, and if the status identification field does not identify that the response information sent by the second interaction device is not received by the first interaction device, the second interaction device does not respond to the request information any more, that is, does not send the response information to the first interaction device any more.
In a possible implementation manner, the state identification field in the request information may be implemented by a Bit-Map, and the Bit-Map may mark a value corresponding to a certain element by using a Bit. For example, if the broadcast network includes 128 second interaction devices, a Bit-Map including 128 bits may be used as a state identification field in the request information, where each Bit in the Bit-Map corresponds to one second interaction device, a Bit value is 1, which indicates that the first interaction device has received the response information sent by the second interaction device corresponding to the Bit, and a Bit value is 0, which indicates that the first interaction device has not received the response information sent by the second interaction device corresponding to the Bit.
The Bit-Map is used as a state identification field in the request information, and the Bit-Map can identify the receiving state of the response information sent by the first interactive device to the second interactive device through a Bit to ensure that the state identification field has smaller data volume and further ensure that the request information also has smaller data volume, so that the speed and the success rate of transmitting the request information between the first interactive device and the second interactive device are improved, and the reliability of information interaction between the devices in the broadcast network is further improved.
In one possible implementation, the state identification field is located in the header of the request information.
The request information includes a control instruction, a multicast address, and a status identification field, and the status identification field is placed in the header of the request information, and the structure of the request information may be [ (status identification field), (multicast address), (control instruction) ], or [ (status identification field), (control instruction), (multicast address) ]. The state identification field is used for indicating the state of the first interactive device for receiving the response information sent by each second interactive device, the multicast address is used for identifying the second interactive device for receiving the request information, and the control instruction is used for indicating the type of controlling the second interactive device.
In the embodiment of the application, the status identification field is placed at the head of the request message, after the request message is received by the second interaction device, the second interaction device first reads the status identification field in the request message to determine whether response message needs to be sent to the first interaction device in response to the request message, and if the second interaction device does not need to respond to the request message, the second interaction device does not need to continue reading the control instruction in the request message, so that the response speed of the second interaction device can be increased, and the power consumption of the second interaction device can be reduced.
In a possible implementation manner, before the first interaction device first receives response information sent by each second interaction device in response to the request information, the first interaction device sends the request information not including the status identification field to each second interaction device.
For the same request information, when the first interaction device sends the request information to each second interaction device for the first time, because the first interaction device does not yet receive the response information sent by any second interaction device in response to the request information, that is, all the second interaction devices need to return the response information in response to the request information, the request information does not need to identify which response information sent by the second interaction devices has been received by the first interaction device, thereby reducing the data volume of the request information sent by the first interaction device, improving the transmission speed of the request information, improving the success rate of the second interaction devices receiving the request information, and further improving the reliability of information interaction between devices in the broadcast type network.
Information interaction method applied to second interaction equipment
Based on the broadcast type network, the embodiment of the present application provides an information interaction method, which is applied to a second interaction device in the broadcast type network. Fig. 5 is a schematic flowchart of an information interaction method applied to a second interaction device according to an embodiment of the present application, and as shown in fig. 5, the information interaction method includes the following steps:
step 501, receiving request information sent by a first interactive device in a broadcast type network.
The first interactive device and the second interactive device are both devices in a broadcast type network, the first interactive device sends request information in a broadcast mode to control the second interactive device, and the second interactive device receives the request information. The request information sent by the first interactive device includes a multicast address, the multicast address indicates a plurality of second interactive devices to be controlled by the first interactive device, and when one second interactive device is identified in the multicast address included in the request information, the second interactive device receives the request information.
In some embodiments, the second interaction device may communicate with the first interaction device through a conventional one-to-many network, that is, the second interaction device directly receives the request information sent by the first interaction device. The second interaction device may further receive request information from the first interaction device through the wireless mesh network, that is, the second interaction device receives the request information sent by the first interaction device through one or more intermediate devices between the second interaction device and the first interaction device, where the intermediate devices may be other second interaction devices, or other devices with information transceiving functions in a broadcast type network except the first interaction device and the second interaction device.
Step 502, determining whether the first interactive device has received response information sent in response to the request information according to the request information.
After receiving the request information sent by the first interactive device, the second interactive device determines whether the first interactive device has received response information sent in response to the request information. If it is determined that the first interactive device has received the response information sent by the second interactive device in response to the request information, the second interactive device no longer responds to the received request information, i.e., no longer sends the response information to the first interactive device. If it is determined that the first interaction device does not receive the response information sent by the second interaction device in response to the request information, the response information needs to be sent to the first interaction device in response to the received request information, and step 303 is executed accordingly.
The first interactive device may send the request information multiple times, and the request information identifies whether the first interactive device has received the response information sent by the second interactive device in response to the request information, so that the second interactive device may receive the request information sent by the first interactive device multiple times. If response information sent by the second interaction device to the first interaction device in response to the request information before is received by the first interaction device, the information that the response information sent by the second interaction device is received by the first interaction device is identified in the request information, so that whether the response information sent by the second interaction device is received by the first interaction device can be determined according to the request information.
Step 503, if the first interaction device does not receive the response information, sending the response information to the first interaction device in response to the request information.
And determining, according to the request information, that the first interaction device sends response information to the second interaction device in response to the request information, to indicate that the second interaction device has not sent response information to the first interaction device in response to the request information, or that the second interaction device sends response information to the first interaction device in response to the request information, where the second interaction device needs to send response information to the first interaction device in response to the request information.
The second interactive device responds to the request information to obtain response information and sends the obtained response information to the first interactive device. For example, the first interactive device sends the request information to acquire the on/off state of the second interactive device, and the second interactive device acquires the on/off state information according to the request information and sends the on/off state information as the response information to the first interactive device.
In this embodiment of the application, after receiving request information sent by a first interaction device, a second interaction device determines, according to the request information, whether the first interaction device has received response information sent by the second interaction device in response to the request information, if the first interaction device has received the response information sent by the second interaction device, the second interaction device no longer sends the response information to the first interaction device in response to the received request information, and if the first interaction device has not received the response information sent by the second interaction device, the second interaction device sends the response information to the first interaction device in response to the received request information. Therefore, when the first interaction device sends request information to the plurality of second interaction devices to obtain response information sent by the second interaction devices, the first interaction device sends the request information in a broadcasting mode in a multi-turn mode, each second interaction device sends the response information to the first interaction device in response to the request information, and the second interaction devices, which receive the sent response information by the first interaction device, do not send the response information in response to the request information any more, so that the second interaction devices sending the response information to the first interaction device gradually decrease with the increase of the number of turns of sending the request information by the first interaction device, and the first interaction device can obtain the response information sent by all the second interaction devices by sending the request information in a limited turn, so that the reliability of information interaction among the devices in the broadcasting type network can be improved.
In a possible implementation manner, when determining whether the first interaction device receives response information sent by the second interaction device in response to the request information according to the request information, it may determine whether the response information of the second interaction device in response to the request information has been received by the first interaction device according to a status identification field in the request information. The status identification field in the request message can identify at least one of the following two types of information:
(i) the second interaction equipment which receives the response information sent by the second interaction equipment by the first interaction equipment;
(ii) and the response information sent by each second interaction device is not received by the second interaction device received by the first interaction device.
When the status identification field identifies the second interaction device that the response information sent by each second interaction device has been received by the first interaction device, after receiving the request information, the second interaction device determines whether the status identification field identifies that the response information sent by the second interaction device has been received by the first interaction device, if the status identification field identifies that the response information sent by the second interaction device has been received by the first interaction device, the second interaction node does not respond to the request information any more, that is, does not send the response information to the first interaction device, and if the status identification field does not identify that the response information sent by the second interaction device has been received by the first interaction device, the second interaction device responds to the request information and sends the response information to the first interaction device.
When the status identification field identifies a second interactive device that does not receive the response information sent by the second interactive device, after receiving the request information, the second interactive device may determine whether the status identification field identifies that the response information sent by the second interactive device is not received by the first interactive device, if the status identification field identifies that the response information sent by the second interactive device is not received by the first interactive device, the second interactive device responds to the request information and sends the response information to the first interactive device, and if the status identification field does not identify that the response information sent by the second interactive device is not received by the first interactive device, the second interactive device does not respond to the request information any more, that is, does not send the response information to the first interactive device any more.
In the embodiment of the application, the second interaction device determines whether the response information sent by the second interaction device in response to the request information is received by the first interaction device according to the state identification field in the request information, without the need that the first interaction device separately sends the indication information for representing the receiving state of the response information to each second interaction device, the power consumption of the first interaction device and the second interaction device is reduced, and the second interactive device can accurately determine whether the first interactive device has received the response information sent by the first interactive device according to the state identification information, after the first interactive device receives the response information sent by the first interactive device, the first interactive device does not send the response information any more, so that the first interactive device can acquire the response information sent by all the second interactive devices after the request information with fewer rounds is sent, and the efficiency of information interaction among the devices in the broadcast network is improved.
In one possible implementation, the state identification field is located in the header of the request information. And if the second interactive device does not need to respond to the request information, other contents after the request information do not need to be continuously read, so that the response speed of the second interactive device can be improved, and the power consumption of the second interactive device can be reduced.
In some embodiments, the request information may include a control instruction, a multicast address, and a status identification field for indicating a status of the first interaction device receiving the response information sent by each second interaction device. The multicast address is used for identifying the second interactive device receiving the request information, and the second interactive device with the address located in the multicast address receives the request information sent by the first interactive device. The control instruction is used to indicate a type of controlling the second interactive device, such as controlling the second interactive device to return switch state information. The request information including the control instruction, the multicast address, and the status identification field may be in the form of [ (status identification field), (multicast address), (control instruction) ], or [ (status identification field), (control instruction), (multicast address) ].
In some embodiments, the status identification field in the request message may be implemented by a Bit-Map, and the Bit-Map may mark a value corresponding to an element by one Bit. For example, if the broadcast network includes 128 second interaction devices, a Bit-Map including 128 bits may be used as a state identification field in the request information, where each Bit in the Bit-Map corresponds to one second interaction device, a Bit value is 1, which indicates that the first interaction device has received the response information sent by the second interaction device corresponding to the Bit, and a Bit value is 0, which indicates that the first interaction device has not received the response information sent by the second interaction device corresponding to the Bit.
The Bit-Map is used as a state identification field in the request information, and the Bit-Map can identify the receiving state of the response information sent by the first interactive device to the second interactive device through a Bit to ensure that the state identification field has smaller data volume and further ensure that the request information also has smaller data volume, so that the speed and the success rate of transmitting the request information between the first interactive device and the second interactive device are improved, and the reliability of information interaction between the devices in the broadcast network is further improved.
In one possible implementation manner, when determining whether the first interaction device has received response information sent by the second interaction device in response to the request information according to the request information, if the request information does not include the state identification state, it is determined that the first interaction device is receiving response information sent by the second interaction device in response to the request information.
In the embodiment of the application, for the same request information, when the first interaction device sends the request information to each second interaction device for the first time, because the first interaction device does not yet receive the response information sent by any second interaction device in response to the request information, and all the second interaction devices need to send the response information in response to the request information, the request information does not need to identify which response information sent by the second interaction devices has been received by the first interaction device, so that the request information sent by the first interaction device for the first time may not include a state identification field, so that the request information has a smaller data volume, the speed at which the second interaction device receives the request information is increased, and the efficiency of information interaction between devices in the broadcast type network is increased.
Information interaction method
Based on the broadcast type network, fig. 6 is a flowchart of an information interaction method provided in an embodiment of the present application. As shown in fig. 6, the information interaction method includes the following steps:
step 601, the first interactive device sends request information to a plurality of second interactive devices.
The broadcast type network comprises a first interaction device and a plurality of second interaction devices, wherein the first interaction device is used for controlling the second interaction devices. The first interactive device sends request information to each second interactive device through broadcasting so as to obtain response information returned by each second interactive device. The second interaction device can be a switch device, a lighting device, a security device, a storage bin, an air conditioner or the like.
And when the second interaction equipment is switch equipment, the corresponding application scene is building automation control. The first interaction device can acquire the working state information of each switch device by sending request information to each switch device so as to detect the working states of a plurality of electric devices in the building.
When the second interactive device is a lighting device, the corresponding application scene is intelligent control of the building or the household lighting device. The first interactive device can acquire the working state information of each lighting device by sending request information to each lighting device so as to determine the on or off of a plurality of lighting devices in a building or a household.
When the second interactive device is a security device, the corresponding application scene is the automatic point inspection of the state of the security device in the building. The first interaction device can acquire working state information of security devices such as fire extinguishers, alarm lamps, fire doors and emergency lamps by sending request information to the security devices, and accordingly point inspection of the security devices is achieved.
When the second interaction device is a storage bin, the corresponding application scene is storage logistics. The first interaction device can acquire working state information of each storage bin by sending request information to each storage bin, and further determine whether each storage bin is in an occupied state, so as to determine whether the storage bin can store goods or not, or determine whether the goods in the storage bin are taken away by a user or not.
And when the second interaction device is an air conditioner, the corresponding application scene is the automatic control of the building air conditioner. The second interaction device can acquire working state information of the air conditioners such as switching devices, set wind speed and set temperature by sending request information to the air conditioners, and further monitoring and controlling the running state of the air conditioners in the building.
And step 602, each second interactive device responds to the request information and sends working state information to the first interactive device.
After the first interactive device sends request information to the second interactive device through broadcasting, the second interactive device receiving the request information responds to the request information and sends working state information to the first interactive device.
Step 603, the first interaction device receives the working state information sent by the second interaction device, updates the request information according to the received working state information, and sends the updated request information to each second interaction device.
Each second interaction device sends the working state information to the first interaction device in response to the request information, but the first interaction device may only receive part of the working state information returned by the second interaction device. The first interaction device updates the request information according to the received working state information, so that the updated request information can indicate the receiving state of the first interaction device for the working state information sent by each second interaction device, even if the updated request information can indicate which working state information sent by the second interaction devices is received by the first interaction device and which working state information sent by the second interaction devices is not received by the first interaction device.
And after the first interactive equipment updates the request information, the updated request information is sent to each second interactive equipment in a broadcasting mode.
Step 604, the second interaction device receives the updated request information, determines whether the first interaction device has received the working state information sent by the first interaction device, and sends the working state information to the first interaction device in response to the updated request information if the first interaction device has not received the working state information sent by the first interaction device.
Since the updated request information can indicate which of the working state information sent by the second interaction device has been received by the first interaction device, the second interaction device can determine whether the working state information sent by the second interaction device has been received by the first interaction device according to the updated request information. And if the second interactive equipment determines that the working state information sent by the second interactive equipment is not received by the first interactive equipment, the second interactive equipment responds to the request information and sends the working state information to the first interactive equipment. If a second interactive device determines that the working state information sent by the second interactive device is received by the first interactive device, the second interactive device does not respond to the request information any more, namely does not send the working state information to the first interactive device any more.
The above steps 603 and 604 are executed circularly until the termination condition is satisfied. The termination condition is that the first interaction device acquires all the working state information sent by the second interaction device, or the frequency of sending the request information by the first interaction device reaches a preset frequency threshold.
In the embodiment of the application, a first interactive device sends request information in multiple rounds in a broadcasting manner, before each round of sending the request information, the request information is updated according to the working state information received after the request information is sent in the previous round, so that the updated request information can indicate the receiving state of the working state information sent by the first interactive device to each second interactive device, after the updated request information is sent to the second interactive device, only a second interactive device which does not receive the sent working state information by the first interactive device can send the working state information to the first interactive device again, so that the second interactive device which sends the working state information to the first interactive device can gradually decrease along with the increase of the number of rounds of sending the request information, and the first interactive device can obtain the working state information sent by all the second interactive devices by sending the request information in limited rounds, thereby, the reliability of information interaction between devices in a broadcast type network can be improved.
The information interaction method provided by the embodiment of the present application is further described in detail below with reference to a specific example. Fig. 7 shows a signaling interaction diagram of an information interaction method, and as shown in fig. 7, a broadcast type network includes 1 central device and 128 lamps, and the central device transmits request information to the lamps in a broadcast manner to determine the on/off states of the lamps.
In step S1, the center device transmits request information (C000, Get oneff Status) to each of the lamps 1 to 128 by broadcasting. C000 in the request information (C000, Get ONOFF Status) is a multicast address in which lamp 1 to lamp 128 are identified so that lamp 1 to lamp 128 can receive the request information. The Get ONOFF Status in the request message (C000, Get ONOFF Status) is a control instruction indicating the on-off state of the acquisition lamp.
In step S2, lamp 1 to lamp 128 transmit the switching state information to the center device according to the received request information (C000, Get ONOFF Status), where the switching state information transmitted by lamp 1 is (lamp 1, ON) and the switching state information transmitted by lamp 2 is (lamp 2, ON). In this step, the switching state information transmitted from lamp 1 to lamp 20 is received by the center device, and the switching state information transmitted from lamp 21 to lamp 128 is not received by the center device.
In step S3, the center device sends updated request information to the lamps 1 to 128 by broadcast, where the updated request information includes a status identification field, and the status identification field indicates which lamps have received the switching status information. For example, when the central device has received the switching state information of the lamps 1 to 20, but has not received the switching state information of the lamps 21 to 128, the request information is (0x000000000000000000000000000FFFFF, C000, Get ONOFF Status), 0x000000000000000000000000000FFFFF in the request information is the state identification information, the state identification information is implemented by the BitMap, 0x000000000000000000000000000FFFFF is a hexadecimal number, the bit corresponding to the lamps 1 to 20 in the BitMap is 1, the central device is indicated to have received the switching state information of the lamps 1 to 20, the bit corresponding to the lamps 21 to 128 in the BitMap is 0, and the central device is indicated to have not received the switching state information of the lamps 21 to 128.
In step S4, after lamp 1 to lamp 128 receive the updated request information, each lamp determines whether the switch state information sent before has been received by the central device according to the state identification field in the request information, and if the switch state information sent by the lamp has been received by the central device, the switch state information is not returned, and if the switch state information sent by the lamp has not been received by the central device, the switch state information is returned again. For example, the lamp 1 to the lamp 20 checks that the bit corresponding to the BitMap is 1, and indicates that the center device has received the returned switch state information, so that the switch state information is not returned, and the lamp 21 to the lamp 128 checks that the bit corresponding to the BitMap is 0, and indicates that the center device has not received the returned switch state information, so that the switch state information is returned.
Steps S3 to S4 are executed in a loop until the center device acquires the switch state information returned by lamps 1 to 128.
Electronic device
Fig. 8 is a schematic block diagram of an electronic device according to an embodiment of the present application, and a specific embodiment of the present application does not limit a specific implementation of the electronic device. As shown in fig. 8, the electronic device may include: a processor (processor)802, a Communications Interface 804, a memory 806, and a communication bus 808. Wherein:
the processor 802, communication interface 804, and memory 806 communicate with one another via a communication bus 808.
A communication interface 804 for communicating with other electronic devices or servers.
The processor 802 is configured to execute the program 810, and may specifically execute the relevant steps in the information interaction method embodiment applied to the first interaction device, or execute the relevant steps in the information interaction method embodiment applied to the second interaction device.
In particular, the program 810 may include program code comprising computer operating instructions.
The processor 802 may be a CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present application. The intelligent device comprises one or more processors which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
The memory 806 stores a program 810. The memory 806 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 810 may be specifically configured to cause the processor 802 to execute the information interaction method in any of the foregoing embodiments.
For specific implementation of each step in the program 810, reference may be made to corresponding steps and corresponding descriptions in units in any of the foregoing information interaction method embodiments, which are not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, and are not described herein again.
Through the electronic device of the embodiment of the application, the first interactive device sends request information in multiple rounds in a broadcasting mode, before each round of sending the request information, the request information is updated according to the response information received after the request information is sent in the previous round, so that the updated request information can indicate the receiving state of the first interactive device for the response information sent by each second interactive device, after the updated request information is sent to the second interactive device, only the second interactive device which does not send the response information and is not received by the first interactive device can send the response information to the first interactive device again, therefore, as the number of rounds of sending the request information is increased, the second interactive device which sends the response information to the first interactive device can be gradually reduced, the request information is sent in limited rounds, and the first interactive device can obtain the response information sent by all the second interactive devices, thereby, the reliability of information interaction between devices in a broadcast type network can be improved.
Computer storage medium
The present application also provides a computer-readable storage medium storing instructions for causing a machine to perform a method of information interaction as described herein. Specifically, a system or an apparatus equipped with a storage medium on which software program codes that realize the functions of any of the above-described embodiments are stored may be provided, and a computer (or a CPU or MPU) of the system or the apparatus is caused to read out and execute the program codes stored in the storage medium.
In this case, the program code itself read from the storage medium can realize the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present application.
Examples of the storage medium for supplying the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (e.g., CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW), a magnetic tape, a nonvolatile memory card, and a ROM. Alternatively, the program code may be downloaded from a server computer via a communications network.
Computer program product
Embodiments of the present application further provide a computer program product, which includes computer instructions for instructing a computing device to perform operations corresponding to any of the above method embodiments.
It should be noted that, according to the implementation requirement, each component/step described in the embodiment of the present application may be divided into more components/steps, and two or more components/steps or partial operations of the components/steps may also be combined into a new component/step to achieve the purpose of the embodiment of the present application.
The above-described methods according to embodiments of the present application may be implemented in hardware, firmware, or as software or computer code storable in a recording medium such as a CD ROM, a RAM, a floppy disk, a hard disk, or a magneto-optical disk, or as computer code originally stored in a remote recording medium or a non-transitory machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the methods described herein may be stored in such software processes on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware such as an ASIC or FPGA. It will be appreciated that a computer, processor, microprocessor controller, or programmable hardware includes memory components (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code that, when accessed and executed by a computer, processor, or hardware, implements the methods described herein. Further, when a general-purpose computer accesses code for implementing the methods illustrated herein, execution of the code transforms the general-purpose computer into a special-purpose computer for performing the methods illustrated herein.
Those of ordinary skill in the art will appreciate that the various illustrative elements and method steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the embodiments of the present application.
The above embodiments are only used for illustrating the embodiments of the present application, and not for limiting the embodiments of the present application, and those skilled in the relevant art can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application, so that all equivalent technical solutions also belong to the scope of the embodiments of the present application, and the scope of patent protection of the embodiments of the present application should be defined by the claims.

Claims (14)

1. An information interaction method applied to a first interaction device in a broadcast type network, the information interaction method comprising:
a receiving step: receiving response information sent by a second interactive device in the broadcast type network in response to the request information of the first interactive device;
an updating step: updating the request information according to the received response information, wherein the updated request information indicates the receiving state of the response information sent by the first interactive device to the plurality of second interactive devices in the broadcast type network;
a sending step: sending the updated request information to the plurality of second interaction devices, so that the sent response information is not received by the first interaction device, and the second interaction device responds to the updated request information to send response information;
and returning to the receiving step to continue the execution until a termination condition is met.
2. The information interaction method according to claim 1, wherein the updating the request information according to the received response information includes:
determining, according to the received response information, a second interaction device that has received the response information sent by the first interaction device in the plurality of second interaction devices;
updating the state identification field in the request information according to the second interactive device which receives the sent response information by the first interactive device, so that the state identification field is used for identifying: the second interactive device that the sent response information is not received by the first interactive device, and/or the second interactive device that the sent response information is received by the first interactive device.
3. The information interaction method of claim 2, wherein the state identification field is located at a header of the request information.
4. The information interaction method according to claim 2 or 3, further comprising:
and before response information sent by the second interaction equipment in the broadcast type network in response to the request information of the first interaction equipment is received for the first time, sending the request information without the state identification field to the plurality of second interaction equipment.
5. An information interaction method applied to a second interaction device in a broadcast type network, the information interaction method comprising:
receiving request information sent by first interactive equipment in the broadcast type network;
determining whether the first interactive device has received response information sent by the second interactive device in response to the request information according to the request information;
and if the first interaction equipment does not receive the response information, responding to the request information and sending the response information to the first interaction equipment.
6. The information interaction method of claim 5, wherein the determining, according to the request information, whether the first interaction device has received response information sent by the second interaction device in response to the request information comprises:
determining whether response information sent by the second interaction device in response to the request information is received by the first interaction device according to a state identification field in the request information, wherein the state identification field is used for identifying: the second interaction devices in the broadcast type network, for which the response information sent by the plurality of second interaction devices has not been received by the first interaction device, and/or the second interaction devices in the plurality of second interaction devices, for which the response information sent by the first interaction device has been received by the first interaction device.
7. The information interaction method of claim 6, wherein the state identification field is located at a header of the request information.
8. The information interaction method according to claim 6 or 7, wherein the determining, according to the request information, whether the first interaction device has received response information sent by the second interaction device in response to the request information comprises:
and if the request information does not comprise the state identification field, determining that the first interaction equipment does not receive response information sent by the second interaction equipment in response to the request information.
9. An interactive device applied as a first interactive device in a broadcast type network, comprising:
a first receiving unit, configured to receive response information sent by a second interaction device in response to the request information of the first interaction device in the broadcast type network;
an updating unit, configured to update the request information according to the received response information, where the updated request information indicates a receiving state of the response information sent by the first interaction device to the plurality of second interaction devices in the broadcast type network;
a first sending unit, configured to send the updated request information to the plurality of second interaction devices, so that a second interaction device that has not received the sent response information by the first interaction device sends response information in response to the updated request information, and trigger the first receiving unit to perform the operation of receiving the response information sent by the second interaction device in the broadcast type network in response to the request information of the first interaction device until a termination condition is satisfied.
10. An interactive device applied as a second interactive device in a broadcast type network, comprising:
a second receiving unit, configured to receive request information sent by a first interaction device in the broadcast-type network;
a determining unit, configured to determine, according to the request information, whether the first interaction device has received response information sent by the second interaction device in response to the request information;
a second sending unit, configured to send the response information to the first interaction device in response to the request information when the first interaction device does not receive the response information.
11. A broadcast type network comprising: at least one first interactive device and at least two second interactive devices;
the first interactive device is used for sending request information to the at least two second interactive devices;
the second interactive device is used for responding to the request information and sending response information to the first interactive device;
the first interactive device is further configured to circularly execute the following processing until a termination condition is met: receiving response information sent by the second interaction devices, updating the request information according to the received response information, and sending the updated request information to the at least two second interaction devices, wherein the updated request information indicates the receiving state of the first interaction device on the response information sent by the at least two second interaction devices;
the second interactive device is further configured to cyclically execute the following processing: and after receiving the request information every time, determining whether the first interaction equipment has received the response information sent by the second interaction equipment according to the request information, and if the first interaction equipment does not receive the response information sent by the second interaction equipment, responding to the updated request information and sending the response information to the first interaction equipment.
12. An information interaction method comprises the following steps:
a first interactive device in a broadcast type network sends request information to a plurality of second interactive devices in the broadcast type network, wherein the second interactive devices comprise one of: the system comprises switching equipment, lighting equipment, security equipment, a storage bin and air conditioning equipment;
the plurality of second interaction devices respond to the request information and send working state information to the first interaction device;
the first interaction device receives the working state information sent by the second interaction device, updates the request information according to the received working state information, and sends the updated request information to the plurality of second interaction devices, wherein the updated request information indicates the receiving state of the first interaction device on the working state information sent by the plurality of second interaction devices;
each second interaction device determines whether the first interaction device has received the working state information sent by the second interaction device according to the received updated request information, and if the first interaction device does not receive the working state information sent by the second interaction device, the second interaction device responds to the updated request information and sends the working state information to the first interaction device;
and returning the working state information which is sent by the second interaction equipment and received by the first interaction equipment, updating the request information by the first interaction equipment according to the received working state information, and sending the updated request information to the plurality of second interaction equipment for continuous execution until a termination condition is met.
13. An electronic device, comprising: the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the information interaction method in any one of claims 1-4 or the operation corresponding to the information interaction method in any one of claims 5-8.
14. A computer storage medium having stored thereon a computer program which, when executed by a processor, implements the information interaction method of any one of claims 1-4, or implements the information interaction method of any one of claims 5-8.
CN202210030874.6A 2022-01-12 2022-01-12 Information interaction method, device, broadcast type network, electronic device, and storage medium Pending CN114401490A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210030874.6A CN114401490A (en) 2022-01-12 2022-01-12 Information interaction method, device, broadcast type network, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210030874.6A CN114401490A (en) 2022-01-12 2022-01-12 Information interaction method, device, broadcast type network, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
CN114401490A true CN114401490A (en) 2022-04-26

Family

ID=81230793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210030874.6A Pending CN114401490A (en) 2022-01-12 2022-01-12 Information interaction method, device, broadcast type network, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN114401490A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010213162A (en) * 2009-03-12 2010-09-24 Mega Chips Corp Communication system
CN105940751A (en) * 2014-02-27 2016-09-14 欧姆龙株式会社 Wireless communication system, wireless communication device, wireless communication method, and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010213162A (en) * 2009-03-12 2010-09-24 Mega Chips Corp Communication system
CN105940751A (en) * 2014-02-27 2016-09-14 欧姆龙株式会社 Wireless communication system, wireless communication device, wireless communication method, and program

Similar Documents

Publication Publication Date Title
US7539488B2 (en) Over-the-air download (OAD) methods and apparatus for use in facilitating application programming in wireless network devices of ad hoc wireless communication networks
CN109753034B (en) Control method, control device, electronic equipment and storage medium
CN111830844B (en) Intelligent equipment control method and device and intelligent home control panel
JP6637198B2 (en) Technology for assigning short addresses to network devices
US10405164B2 (en) Transmission mode selection of a zigbee green power device
JP2018526948A (en) Network address allocation and reuse for hierarchical base RPL networks
JP5431584B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMPUTER PROGRAM
EP3881521B1 (en) Prioritized low power neighboring node discovery in an iot network
CN111314185B (en) Ad hoc network method, ad hoc network response method, controlled equipment and gateway
KR20130053650A (en) Method and apparatus for transmitting data in a device to device communition service system
US20120089731A1 (en) Terminal apparatus and method of registering the same
CN105530268A (en) Heterogeneous protocol interconnection method and controller
CN110290509B (en) Data transmission method and device
CN109068402B (en) Wireless ad hoc network construction method and wireless ad hoc network data transmission method
CN113596089B (en) Distribution network binding method and device of equipment, storage medium and electronic device
US9024728B2 (en) Remote activating device
CN114401490A (en) Information interaction method, device, broadcast type network, electronic device, and storage medium
WO2019084798A1 (en) Radio signal enhancement device, method and system, and storage medium
CN111854075B (en) Wire controller, method and device for constructing wire controller network and air conditioning system
CN112469087B (en) Method for adjusting communication rate of air conditioning equipment, terminal and storage medium
US20130077548A1 (en) Apparatus and method for determining gateway considering low power
CN113259928A (en) OTA (over the air) upgrading method and device, electronic equipment, storage medium and program product
US20200084606A1 (en) Method, apparatus and system of configuring wireless network node
CN112020116A (en) Positioning method, device, system and storage medium
KR102443628B1 (en) Electronic apparatus 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