Data transmission method between somatosensory device and terminal

By obtaining the game frame rate of the terminal for data packaging and transmission, adjusting the Bluetooth transmission power, and optimizing the data transmission strategy, it solves the problems of low data transmission efficiency and high packet loss rate between the somatosensory watch and the mobile phone, and improves the smoothness of the somatosensory game and user experience.

CN115002834BActive Publication Date: 2024-11-22SHENZHEN SHIMI NETWORK TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202210697253.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-20
Publication Date
2024-11-22
Estimated Expiration
2042-06-20

AI Technical Summary

Technical Problem

The data transmission efficiency between existing somatosensory watches and mobile phones is low, and the packet loss rate is high, resulting in somatosensory movements not smooth.

Method used

By obtaining the terminal's game frame rate in the somatosensory device, packaging and transmitting motion posture data in real time, adjusting Bluetooth transmission power, optimizing the data transmission process, and adopting high-priority and low-priority data transmission strategies.

Benefits of technology

It reduces the packet loss rate and delay of data transmission, and improves the smoothness and user experience of somatosensory games.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115002834B_ABST
    Figure CN115002834B_ABST
Patent Text Reader

Abstract

The present invention discloses a data transmission method, device, equipment and computer-readable storage medium between a somatosensory device and a terminal. The data transmission method comprises: after a preset somatosensory game is started, the somatosensory device obtains the game frame rate of the preset somatosensory game from the terminal; the somatosensory device obtains the motion posture data of the user in real time; the somatosensory device packages the motion posture data based on the game frame rate; the somatosensory data is transmitted to the terminal based on the Bluetooth protocol to obtain the packaged data packet. The data transmission method of the present application has the advantages of low packet loss rate, low delay rate and good game experience for players.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data transmission, and in particular to a data transmission method, device, equipment and computer-readable storage medium between a somatosensory device and a terminal. Background Art

[0002] As users' demand for somatosensory gaming experience becomes higher and higher, and mobile phones are unable to complete multiple somatosensory actions, somatosensory watches are needed. The action data generated by the somatosensory watches can be used to change the games on the terminal App to display various actions in real time. Therefore, we need to format the data on the somatosensory watches and then transmit them to the terminal App to operate objects or characters in the game.

[0003] At present, the data transmission between the somatosensory watch and the mobile phone is through packetization, which divides the data into 20-byte packets and transmits them to the terminal in sequence. The terminal then assembles the data, processes the data and displays the somatosensory movements. This packetized data transmission method will greatly reduce the transmission efficiency and greatly increase the packet loss rate, which can easily cause data loss, resulting in some somatosensory movements of the terminal not being smooth. Summary of the invention

[0004] The embodiments of the present application provide a method for data transmission between a somatosensory device and a terminal, aiming to reduce the packet loss rate and delay of data transmission from the somatosensory device to the terminal.

[0005] To achieve the above object, an embodiment of the present application provides a data transmission method between a somatosensory device and a terminal, comprising:

[0006] After the preset somatosensory game is started, the somatosensory device obtains the game frame rate of the preset somatosensory game from the terminal;

[0007] The somatosensory device obtains the user's motion posture data in real time;

[0008] The somatosensory device packages the motion gesture data based on the game frame rate;

[0009] The body sensing data is packaged and transmitted to the terminal based on the Bluetooth protocol.

[0010] In one embodiment, the somatosensory device packages the motion gesture data based on the game frame rate, including:

[0011] Calculate the display duration of a frame of the game screen according to the game frame rate;

[0012] The motion posture data is split and packaged according to the display duration.

[0013] In one embodiment, the somatosensory device acquires the user's motion posture data in real time, including:

[0014] The terminal determines the target axis information required for user action recognition according to the preset somatosensory game;

[0015] The body sensing device obtains target axis information from the terminal, and uses sensor data matching the target axis information as the motion posture data.

[0016] In one embodiment, the method further comprises:

[0017] The terminal calculates the packet loss rate of the current Bluetooth transmission;

[0018] If the packet loss rate is greater than a preset packet loss threshold, then calculating the target Bluetooth transmission power under the current packet loss rate;

[0019] The somatosensory device obtains the target Bluetooth transmission power from the terminal, and adjusts the current Bluetooth transmission power to the target Bluetooth transmission power.

[0020] In one embodiment, the terminal somatosensory device calculates the target Bluetooth transmission power under the current packet loss rate based on the following algorithm:

[0021]

[0022] Where P C is the target Bluetooth transmission power; L C is the packet loss rate of the current Bluetooth transmission; L max is the maximum packet loss rate, and L max is 100%; e is a constant.

[0023] In one embodiment, the method further comprises:

[0024] During the game, the terminal transmits data to the somatosensory device according to the preset data priority and the game stage of the current somatosensory game.

[0025] In one embodiment, the game phase includes an active phase and an inactive phase, and the preset data priority includes a high priority and a low priority;

[0026] During the game, the terminal transmits data to the somatosensory device according to the preset data priority and the game stage of the current somatosensory game, including:

[0027] Transmitting high priority data at all stages of the preset motion sensing game; and

[0028] Low priority data is transmitted during an inactive phase of the preset motion sensing game.

[0029] To achieve the above purpose, the embodiment of the present application further proposes a data transmission device between a somatosensory device and a terminal, comprising:

[0030] A data transmission module, used for obtaining the game frame rate of the preset somatosensory game from the terminal after the preset somatosensory game is started;

[0031] IMU sensor, used to obtain the user's motion posture data in real time;

[0032] A packaging module, used for packaging the motion gesture data based on the game frame rate;

[0033] The data transmission module is also used to transmit the packaged data packets to the terminal based on the Bluetooth protocol.

[0034] To achieve the above-mentioned objectives, an embodiment of the present application also proposes a data transmission device between a somatosensory device and a terminal, comprising a memory, a processor, and a data transmission program between the somatosensory device and the terminal stored in the memory and runnable on the processor, wherein when the processor executes the data transmission program between the somatosensory device and the terminal, a data transmission method between the somatosensory device and the terminal as described in any one of the above items is implemented.

[0035] To achieve the above objectives, an embodiment of the present application also proposes a computer-readable storage medium, on which a data transmission program between a somatosensory device and a terminal is stored. When the data transmission program between the somatosensory device and the terminal is executed by a processor, a data transmission method between the somatosensory device and the terminal as described in any of the above items is implemented.

[0036] The data transmission method between the somatosensory device and the terminal of the technical solution of the present application, when performing player posture data transmission, the somatosensory device obtains the game frame rate of the preset somatosensory game from the terminal, so that the somatosensory device can split and package the player posture data according to the game frame rate, and then send the packaged data packet to the terminal based on the Bluetooth protocol. In this way, the size of a data packet can be adjusted in real time according to the game frame rate to reduce the problem of packet loss during data transmission; on the other hand, since a data packet only contains the data content of one frame of the game screen, even if packet loss occurs, because the human eye has the characteristic of automatically supplementing frames for dynamic images, as long as the continuous multi-frame data is not lost, in the user's view, the overall action of the controlled game object can still remain smooth, thereby improving the jamming problem caused by frame loss. It can be seen that compared with the traditional data transmission method, the data transmission method of the present application has the advantages of low packet loss rate, low delay rate and good player game experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention 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 some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.

[0038] Figure 1 It is a module structure diagram of an embodiment of a data transmission device between a somatosensory device and a terminal of the present invention;

[0039] Figure 2 It is a flow chart of an embodiment of a method for data transmission between a somatosensory device and a terminal according to the present invention;

[0040] Figure 3 It is a flow chart of another embodiment of the data transmission method between a somatosensory device and a terminal of the present invention;

[0041] Figure 4 It is a flowchart of another embodiment of the data transmission method between a somatosensory device and a terminal of the present invention;

[0042] Figure 5 It is a module structure diagram of an embodiment of a data transmission device between a somatosensory device and a terminal of the present invention.

[0043] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0044] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0045] In order to better understand the above technical solution, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0046] It should be noted that in the claims, any reference symbols placed between brackets shall not be constructed as limitations to the claims. The presence of "comprising" in the text does not exclude the presence of components or steps not listed in the claims. The quantifier "one" or "an" preceding a component does not exclude the presence of a plurality of such components. The present invention can be implemented by means of hardware comprising several different components and by means of appropriately programmed computers. In a unit claim that lists several means, several of these means may be embodied by the same hardware item. The use of "first", "second", and "third" etc. does not indicate any order, and these words may be interpreted as names.

[0047] like Figure 1 As shown, Figure 1 It is a structural diagram of a server 1 (also called a data transmission device between a somatosensory device and a terminal) in a hardware operating environment involved in an embodiment of the present invention.

[0048] The server of the embodiment of the present invention is a device with display function, such as "Internet of Things devices", smart air conditioners, smart lights, smart power supplies with networking functions, AR / VR devices with networking functions, smart speakers, self-driving cars, PCs, smart phones, tablet computers, e-book readers, portable computers, etc.

[0049] like Figure 1 As shown, the server 1 includes: a memory 11, a processor 12 and a network interface 13.

[0050] The memory 11 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of the server 1, such as a hard disk of the server 1. In other embodiments, the memory 11 may also be an external storage device of the server 1, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc., equipped on the server 1.

[0051] Furthermore, the memory 11 may also include an internal storage unit of the server 1 and an external storage device. The memory 11 may be used not only to store application software installed on the server 1 and various data, such as the code of the data transmission program 10 between the somatosensory device and the terminal, but also to temporarily store data that has been output or is to be output.

[0052] In some embodiments, the processor 12 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, used to run the program code stored in the memory 11 or process data, such as executing the data transmission program 10 between the somatosensory device and the terminal.

[0053] The network interface 13 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), and is generally used to establish a communication connection between the server 1 and other electronic devices.

[0054] The network may be the Internet, a cloud network, a wireless fidelity (Wi-Fi) network, a personal area network (PAN), a local area network (LAN), and / or a metropolitan area network (MAN). Various devices in the network environment may be configured to connect to the communication network according to various wired and wireless communication protocols. Examples of such wired and wireless communication protocols may include, but are not limited to, at least one of the following: Transmission Control Protocol and Internet Protocol (TCP / IP), User Datagram Protocol (UDP), Hypertext Transfer Protocol (HTTP), File Transfer Protocol (FTP), ZigBee, EDGE, IEEE 802.11, Light Fidelity (Li-Fi), 802.16, IEEE 802.11s, IEEE802.11g, multi-hop communication, wireless access point (AP), device-to-device communication, cellular communication protocol, and / or Bluetooth (BlueTooth) communication protocol or a combination thereof.

[0055] Optionally, the server may further include a user interface, which may include a display, an input unit such as a keyboard, and an optional user interface may further include a standard wired interface and a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be referred to as a display screen or a display unit, which is used to display information processed in the server 1 and to display a visual user interface.

[0056] Figure 1 Only the server 1 having components 11-13 and the data transmission program 10 between the somatosensory device and the terminal is shown. It can be understood by those skilled in the art that Figure 1 The structure shown does not constitute a limitation on the server 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0057] In this embodiment, the processor 12 may be used to call the data transmission program between the somatosensory device and the terminal stored in the memory 11, and perform the following operations:

[0058] After the preset somatosensory game is started, the somatosensory device obtains the game frame rate of the preset somatosensory game from the terminal;

[0059] The somatosensory device obtains the user's motion posture data in real time;

[0060] The somatosensory device packages the motion gesture data based on the game frame rate;

[0061] The body sensing data is packaged and transmitted to the terminal based on the Bluetooth protocol.

[0062] In one embodiment, the processor 12 may be used to call a data transmission program between the somatosensory device and the terminal stored in the memory 11, and perform the following operations:

[0063] Calculate the display duration of a frame of the game screen according to the game frame rate;

[0064] The motion posture data is split and packaged according to the display duration.

[0065] In one embodiment, the processor 12 may be used to call a data transmission program between the somatosensory device and the terminal stored in the memory 11, and perform the following operations:

[0066] The terminal determines the target axis information required for user action recognition according to the preset somatosensory game;

[0067] The body sensing device obtains target axis information from the terminal, and uses sensor data matching the target axis information as the motion posture data.

[0068] In one embodiment, the processor 12 may be used to call a data transmission program between the somatosensory device and the terminal stored in the memory 11, and perform the following operations:

[0069] The terminal calculates the packet loss rate of the current Bluetooth transmission;

[0070] If the packet loss rate is greater than a preset packet loss threshold, then calculating the target Bluetooth transmission power under the current packet loss rate;

[0071] The somatosensory device obtains the target Bluetooth transmission power from the terminal, and adjusts the current Bluetooth transmission power to the target Bluetooth transmission power.

[0072] In one embodiment, the processor 12 may be used to call a data transmission program between the somatosensory device and the terminal stored in the memory 11, and perform the following operations:

[0073] The terminal calculates the target Bluetooth transmission power under the current packet loss rate of the somatosensory device based on the following algorithm:

[0074]

[0075] Where P C is the target Bluetooth transmission power; L C is the packet loss rate of the current Bluetooth transmission; L max is the maximum packet loss rate, and L max is 100%; e is a constant.

[0076] In one embodiment, the processor 12 may be used to call a data transmission program between the somatosensory device and the terminal stored in the memory 11, and perform the following operations:

[0077] During the game, the terminal transmits data to the somatosensory device according to the preset data priority and the game stage of the current somatosensory game.

[0078] In one embodiment, the processor 12 may be used to call a data transmission program between the somatosensory device and the terminal stored in the memory 11, and perform the following operations:

[0079] Transmitting high priority data at all stages of the preset motion sensing game; and

[0080] Low priority data is transmitted during an inactive phase of the preset motion sensing game.

[0081] Based on the hardware architecture of the data transmission device between the somatosensory device and the terminal, an embodiment of the data transmission method between the somatosensory device and the terminal of the present invention is proposed. The data transmission method between the somatosensory device and the terminal of the present invention aims to reduce the packet loss rate and delay of data transmission from the somatosensory device to the terminal.

[0082] Reference Figure 2 , Figure 2 This is an embodiment of a data transmission method between a somatosensory device and a terminal of the present invention. The data transmission method between the somatosensory device and the terminal comprises the following steps:

[0083] S10: After the preset somatosensory game is started, the somatosensory device obtains the game frame rate of the preset somatosensory game from the terminal.

[0084] Among them, the preset somatosensory game refers to a somatosensory game that is pre-installed on the terminal and can be run on the terminal. For example, the somatosensory game can be a somatosensory tennis game, a somatosensory table tennis game, a somatosensory swimming game, a somatosensory running game, etc. The terminal can be an AR / VR device with networking function, a smart speaker, an autonomous driving car, a PC, a smartphone, a tablet computer, an e-book reader, a portable computer, and other devices with Bluetooth connection function.

[0085] Specifically, when the preset somatosensory game is running on the terminal, the game screen is played at a fixed game frame rate, and different somatosensory games have different game frame rates. Among them, the game frame rate refers to the number of game screens displayed by the terminal within one second. The somatosensory game records the game frame rate when the game is running. The terminal can obtain the game frame rate of the current somatosensory game and transmit it to the somatosensory device through the Bluetooth protocol, so that the somatosensory device knows the game frame rate of the somatosensory game currently running on the terminal.

[0086] S20. The somatosensory device obtains the user's motion posture data in real time.

[0087] Among them, the somatosensory device has an IMU sensor, which can detect the user's motion posture data. The IMU sensor usually includes a three-axis accelerometer and a three-axis gyroscope. When working, the IMU sensor can simultaneously detect three-axis acceleration data and three-axis gyroscope data. Exemplarily, the somatosensory device can be a bracelet, a glove watch, a headscarf, a hat, a vest, a fitness ring, a game controller and other devices. In addition to motion detection, the somatosensory device defined by the technical solution of this application must also have a Bluetooth connection function to establish a Bluetooth connection with the terminal.

[0088] Specifically, after the terminal starts the preset somatosensory game, the somatosensory device can detect the user's motion posture in real time and generate motion posture data.

[0089] S30: The somatosensory device packages the motion posture data based on the game frame rate.

[0090] Specifically, after determining the game frame rate of the current somatosensory game on the terminal, the somatosensory device can package the user's motion posture data according to the game frame rate. The details are as follows:

[0091] S31. Calculate the display duration of one frame of the game screen according to the game frame rate.

[0092] Among them, the game frame rate is FPS, which represents the number of frames of the game screen in one second. For example, if the game frame rate of the somatosensory game is 60FPS, it means that in one second, the terminal displays 60 game screens.

[0093] Furthermore, according to the number of frames rendered by the game, the display duration of each frame of the game can be calculated. Taking 60FPS as an example, if the frame rate of the somatosensory game is 60FPS, the duration of each frame = 1 / 60 = 0.0167 seconds = 16.7 milliseconds.

[0094] Based on the above method, after obtaining the game frame rate of the current somatosensory game, the somatosensory device can calculate the display duration of each frame of the game screen.

[0095] S32, splitting and packaging the motion posture data according to the display duration.

[0096] Specifically, after calculating the display duration of each frame, the somatosensory device can split the player's motion posture data based on the duration as a separation unit, and pack the split posture data into a data packet.

[0097] In this way, the somatosensory device can realize a frame-by-frame data packaging method according to the game frame rate of the current somatosensory game.

[0098] It is worth noting that the design of the present application is not limited to this. In other embodiments, the somatosensory device can also implement a packaging method of multiple frames in one package according to the game frame rate of the current somatosensory game.

[0099] S40: The body sensing data is packaged and transmitted to the terminal based on the Bluetooth protocol.

[0100] Specifically, after splitting and packaging the player's posture data, the somatosensory device can transmit the player's motion posture data to the terminal based on the Bluetooth protocol. Correspondingly, after the terminal obtains the data packet of the somatosensory device, it will glue the data packet to obtain the motion posture data. After obtaining the player's posture data, the terminal will settle the player's posture data based on a preset algorithm (such as the Euler angle solution algorithm) to obtain the somatosensory game instructions that match the user's motion posture, and finally send the game instructions to the somatosensory game, so that the controlled object in the somatosensory game performs game operations that match the player's actions.

[0101] It can be understood that in the data transmission method between the somatosensory device and the terminal of the technical solution of the present application, when performing player posture data transmission, the somatosensory device obtains the game frame rate of the preset somatosensory game from the terminal, so that the somatosensory device can split and package the player posture data according to the game frame rate, and then send the packaged data packet to the terminal based on the Bluetooth protocol. In this way, the size of a data packet can be adjusted in real time according to the game frame rate to reduce the problem of packet loss during data transmission; on the other hand, since a data packet only contains the data content of one frame of the game screen, even if packet loss occurs, because the human eye has the characteristic of automatically supplementing frames for dynamic images, as long as the continuous multi-frame data is not lost, in the user's view, the overall action of the controlled game object can still remain smooth, thereby improving the jamming problem caused by frame loss. It can be seen that compared with the traditional data transmission method, the data transmission method of the present application has the advantages of low packet loss rate, low delay rate and good player game experience.

[0102] like Figure 3 As shown, in some embodiments, the somatosensory device packages the motion gesture data based on the game frame rate, further comprising:

[0103] S110. The terminal determines a target axis required for user motion recognition according to a preset somatosensory game.

[0104] Specifically, after the somatosensory game is started, the somatosensory device will detect three-axis acceleration data and three-axis gyroscope data, a total of six-axis data. However, in somatosensory games, players usually only need to repeat fixed types of somatosensory movements to achieve control of game characters (such as breaststroke movements in breaststroke somatosensory games, swinging movements in tennis somatosensory games, etc.), and these fixed somatosensory movements, when reflected in the signals of the IMU sensor, will have a fixed axis or several axes whose signals change most dramatically (for example, in rope skipping somatosensory games, when the user is playing, the acceleration Y-axis signal changes most dramatically). Based on the above reasons, the terminal can obtain the game operation instructions corresponding to the user's real actions based only on the signals of some axes. And this part of the axis is the target axis data we need.

[0105] S120: The somatosensory device obtains target axis information from the terminal, and uses sensor data matching the target axis information as the motion posture data.

[0106] Specifically, before the somatosensory device transmits the player's posture data to the terminal, the terminal can send the target axis information to the somatosensory device to inform the somatosensory device of which axes the posture motion data required for the current somatosensory game is. Further, after obtaining the target axis information, the somatosensory device selects data matching the target axis information from the IMU sensor as the motion posture data transmitted to the terminal.

[0107] It can be understood that through the above solution, the amount of data transmitted from the somatosensory device to the terminal can be reduced while ensuring the terminal's recognition of the player's actions, which helps to reduce the delay from the somatosensory device to the terminal and helps to improve the packet loss problem.

[0108] In some embodiments, the method of the present application further comprises:

[0109] S210: The terminal calculates the packet loss rate of the current Bluetooth transmission of the somatosensory device.

[0110] Among them, the packet loss rate indicates the ratio of the number of data packets lost during data transmission to the total number of data groups sent. Usually, the packet loss rate value should be lower than one in ten thousand for data transmission to be smooth.

[0111] In some embodiments, before the somatosensory device transmits the player's posture data to the terminal, the somatosensory device may transmit and store a test data packet to the terminal. After receiving the somatosensory device test data packet, the terminal may compare the received test data packet with the pre-stored test data to determine the current packet loss rate of the somatosensory device.

[0112] In other embodiments, when the somatosensory device transmits the user's motion posture data to the terminal, the terminal can call the Bluetooth underlying packet loss rate (Packet Loss Rate) interface ReadLossRate() to read the packet loss rate of the current motion posture data transmission of the somatosensory device. Among them, the terminal can read the packet loss rate of the current motion posture data transmission of the somatosensory device in real time, or read the packet loss rate of the current motion posture data transmission according to a preset frequency, which can be flexibly set during specific implementation.

[0113] S220: If the packet loss rate is greater than a preset packet loss threshold, calculate the target Bluetooth transmission power of the somatosensory device under the current packet loss rate.

[0114] Specifically, after the terminal obtains the packet loss rate of the current Bluetooth transmission of the somatosensory device, it can determine whether the packet loss rate is greater than the preset packet loss rate threshold. If so, it is determined that the current Bluetooth audio transmission interference is large, and the Bluetooth transmission power of the terminal needs to be adjusted. Among them, the packet loss rate threshold can be flexibly set according to actual needs, for example, it can be set to one ten-thousandth.

[0115] It is worth noting that, under the same other conditions, the greater the Bluetooth transmission power of the somatosensory device, the longer the transmission distance, and the greater the effective distance of Bluetooth data transmission. Therefore, to a certain extent, increasing the Bluetooth transmission power can reduce the packet loss rate of Bluetooth data transmission and reduce game lag. Among them, somatosensory devices, especially wearable somatosensory devices, usually have a low Bluetooth transmission power setting in order to take into account the battery life of the device, and it is not easily adjusted.

[0116] Then, when the terminal determines that the current Bluetooth transmission packet loss rate of the somatosensory device is large, it can calculate the Bluetooth transmission power corresponding to the current Bluetooth audio transmission packet loss rate according to the preset algorithm to increase the Bluetooth transmission power of the somatosensory device. Of course, the calculated target Bluetooth transmission power needs to be within a reasonable range, such as between 0 and the maximum transmission power specified in the protocol, where the preset algorithm can be flexibly set according to the maximum transmission power specified in the protocol or the empirical value of the maximum transmission power.

[0117] Specifically, if the maximum Bluetooth transmission power specified in the Bluetooth communication protocol is 10 dBm (decibel milliwatt), the terminal may calculate the target Bluetooth transmission power of the somatosensory device based on the following algorithm:

[0118]

[0119] Where P C is the target Bluetooth transmission power; L C is the packet loss rate of the current Bluetooth transmission; L max is the maximum packet loss rate, and L maxis 100%; e is a constant.

[0120] The obtained packet loss rate L of the current Bluetooth audio transmission of the terminal C Substituting the above formula, we can calculate the Bluetooth transmission power P corresponding to the current Bluetooth data transmission packet loss rate. C .

[0121] S230: The somatosensory device obtains the target Bluetooth transmission power from the terminal, and adjusts the current Bluetooth transmission power to the target Bluetooth transmission power.

[0122] Specifically, after calculating the target Bluetooth transmission power of the somatosensory device, the terminal can transmit the target power to the somatosensory device. Correspondingly, after receiving the target Bluetooth transmission power, the somatosensory device can adjust the current Bluetooth transmission power to the target Bluetooth transmission power to improve the packet loss problem during data transmission.

[0123] It can be understood that, through the above method, the Bluetooth transmission power of the somatosensory device can be adaptively adjusted to improve the packet loss problem during data transmission.

[0124] In some embodiments, the method of the present application further comprises:

[0125] During the game, the terminal transmits data to the somatosensory device according to the preset data priority and the game stage of the current somatosensory game.

[0126] It is worth mentioning that when the user is playing a somatosensory game, when the terminal transmits data to the somatosensory device, on the one hand, the terminal data will occupy the Bluetooth channel, resulting in delayed transmission of gesture and motion data, affecting the user experience; on the other hand, the data between different channels may interfere with each other, resulting in packet loss.

[0127] Therefore, during the game, the terminal is set to preset data priority and the game stage of the current somatosensory game, and adaptively transmits data to the somatosensory device to ensure information exchange between the terminal and the somatosensory device while ensuring the player's gaming experience.

[0128] Specifically, the game stages of somatosensory games include active stages and inactive stages. The active stage means that under the current game content, the somatosensory device will frequently send data to the terminal, such as game levels; while the inactive stage means that under the current game content, the somatosensory device will not frequently send data to the terminal to perform somatosensory operations, such as browsing game information, selecting level game settings, etc.

[0129] Specifically, the preset data priority includes a high priority and a low priority. The preset priority is used to indicate the urgency of the terminal transmitting data to the somatosensory device. In specific implementation, the terminal may preset and store a high priority list and a low priority list to classify the data transmitted to the somatosensory device.

[0130] Furthermore, during the game, the terminal transmits data to the somatosensory device according to the preset data priority and the game stage of the current somatosensory game, including:

[0131] Transmitting high priority data at all stages of the preset motion sensing game; and

[0132] Low priority data is transmitted when the preset motion sensing game is not active.

[0133] Specifically, if the terminal data is marked as high priority, it means that the data is urgent data and needs to be transmitted to the somatosensory device in real time to be received by the user. Therefore, no matter at any stage of the game, it needs to be sent to the terminal in a timely manner. Exemplarily, the high-priority data can be vibration instructions, phone calls and other data of the somatosensory device. If the terminal data is marked as low priority, it means that the urgency of the data is low. Therefore, it can be set to be transmitted only in the inactive stage to avoid affecting the transmission of motion posture data.

[0134] In addition, refer to Figure 5 The embodiment of the present invention further provides a data transmission device between a somatosensory device and a terminal, wherein the data transmission device between the somatosensory device and the terminal comprises:

[0135] The data transmission module 110 is used to obtain the game frame rate of the preset somatosensory game from the terminal after the preset somatosensory game is started;

[0136] IMU sensor 120, used to obtain the user's motion posture data in real time;

[0137] A packing module 130, used for packing the motion gesture data based on the game frame rate;

[0138] The data transmission module 110 is also used to transmit the packaged data packet to the terminal based on the Bluetooth protocol.

[0139] The steps implemented by each functional module of the data transmission device between the somatosensory device and the terminal may refer to the various embodiments of the data transmission method between the somatosensory device and the terminal of the present invention, and will not be described in detail here.

[0140] In addition, the embodiment of the present invention also proposes a computer-readable storage medium, which can be any one or any combination of a hard disk, a multimedia card, an SD card, a flash memory card, an SMC, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disk read-only memory (CD-ROM), a USB memory, etc. The computer-readable storage medium includes a data transmission program 10 between a somatosensory device and a terminal. The specific implementation of the computer-readable storage medium of the present invention is roughly the same as the data transmission method between the somatosensory device and the terminal and the specific implementation of the server 1, which will not be repeated here.

[0141] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0142] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0143] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0144] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0145] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0146] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A data transmission method between a somatosensory device and a terminal, characterized in that: include: After the preset somatosensory game is started, the somatosensory device obtains the game frame rate of the preset somatosensory game from the terminal; The somatosensory device obtains the user's motion posture data in real time; The somatosensory device packages the motion gesture data based on the game frame rate; The somatosensory device transmits the packaged data packet to the terminal based on the Bluetooth protocol; The somatosensory device packages the motion gesture data based on the game frame rate, including: Calculate the display duration of a frame of the game screen according to the game frame rate; Splitting and packaging the motion posture data according to the display duration; The somatosensory device obtains the user's motion posture data in real time, including: The terminal determines the target axis information required for user action recognition according to the preset somatosensory game; The body sensing device obtains target axis information from the terminal, and uses sensor data matching the target axis information as the motion posture data.

2. The data transmission method between a somatosensory device and a terminal according to claim 1, characterized in that: The method further comprises: The terminal calculates the packet loss rate of the current Bluetooth transmission; If the packet loss rate is greater than a preset packet loss threshold, then calculating the target Bluetooth transmission power under the current packet loss rate; The somatosensory device obtains the target Bluetooth transmission power from the terminal, and adjusts the current Bluetooth transmission power to the target Bluetooth transmission power.

3. The data transmission method between a somatosensory device and a terminal according to claim 2, characterized in that: The terminal calculates the target Bluetooth transmission power under the current packet loss rate of the somatosensory device based on the following algorithm: Where P C is the target Bluetooth transmission power; L C is the packet loss rate of the current Bluetooth transmission; L max is the maximum packet loss rate, and L max is 100%; e is a constant.

4. The data transmission method between a somatosensory device and a terminal according to claim 1, characterized in that: The method further comprises: During the game, the terminal transmits data to the somatosensory device according to the preset data priority and the game stage of the current somatosensory game.

5. The data transmission method between a somatosensory device and a terminal according to claim 4, characterized in that: The game phase includes an active phase and an inactive phase, and the preset data priority includes a high priority and a low priority; During the game, the terminal transmits data to the somatosensory device according to the preset data priority and the game stage of the current somatosensory game, including: Transmitting high priority data at all stages of the preset motion sensing game; as well as Low priority data is transmitted during an inactive phase of the preset motion sensing game.

6. A data transmission device between a somatosensory device and a terminal, characterized in that: The data transmission device is used to implement the data transmission method according to any one of claims 1 to 5, and the data transmission device includes: A data transmission module, used for obtaining the game frame rate of the preset somatosensory game from the terminal after the preset somatosensory game is started; IMU sensor, used to obtain the user's motion posture data in real time; A packaging module, used for packaging the motion gesture data based on the game frame rate; The data transmission module is also used to transmit the packaged data packets to the terminal based on the Bluetooth protocol.

7. A data transmission device between a somatosensory device and a terminal, characterized in that: The invention comprises a memory, a processor and a data transmission program between a somatosensory device and a terminal which is stored in the memory and can be run on the processor. When the processor executes the data transmission program between the somatosensory device and the terminal, the data transmission method between the somatosensory device and the terminal as described in any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a data transmission program between a somatosensory device and a terminal. When the data transmission program between the somatosensory device and the terminal is executed by a processor, the data transmission method between the somatosensory device and the terminal as described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Mobile client motion sensing game generating method

    CN106293084A

  • Bluetooth audio transmission adjustment method and device

    CN106792462A

  • Game communication data processing system

    CN107239306A

  • Anti-disturbance method, a mobile terminal and a computer readable storage medium

    CN108683806A

  • Method for presenting real-person actions in virtual space in real time in 3D model

    CN112017266A