Bluetooth device communication retransmission method

By using a bridge to determine and retransmit the data of the packet loss device node in the Bluetooth device network, the problem of packet loss in the data transmission of Bluetooth device is solved, the success rate of data transmission and data integrity are improved, and the productization needs are met.

CN117714012BActive Publication Date: 2025-03-14ZHEJIANG REXENSE IOT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311805606.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-25
Publication Date
2025-03-14
Estimated Expiration
2043-12-25

AI Technical Summary

Technical Problem

Existing Bluetooth devices are prone to data packet loss and transmission failure during data transmission, resulting in a low success rate of communication data transmission and reception and inability to meet productized needs.

Method used

By introducing a bridge into the Bluetooth device network, the bridge periodically receives the device information sent by the device node, determines the packet loss device node, and broadcasts the identification of the packet loss device node to all device nodes in the network, and receives the device information that was not successfully sent in the previous cycle and the device information of the current cycle sent by the packet loss device node.

Benefits of technology

Without affecting the periodic data reporting by the device node, the data that was not successfully sent in the previous cycle will be retransmitted, the successful transmission rate of data packets will be improved, the success rate of data transmission and reception will be improved, the integrity of the device data will be ensured, and the productized needs of the device will be met.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117714012B_ABST
    Figure CN117714012B_ABST
Patent Text Reader

Abstract

The present application relates to a method for retransmitting communication of a Bluetooth device, and the method relates to the field of data communication. The method for retransmitting communication of a Bluetooth device is applied to a Bluetooth device network, wherein the Bluetooth device network includes at least two device nodes and a bridge that periodically communicates with the device nodes, and the bridge is also connected to a router. The method is applied to the bridge, and includes: receiving device information sent by the device node in the previous cycle, and determining the identifier of the packet loss device node according to the received device information; sending broadcast information to the device nodes in the Bluetooth device network in the current cycle, wherein the broadcast information includes the identifier of the packet loss device node; receiving the device information of the current cycle sent by the packet loss device node in response to the broadcast information, and the device information of the previous cycle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data communication, and in particular to a communication retransmission method for a Bluetooth device. Background Art

[0002] Currently, the application scenarios of Bluetooth connection and data transmission are becoming more and more extensive, but the problem of data transmission failure may occur during the data transmission process of Bluetooth.

[0003] However, the existing technology will still experience packet loss and data transmission failure when there are a large number of Bluetooth devices and data packets, or in an environment with strong interference, resulting in a low success rate in sending and receiving communication data, which cannot meet the needs of productization. Summary of the invention

[0004] The embodiment of the present application provides a Bluetooth device communication retransmission method to at least solve the problem of low success rate of sending and receiving communication data in the related art.

[0005] In a first aspect, an embodiment of the present application provides a Bluetooth device communication retransmission method, the method is applied to a Bluetooth device network, the Bluetooth device network includes at least two device nodes and a bridge that periodically communicates with the device nodes, the bridge is also connected to a router, the method is applied to the bridge, and includes:

[0006] In the previous cycle, receiving device information sent by the device node, and determining the identifier of the packet loss device node according to the received device information;

[0007] In the current cycle, broadcast information is sent to the device nodes in the Bluetooth device network, where the broadcast information includes the identifier of the packet loss device node;

[0008] The device information of the current cycle and the device information of the previous cycle sent by the packet loss device node in response to the broadcast information are received.

[0009] In one embodiment, the receiving the device information sent by the device node includes:

[0010] In any of the cycles, determining the order of receiving the device information sent by the device node, and allocating a time window for the device node to send the device information;

[0011] The device information sent by the device node in the corresponding time window according to the sequence is received.

[0012] In one embodiment, the duration of the cycle is greater than the duration for all device nodes in the network to send information to the bridge.

[0013] In one embodiment, the method further includes: receiving device information of the current period sent by the device node without packet loss in response to the broadcast information.

[0014] In one embodiment, the method further comprises: within the time window, after receiving the device information, sending instruction information to any of the device nodes in the network.

[0015] In a second aspect, an embodiment of the present application provides a Bluetooth device communication retransmission method, the method is applied to a Bluetooth device network, the Bluetooth device network includes at least two device nodes and a bridge that periodically communicates with the device nodes, the bridge is also connected to a router, the method is applied to any of the device nodes, and includes:

[0016] In the last cycle, sending device information to the bridge;

[0017] In a current cycle, receiving broadcast information sent by the network bridge, the broadcast information including an identifier of a packet loss device node sent by the network bridge in response to the device information;

[0018] Determine whether a packet is lost according to the broadcast information, and in response to determining that the packet is lost, send the device information of the current cycle and the device information of the previous cycle to the bridge.

[0019] In one embodiment, sending the device information to the network bridge includes: sending the device information to the network bridge in a corresponding time window in any of the cycles according to a predetermined order.

[0020] In one embodiment, the method of determining whether packet loss occurs based on the broadcast information and, in response to determining packet loss, sending device information of the current cycle and device information of the previous cycle to the network bridge includes: when the number of times any of the device nodes is a packet loss device node is greater than or equal to a preset threshold, resending the device information of the current cycle and device information of the previous cycle to the network bridge.

[0021] In one embodiment, the method further includes: in response to determining that no packet is lost, sending device information of the current cycle to the network bridge.

[0022] In one embodiment, the method further includes: receiving, within the time window, instruction information sent by the network bridge after receiving the device information.

[0023] The Bluetooth device communication retransmission method provided in the embodiment of the present application has at least the following technical effects.

[0024] The bridge determines the packet loss device node based on the device information sent by the device node in the previous cycle, and broadcasts the identification of the packet loss device node to all device nodes in the network in the current cycle. Then, the bridge receives the device information sent by the packet loss device node that was not successfully sent in the previous cycle and the device information of the current cycle. In this way, the data that was not successfully sent in the previous cycle is retransmitted without affecting the periodic reporting of data by the device node. In addition, through periodic communication, the successful transmission of data packets is guaranteed, the success rate of data sending and receiving is improved, and the integrity of device data is guaranteed, which is conducive to the productization needs of the equipment.

[0025] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0027] Figure 1 is a flowchart of a Bluetooth device communication retransmission method according to an exemplary embodiment;

[0028] Figure 2 is a flow chart of a Bluetooth device communication method according to an exemplary embodiment;

[0029] Figure 3 The figure is a flowchart of a Bluetooth device communication retransmission method according to another exemplary embodiment. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0031] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.

[0032] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0033] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0034] In the first aspect, an embodiment of the present application provides a Bluetooth device communication retransmission method, the method is applied to Bluetooth device networking, the Bluetooth device networking includes at least two device nodes and a bridge that periodically communicates with the device nodes, the bridge is also connected to a router, and the method is applied to the bridge. Optionally, the device nodes and bridges in the Bluetooth networking are devices with Bluetooth functions. Optionally, the device with the strongest signal in the Bluetooth networking is used as a bridge, and other devices are used as device nodes. The bridge is connected to all device nodes and routers.

[0035] Figure 1 is a flowchart of a Bluetooth device communication retransmission method according to an exemplary embodiment. Figure 1 As shown, the method includes:

[0036] Step S101: In the previous cycle, device information sent by a device node is received, and an identifier of a packet-lost device node is determined according to the received device information. Figure 2 The figure is a flow chart of a Bluetooth device communication method according to an exemplary embodiment.

[0037] Optionally, the devices in the Bluetooth networking are Bluetooth sensor devices or other devices with Bluetooth functions, for example, Bluetooth sensor devices such as Bluetooth temperature sensors and Bluetooth humidity sensors, smart home devices such as electric lights and sweeping robots that can be controlled by Bluetooth. In the previous cycle, the bridge receives the device information sent by the device node. If the device information sent by a device node is not received, the device node is determined to be a packet loss device node. Optionally, the device information includes the number of the device node, as well as information collected by the device in real time such as temperature and humidity. The identifier of the packet loss device node is the number of the device node.

[0038] In one example, receiving device information sent by a device node includes: determining the order in which the device nodes send device information within any period, and allocating a time window for the device nodes to send device information. The device information sent by the device nodes in the corresponding time window is received in order.

[0039] Optionally, in any cycle, the bridge allocates a time window for the device node to send device information to the bridge in order from small to large according to the device node number. The bridge receives the device information sent by the device node in the corresponding time window in sequence. In this way, the device data is received regularly in the set order to ensure the integrity of the collected data, which is conducive to meeting the needs of device productization.

[0040] In one example, the duration of the cycle is greater than the duration for all device nodes in the network to send device information to the bridge. Optionally, the duration of the cycle is at least sufficient for all device nodes in the network to send information to the bridge. Usually, when determining the duration of the cycle, the scale of the device network and the rate of data transmission are considered, and sufficient time is generally reserved for the device nodes to send data to the bridge. In this way, the duration of the cycle is determined according to the scale of the Bluetooth network, ensuring that the device node can send data to the bridge within the cycle time. At the same time, when the communication channel between the device node and the bridge is idle, it can also be used for the bridge to send control instructions to the device node or the device node to send retransmitted data to the bridge.

[0041] Step S102, in the current cycle, broadcast information is sent to the device nodes in the Bluetooth device network, and the broadcast information includes the identifier of the packet-lost device node. Optionally, broadcast information is sent to the device node, and the broadcast information includes the node number of the data that was not received last time, which is used to prompt the device node to resend the data. In this way, the unique identifier of the device node is broadcast to all device nodes, which is convenient for all device nodes to determine whether their own device nodes have lost packets and retransmit in time, thereby improving the success rate of device data communication and ensuring the integrity of device data.

[0042] Step S103, receiving the device information of the current cycle and the device information of the previous cycle sent by the packet loss device node in response to the broadcast information. Optionally, after the device node loses a packet, the current data and the data sent in the previous cycle are transmitted to the bridge together in the current cycle.

[0043] In one example, the method further includes: receiving device information of the current cycle sent by the device node without packet loss in response to the broadcast information. Optionally, the bridge normally receives the device information of the current cycle sent by the device node without packet loss in each cycle.

[0044] In this way, data is received in a preset order, wherein the device information of the previous cycle that was not successfully sent and the device information of the current cycle sent by the packet loss device node are received; and the device information of the current cycle sent by the node without packet loss is received. Without affecting the periodic reception of the device information of the current cycle by the bridge, the data that was not successfully sent by the packet loss device node in the previous cycle is received, thereby ensuring the success rate of data reception and transmission.

[0045] In one example, the method further includes: within the time window, after receiving the device information, sending instruction information to any device node in the network.

[0046] Optionally, when the communication channel between the bridge and the device node is not occupied, the bridge sends a control instruction to the device node. For example, when the device node is a Bluetooth sensor, the target device node can be controlled to send data to the bridge; when the device node is a smart Bluetooth device, a control instruction can be sent to the target device node to control the Bluetooth device such as a lamp or a sweeping robot to turn on or off. In this way, when the communication channel between the bridge and the device node is idle, a control instruction is sent to the target device node, which can control the target device node to retransmit data and improve the success rate of communication data.

[0047] In summary, the bridge determines the packet loss device node based on the device information sent by the device node in the previous cycle, and broadcasts the identification of the packet loss device node to all device nodes in the network in the current cycle. Then, the bridge receives the device information that was not successfully sent in the previous cycle and the device information of the current cycle sent by the packet loss device node, and receives the device information of the current cycle sent by the node without packet loss. At the same time, the bridge can also send instruction information to the target device node when the communication channel is idle, and control the target device node to send retransmitted data. In this way, the success rate of data sending and receiving is improved, the integrity of device data is guaranteed, and it is conducive to the productization needs of the equipment.

[0048] In a second aspect, an embodiment of the present application provides a method for retransmitting communication of a Bluetooth device, the method being applied to a Bluetooth device network, the Bluetooth device network comprising at least two device nodes and a bridge that periodically communicates with the device nodes, the bridge being also connected to a router, and the method being applied to any device node. Optionally, the device nodes and bridges in the Bluetooth network are both devices with Bluetooth functions. Optionally, the device with the strongest signal in the Bluetooth network is used as a bridge, and the other devices are used as device nodes. The bridge is connected to all device nodes and routers.

[0049] Figure 3 is a flowchart of a Bluetooth device communication retransmission method according to another exemplary embodiment. Figure 3 As shown, the method includes:

[0050] Step S201, in the last cycle, sending device information to the bridge.

[0051] Optionally, the device in the Bluetooth networking is a Bluetooth sensor device or other device with Bluetooth function, for example, Bluetooth sensor devices such as Bluetooth temperature sensor and Bluetooth humidity sensor, smart home devices such as electric lights and sweeping robots that can be controlled by Bluetooth. In the previous cycle, the device node sends device information to the bridge. If the transmission is unsuccessful, that is, the bridge does not receive the device information sent by a certain device node, then the device node is determined to be a packet loss device node. Optionally, the device information includes the number of the device node, as well as information collected by the device in real time such as temperature and humidity. The identifier of the packet loss device node is the number of the device node.

[0052] In one example, sending device information to the bridge includes: sending device information to the bridge in a predetermined order within a corresponding time window within any cycle. Optionally, in any cycle, the device nodes send device information to the bridge in the corresponding time window in the order of their own numbers from small to large. In this way, the device data is sent to the bridge regularly in a set order to ensure the integrity of the collected data, which is conducive to meeting the needs of device productization.

[0053] Step S202, in the current cycle, receiving broadcast information sent by the bridge, the broadcast information includes the identifier of the packet loss device node sent by the bridge in response to the device information. Optionally, receiving broadcast information, the broadcast information includes the node number of the data that was not received last time. In this way, according to the unique identifier of the device node in the broadcast information, it is determined whether the device node itself has lost the packet and retransmitted in time, thereby improving the success rate of device data communication and ensuring the integrity of the device data.

[0054] Step S203, judging whether packet loss occurs according to the broadcast information, and in response to determining packet loss, sending the device information of the current cycle and the device information of the previous cycle to the bridge. Optionally, judging whether the broadcast information contains the number of the own device node, if it contains the own device node, it indicates that the device data sent by the own device node in the previous cycle is lost and needs to be resent. The packet-lost device node transmits the device data of the current cycle and the device data sent in the previous cycle to the bridge together.

[0055] In one example, step S203 includes: when the number of times any device node is a packet loss device node is greater than or equal to a preset threshold, resending the device information of the current cycle and the device information of the previous cycle to the bridge. When a node loses packets continuously or the number of times the packet loss reaches the threshold, the device node automatically increases the number of retransmissions and sends the device information of the current cycle and the previous cycle to the bridge. In this way, when there are multiple packet losses, the number of data retransmissions is increased, the success rate of data sending and receiving is improved, which is conducive to successfully obtaining device data and ensuring the integrity of device data.

[0056] In one example, the method further includes: in response to determining that no packet is lost, sending device information of the current period to the bridge. Optionally, the device node with no packet loss periodically sends the device information of the current period to the bridge in a preset order.

[0057] In this way, data is sent to the bridge in a preset order, where the device node with packet loss sends the device information that was not successfully sent in the previous cycle and the device information of the current cycle; the node without packet loss sends the device information of the current cycle. Without affecting the periodic sending of device information to the bridge, the data that was not successfully sent in the previous cycle is sent to the bridge, ensuring the successful transmission of data packets and improving the success rate of data reception and transmission.

[0058] In one example, the method further includes: receiving instruction information sent by the bridge after receiving the device information within the time window. Optionally, within the time window of each cycle, when the communication channel between the bridge and the device node is not occupied, the control instruction sent by the bridge is received. For example, when the device node is a Bluetooth sensor, the target device node receives the control instruction sent by the bridge, and the target device node sends data to the bridge according to the instruction; when the device node is a smart Bluetooth device, the target device node receives the control instruction sent by the bridge, and turns on or off Bluetooth devices such as lights or sweeping robots according to the control instruction. In this way, when the communication channel between the device node and the bridge is idle, the target device node receives the control instruction sent by the bridge, and can retransmit the data according to the control instruction, thereby improving the success rate of data communication.

[0059] In summary, this application determines whether its own device node is a packet loss device node by receiving the identifier of the packet loss device node sent by the bridge in the current cycle. If it is a packet loss device node, the device information that was not successfully sent in the previous cycle and the device information of the current cycle are sent to the bridge; if it is a node that has not lost packets, the device information of the current cycle is sent to the bridge, and when the communication channel is idle, the instruction information sent by the bridge is received, and the retransmission data is sent according to the instruction information. In this way, the successful transmission of data packets is guaranteed, the success rate of data sending and receiving is improved, the integrity of device data is guaranteed, and it is conducive to the productization needs of the equipment.

[0060] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0061] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A Bluetooth device communication retransmission method, characterized in that: The method is applied to a Bluetooth device network, wherein the Bluetooth device network includes at least two device nodes and a bridge that periodically communicates with the device nodes, and the bridge is also connected to a router. The method is applied to the bridge and includes: In the last cycle, receiving device information sent by the device node, determining the identifier of the packet loss device node according to the received device information, wherein the device information includes the number of the device node, and the identifier of the packet loss device node is the number of the device node, The receiving of the device information sent by the device node comprises: in any cycle, according to the number of the device node, allocating a time window for the device node to send the device information to the bridge in the order of the number from small to large, and receiving the device information sent by the device node in the corresponding time window in sequence; In the current cycle, broadcast information is sent to the device nodes in the Bluetooth device network, where the broadcast information includes the identifier of the packet loss device node; The device information of the current cycle and the device information of the previous cycle sent by the packet loss device node in response to the broadcast information are received.

2. The Bluetooth device communication retransmission method according to claim 1, characterized in that: The duration of the cycle is greater than the duration for all device nodes in the network to send information to the bridge.

3. The Bluetooth device communication retransmission method according to claim 1, characterized in that: The method further comprises: The device information of the current period sent by the device node without packet loss in response to the broadcast information is received.

4. The Bluetooth device communication retransmission method according to claim 1, characterized in that: The method further comprises: Within the time window, after receiving the device information, sending instruction information to any of the device nodes in the network.

5. A Bluetooth device communication retransmission method, characterized in that: The method is applied to a Bluetooth device network, wherein the Bluetooth device network includes at least two device nodes and a bridge that periodically communicates with the device nodes, wherein the bridge is also connected to a router, and the method is applied to any of the device nodes, and includes: In the last cycle, sending device information to the bridge; In a current cycle, receiving broadcast information sent by the network bridge, the broadcast information including an identifier of a packet loss device node sent by the network bridge in response to the device information; Determine whether packet loss occurs based on the broadcast information, and in response to determining packet loss, send device information of the current cycle and device information of the previous cycle to the network bridge, including: when the number of times any of the device nodes is a packet loss device node is greater than or equal to a preset threshold, resend the device information of the current cycle and device information of the previous cycle to the network bridge.

6. The Bluetooth device communication retransmission method according to claim 5, characterized in that: The sending device information to the network bridge comprises: In any of the cycles, device information is sent to the network bridge in a corresponding time window according to a predetermined order.

7. The Bluetooth device communication retransmission method according to claim 5, characterized in that: The method further comprises: In response to determining that no packet is lost, device information of the current cycle is sent to the bridge.

8. The Bluetooth device communication retransmission method according to claim 6, characterized in that: The method further comprises: In the time window, instruction information sent by the network bridge after receiving the device information is received.

Citation Information

Patent Citations

  • Business processing method, business processing device, network equipment and storage medium

    CN111131179A

  • Method and device for improving TCP speed measurement performance

    CN116405414A