Multi-Device Communication Method, System, Apparatus, and Computer-Readable Storage Medium
By performing a frequency band scanning operation on the second device of the VR device (such as a handle) and using its longer communication cycle, the problems of long update time for communication lists and data packet loss in the VR device are solved, and efficient data transmission and improved user experience are achieved.
Patent Information
- Application Number
- CN202111276784.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-29
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2041-10-29
AI Technical Summary
In VR devices, the 2.4G frequency band communication between the headset and the handle is easily disturbed, resulting in a long update time for the communication list and the inability to quickly switch the frequency bands, resulting in a large amount of data packet loss, affecting the tracking effect and user experience.
By performing a band scanning operation on a second device (such as a handle), using its longer second communication cycle, shorten the communication list update time and reduce the possibility of using the interfered frequency band, thereby avoiding packet loss.
It realizes rapid update of communication lists, reduces data packet loss problems, improves the tracking effect of headsets to controllers, and improves the user's gaming experience.
Smart Images

Figure CN114025427B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of virtual devices, and particularly to a multi-device communication method, system, device, and computer-readable storage medium. Background Art
[0002] In VR (Virtual Reality) devices, each VR device is equipped with a headset and two controllers. Most of the communication between the headset and the controllers is wireless communication using 2.4G, and its frequency band is between 2.400 and 2.480 GHz. Currently, during the actual use of VR devices, some sub-bands in the 2.4G frequency band may be interfered by other radio frequency signals such as home WiFi signals. Therefore, the headset and the controllers mostly use synchronous frequency hopping to transmit data according to a pre-agreed communication list. The BLE (Bluetooth Low Energy) protocol stack has a built-in frequency hopping mechanism, so domestic VR devices also mainly use the 2.4G frequency band BLE for data transmission.
[0003] However, in the BLE protocol, the headset completes the frequency band scanning operation of the optimal frequency band in the communication list within each communication cycle. Since the headset needs to obtain the IMU (Inertial Measurement Unit) data of the two controllers in sequence, the communication cycle of the headset is relatively small. After receiving and sending data, the remaining time for frequency band scanning within each communication cycle is less. Therefore, the number of frequency bands that can be scanned within each communication cycle is less, which leads to a long time for updating the communication list. If most of the frequency bands in the currently used communication list are interfered, the communication list cannot be switched quickly, resulting in continuous and large amounts of data packet loss problems, thus causing the headset to be unable to achieve a better tracking effect and reducing the user's gaming experience.
[0004] Therefore, how to provide a solution to the above technical problems is an issue that those skilled in the art need to solve currently. Summary of the Invention
[0005] The purpose of this application is to provide a multi-device communication method, system, device, and computer-readable storage medium, which can shorten the communication list update time, reduce the possibility of the first device and the second device using interfered frequency bands for communication, thereby avoiding a large amount of data packet loss problems and ensuring efficient data transmission between the first device and the second device.
[0006] To solve the above technical problems, the present application provides a multi-device communication method. The multi-devices include a first device and at least two second devices. The first device has a first communication cycle, and the second device has a second communication cycle greater than the first communication cycle. The first device sends a data request to only one of the second devices in each first communication cycle, and the first device sends the data request to different second devices in two adjacent first communication cycles. This multi-device communication method is applied to any one of the second devices and includes:
[0007] In response to the data request received in the current second communication cycle, send feedback data to the first device;
[0008] When the sending of the feedback data is completed, perform a frequency band scanning operation until the current time reaches the scanning stop time of the current second communication cycle, and then stop the frequency band scanning operation.
[0009] Optionally, the first communication cycle and the second communication cycle satisfy T1 = T2 / n, where T1 is the first communication cycle, T2 is the second communication cycle, and n is the number of the second devices.
[0010] Optionally, the process of when the sending of the feedback data is completed, performing a frequency band scanning operation until the current time reaches the scanning stop time of the current second communication cycle, and then stopping the frequency band scanning operation includes:
[0011] Perform the frequency band scanning operation on the frequency bands that have not been scanned in the current scanning cycle to obtain the communication quality parameters of the frequency bands until the current time reaches the scanning stop time of the current second communication cycle, and then stop performing the frequency band scanning operation on the frequency bands that have not been scanned.
[0012] Optionally, this multi-device communication method further includes:
[0013] According to all the obtained communication quality parameters, determine a preset number of optimal frequency bands, and send a communication list including all the optimal frequency bands to the first device, so that the first device and the second device can perform frequency hopping transmission of data according to the communication list.
[0014] Optionally, the communication quality parameter includes RSSI data;
[0015] The optimal frequency band is the frequency band with the RSSI data less than a preset value.
[0016] Optionally, the process of according to all the obtained communication quality parameters, determining a preset number of optimal frequency bands includes:
[0017] Determine an optimal frequency band with a preset number according to all the communication quality parameters obtained in the current scanning period.
[0018] Optionally, the first communication period is 1 ms and the second communication period is 2 ms.
[0019] To solve the above technical problems, the present application also provides a multi-device communication system. The multi-devices include a first device and at least two second devices. The first device has a first communication period, and the second device has a second communication period greater than the first communication period. The first device sends a data request to only one of the second devices in each of the first communication periods, and the first device sends the data request to different second devices in two adjacent first communication periods. Applied to any one of the second devices, the multi-device communication system includes:
[0020] A sending module, configured to respond to the data request received in the current second communication period and send feedback data to the first device;
[0021] A scanning module, configured to perform a frequency band scanning operation when the feedback data sending is completed, and stop the frequency band scanning operation until the current time reaches the scanning stop time of the current second communication period.
[0022] To solve the above technical problems, the present application also provides a multi-device communication device, including:
[0023] A memory, configured to store a computer program;
[0024] A processor, configured to implement the steps of the multi-device communication method as described in any one of the above when executing the computer program.
[0025] To solve the above technical problems, the present application also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the multi-device communication method as described in any one of the above are implemented.
[0026] The present application provides a multi-device communication method. The frequency band scanning operation is performed on the second device. Since the second communication cycle of the second device is longer than the first communication cycle of the first device, and the first device sends data requests to different second devices in two adjacent first communication cycles, therefore, after the second device sends feedback data to the first device in each second communication cycle, there is more time for the frequency band scanning operation, that is, the number of frequency bands that the second device can scan in each second communication cycle is relatively large, thereby shortening the communication list update time, reducing the possibility of the first device and the second device communicating using an interfered frequency band, and further avoiding a large number of data packet loss problems, and ensuring efficient data transmission between the first device and the second device. The present application also provides a multi-device communication system, device and computer-readable storage medium, which have the same beneficial effects as the above multi-device communication method. Description of the Drawings
[0027] To more clearly illustrate the embodiments of the present application, the following will briefly introduce the drawings required in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0028] Figure 1 It is a flowchart of the steps of a multi-device communication method provided by the present application;
[0029] Figure 2 It is a schematic diagram of a multi-device communication process provided by the present application;
[0030] Figure 3 It is a schematic diagram of the structure of a multi-device communication system provided by the present application. Detailed Embodiments
[0031] The core of the present application is to provide a multi-device communication method, system, device and computer-readable storage medium, which can shorten the communication list update time, reduce the possibility of the first device and the second device communicating using an interfered frequency band, and further avoid a large number of data packet loss problems, and ensure efficient data transmission between the first device and the second device.
[0032] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present application.
[0033] Please refer to Figure 1, Figure 1 It is a flowchart of the steps of a multi-device communication method provided by this application. The multi-device communication method includes:
[0034] S101: In response to a data request received in the current second communication cycle, send feedback data to the first device;
[0035] S102: When the feedback data sending is completed, perform a frequency band scanning operation until the current time reaches the scanning stop time of the current second communication cycle, and then stop the frequency band scanning operation.
[0036] Specifically, the multi-devices in this embodiment include a first device and at least two second devices. Among them, the second device is a device that needs to feedback its own operation data to the first device. For example, in a VR product, the HMD is the first device, and the two handles are both second devices.
[0037] Specifically, in this embodiment, the first device and the second device use a private protocol to transmit data, and the communication cycles of the first device and the second device can be flexibly set. In this embodiment, it is set that the first device has a first communication cycle, and the second device has a second communication cycle greater than the first communication cycle. The first device only sends a data request to one second device in each first communication cycle, and the first device sends the data request to different second devices in two adjacent first communication cycles.
[0038] For example, assuming there are two second devices, then the first device sends a data request to the first second device in the first first communication cycle, sends a data request to the second second device in the second first communication cycle, and sends a data request to the first second device in the third first communication cycle; assuming there are three second devices, then the first device sends a data request to the first second device in the first first communication cycle, sends a data request to the second second device in the second first communication cycle, sends a data request to the third second device in the third first communication cycle, and sends a data request to the first second device in the fourth first communication cycle, and so on.
[0039] Specifically, the steps of this embodiment can all be implemented by the second device. As described above, the second device also has a second communication cycle, and the second communication cycle of the second device is greater than the first communication cycle. Taking two second devices as an example for illustration, the two second devices are respectively denoted as the second device A and the second device B. Assume that the first device sends a data request to the second device A in the first communication cycle. After receiving the data request, the second device A sends its own feedback data to the first device. After the sending is completed, the second device A starts to perform a frequency band scanning operation. Since the second communication cycle of the second device A is longer than the first communication cycle, therefore, while the second device A is performing the frequency band scanning operation, it may have reached the second first communication cycle of the first device. At this time, the first device sends a data request to the second device B. After receiving the data request, the second device B sends its own feedback data to the first device. After the sending is completed, the second device B starts to perform a frequency band scanning operation.
[0040] As an alternative embodiment, the first communication cycle and the second communication cycle satisfy T1 = T2 / n, where T1 is the first communication cycle, T2 is the second communication cycle, and n is the number of second devices.
[0041] Specifically, in order to achieve efficient data transmission between the first device and multiple second devices, the values of the first communication cycle and the second communication cycle can be set according to the relationship of T1 = T2 / n. Refer to Figure 2 as shown Figure 2 This is a schematic diagram of data transmission between an HMD (Head Mounted Display) and a handle A and a handle B provided in this embodiment. Figure 2 In this example, the first communication cycle is set to 1 ms, and the second communication cycle is set to 2 ms. It is not difficult to see that within the first 1 ms, the HMD completes data transmission with the handle A. During the current 2 ms cycle of the handle A, after the handle A sends the data, it performs a frequency band scanning operation, that is, the scan part. Within the second 1 ms, the HMD completes data transmission with the handle B. At this time, the handle A is still performing the frequency band scanning operation. During the current 2 ms cycle of the handle B, after the handle B sends the data, it also performs a frequency band scanning operation, that is, the scan part. By setting the communication cycle as above, 500 Hz high-speed data transmission between the handle A and the handle B can be achieved. Of course, the above communication cycle can be set according to actual engineering needs, and this application does not make specific limitations here.
[0042] It can be understood that in this embodiment, the frequency band scanning operation is performed on the second device. Since the communication cycle of the second device is relatively long, and in the next first communication cycle, the first device transmits data to other second devices. Therefore, after sending the feedback data to the first device, the second device has more time to perform the frequency band scanning operation within its current second communication cycle, and can obtain the scanning results of more frequency bands, thereby shortening the update time of the communication list, avoiding the first device and the second device from transmitting data using an interfered frequency band, and reducing a large number of data packet loss problems.
[0043] Furthermore, this embodiment also sets a scanning stop moment for the second communication cycle of the second device. When the current moment reaches the scanning stop moment, the frequency band scanning operation is stopped, so that the second device can receive the data request that the first device is about to send to itself, in order to improve the reliability of communication and further avoid the problem of packet loss.
[0044] Specifically, in order to ensure the normal progress of various operations such as data reception, data transmission, and frequency band scanning in each second communication cycle of the second device and avoid their mutual influence, after the second device receives the data request sent by the first device, it adjusts its radio frequency state to the transmission state to send feedback data to the first device. After the feedback data is sent, it adjusts its radio frequency state to the scanning state to perform the frequency band scanning operation. When the current moment reaches the stop scanning moment of the current second communication cycle, it stops the subsequent frequency band scanning operation and adjusts its radio frequency state to the reception state to prepare to receive the data request sent by the first device in the next communication cycle. Among them, the adjustment of the radio frequency state can be achieved by modifying the value of the corresponding register.
[0045] It can be seen that in this embodiment, the frequency band scanning operation is performed on the second device. Since the second communication cycle of the second device is longer than the first communication cycle of the first device, and the first device sends data requests to different second devices in two adjacent first communication cycles. Therefore, after the second device sends the feedback data to the first device in each second communication cycle, it has more time to perform the frequency band scanning operation, that is, the number of frequency bands that the second device can scan in each second communication cycle is relatively large, thereby shortening the update time of the communication list, reducing the possibility of the first device and the second device communicating using an interfered frequency band, and further avoiding a large number of data packet loss problems, and ensuring efficient data transmission between the first device and the second device.
[0046] Based on the above embodiments:
[0047] As an optional embodiment, when the feedback data is sent and the frequency band scanning operation is performed until the current moment reaches the scanning stop moment of the current second communication cycle, the process of stopping the frequency band scanning operation includes:
[0048] Perform a frequency band scanning operation on the frequency bands that have not undergone a frequency band scanning operation during the current scanning period to obtain the communication quality parameters of the frequency bands, until the current time reaches the scanning stop time of the current second communication cycle, and stop performing the frequency band scanning operation on the frequency bands that have not undergone a frequency band scanning operation.
[0049] Specifically, in this embodiment, in each second communication cycle, the second device performs a frequency band scanning operation on each of the frequency bands that have not undergone a frequency band scanning operation during the current scanning period. Assume that the current second communication cycle is the first second communication cycle and the current scanning period is also the first scanning period. At this time, within the current scanning period, none of the frequency bands have undergone a frequency band scanning operation. Then, in the first second communication cycle, after the second device that has received the data request sends the feedback data to the first device, the second device starts from the first frequency band and performs a frequency band scanning operation on each of the frequency bands that have not undergone a frequency band scanning operation in sequence until the current time reaches the scanning stop time of the current second communication cycle, and stops scanning the next frequency band. Assume that 0.2 ms before the end of the current second communication cycle is the scanning stop time of the current second communication cycle. In the first second communication cycle, the 1.8 ms is the scanning stop time. If the current time is 1.8 ms, then no frequency band scanning operation will be performed on the frequency bands that have not undergone a frequency band scanning operation, and the scanning process is Figure 2 the scan on the timeline of handle A. After the scanning stop time and before the end of the current second communication cycle, that is Figure 2 the idle on the timeline of handle A.
[0050] If the handle has not performed a frequency band scanning operation on any frequency band at the scanning stop time of the current second communication cycle, the frequency band scanning operation of the current second communication cycle can be directly stopped; if the handle is performing a frequency band scanning operation on a certain frequency band m at the scanning stop time of the current second communication cycle, there are two processing schemes at this time. The first is to choose to stop the frequency band scanning operation of the frequency band m and still determine the frequency band m as a frequency band that has not undergone a frequency band scanning operation, and complete the scanning of the frequency band m in subsequent second communication cycles. The second is to choose to continue to complete the frequency band scanning operation of the frequency band m, but the second scheme has higher requirements for the scanning stop time, that is, it should be ensured that the scanning completion time of the frequency band m is before the end time of the current second communication cycle. Assume that in the first scheme, the scanning stop time can be set to 0.2 ms before the end of the current second communication cycle. Then, in the second scheme, the scanning stop time needs to be set to 0.3 ms before the end of the current second communication cycle to ensure that the completion of the frequency band scanning operation of this frequency band does not affect the normal interaction between the second device and the first device in the next communication cycle. The scanning stop time can be set according to the actual engineering needs, and this embodiment does not make specific limitations here.
[0051] It can be understood that it takes time to perform the frequency band scanning operation for each frequency band. At the same time, in order to ensure the efficient transmission of feedback data, the communication cycle of each second device is not set to be relatively long. Therefore, in this embodiment, it is impossible to complete the scanning of 80 frequency bands within one second communication cycle, and only the frequency band scanning operation of some frequency bands can be completed. The frequency band scanning operation of the remaining frequency bands will be completed in multiple subsequent second communication cycles. Suppose that 16 frequency bands are scanned in the first second communication cycle. In the second second communication cycle, the frequency band scanning operation will be performed on some of the remaining 64 frequency bands. If 15 frequency bands are scanned by the end of the second second communication cycle, then in the third second communication cycle, the frequency band scanning operation will be performed on some of the remaining 49 frequency bands, and so on until the scanning of 80 frequency bands is completed, which is recorded as the end of the current scanning cycle. Among them, it is sufficient to select the conventional frequency band scanning operation in the art to obtain the communication quality parameters of each frequency band, and this embodiment does not specifically limit the process of the frequency band scanning operation here.
[0052] As an alternative embodiment, the multi-device communication method further includes:
[0053] According to all the obtained communication quality parameters, determine a preset number of optimal frequency bands, and send a communication list including all the optimal frequency bands to the first device, so that the first device and the second device can perform frequency hopping transmission of data according to the communication list.
[0054] Specifically, all the communication quality parameters in this step may refer to all the communication quality parameters of the frequency bands obtained by the end of the current second communication cycle within the current scanning cycle. Taking the above example for illustration, assume that the communication quality parameters of 16 frequency bands are obtained in the first second communication cycle. At this time, the optimal frequency bands are selected from the 16 frequency bands. Assume that the communication quality parameters of 15 frequency bands are obtained in the second second communication cycle. At this time, the optimal frequency bands are selected from the 31 frequency bands.
[0055] To reduce the data processing volume and avoid frequent frequency band switching, as a most preferred embodiment, it is also possible to select the optimal frequency bands from 80 frequency bands after obtaining the communication quality parameters of 80 frequency bands. The number of optimal frequency bands can be determined according to actual engineering needs, and this application does not limit it here.
[0056] It can be understood that when the communication quality parameters of 80 frequency bands are obtained and then the optimal frequency band is selected from the 80 frequency bands for execution, considering that the completion time of the current scanning period may be at any time within the current second communication cycle. Therefore, after the optimal frequency band is selected, the communication list including the optimal frequency band can be immediately reported to the first device, so that the first device and the second device can quickly switch the frequency band, thereby avoiding using the transmission channel corresponding to the interfered frequency band to transmit data, and thus solving the problem of data packet loss.
[0057] As an alternative embodiment, the communication quality parameter includes RSSI (Received Signal Strength Indication) data;
[0058] The optimal frequency band is the frequency band with RSSI data less than the preset value. As an alternative embodiment, the process of determining the preset number of optimal frequency bands according to all the obtained communication quality parameters includes:
[0059] Determine the preset number of optimal frequency bands according to all the communication quality parameters obtained in the current scanning period.
[0060] Specifically, the RSSI data is the received signal strength indication data. According to the size of the RSSI data, it can be determined whether the frequency band where the current frequency band scanning operation is performed is interfered. For the receiving end, the smaller the RSSI data, the less interference. Therefore, in this embodiment, the frequency band with RSSI data less than the preset value can be determined as the optimal frequency band. According to the actual engineering needs, the number of optimal frequency bands required for the communication list can be determined first, and then the preset number of optimal frequency bands can be selected from all the frequency bands with RSSI data less than the preset value, and then the communication list including the optimal frequency bands can be uploaded to the first device, so that the first device and the second device can perform frequency hopping transmission of data using the new communication list. Further, the RSSI data corresponding to each frequency band can be arranged in ascending order, and the preset number of frequency bands with the smallest and smaller RSSI data can be selected as the optimal frequency bands.
[0061] In summary, the present application realizes the high-speed reporting of the IMU data of the two handles, and can also monitor the signal quality of each frequency band in real time, enabling the VR device to support 2.4G adaptive frequency hopping, which greatly improves the user experience of the VR device.
[0062] Please refer to Figure 3 , Figure 3The figure is a schematic structural diagram of a multi-device communication system provided by this application. The multi-devices include a first device and at least two second devices. The first device has a first communication cycle, and the second devices have a second communication cycle greater than the first communication cycle. The first device sends a data request to only one second device in each first communication cycle, and the first device sends data requests to different second devices in two adjacent first communication cycles. Applied to any second device, the multi-device communication system includes:
[0063] A sending module 1, configured to respond to a data request received in the current second communication cycle and send feedback data to the first device;
[0064] A scanning module 2, configured to perform a frequency band scanning operation when the feedback data sending is completed, and stop the frequency band scanning operation until the current time reaches the scanning stop time of the current second communication cycle.
[0065] It can be seen that in this embodiment, the frequency band scanning operation is performed on the second device. Since the second communication cycle of the second device is greater than the first communication cycle of the first device, and the first device sends data requests to different second devices in two adjacent first communication cycles, therefore, after the second device sends the feedback data to the first device in each second communication cycle, there is more time for the frequency band scanning operation, that is, the number of frequency bands that the second device can scan in each second communication cycle is relatively large, so as to shorten the communication list update time, reduce the possibility of the first device and the second device communicating using an interfered frequency band, and further avoid causing a large number of data packet loss problems, and ensure efficient data transmission between the first device and the second device.
[0066] As an optional embodiment, the first communication cycle and the second communication cycle satisfy T1 = T2 / n, where T1 is the first communication cycle, T2 is the second communication cycle, and n is the number of second devices.
[0067] As an optional embodiment, the process of performing a frequency band scanning operation when the feedback data sending is completed and stopping the frequency band scanning operation until the current time reaches the scanning stop time of the current second communication cycle includes:
[0068] Perform a frequency band scanning operation on the frequency bands that have not performed a frequency band scanning operation in the current scanning cycle to obtain the communication quality parameters of the frequency bands, and stop performing the frequency band scanning operation on the frequency bands that have not performed a frequency band scanning operation until the current time reaches the scanning stop time of the current second communication cycle.
[0069] As an optional embodiment, the multi-device communication system further includes:
[0070] An update module, configured to determine a preset number of optimal frequency bands according to all obtained communication quality parameters, and send a communication list including all the optimal frequency bands to a first device, so that the first device and a second device perform frequency hopping transmission of data according to the communication list.
[0071] As an optional embodiment, the communication quality parameters include RSSI data;
[0072] The optimal frequency band is a frequency band where the RSSI data is less than a preset value.
[0073] As an optional embodiment, the process of determining a preset number of optimal frequency bands according to all obtained communication quality parameters includes:
[0074] Determine a preset number of optimal frequency bands according to all communication quality parameters obtained in the current scanning period.
[0075] As an optional embodiment, the first communication period is 1 ms and the second communication period is 2 ms.
[0076] On the other hand, the present application further provides a multi-device communication device, including:
[0077] A memory, configured to store a computer program;
[0078] A processor, configured to implement the steps of the multi-device communication method described in any of the above embodiments when executing the computer program.
[0079] Specifically, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium. When the processor executes the computer program stored in the memory, the following steps can be implemented: in response to a data request received in the current second communication period, send feedback data to the first device; when the sending of the feedback data is completed, perform a frequency band scanning operation until the current time reaches the scanning stop time of the current second communication period, and stop the frequency band scanning operation.
[0080] It can be seen that in this embodiment, the frequency band scanning operation is performed on the second device. Since the second communication cycle of the second device is greater than the first communication cycle of the first device, and the first device sends data requests to different second devices in two adjacent first communication cycles, therefore, after the second device sends the feedback data to the first device in each second communication cycle, there is more time for the frequency band scanning operation, that is, the number of frequency bands that the second device can scan in each second communication cycle is relatively large, thereby shortening the communication list update time, reducing the possibility of the first device and the second device communicating using the interfered frequency band, and further avoiding a large number of data packet loss problems, and ensuring efficient data transmission between the first device and the second device.
[0081] As an optional embodiment, when the processor executes the computer subroutine stored in the memory, the following steps can be implemented: set the first communication cycle and the second communication cycle to satisfy T1 = T2 / n, where T1 is the first communication cycle, T2 is the second communication cycle, and n is the number of second devices.
[0082] As an optional embodiment, when the processor executes the computer subroutine stored in the memory, the following steps can be implemented: perform a frequency band scanning operation on the frequency bands that have not performed the frequency band scanning operation in the current scanning cycle to obtain the communication quality parameters of the frequency bands, until the current time reaches the scanning stop time of the current second communication cycle, and stop performing the frequency band scanning operation on the frequency bands that have not performed the frequency band scanning operation.
[0083] As an optional embodiment, when the processor executes the computer subroutine stored in the memory, the following steps can be implemented: determine a preset number of optimal frequency bands according to all the obtained communication quality parameters, and send the communication list including all the optimal frequency bands to the first device, so that the first device and the second device can perform frequency hopping transmission of data according to the communication list.
[0084] As an optional embodiment, when the processor executes the computer subroutine stored in the memory, the following steps can be implemented: the communication quality parameter includes RSSI data, and determine the frequency bands with RSSI data less than the preset value as the optimal frequency bands.
[0085] As an optional embodiment, when the processor executes the computer subroutine stored in the memory, the following steps can be implemented: determine a preset number of optimal frequency bands according to all the communication quality parameters obtained in the current scanning cycle.
[0086] As an optional embodiment, when the processor executes the computer subroutine stored in the memory, the following steps can be implemented: set the first communication cycle to 1 ms and the second communication cycle to 2 ms.
[0087] Based on the above embodiments, as a preferred embodiment, the multi-device communication device further includes:
[0088] An input interface, connected to the processor, for obtaining externally imported computer programs, parameters, and instructions, and storing them in the memory under the control of the processor. The input interface can be connected to an input device to receive parameters or instructions manually input by the user. The input device can be a touch layer covering the display screen, or a button, trackball, or touchpad provided on the terminal housing.
[0089] A display unit, connected to the processor, for displaying the data sent by the processor. The display unit can be a liquid crystal display screen or an electronic ink display screen, etc.
[0090] A network port, connected to the processor, for communicating and connecting with external terminal devices. The communication technology used for this communication connection can be a wired communication technology or a wireless communication technology, such as Mobile High-Definition Link (MHL), Universal Serial Bus (USB), High-Definition Multimedia Interface (HDMI), Wireless Fidelity (WiFi), Bluetooth communication technology, Low Energy Bluetooth communication technology, communication technology based on IEEE802.11s, etc.
[0091] On the other hand, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the steps of the multi-device communication method described in any one of the above embodiments.
[0092] The present application also provides a computer-readable storage medium, which may include various media capable of storing program codes, such as a USB flash drive, a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disc. A computer program is stored on the storage medium. When the computer program is executed by a processor, the following steps are implemented: in response to a data request received in the current second communication cycle, sending feedback data to the first device; when the sending of the feedback data is completed, performing a frequency band scanning operation until the current time reaches the scanning stop time of the current second communication cycle, and stopping the frequency band scanning operation.
[0093] It can be seen that in this embodiment, the frequency band scanning operation is performed on the second device. Since the second communication cycle of the second device is greater than the first communication cycle of the first device, and the first device sends data requests to different second devices in two adjacent first communication cycles, therefore, after the second device sends the feedback data to the first device in each second communication cycle, there is more time for the frequency band scanning operation, that is, the number of frequency bands that the second device can scan in each second communication cycle is relatively large, so as to shorten the communication list update time, reduce the possibility of the first device and the second device communicating using the interfered frequency band, and further avoid causing a large number of data packet loss problems, and ensure the efficient data transmission between the first device and the second device.
[0094] As an alternative embodiment, when the computer subroutine stored in the computer-readable storage medium is executed by the processor, the following steps can be specifically implemented: Set the first communication cycle and the second communication cycle to satisfy T1 = T2 / n, where T1 is the first communication cycle, T2 is the second communication cycle, and n is the number of second devices.
[0095] As an alternative embodiment, when the computer subroutine stored in the computer-readable storage medium is executed by the processor, the following steps can be specifically implemented: Perform a frequency band scanning operation on the frequency bands that have not performed the frequency band scanning operation within the current scanning cycle to obtain the communication quality parameters of the frequency bands, and stop performing the frequency band scanning operation on the frequency bands that have not performed the frequency band scanning operation until the current time reaches the scanning stop time of the current second communication cycle.
[0096] As an alternative embodiment, when the computer subroutine stored in the computer-readable storage medium is executed by the processor, the following steps can be specifically implemented: Determine a preset number of optimal frequency bands according to all the obtained communication quality parameters, and send the communication list including all the optimal frequency bands to the first device, so that the first device and the second device can perform frequency hopping transmission of data according to the communication list.
[0097] As an alternative embodiment, when the computer subroutine stored in the computer-readable storage medium is executed by the processor, the following steps can be specifically implemented: The communication quality parameter includes RSSI data, and the frequency band with the RSSI data less than the preset value is determined as the optimal frequency band.
[0098] As an alternative embodiment, when the computer subroutine stored in the computer-readable storage medium is executed by the processor, the following steps can be specifically implemented: Determine a preset number of optimal frequency bands according to all the communication quality parameters obtained in the current scanning cycle.
[0099] As an alternative embodiment, when the computer subroutine stored in the computer-readable storage medium is executed by the processor, the following steps can be specifically implemented: Set the first communication cycle to 1 ms and the second communication cycle to 2 ms.
[0100] It should also be noted that in this specification, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the said element.
[0101] The foregoing 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 can 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 is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A multi-device communication method, where the multi-devices include a first device and at least two second devices, characterized in that, The first device has a first communication period, and the second device has a second communication period greater than the first communication period. The first device sends a data request to only one of the second devices in each of the first communication periods, and the first device sends the data request to different second devices in two adjacent first communication periods. This multi-device communication method is applied to any one of the second devices and includes: In response to the data request received in the current second communication period, sending feedback data to the first device; When the sending of the feedback data is completed, performing a frequency band scanning operation until the current time reaches the scanning stop time of the current second communication period, and then stopping the frequency band scanning operation.
2. The multi-device communication method according to claim 1, wherein The first communication period and the second communication period satisfy T1 = T2 / n, where T1 is the first communication period, T2 is the second communication period, and n is the number of the second devices.
3. The multi-device communication method according to claim 1, wherein The process of when the sending of the feedback data is completed, performing a frequency band scanning operation until the current time reaches the scanning stop time of the current second communication period, and then stopping the frequency band scanning operation includes: Performing the frequency band scanning operation on the frequency bands that have not performed the frequency band scanning operation in the current scanning period to obtain the communication quality parameters of the frequency bands until the current time reaches the scanning stop time of the current second communication period, and then stopping performing the frequency band scanning operation on the frequency bands that have not performed the frequency band scanning operation.
4. The multi-device communication method according to claim 3, wherein This multi-device communication method further includes: According to all the obtained communication quality parameters, determining a preset number of optimal frequency bands, and sending a communication list including all the optimal frequency bands to the first device so that the first device and the second device can perform frequency hopping transmission of data according to the communication list.
5. The multi-device communication method according to claim 4, characterized in that The communication quality parameters include RSSI data; The optimal frequency band is the frequency band where the RSSI data is less than a preset value.
6. The multi-device communication method according to claim 4, characterized in that, The process of according to all the obtained communication quality parameters, determining a preset number of optimal frequency bands includes: According to all the communication quality parameters obtained in the current scanning period, determining a preset number of optimal frequency bands.
7. The multi-device communication method according to any one of claims 1-6, characterized in that The first communication period is 1 ms, and the second communication period is 2 ms.
8. A multi-device communication system, the multi-devices including a first device and at least two second devices, characterized in that, The first device has a first communication period, and the second device has a second communication period greater than the first communication period. The first device sends a data request to only one of the second devices in each of the first communication periods, and the first device sends the data request to different second devices in two adjacent first communication periods. This multi-device communication system is applied to any one of the second devices. This multi-device communication system includes: A sending module, configured to send feedback data to the first device in response to the data request received in the current second communication period; A scanning module, configured to perform a frequency band scanning operation when the sending of the feedback data is completed until the current time reaches the scanning stop time of the current second communication period, and then stop the frequency band scanning operation.
9. A multi-device communication device, characterized in that, Including: A memory, configured to store a computer program; A processor, configured to implement the steps of the multi-device communication method according to any one of claims 1-7 when executing the computer program.
10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the multi-device communication method according to any one of claims 1-7 are implemented.
Citation Information
Patent Citations
Data transceiving method, electronic device and computer readable storage medium
CN112533269A
Beam sweeping on millimeter wave frequencies for device-to-device communications
US20200322774A1