Low-delay communication method and device, electronic equipment and storage medium
By using low-power Bluetooth connection links in wireless mouse systems and controlling the device to enter single-send or single-receive mode after the communication event is over, the problem that traditional technology cannot meet the ultra-low latency requirements is solved, and the effects of high-frequency communication and low latency are achieved.
Patent Information
- Application Number
- CN202411834766.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-03-25
AI Technical Summary
The prior art cannot meet the ultra-low latency requirements of wireless mouse systems in high-frequency operation scenarios. The time unit of the traditional classic Bluetooth connection method is fixed and large, so it cannot effectively reduce the delay.
High-frequency data transmission and reception are achieved by establishing a low-power Bluetooth connection link between the operating device and the target device, and controlling the operating device to enter the single-send mode after each communication event is over.
Make full use of the idle time of low-power Bluetooth connection communication to realize high-frequency communication, reduce delay, and meet the real-time requirements of high-frequency operation data packets.
Smart Images

Figure CN119697802A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technology, and in particular to a low-latency communication method and device, electronic equipment, and storage medium. Background Art
[0002] When the wireless mouse system is working, it will respond to the user's operation of the mouse in real time, and send the current coordinate information and key information of the mouse to the receiving end of the connected computer or other device, so that the device can respond accordingly based on the received information. Due to the current scene that requires frequent and fast mouse operation and the device to respond quickly, the real-time performance of the mouse wireless transmission is currently higher, that is, the mouse needs to have ultra-low latency.
[0003] Currently, in order to enable the mouse to communicate quickly with the device, the classic Bluetooth connection method is mainly used to connect the mouse and the device, and the minimum time allowed by the protocol is used as the time unit. When communicating in this connection method, the mouse will send a data packet to the connected device according to the time unit, and needs to receive the feedback of the device according to the time unit accordingly, and then use the same method to send the next data packet, so that data can be sent and received in the shortest time, reducing the delay time of the mouse.
[0004] However, since the time unit of this method is fixed, and the minimum time allowed to be selected is still relatively large for scenarios with high-frequency mouse operations, and during the communication process, data packets need to be sent and received alternately, which will also affect the transmission efficiency, the communication frequency of this method can only reach a maximum of 800HZ. Therefore, even if the minimum time is selected as the time unit, it cannot meet its ultra-low latency requirements. Summary of the invention
[0005] Based on the above-mentioned deficiencies of the prior art, the present application provides a low-latency communication method and device, an electronic device, and a storage medium to solve the problem that the prior art cannot meet the requirements of ultra-low latency.
[0006] In order to achieve the above objectives, this application provides the following technical solutions:
[0007] The first aspect of the present application provides a low-latency communication method, comprising:
[0008] Establishing a low-power Bluetooth connection link between the operating device and the receiver of the target device;
[0009] Whenever a communication event of the low-power Bluetooth connection link ends, the operating device is controlled to enter a single-send mode, so as to control the operating device to respond to the user's operation in real time according to the currently set sending time interval, and to send data to the receiver of the target device through the low-power Bluetooth connection link, and the receiver of the target device is controlled to enter a single-receive mode, so as to control the receiver of the target device to receive the data sent by the operating device according to the currently set receiving time interval;
[0010] When the next communication event of the low-power Bluetooth connection link is reached, the operating device is controlled to exit the single-transmit mode and the target device is controlled to exit the single-receive mode, so that the operating device and the target device communicate according to the communication protocol of the low-power Bluetooth connection link.
[0011] Optionally, in the above-mentioned low-latency communication method, controlling the operating device to enter a single-transmission mode to control the operating device to respond to the user's operation in real time according to a currently set transmission time interval, and sending data to a receiver of the target device through the low-power Bluetooth connection link, includes:
[0012] Controlling the operating device to enter a single-shot mode;
[0013] According to the current working scenario of the operating device, the current sending time interval is set; wherein, the higher the real-time requirement in the current working scenario of the operating device, the smaller the sending time interval; the maximum value of the sending time interval is the interval time between two communication events, and the minimum value is zero;
[0014] The operating device is controlled to send data to the receiver of the target device through the low-power Bluetooth connection link according to the current sending time interval when responding to the user's operation.
[0015] Optionally, in the above-mentioned low-latency communication method, controlling the operating device to send data to the receiver of the target device through the low-power Bluetooth connection link according to the current sending time interval when responding to the user's operation includes:
[0016] Controlling the operating device to encapsulate data of a preset length into a data packet at each sending time interval when responding to the user's operation;
[0017] The currently encapsulated data packet is sent to the receiver of the target device via the low-power Bluetooth connection link.
[0018] Optionally, in the above-mentioned low-latency communication method, controlling the receiver of the target device to enter a single-receiving mode to control the receiver of the target device to receive the data sent by the operating device according to a currently set receiving time interval includes:
[0019] Controlling the receiver of the target device to enter a single receiving mode;
[0020] According to the currently set sending time interval, setting the current receiving time interval;
[0021] The receiver of the target device is controlled to receive the data sent by the operating device according to the currently set receiving time interval.
[0022] A second aspect of the present application provides a low-latency communication device, comprising:
[0023] A connection unit, used to establish a low-power Bluetooth connection link between the operating device and a receiver of the target device;
[0024] The operating device control unit is used to control the operating device to enter a single-send mode whenever a communication event of the low-power Bluetooth connection link ends, so as to control the operating device to respond to the user's operation in real time according to the currently set sending time interval, and send data to the receiver of the target device through the low-power Bluetooth connection link;
[0025] The target device control unit is used to control the receiver of the target device to enter a single receiving mode whenever a communication event of the low-power Bluetooth connection link ends, so as to control the receiver of the target device to receive the data sent by the operating device according to the currently set receiving time interval;
[0026] The recovery unit is used to control the operating device to exit the single-transmit mode and the target device to exit the single-receive mode when the next communication event of the low-power Bluetooth connection link is reached, so that the operating device and the target device communicate according to the communication protocol of the low-power Bluetooth connection link.
[0027] Optionally, in the above-mentioned low-latency communication device, the operating device control unit includes:
[0028] An operating device mode switching unit, used to control the operating device to enter a single-shot mode;
[0029] A sending time setting unit, used to set the current sending time interval according to the current working scenario of the operating device; wherein the higher the real-time requirement in the current working scenario of the operating device, the smaller the sending time interval; the maximum value of the sending time interval is the interval time between two communication events, and the minimum value is zero;
[0030] The data sending unit is used to control the operating device to send data to the receiver of the target device through the low-power Bluetooth connection link according to the current sending time interval when responding to the user's operation.
[0031] Optionally, in the above-mentioned low-latency communication device, the data sending unit includes:
[0032] an encapsulation unit, configured to control the operating device to encapsulate data of a preset length into a data packet at each sending time interval when responding to the user's operation;
[0033] The sending unit is used to send the currently encapsulated data packet to the receiver of the target device through the low-power Bluetooth connection link.
[0034] Optionally, in the above-mentioned low-latency communication device, the target device control unit includes:
[0035] A device mode switching unit, used to control the receiver of the target device to enter a single receiving mode;
[0036] A receiving time setting unit, used to set the current receiving time interval according to the currently set sending time interval;
[0037] The data receiving unit is used to control the receiver of the target device to receive the data sent by the operating device according to the currently set receiving time interval.
[0038] A third aspect of the present application provides an electronic device, including:
[0039] Memory and processor;
[0040] Wherein, the memory is used to store programs;
[0041] The processor is used to execute the program, and when the program is executed, it is specifically used to implement the low-latency communication method as described in any one of the above items.
[0042] A fourth aspect of the present application provides a computer storage medium for storing a computer program, which, when executed by a processor, is used to implement a low-latency communication method as described in any one of the above.
[0043] The present application provides a low-latency communication method, wherein a low-power Bluetooth connection link is established between an operating device and a receiver of a target device, and whenever a communication event of the low-power Bluetooth connection link ends, the operating device is controlled to enter a single-transmission mode, so as to control the operating device to respond to the user's operation in real time according to the currently set transmission time interval, and to send data to the receiver of the target device through the low-power Bluetooth connection link, and the receiver of the target device is controlled to enter a single-receiving mode, so as to control the receiver of the target device to receive the data sent by the operating device according to the currently set receiving time interval, so that the idle time between two communication events can be fully utilized, and the operating device is controlled to send data at high frequency and the control device receives the device at high frequency, so as to realize high-frequency communication in idle time. Then, when the next communication event of the low-power Bluetooth connection link is reached, the operating device is controlled to exit the single-transmission mode and the target device is controlled to exit the single-receiving mode, so that the operating device and the target device communicate according to the communication protocol of the low-power Bluetooth connection link, thereby realizing a method for fully utilizing the idle time of the low-power Bluetooth connection communication to realize high-frequency communication, and the time unit in the communication event of the low-power Bluetooth connection can select a smaller time according to the demand, and can also perform high-frequency communication, thereby realizing a communication method with ultra-low latency, which can effectively meet the real-time requirements of high-frequency operation data packets. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0045] Figure 1 A flowchart of a low-latency communication method provided in an embodiment of the present application;
[0046] Figure 2 A logic diagram of a communication method for an existing low-power Bluetooth connection mode;
[0047] Figure 3 A logical schematic diagram of a low-latency communication method provided in an embodiment of the present application;
[0048] Figure 4 A logic diagram of an example of a low-latency communication method provided in an embodiment of the present application;
[0049] Figure 5 A flowchart of a method for controlling an operating device to enter a single-send mode and send data provided by an embodiment of the present application;
[0050] Figure 6A flowchart of a method for sending data to a receiver of a target device provided in an embodiment of the present application;
[0051] Figure 7 A schematic diagram of an example architecture of an encapsulated data packet provided in an embodiment of the present application;
[0052] Figure 8 A flowchart of a method for controlling a receiver of a target device to enter a single-receive mode and receive data provided by an embodiment of the present application;
[0053] Fig. 9 A schematic diagram of the architecture of a low-latency communication device provided in an embodiment of the present application;
[0054] Fig.10 A schematic diagram of the architecture of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0056] In this application, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0057] The present application embodiment provides a low-latency communication method, such as Figure 1 As shown, the specific steps include:
[0058] S101: Establish a low-power Bluetooth connection link between an operating device and a receiver of a target device.
[0059] Among them, the operating device is a device that responds to the user's operation in real time and sends corresponding operation information to the target device, such as a mouse, a game controller, an operation terminal, etc. The target device is a device that receives the operation information sent by the operating device in real time and responds in real time according to the operation information, that is, a device that needs to be operated by the operating device, such as a computer, a notebook, a TV, a monitor, etc. In addition, a low-power Bluetooth connection link needs to be established between the operating device and the target device, such as a mouse and a computer, a game controller and a monitor, etc.
[0060] It should be noted that compared with classic Bluetooth connection, the time unit of the data packet of Bluetooth low energy (BLE) connection can be set according to needs, so a smaller time unit can be set, so that the delay can be very low when data is generated and received.
[0061] However, if Figure 2 As shown in the figure, according to the Bluetooth core protocol, the communication of the low-power Bluetooth connection mode is periodic, and the period can be selected between 7.5ms-4000ms. That is, in the low-power Bluetooth connection mode, a communication cycle (Interval) consists of a communication event (Event) and an idle time (idle). Within the communication event, multiple data transmission (TX) and data reception (RX) can be performed alternately, that is, a communication requires sending a data packet to the device and receiving feedback from the device accordingly. Except for the time for sending and receiving packets within the Event, the rest of the time is idle, that is, no data is sent or received, which results in the real-time performance of the overall communication of the low-power Bluetooth connection mode being worse than the overall communication of the low-latency classic Bluetooth connection mode. As shown in the figure, Figure 2 As shown, the communication method of the target device side corresponds to that of the operating device side, which performs data reception and transmission alternately within the Event, and does not perform data reception and transmission during idle time.
[0062] In the embodiment of the present application, corresponding improvements are made to fully utilize the idle time of the communication cycle of the low-power Bluetooth connection mode, and combined with its efficient communication within the Event, so that the operating device can achieve an ultra-low latency communication.
[0063] Therefore, in the embodiment of the present application, a low-power Bluetooth connection is used for communication, so it is necessary to first establish a low-power Bluetooth connection link between the operating device and the receiver of the target device.
[0064] S102. Whenever a communication event of the low-power Bluetooth connection link ends, the operating device is controlled to enter a single-transmission mode, so as to control the operating device to respond to the user's operation in real time according to the currently set transmission time interval, and send data to the receiver of the target device through the low-power Bluetooth connection link, and the receiver of the target device is controlled to enter a single-receiving mode, so as to control the receiver of the target device to receive the data sent by the operating device according to the currently set receiving time interval.
[0065] Specifically, Figure 3 As shown, after a low-power Bluetooth connection link is established between the operating device and the receiver of the target device, communication will be carried out normally in the original data transmission and reception cycle in each communication event (Event). In order to achieve efficient communication, the idle time after the communication event ends is used to continue communication in the embodiment of the present application. Therefore, whenever a communication event of the low-power Bluetooth connection link ends, that is, after an Event ends, when the idle time period of the current communication cycle is entered, the operating device is controlled to enter the single-shot mode. In the single-shot mode, the operating device will only send data (TX) according to the user's operation, but not receive data (RX), so that communication can be carried out more quickly. In addition, data is generated according to the currently set time interval, so a shorter time interval can be set according to the demand for communication, so that the real-time performance of the operating device communication can be further improved. Although it is impossible to determine whether the sent data has been received by the device due to the lack of feedback from the receiving device, a small amount of frame loss may occur, but since high-frequency data transmission can be achieved, the difference between adjacent frame data will not be too large, and the proportion of lost frames is also very small, so it will not have much impact on the response effect of the device.
[0066] Accordingly, in order to utilize the idle time of the target device's receiving end to receive the data sent by the operating device, the target device's receiver will be controlled to enter the single-receive mode every time a communication event of the low-power Bluetooth connection link ends. Since the operating device is in the single-send mode at this time, it will not receive the data fed back by the device, so there is no need for the target device to send data to the operating device. Figure 3 As shown, in the single-receive mode, the receiver of the target device only receives data (RX) but does not send data (TX). In addition, the target device receives the data sent by the operating device according to the currently set receiving time interval. In order to receive each data packet sent by the operating device in a timely manner, the sending time interval and the receiving time interval are usually set to be consistent.
[0067] Optionally, in another embodiment of the present application, a specific implementation method of controlling the operating device to enter a single-shot mode to control the operating device to respond to the user's operation in real time according to the currently set sending time interval, and send data to the receiver of the target device through a low-power Bluetooth connection link, that is, a specific implementation method of controlling the operating device to enter a single-shot mode and send data, such as Figure 4 As shown, the following steps are included:
[0068] S401, controlling the operating device to enter the single-shot mode.
[0069] S402: Set a current sending time interval according to a current working scenario of the operating device.
[0070] It should be noted that, in order to save power consumption, in the embodiment of the present application, the current mode time interval is set according to the real-time requirements of the current working scenario of the operating device to avoid the operating device being in a state of high-frequency data transmission. For example, office scenarios, game scenarios, etc.
[0071] Among them, since the higher the real-time requirement in the current working scenario of the operating device, the higher the frequency of data to be sent, the smaller the set sending time interval is. Figure 5 As shown in the figure above, when the current working scenario of the operating device has a high requirement for real-time performance, a smaller sending time interval can be set so that data can be sent at a higher frequency. For example, when the mouse is currently in a working scenario of a game that requires real-time operation and has a high requirement for real-time performance, a smaller sending time interval can be set. Figure 5 As shown in the following figure, when the real-time requirement is low in the current working scenario of the current operating device, a larger sending time interval can be set so that data can be sent at a lower frequency. For example, when the mouse is currently in a normal office working scenario and the real-time requirement is low, a larger sending time interval can be set so that data can be sent at a lower frequency.
[0072] It should also be noted that the maximum value of the sending time interval is the interval between two communication events, that is, no data is sent. Because when the operating frequency of the operating device is low, the communication event can fully meet the needs of efficient communication, so there is no need to use idle time for communication. The minimum value of the sending time interval is zero, that is, there is no interval, and data is continuously sent to meet the very high frequency operation requirements in special scenarios.
[0073] S403: When responding to the user's operation, the control operating device sends data to the receiver of the target device through the low-power Bluetooth connection link according to the current sending time interval.
[0074] Optionally, in another embodiment of the present application, a specific implementation of step S303 is as follows: Figure 6 Shown, including games
[0075] S601 , when responding to a user's operation, the control operating device encapsulates data of a preset length into a data packet at each sending time interval.
[0076] It should be noted that, in order to achieve higher transmission frequency and efficiency, in the embodiment of the present application, the length of the one-way data will be shortened as much as possible, thereby reducing the actual time of sending data once. Therefore, it is necessary to encapsulate the data according to a set smaller length.
[0077] Specifically, since the original data packet of Bluetooth needs to be retained, the PUD length in the data packet is reduced so that the data is sent with a smaller data length. For example, taking each packet carrying 10 bytes of data as an example, Figure 7 As shown in the figure, if BLE 1M phy is used for transmission, the total length of the entire data packet is only 20 bytes, and its transmission only takes 160us. If BLE 2M phy is used for transmission, the total length of the entire data packet is 21 bytes, and the transmission only takes 84us. Therefore, if the transmission is at full load, BLE 2M phy can reach a transmission frequency of 8K, and BLE 1M can reach a transmission frequency of 4K, so it can be seen that higher frequency transmission can be achieved.
[0078] S602: Send the currently encapsulated data packet to a receiver of the target device via a low-power Bluetooth connection link.
[0079] Optionally, in another embodiment of the present application, the receiver of the target device is controlled to enter the single receiving mode, so as to control the receiver of the target device to receive the data sent by the operating device according to the currently set receiving time interval. A specific implementation method, that is, controlling the receiver of the target device to enter the single receiving mode and receive data, such as Figure 8 As shown, the following steps are included:
[0080] S801, controlling the receiver of the target device to enter a single receiving mode.
[0081] S802: Set a current receiving time interval according to a currently set sending time interval.
[0082] S803: Control the receiver of the target device to receive the data sent by the operating device according to the currently set receiving time interval.
[0083] S103: When the next communication event of the low-power Bluetooth connection link is reached, the operating device is controlled to exit the single-transmit mode and the target device is controlled to exit the single-receive mode, so that the operating device and the target device communicate according to the communication protocol of the low-power Bluetooth connection link.
[0084] It should be noted that when the next communication event of the low-power Bluetooth connection link is reached, the idle time has ended and communication needs to be carried out in a normal manner. Therefore, it is necessary to control the operating device to exit the single-send mode and control the target device to exit the single-receive mode, so that the operating device and the target device can communicate in accordance with the communication protocol of the low-power Bluetooth connection link.
[0085] The embodiment of the present application provides a low-latency communication method, wherein a low-power Bluetooth connection link is established between an operating device and a receiver of a target device, and whenever a communication event of the low-power Bluetooth connection link ends, the operating device is controlled to enter a single-transmission mode, so as to control the operating device to respond to the user's operation in real time according to the currently set transmission time interval, and to send data to the receiver of the target device through the low-power Bluetooth connection link, and the receiver of the target device is controlled to enter a single-receiving mode, so as to control the receiver of the target device to receive the data sent by the operating device according to the currently set receiving time interval, so that the idle time between two communication events can be fully utilized, and the operating device is controlled to send data at high frequency and the control device is controlled to receive data at high frequency, so as to realize high-frequency communication in idle time. Then, when the next communication event of the low-power Bluetooth connection link is reached, the operating device is controlled to exit the single-transmission mode and the target device is controlled to exit the single-receiving mode, so that the operating device and the target device communicate according to the communication protocol of the low-power Bluetooth connection link, thereby realizing a method for fully utilizing the idle time of the low-power Bluetooth connection communication to realize high-frequency communication, and the time unit in the communication event of the low-power Bluetooth connection can select a smaller time according to the demand, and high-frequency communication can also be performed, thereby realizing a communication method with ultra-low latency, which can effectively meet the real-time requirements of high-frequency operation data packets.
[0086] Another embodiment of the present application provides a low-latency communication device, such as Fig. 9 As shown, including:
[0087] The connection unit 901 is used to establish a low-power Bluetooth connection link between the operating device and the receiver of the target device.
[0088] The operating device control unit 902 is used to control the operating device to enter the single-shot mode whenever a communication event of the low-power Bluetooth connection link ends, so as to control the operating device to respond to the user's operation in real time according to the currently set sending time interval, and send data to the receiver of the target device through the low-power Bluetooth connection link.
[0089] The target device control unit 903 is used to control the receiver of the target device to enter the single receiving mode every time a communication event of the low-power Bluetooth connection link ends, so as to control the receiver of the target device to receive the data sent by the operating device according to the currently set receiving time interval.
[0090] The recovery unit 904 is used to control the operating device to exit the single-transmit mode and the target device to exit the single-receive mode when the next communication event of the low-power Bluetooth connection link is reached, so that the operating device and the target device communicate according to the communication protocol of the low-power Bluetooth connection link.
[0091] Optionally, in a low-latency communication device provided in another embodiment of the present application, an operating device control unit includes:
[0092] The operating device mode switching unit is used to control the operating device to enter the single-shot mode.
[0093] The sending time setting unit is used to set the current sending time interval according to the current working scenario of the operating device. The higher the real-time requirement in the current working scenario of the operating device, the smaller the sending time interval. The maximum value of the sending time interval is the interval between two communication events, and the minimum value is zero.
[0094] The data sending unit is used to control the operating device to send data to the receiver of the target device through the low-power Bluetooth connection link according to the current sending time interval when responding to the user's operation.
[0095] Optionally, in a low-latency communication device provided in another embodiment of the present application, a data sending unit includes:
[0096] The encapsulation unit is used to control the operating device to encapsulate data of a preset length into a data packet at each sending time interval when responding to the user's operation.
[0097] The sending unit is used to send the currently encapsulated data packet to the receiver of the target device through the low-power Bluetooth connection link.
[0098] Optionally, in a low-latency communication device provided in another embodiment of the present application, the target device control unit includes:
[0099] The device mode switching unit is used to control the receiver of the target device to enter the single receiving mode.
[0100] The receiving time setting unit is used to set the current receiving time interval according to the currently set sending time interval.
[0101] The data receiving unit is used to control the receiver of the target device to receive the data sent by the operating device according to the currently set receiving time interval.
[0102] The specific working process of each unit provided in the above embodiments of the present application can refer to the implementation process of the corresponding steps in the above method embodiments, which will not be repeated here.
[0103] Another embodiment of the present application provides an electronic device, such as Fig.10 As shown, including:
[0104] Memory 1001 and processor 1002 .
[0105] The memory 1001 is used to store programs.
[0106] The processor 1002 is used to execute the program stored in the memory 1001. When the program is executed, it is specifically used to implement the low-latency communication method provided in any one of the above embodiments.
[0107] Another embodiment of the present application provides a computer storage medium for storing a computer program, which, when executed by a processor, is used to implement a low-latency communication method as provided in any of the above embodiments.
[0108] Computer storage media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0109] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0110] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A low-latency communication method, characterized in that: include: Establishing a low-power Bluetooth connection link between the operating device and the receiver of the target device; Whenever a communication event of the low-power Bluetooth connection link ends, the operating device is controlled to enter a single-send mode, so as to control the operating device to respond to the user's operation in real time according to the currently set sending time interval, and to send data to the receiver of the target device through the low-power Bluetooth connection link, and the receiver of the target device is controlled to enter a single-receive mode, so as to control the receiver of the target device to receive the data sent by the operating device according to the currently set receiving time interval; When the next communication event of the low-power Bluetooth connection link is reached, the operating device is controlled to exit the single-transmit mode and the target device is controlled to exit the single-receive mode, so that the operating device and the target device communicate according to the communication protocol of the low-power Bluetooth connection link.
2. The method according to claim 1, characterized in that The controlling the operating device to enter the single-send mode, so as to control the operating device to respond to the user's operation in real time according to the currently set sending time interval, and to send data to the receiver of the target device through the low-power Bluetooth connection link, includes: Controlling the operating device to enter a single-shot mode; According to the current working scenario of the operating device, the current sending time interval is set; wherein, the higher the real-time requirement in the current working scenario of the operating device, the smaller the sending time interval; the maximum value of the sending time interval is the interval time between two communication events, and the minimum value is zero; The operating device is controlled to send data to the receiver of the target device through the low-power Bluetooth connection link according to the current sending time interval when responding to the user's operation.
3. The method according to claim 1, characterized in that: The controlling the operating device to send data to the receiver of the target device through the low-power Bluetooth connection link according to the current sending time interval in response to the user's operation includes: Controlling the operating device to encapsulate data of a preset length into a data packet at each sending time interval when responding to the user's operation; The currently encapsulated data packet is sent to the receiver of the target device via the low-power Bluetooth connection link.
4. The method according to claim 1, characterized in that: The step of controlling the receiver of the target device to enter a single receiving mode, so as to control the receiver of the target device to receive the data sent by the operating device according to a currently set receiving time interval, includes: Controlling the receiver of the target device to enter a single receiving mode; According to the currently set sending time interval, setting the current receiving time interval; The receiver of the target device is controlled to receive the data sent by the operating device according to the currently set receiving time interval.
5. A low-latency communication device, characterized in that: include: A connection unit, used to establish a low-power Bluetooth connection link between the operating device and a receiver of the target device; The operating device control unit is used to control the operating device to enter a single-send mode whenever a communication event of the low-power Bluetooth connection link ends, so as to control the operating device to respond to the user's operation in real time according to the currently set sending time interval, and send data to the receiver of the target device through the low-power Bluetooth connection link; The target device control unit is used to control the receiver of the target device to enter a single receiving mode whenever a communication event of the low-power Bluetooth connection link ends, so as to control the receiver of the target device to receive the data sent by the operating device according to the currently set receiving time interval; The recovery unit is used to control the operating device to exit the single-transmit mode and the target device to exit the single-receive mode when the next communication event of the low-power Bluetooth connection link is reached, so that the operating device and the target device communicate according to the communication protocol of the low-power Bluetooth connection link.
6. The device according to claim 5, characterized in that The operating device control unit comprises: An operating device mode switching unit, used to control the operating device to enter a single-shot mode; A sending time setting unit, used to set the current sending time interval according to the current working scenario of the operating device; wherein the higher the real-time requirement in the current working scenario of the operating device, the smaller the sending time interval; the maximum value of the sending time interval is the interval time between two communication events, and the minimum value is zero; The data sending unit is used to control the operating device to send data to the receiver of the target device through the low-power Bluetooth connection link according to the current sending time interval when responding to the user's operation.
7. The device according to claim 5, characterized in that The data sending unit comprises: an encapsulation unit, configured to control the operating device to encapsulate data of a preset length into a data packet at each sending time interval when responding to the user's operation; The sending unit is used to send the currently encapsulated data packet to the receiver of the target device through the low-power Bluetooth connection link.
8. The device according to claim 5, characterized in that The target device control unit includes: A device mode switching unit, used to control the receiver of the target device to enter a single receiving mode; A receiving time setting unit, used to set the current receiving time interval according to the currently set sending time interval; The data receiving unit is used to control the receiver of the target device to receive the data sent by the operating device according to the currently set receiving time interval.
9. An electronic device, characterized in that: include: Memory and processor; Wherein, the memory is used to store programs; The processor is used to execute the program, and when the program is executed, it is specifically used to implement the low-latency communication method as described in any one of claims 1 to 4.
10. A computer storage medium, characterized in that: Used to store a computer program, which, when executed by a processor, is used to implement the low-latency communication method as described in any one of claims 1 to 4.