Data transmission method for somatosensory device

By monitoring the terminal to start the somatosensory game and obtain game information, determine data packaging and transmission rules, and process game-related and non-related data respectively, it solves the problem of gyroscope data transmission delay in the existing technology and achieves faster game operation response. Improved somatosensory gaming experience.

CN115414664BActive Publication Date: 2024-10-29SHENZHEN SHIMI NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211052285.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-31
Publication Date
2024-10-29
Estimated Expiration
2042-08-31

AI Technical Summary

Technical Problem

The existing data transmission method between motion-sensing watches and mobile phones results in gyroscope data being unable to be decoded immediately, causing game operation delays and affecting the motion-sensing gaming experience.

Method used

After starting the somatosensory game through the monitoring terminal, the game information is obtained, the data packaging rules and transmission rules are determined, and the game-related data and non-game-related data are packaged and transmitted respectively to ensure the instant transmission of game-related data and reduce the delay of non-game-related data.

Benefits of technology

It reduces the operation delay of somatosensory games and improves the user's game operation experience. By separately decoding game-related data, game operation instructions can be obtained faster.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115414664B_ABST
    Figure CN115414664B_ABST
Patent Text Reader

Abstract

The present invention discloses a data transmission method, device and computer-readable storage medium for a somatosensory device, the data transmission method comprising: establishing a communication connection with a terminal; after monitoring that the terminal starts a somatosensory game, obtaining game information of the current somatosensory game from the terminal; determining data packaging rules and data transmission rules according to the game information; packaging game-related data and non-game-related data according to the data packaging rules; transmitting game-related data packets and non-game-related data packets to the terminal according to the data transmission rules. The data transmission method has the advantages of reducing game operation delay and improving game operation experience.
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 and device for a somatosensory device, and a computer-readable storage medium. 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] The current 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 actions. This packetized data transmission method will package gyroscope data and other non-game related data at the same time, resulting in the mobile phone being unable to obtain game operation instructions based on the gyroscope data in the first place after decoding, causing operation delays and affecting the gaming experience. Summary of the invention

[0004] The embodiment of the present application aims to reduce the game operation delay of a somatosensory game by providing a data transmission method for a somatosensory device.

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

[0006] Establishing a communication connection with a terminal;

[0007] After detecting that the terminal starts the somatosensory game, obtain the game information of the current somatosensory game from the terminal;

[0008] Determine data packaging rules and data transmission rules according to the game information;

[0009] Packing game-related data and non-game-related data respectively according to the data packing rule;

[0010] The game-related data packets and the non-game-related data packets are transmitted to the terminal according to the data transmission rule.

[0011] In one embodiment, packaging the game-related data according to the data packaging rule includes:

[0012] Determine the first byte number of the game-related data packet according to the delay requirement of the somatosensory game;

[0013] Filtering the game-related data according to a preset filtering condition matching the current game information;

[0014] The game-related data is split and packaged according to the first number of bytes.

[0015] In one embodiment, the game-related data includes gyroscope data.

[0016] In one embodiment, transmitting a game-related data packet to the terminal according to the data transmission rule includes:

[0017] The game-related data packets are transmitted instantly.

[0018] In one embodiment, packaging the non-game related data according to the data packaging rule includes:

[0019] Determine the maximum number of bytes of a single data packet according to the communication protocol between the somatosensory device and the terminal;

[0020] Determine a second number of bytes according to the maximum number of bytes and the first number of bytes;

[0021] Filtering out the non-game related data according to a preset filtering condition matching the current game information;

[0022] The non-game related data is split and packaged according to the second number of bytes.

[0023] In one embodiment, transmitting a non-game related data packet to the terminal according to the data transmission rule includes:

[0024] Temporarily storing the non-game related data packet in a preset data buffer area;

[0025] When the data stored in the data buffer area is greater than or equal to the preset bytes, the non-game related data packet in the data buffer area is transmitted to the terminal.

[0026] In one embodiment, when the data stored in the data buffer area is greater than or equal to a preset number of bytes, transmitting the non-game related data in the data buffer area to the terminal includes:

[0027] The non-game-related data packet and the game-related data packet are packaged to transmit the game-related data and the game-related data to the terminal.

[0028] In one embodiment, when the data stored in the data buffer is greater than or equal to a preset byte, transmitting a non-game related data packet of the data buffer to the terminal further includes:

[0029] When the data stored in the data buffer is greater than or equal to a preset number of bytes, transmitting all non-associated data packets of a complete message to the terminal;

[0030] After all non-associated data packets of a complete message have been transmitted, determining whether the data stored in the data buffer is less than a preset number of bytes;

[0031] If yes, stop transmitting the non-game related data packets in the data buffer;

[0032] If not, continue to transmit all non-game related data packets of the next complete information in the data buffer.

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

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

[0035] The data transmission method of the technical solution of the present application can obtain data packaging rules and data transmission rules according to the game information of the somatosensory game currently running on the terminal, and then package and transmit the game-related data and non-game-related data separately according to the data packaging rules and data transmission rules, so that the terminal can decode and solve the game-related data separately to obtain the game operation instructions faster, thereby improving the user's game operation experience. It can be seen that compared with the traditional data transmission scheme between the somatosensory device and the terminal, the data transmission method of the present application has the advantages of reducing game operation delay and improving game operation experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] 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.

[0037] Figure 1 It is a module structure diagram of an embodiment of a data transmission device for a somatosensory device of the present invention;

[0038] Figure 2 It is a flow chart of an embodiment of a data transmission method of a somatosensory device of the present invention;

[0039] Figure 3A flowchart of another embodiment of the data transmission method of the somatosensory device of the present invention;

[0040] Figure 4 A flowchart of another embodiment of the data transmission method of the somatosensory device of the present invention;

[0041] Figure 5 The figure is a flow chart of another embodiment of the data transmission method of the somatosensory device of the present invention.

[0042] 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

[0043] 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.

[0044] 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.

[0045] 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.

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

[0047] 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.

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

[0049] 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.

[0050] 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 and various data installed on the server 1, such as the code of the data transmission program 10 of the somatosensory device, but also to temporarily store data that has been output or is to be output.

[0051] 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 program codes stored in the memory 11 or process data, such as executing the data transmission program 10 of the somatosensory device.

[0052] 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.

[0053] 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.

[0054] 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.

[0055] Figure 1 Only the server 1 having components 11-13 and the data transmission program 10 of the somatosensory device 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.

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

[0057] Establishing a communication connection with a terminal;

[0058] After detecting that the terminal starts the somatosensory game, obtain the game information of the current somatosensory game from the terminal;

[0059] Determine data packaging rules and data transmission rules according to the game information;

[0060] Packing game-related data and non-game-related data respectively according to the data packing rule;

[0061] The game-related data packets and the non-game-related data packets are transmitted to the terminal according to the data transmission rule.

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

[0063] Packaging the game-related data according to the data packaging rule includes:

[0064] Determine the first byte number of the game-related data packet according to the delay requirement of the somatosensory game;

[0065] Filtering the game-related data according to a preset filtering condition matching the current game information;

[0066] The game-related data is split and packaged according to the first number of bytes.

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

[0068] The game associated data includes gyroscope data.

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

[0070] Transmitting a game-related data packet to the terminal according to the data transmission rule includes:

[0071] The game-related data packets are transmitted instantly.

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

[0073] Packing non-game related data according to the data packaging rule includes:

[0074] Determine the maximum number of bytes of a single data packet according to the communication protocol between the somatosensory device and the terminal;

[0075] Determine a second number of bytes according to the maximum number of bytes and the first number of bytes;

[0076] Filtering out the non-game related data according to a preset filtering condition matching the current game information;

[0077] The non-game related data is split and packaged according to the second number of bytes.

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

[0079] Transmitting a non-game related data packet to the terminal according to the data transmission rule includes:

[0080] Temporarily storing the non-game related data packet in a preset data buffer area;

[0081] When the data stored in the data buffer area is greater than or equal to the preset bytes, the non-game related data packet in the data buffer area is transmitted to the terminal.

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

[0083] When the data stored in the data buffer area is greater than or equal to a preset number of bytes, transmitting the non-game related data in the data buffer area to the terminal includes:

[0084] The non-game-related data packet and the game-related data packet are packaged to transmit the game-related data and the game-related data to the terminal.

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

[0086] When the data stored in the data buffer area is greater than or equal to a preset byte, transmitting a non-game related data packet of the data buffer area to the terminal, further comprising:

[0087] When the data stored in the data buffer is greater than or equal to a preset number of bytes, transmitting all non-associated data packets of a complete message to the terminal;

[0088] After all non-associated data packets of a complete message have been transmitted, determining whether the data stored in the data buffer is less than a preset number of bytes;

[0089] If yes, stop transmitting the non-game related data packets in the data buffer;

[0090] If not, continue to transmit all non-game related data packets of the next complete information in the data buffer.

[0091] Based on the hardware architecture of the data transmission device of the somatosensory device, an embodiment of the data transmission method of the somatosensory device of the present invention is proposed. The data transmission method of the somatosensory device of the present invention is intended to reduce the game operation delay of the somatosensory game.

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

[0093] S10: Establish a communication connection with the terminal.

[0094] Specifically, the terminal may be a desktop computer, a laptop computer, a game console, a portable game console, a smart phone, a tablet computer, a smart watch, a smart TV, etc.

[0095] Specifically, the somatosensory device refers to a device that can detect the player's posture data. Usually, the somatosensory device is configured to include a six-axis IMU sensor, which includes a three-axis accelerometer and a three-axis gyroscope. The six-axis IMU sensor detects the player's posture data by detecting the changes in the player's three-axis acceleration and three-axis angular velocity. Specifically, the somatosensory device is configured to be wearable, and its form includes but is not limited to the following: bracelets, gloves, watches, headscarves, hats, vests, fitness rings, and game controllers.

[0096] Furthermore, a wired connection or a wireless connection can be established between the somatosensory device and the terminal. Exemplarily, when the somatosensory device and the terminal establish a wired connection, it can be based on at least one of the USB2.0 protocol, USB3.0 protocol, Thunderbolt 3 protocol, and Thunderbolt 4 protocol; and when the somatosensory device and the terminal establish a wireless connection, it can be based on at least one of the Bluetooth protocol, WiFi protocol, infrared protocol, 2.4G communication protocol, and NFC protocol.

[0097] In this embodiment, we take the establishment of a Bluetooth connection between a somatosensory device and a terminal as an example for explanation.

[0098] S20: After detecting that the terminal starts the somatosensory game, obtain game information of the current somatosensory game from the terminal.

[0099] Among them, game information refers to game-related information bound to the terminal, including but not limited to game type, game operation requirements, etc.

[0100] Specifically, after the somatosensory device establishes a communication connection with the terminal, the terminal and the somatosensory device can communicate in real time. Specifically, when the terminal starts a somatosensory game, the terminal will send a tag data to the somatosensory device, and the tag data includes not only the game startup data, but also the game information data. Therefore, after receiving the tag data, the somatosensory device can determine that the terminal has started the somatosensory game and obtain the corresponding game information.

[0101] S30, determining data packaging rules and data transmission rules according to the game information.

[0102] Specifically, taking the somatosensory device as a smart watch and the communication method as Bluetooth communication as an example, in daily use, the smart watch will generate a lot of data, such as heart rate data, breathing data, blood oxygen data, sleep data, exercise data, etc. When these data are sent to the terminal, they will be packaged into data packets based on the format of Bluetooth communication data packets and sent to the terminal at a set time. Among them, the format of the Bluetooth communication data packet is a data packaging rule, and the set timing is a data transmission rule.

[0103] It is worth noting that the data packaging rules and data transmission rules have been pre-stored in the somatosensory device and matched with different game information. When the somatosensory device obtains the game information of the currently running somatosensory game from the terminal, the corresponding data packaging rules and data transmission rules can be activated.

[0104] S40, packaging the game-related data and the non-game-related data respectively according to the data packaging rule.

[0105] Among them, the game-related data refers to data associated with the somatosensory game currently running on the terminal, such as gyroscope data, etc. Correspondingly, the non-game-related data refers to data unrelated to the somatosensory game currently running on the terminal, such as sleep data, blood oxygen data, etc.

[0106] Specifically, according to the data packaging rules determined by the game information, the data generated by the somatosensory device can be classified to divide the game-related data associated with the current somatosensory game and the non-game-related data that does not belong to the current somatosensory game-related data. In this way, the game-related data and non-game-related data can be adaptively distinguished according to different somatosensory games, thereby obtaining the best screening results.

[0107] Furthermore, when the terminal runs a somatosensory game, the somatosensory device will package the game-related data and the non-game-related data according to the data packaging rules when sending data to the terminal to obtain a game-related data packet and a non-game-related data packet.

[0108] For example, when the terminal runs a somatosensory game, the game-related data includes gyroscope data. Of course, in addition to the gyroscope data, depending on the somatosensory game currently running on the terminal, the game-related data may also include heart rate data, blood oxygen data, breathing data, dynamic energy consumption data, static energy consumption data, step length data, step frequency data, etc.

[0109] S50: Transmit game-related data packets and non-game-related data packets to the terminal according to the data transmission rule.

[0110] Specifically, when the terminal is running a somatosensory game, the somatosensory device can send game-related data packets and non-game-related data packets to the terminal based on preset data transmission rules. In this way, game-related data and non-game-related data can be distinguished during the game, so that the terminal can decode and solve the game-related data separately to obtain game operation instructions faster, thereby reducing game operation delays.

[0111] It can be understood that the data transmission method of the technical solution of the present application can obtain data packaging rules and data transmission rules according to the game information of the somatosensory game currently running on the terminal, and then package and transmit the game-related data and non-game-related data separately according to the data packaging rules and data transmission rules, so that the terminal can decode and solve the game-related data separately to obtain the game operation instructions faster, thereby improving the user's game operation experience. It can be seen that compared with the traditional data transmission scheme between the somatosensory device and the terminal, the data transmission method of the present application has the advantages of reducing game operation delay and improving game operation experience.

[0112] like Figure 3 As shown, in some embodiments, packaging the game-related data according to the data packaging rule includes:

[0113] S110. Determine the first byte number of the game-related data packet according to the delay requirement of the somatosensory game.

[0114] The first byte number defines the number of bytes of valid data in the game-related data packet, and does not define the number of bytes of data such as the header and access address in the game-related data packet. The number of bytes of the header, access address, and other data is specified by the data packet format defined by the communication protocol. It is worth noting that the first byte number must be less than the maximum number of valid bytes in the data packet format defined by the communication protocol.

[0115] Furthermore, the operation accuracy requirements of the somatosensory game can be determined according to the operation accuracy requirements of the somatosensory game. Specifically, the somatosensory device can obtain the delay requirements of the somatosensory game currently running on the terminal from the tag, and then adaptively select the number of bytes (i.e., the first number of bytes) of the game-related data packet when packaging the game-related data, and the first number of bytes determines the size of the game-related data packet.

[0116] For example, we can divide somatosensory games into three types according to the operation accuracy requirements of somatosensory games: low latency requirements, general latency requirements, and high latency requirements. Among them, somatosensory games with low latency requirements have low requirements for operation accuracy, and low requirements for data volume and data transmission delay; somatosensory games with general latency requirements have general requirements for operation accuracy, and general requirements for data volume and data transmission delay; somatosensory games with high latency requirements have high requirements for operation accuracy, and high requirements for data volume and data transmission delay. Correspondingly, for somatosensory games with low game operation delay requirements, we can set a longer first byte number (that is, a game-related data packet contains more bytes), so that relatively more data can be transmitted at one time without affecting the game operation experience, reducing the frequency of data transmission from the somatosensory device to the terminal, thereby improving the battery life performance of the somatosensory device. For somatosensory games with high game operation delay, we can set a shorter first byte number (that is, a game-related data packet contains fewer bytes), so that within a limited time, the terminal can receive multiple game-related data packets, and then decode to obtain more and more detailed operation instructions, which will help improve the player's game operation experience.

[0117] S120: Filter out the game-related data according to a preset filtering condition that matches the current game information.

[0118] Among them, the preset filtering condition is used to filter out data related to the game from the data sent by the somatosensory device to the terminal when the game is in progress.

[0119] Specifically, the preset screening conditions are pre-stored in the somatosensory device. When the somatosensory device obtains game information of the currently running somatosensory game from the terminal, the somatosensory device can determine the screening conditions that match the somatosensory game currently running on the terminal based on the game information. In this way, the game-related data that matches the somatosensory game currently running on the terminal can be screened out, thereby reducing the amount of game-related data transmitted from the somatosensory device to the terminal, so that the terminal can quickly decode and obtain game operation instructions.

[0120] S130. Split and pack the game-related data according to the first number of bytes.

[0121] Specifically, after the game-related data is screened out and the first byte number of the game-related data packet is determined, the game-related data packet can be split and packaged to obtain the game-related data packet.

[0122] It can be understood that the number of bytes of the game-associated data packet can be determined based on the operation delay of the somatosensory game currently running on the terminal, and the size of the game-associated data packet sent to the terminal can be adaptively adjusted. Different somatosensory games can be adapted to take into account both the game operation experience and the battery life performance of the somatosensory device.

[0123] In some embodiments, transmitting a game-related data packet to the terminal according to the data transmission rule includes:

[0124] The game-related data packets are transmitted instantly.

[0125] That is to say, for game-related data, the somatosensory device transmits it to the terminal as soon as it is packaged. This setting can reduce the data transmission delay between the somatosensory device and the terminal, thereby improving the player's gaming experience.

[0126] like Figure 4 As shown, in some embodiments, packaging non-game related data according to the data packaging rule includes:

[0127] S210: Determine the maximum number of bytes of a single data packet according to the communication protocol between the somatosensory device and the terminal.

[0128] Specifically, the communication protocol between the somatosensory device and the terminal refers to the protocol used when the somatosensory device and the terminal establish communication, such as the common Bluetooth protocol, WiFi protocol, ZigBee protocol, etc. Different communication protocols have different data packet format requirements, but each communication protocol specifies the maximum number of bytes for a single data packet, which includes the number of bytes for the header, access address, valid data, and other data. Taking the Bluetooth Low Energy communication protocol (BLE for short) as an example, the maximum number of bytes for a single data packet specified by the protocol is 41 bytes, the maximum number of bytes for valid data is 27 bytes, and the remaining bytes are the number of bytes for header data, access address, and other data.

[0129] S220. Determine a second number of bytes according to the maximum number of bytes and the first number of bytes.

[0130] Specifically, based on the format of the data packet determined by the communication protocol and the first byte number, the byte number of the game-related data packet can be determined. Then, based on the maximum byte number of a single data packet specified by the communication protocol and the fixed format of the data packet, the number of valid data bytes that the non-game-related data packet can accommodate (i.e., the second byte number) can be calculated.

[0131] S230: Filter out the non-game related data according to a preset filtering condition that matches the current game information.

[0132] Specifically, the preset filtering condition is pre-stored in the somatosensory device, and when the somatosensory device obtains game information of the currently running somatosensory game from the terminal, the somatosensory device can determine the filtering condition that matches the somatosensory game currently running on the terminal based on the game information. In this way, non-game related data on the somatosensory device can be filtered out.

[0133] S240: Split and pack the non-game related data according to the second number of bytes.

[0134] Specifically, after the non-game related data is screened out and the second byte number of the non-game related data packet is determined, the non-game related data packet can be split and packaged to obtain the non-game related data packet.

[0135] It can be understood that the non-game-related data packet obtained by packaging according to the second number of bytes can be regarded as a supplement to the game-related data packet, and can be sent to the terminal together with the game-related data packet. In this way, the game-related data and the non-game-related data can be transmitted at the same time on the basis of ensuring the priority of the game-related data transmission, so as to ensure the integrity of the data transmission between the somatosensory device and the terminal during the game.

[0136] As above Figure 5 As shown, in some embodiments, transmitting a non-game related data packet to the terminal according to the data transmission rule includes:

[0137] S310: temporarily storing the non-game related data packet in a preset data buffer area.

[0138] Among them, the data cache area refers to an area temporarily divided in the memory area or storage of the somatosensory device for temporarily storing data. After the somatosensory game is over and all data in the cache area are sent to the terminal, the somatosensory device will close the data cache area.

[0139] Specifically, non-game related data generated on the somatosensory device will be stored in the data cache before being sent to the terminal.

[0140] S320: When the data stored in the data buffer is greater than or equal to a preset number of bytes, transmit a non-game related data packet in the data buffer to the terminal.

[0141] The preset number of bytes is smaller than the data buffer area, so that before sending the non-game related data to the terminal, the data buffer area has enough space to store the newly generated non-game related data.

[0142] Specifically, when the data stored in the data buffer area is greater than or equal to a preset number of bytes, the somatosensory device may send non-game related data to the terminal to ensure the integrity of data transmission between the somatosensory device and the terminal.

[0143] It can be understood that by setting up a data buffer area for temporary non-game related data, the somatosensory device can only transmit game related data to the terminal before the data in the data buffer area is greater than or equal to the preset number of bytes. In this way, not only can a larger bandwidth be used to transmit game related data, but also the interference in the game related data transmission process can be reduced, and the stability of game related data transmission can be improved. At the same time, reducing the amount of data transmitted can also reduce the power consumption of the somatosensory device and extend the game endurance performance of the somatosensory device.

[0144] In some embodiments, when the data stored in the data buffer area is greater than or equal to a preset number of bytes, transmitting the non-game related data in the data buffer area to the terminal includes:

[0145] The non-game-related data packet and the game-related data packet are packaged to transmit the game-related data and the game-related data to the terminal.

[0146] Specifically, a non-game-related data packet and a game-related data packet can be packaged into a maximum data packet to be sent to the terminal. The number of bytes of the maximum data packet is the maximum number of bytes of a single data packet specified by the communication protocol. It is worth adding that in order to avoid the number of bytes of the maximum data packet exceeding the maximum number of bytes of a single data packet specified by the communication protocol, when calculating the second number of bytes of the non-game-related data packet, it is also necessary to subtract the number of bytes of fixed data such as the header data and access address data of the maximum data packet. In the above manner, game-related data and non-game-related data can be transmitted to the terminal at the same time. Of course, the design of the present application is not limited to this. In other embodiments, non-game-related data packets and game-related data packets are also transmitted to the terminal at the same time, or non-game-related data packets and game-related data packets are transmitted alternately. In some embodiments, when the data stored in the data cache is greater than or equal to the preset number of bytes, the non-game-related data packet of the data cache is transmitted to the terminal, and it also includes:

[0147] When the data stored in the data buffer is greater than or equal to a preset number of bytes, transmitting all non-associated data packets of a complete message to the terminal;

[0148] After all non-associated data packets of a complete message have been transmitted, determining whether the data stored in the data buffer is less than a preset number of bytes;

[0149] If yes, stop transmitting the non-game related data packets in the data buffer;

[0150] If not, continue to transmit all non-game related data packets of the next complete information in the data buffer.

[0151] Among them, non-related game data of the same information refers to data that can be restored to obtain a complete information, such as sleep information, blood oxygen information, etc. This information usually includes more bytes of data and needs to be split into multiple data packets for transmission. Therefore, for the terminal, all data packets of a complete information need to be obtained to decode the corresponding information.

[0152] It can be understood that, through the above method, when transmitting non-game related data packets, a complete message can be transmitted each time, thereby ensuring the integrity of the non-game related data transmission.

[0153] 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 of a somatosensory device. The specific implementation of the computer-readable storage medium of the present invention is roughly the same as the data transmission method of the somatosensory device and the specific implementation of the server 1, which will not be repeated here.

[0154] 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.

[0155] 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.

[0156] 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.

[0157] 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. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0158] 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.

[0159] 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 for a somatosensory device, characterized in that: include: Establishing a communication connection with a terminal; After detecting that the terminal starts the somatosensory game, obtain the game information of the current somatosensory game from the terminal; Determine data packaging rules and data transmission rules according to the game information; Packing game-related data and non-game-related data respectively according to the data packing rule; According to the data transmission rule, game-related data packets and non-game-related data packets are transmitted to the terminal; wherein Packaging the game-related data according to the data packaging rule includes: Determine the first byte number of the game-related data packet according to the delay requirement of the somatosensory game; Filtering the game-related data according to a preset filtering condition matching the current game information; The game-related data is split and packaged according to the first number of bytes.

2. The data transmission method of the somatosensory device according to claim 1, characterized in that: The game associated data includes gyroscope data.

3. The data transmission method of the somatosensory device according to claim 2, characterized in that: Transmitting a game-related data packet to the terminal according to the data transmission rule includes: The game-related data packets are transmitted instantly.

4. The data transmission method of the somatosensory device according to claim 1, characterized in that: Packing non-game related data according to the data packaging rule includes: Determine the maximum number of bytes of a single data packet according to the communication protocol between the somatosensory device and the terminal; Determine a second number of bytes according to the maximum number of bytes and the first number of bytes; Filtering out the non-game related data according to a preset filtering condition matching the current game information; The non-game related data is split and packaged according to the second number of bytes.

5. The data transmission method of the somatosensory device according to claim 4, characterized in that: Transmitting a non-game related data packet to the terminal according to the data transmission rule includes: Temporarily storing the non-game related data packet in a preset data buffer area; When the data stored in the data buffer area is greater than or equal to the preset bytes, the non-game related data packet in the data buffer area is transmitted to the terminal.

6. The data transmission method of the somatosensory device according to claim 5, characterized in that: When the data stored in the data buffer area is greater than or equal to a preset number of bytes, transmitting the non-game related data in the data buffer area to the terminal includes: The non-game related data packet and the game related data packet are packaged to transmit the non-game related data and the game related data to a terminal.

7. The data transmission method of the somatosensory device according to claim 5, characterized in that: When the data stored in the data buffer area is greater than or equal to a preset byte, transmitting a non-game related data packet of the data buffer area to the terminal, further comprising: When the data stored in the data buffer is greater than or equal to a preset number of bytes, transmitting all non-associated data packets of a complete message to the terminal; After all non-associated data packets of a complete message have been transmitted, determining whether the data stored in the data buffer is less than a preset number of bytes; If yes, stop transmitting the non-game related data packets in the data buffer; If not, continue to transmit all non-game related data packets of the next complete information in the data buffer.

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

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a data transmission program for a somatosensory device, and when the data transmission program for the somatosensory device is executed by a processor, the data transmission method for a somatosensory device according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Direct broadcasting room data transmission method, apparatus and device, and storage medium

    CN114760514A

  • Motion sensing game method based on swimming postures

    CN114949839A