Gyroscope data transmission method and device applied to cloud game, medium and equipment

By using cloud servers to judge and parse the control data sent by user terminals and convert it into a data format suitable for cloud games, the problem of cloud games being unable to obtain gyroscope data on servers without gyroscope devices is solved, thus improving the playability of the game.

CN115766819BActive Publication Date: 2025-10-24WELLINK TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211363074.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-02
Publication Date
2025-10-24
Estimated Expiration
2042-11-02

AI Technical Summary

Technical Problem

When cloud games are run on a server without a gyroscope device, they cannot obtain gyroscope data, resulting in lower game playability.

Method used

The cloud server receives control data sent by the user terminal, determines whether it is gyroscope data, parses and processes it, converts it into a data format suitable for cloud gaming, stores it in the data buffer area, and sends a trigger message so that the cloud game can obtain the gyroscope data.

Benefits of technology

Cloud games running on cloud servers without gyroscope devices can obtain gyroscope data to improve the playability of the game.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115766819B_ABST
    Figure CN115766819B_ABST
Patent Text Reader

Abstract

The application relates to a gyroscope data transmission method and device applied to cloud games, a medium and equipment, wherein the method comprises the following steps: receiving control data of a cloud game sent by a user terminal, wherein the user terminal supports a gyroscope; judging whether the control data is gyroscope data; if the control data is gyroscope data, performing analysis processing on the control data to obtain control data adapted to the cloud game; storing the control data adapted to the cloud game in a data temporary storage area, and sending a data trigger message to the cloud game, so that the cloud game obtains the control data adapted to the cloud game from the data temporary storage area. After it is determined that the received control data is gyroscope data, the gyroscope data is stored in the data temporary storage area, and the cloud game is notified, so that the cloud game running on a cloud server without a gyroscope device can obtain the gyroscope data, and the playability of the game is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data transmission, in particular to a gyroscope data transmission method and device applied to cloud games, a storage medium and an electronic device. BACKGROUND

[0002] With the development of science and technology, gyroscope devices are increasingly widely used in the field of games. The support of gyroscope devices will allow games to have more diverse operation methods and provide users with an extreme gaming experience. Among them, a gyroscope device is an angular motion detection device that uses the angular momentum of a high-speed rotating body to sense the relative motion of the shell to the inertial space around one or two axes perpendicular to the rotation axis. It can detect the angle, angular velocity or angular acceleration of an object.

[0003] Currently, in the use scenario of cloud games, in order to enhance the playability of the game, a gyroscope device is usually added in the server running environment of the cloud game, so that the cloud game can obtain gyroscope data when running on a server with a gyroscope device, and thus users can also have more diverse operation methods in the cloud game. However, due to the high cost of the server with a gyroscope device, it is not suitable for the actual use scenario of cloud games, resulting in that the cloud game cannot obtain gyroscope data when running on a server without a gyroscope device, and the game playability is low. SUMMARY

[0004] In order to enable the cloud game to obtain gyroscope data when running on a server without a gyroscope device and improve the game playability, the present application provides a gyroscope data transmission method and device applied to cloud games, a storage medium and an electronic device.

[0005] In a first aspect of the present application, a gyroscope data transmission method applied to cloud games is provided, which is applied to a cloud server and specifically includes:

[0006] Receiving control data of a cloud game sent by a user terminal, the user terminal supporting a gyroscope;

[0007] Judging whether the control data is gyroscope data;

[0008] If the control data is gyroscope data, performing analysis processing on the control data to obtain control data adapted to the cloud game;

[0009] Storing the control data adapted to the cloud game in a data staging area and sending a data trigger message to the cloud game, so that the cloud game obtains the control data adapted to the cloud game from the data staging area.

[0010] By adopting the technical scheme, after the cloud server receives the control data of the user on the cloud game acquired by the user terminal, the data type of the control data is judged. If the control data is gyroscope data, the control data is analyzed and processed, and the control data is simplified and format-converted, so that the control data can be adapted to the cloud game, i.e., the control data can be used for the cloud game. Finally, the control data is stored in the data temporary storage area of the cloud server, and a data trigger message is sent to inform the cloud game running on the cloud server that the gyroscope data of the cloud game has been stored, so that the cloud game accesses the data temporary storage area to acquire the gyroscope data after receiving the data trigger message, thereby enabling the cloud game running on the cloud server without a gyroscope device to acquire the gyroscope data and improving the playability of the game.

[0011] Optionally, the control data is added with a data identifier, and the judgment of whether the control data is gyroscope data comprises:

[0012] The data packet length of the data identifier in the control data is acquired.

[0013] The data identifier is compared with standard data information to obtain a comparison result, and the standard data information is data information of the same data packet length in standard gyroscope data.

[0014] Whether the control data is gyroscope data is judged according to the comparison result.

[0015] By adopting the technical scheme, since the user terminal adds a data identifier in the control data to distinguish the data type when acquiring the control data, after the cloud server receives the control data, the data packet length of the data identifier is acquired, the data identifier is compared with the standard data information to obtain a consistent or inconsistent comparison result, and finally whether the control data is gyroscope data is judged according to the comparison result, so that the data type of the control data is judged more conveniently and accurately.

[0016] Optionally, whether the control data is gyroscope data is judged according to the comparison result, comprising:

[0017] If the comparison result is that the data identifier is consistent with the standard data information, it is determined that the control data is gyroscope data.

[0018] By adopting the technical scheme, if the content of the data identifier carried in the received control data is consistent with the data information of the same data packet length in the standard gyroscope data, it is indicated that the data type of the control data is gyroscope data, and the same data packet length data is selected for comparison, so that the gyroscope data required by the cloud game can be conveniently and accurately distinguished.

[0019] Optionally, if the control data is gyroscope data, the control data is parsed to obtain control data adapted to the cloud game, including:

[0020] If the control data is gyroscope data, the gyroscope data required by the cloud game is obtained.

[0021] The required gyroscope data is compared with the control data, and data in the control data that is inconsistent with the required gyroscope data is deleted to obtain control data adapted to the cloud game,

[0022] And / or

[0023] The original data format of the control data is converted into the gyroscope data format required by the cloud game, and the original expression of the control data is converted into the gyroscope expression required by the cloud game, to obtain control data adapted to the cloud game.

[0024] By adopting the above technical solution, after determining that the control data is gyroscope data, the control data cloud game cannot be directly used. Because the device types of user terminals are different, the original data format and original gyroscope expression of the control data are different from the requirements of the cloud game. Converting the original data format and original gyroscope expression into the data format and gyroscope expression required by the cloud game makes the received control data adapt to the cloud game itself, and further makes the user obtain better gyroscope effect. In addition, deleting data in the control data that is inconsistent with the required gyroscope data of the cloud game reduces the redundancy of the control data.

[0025] Optionally, if the control data is gyroscope data, the control data is parsed to obtain control data adapted to the cloud game, including:

[0026] If the control data is gyroscope data, the adjustment base number sent by the user terminal is obtained, and the adjustment base number is a gyroscope effect enhancement base number or a weakening base number required by the cloud game.

[0027] According to the adjustment base number, the control data is adjusted to obtain processed control data.

[0028] By adopting the above technical solution, because the user of the cloud game may find that the intervention of the gyroscope device of the user terminal is strong or weak in the actual game experience, the cloud server receives the adjustment base number of the gyroscope effect sent by the user terminal, and enhances or weakens the control data based on the adjustment base number, so that the gyroscope effect of the cloud game is enhanced or weakened, and further the cloud game experience of the user is improved.

[0029] Optionally, the control data of the cloud game sent by the user terminal comprises:

[0030] The control data of the cloud game sent by the user terminal comprises:

[0031] The encrypted control data packet of the cloud game sent by the user terminal is decrypted to obtain the control data of the cloud game.

[0032] By adopting the above technical solution, the cloud server receives the encrypted control data packet encrypted by the Twofish encryption algorithm by the user terminal. Compared with the data encryption methods such as AES and MD5, the Twofish encryption has faster encryption and decryption speed and stronger attack resistance, thereby avoiding the data loss and leakage in the process of transmitting the control data from the user terminal to the cloud server through the network.

[0033] In a second aspect of the present application, a gyroscope data transmission device applied to a cloud game is provided, which specifically comprises:

[0034] The control data acquisition module is configured to receive the control data of the cloud game sent by the user terminal, and the user terminal supports a gyroscope.

[0035] The data identification module is configured to determine whether the control data is gyroscope data.

[0036] The gyroscope data processing module is configured to analyze and process the control data if the control data is gyroscope data to obtain control data adapted to the cloud game.

[0037] The message triggering module is configured to store the control data adapted to the cloud game in a data temporary storage area and send a data triggering message to the cloud game, so that the cloud game obtains the control data adapted to the cloud game from the data temporary storage area.

[0038] By adopting the above technical solution, the control data acquisition module receives the control data of the cloud game sent by the user terminal through network transmission, then the data identification module determines whether the control data is gyroscope data, if the control data is determined to be gyroscope data, the control data is sent to the gyroscope data processing module for analysis and processing to obtain control data adapted to the cloud game, finally the gyroscope data processing module stores the control data in the data temporary storage area and sends a data triggering message to the cloud game through the message triggering module, so that the cloud game obtains the control data adapted to the cloud game from the data temporary storage area, thereby enabling the cloud game running on the cloud server without a gyroscope device to obtain gyroscope data, and improving the playability of the game.

[0039] Optionally, the data identification module (12) is specifically configured to:

[0040] acquire a data packet length of the data identifier in the control data;

[0041] compare the data identifier with standard data information to obtain a comparison result, the standard data information being data information of a same data packet length in standard gyroscope data;

[0042] determine whether the control data is gyroscope data according to the comparison result.

[0043] By adopting the technical solution, after the data recognition module determines the data packet length of the data identifier in the control data, the data information of a same data packet length in the standard gyroscope data is compared with the data identifier to determine whether the control data is gyroscope data. If the data information of a same data packet length in the standard gyroscope data is consistent with the data identifier, the control data is gyroscope data. If not, it is other data types.

[0044] In summary, the present application includes at least one of the following beneficial technical effects:

[0045] 1. After the cloud server receives the control data of the cloud game obtained by the user terminal, the data type of the control data is determined. If the control data is gyroscope data, the control data is analyzed and processed, and the control data is simplified, format converted, etc. so that the control data can be adapted to the cloud game, i.e. can be used for the cloud game. Finally, the control data is stored in the data temporary storage area of the cloud server, and a data trigger message is sent to inform the cloud game running on the cloud server that the gyroscope data of the cloud game has been stored, so that the cloud game accesses the data temporary storage area to obtain the gyroscope data after receiving the data trigger message, so that the cloud game running on the cloud server without a gyroscope device can obtain the gyroscope data, and the playability of the game is improved. BRIEF DESCRIPTION OF DRAWINGS

[0046] Figure 1 is an architecture schematic diagram of a gyroscope data transmission system applied to a cloud game provided by an embodiment of the present application

[0047] Figure 2 is a flow schematic diagram of a gyroscope data transmission method applied to a cloud game provided by an embodiment of the present application;

[0048] Figure 3 is a flow schematic diagram of another gyroscope data transmission method applied to a cloud game provided by an embodiment of the present application;

[0049] Figure 4 is a schematic diagram of three-dimensional coordinate display of gyroscope data provided by an embodiment of the present application;

[0050] Figure 5A structural schematic diagram of a gyroscope data transmission device applied to cloud gaming is provided in the embodiment of the present application.

[0051] Label explanation: 11, control data acquisition module; 12, data identification module; 13, gyroscope data processing module; 14, message triggering module. DETAILED DESCRIPTION

[0052] In order for those skilled in the art to better understand the technical solutions in the specification, the technical solutions in the specification will be clearly and completely described below in combination with the drawings in the embodiment of the specification. Obviously, the described embodiments are only some of the embodiments of the present application, not all the embodiments.

[0053] In the description of the embodiments of the present application, the words such as "exemplary", "for example", or "for instance" are used to mean example, illustration, or description. Any embodiment or design scheme described as "exemplary", "for example", or "for instance" in the embodiments of the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, the words such as "exemplary", "for example", or "for instance" are intended to present the relevant concept in a specific way.

[0054] Referring to Figure 1 The embodiment of the present application discloses a structural schematic diagram of a gyroscope data transmission system applied to cloud gaming, specifically comprising: a cloud server and a user terminal.

[0055] Cloud gaming runs on a cloud server, and a user performs cloud gaming operation through a user terminal. The user terminal acquires control data of cloud gaming, and the user terminal sends the control data to the cloud server. After the cloud server determines that the control data is gyroscope data, the control data is stored in a data temporary storage area, and the cloud gaming running on the cloud server is notified to acquire the gyroscope data from the data temporary storage area.

[0056] Referring to Figure 2 The embodiment of the present application discloses a flowchart of a gyroscope data transmission method applied to cloud gaming, which can be implemented by relying on a computer program, and can also run on a gyroscope data transmission device applied to cloud gaming based on the Von Neumann system. The computer program can be integrated in an application, or can run as an independent tool application. Specifically, it comprises:

[0057] S101: receiving control data of cloud gaming sent by a user terminal, the user terminal supporting a gyroscope.

[0058] Specifically, the user terminal can be a smart phone or a computer, and in other embodiments, the user terminal can also be a tablet computer, etc. Cloud gaming is an online game that runs the game on a cloud server and directly streams it to the user terminal. Control data is operation data for the game process when the user uses the user terminal to play cloud games. The user terminal can collect control data in real time, and also add data identification data to identify the data category. The cloud server receives the control data sent by the user terminal through network transmission. The gyroscope is an angular motion detection device that uses the momentum moment of a high-speed rotating body to sense the angular motion of the shell relative to the inertial space around one or two axes perpendicular to the rotation axis. Angular motion detection devices made by other principles that have the same function are also called gyroscopes. For example, the user enters the game and operates the gyroscope of the smart phone, tilts the smart phone left and right, and controls the game character to complete the corresponding operation. This series of operations will be collected by the smart phone as control data.

[0059] S102: Determine whether the control data is gyroscope data.

[0060] Specifically, the gyroscope data includes the direction of the gyroscope in space, the rotation rate or unbiased rotation rate of the gyroscope, the gravity acceleration vector of the gyroscope in the device reference frame, the acceleration given by the user to the gyroscope, and the interval time searched by the gyroscope. In other embodiments, the gyroscope data can also be a quaternion. The quaternion is a simple hypercomplex number, which is a method for describing the rotation of a rigid body. The common method is Euler angle. After receiving the control data sent by the user terminal, the data identification in the control data is identified, and the data identification is compared with the identification header of the standard gyroscope data. If they are consistent, it is determined that the control data is gyroscope data, so as to determine whether the control data is gyroscope data.

[0061] S103: If the control data is gyroscope data, the control data is analyzed and processed to obtain control data compatible with cloud gaming.

[0062] Specifically, after determining that the control data is gyroscope data, there may be a situation that the control data is not suitable for the current actual cloud game content, and thus the control data needs to be pruned and simplified, converted in data format, and enhanced or weakened in data effect. For example, the cloud game on the smartphone is in a game loading page and has not entered the formal game, and at this time, the user slides the gyroscope upward or flips the smartphone upward and downward, and thus the cloud game does not need such control data, and thus the cloud server needs to prune the control data that is not needed by the current cloud game after receiving the control data, to reduce the redundancy of the control data, and obtain control data suitable for the cloud game. For another example, the cloud game on the smartphone enters the formal game, and the user needs to slide the gyroscope of the smartphone upward to control the character in the game to move forward, and thus the control data of the upward sliding gyroscope collected by the smartphone is needed by the cloud game. After determining that the control data is gyroscope data, the cloud server does not need to prune and simplify the control data, to obtain the control data suitable for the cloud game, that is, the gyroscope data that can be used by the game.

[0063] S104: store the control data suitable for the cloud game to a data staging area, and send a data trigger message to the cloud game, so that the cloud game obtains the control data suitable for the cloud game from the data staging area.

[0064] Specifically, after obtaining the control data suitable for the cloud game, the control data suitable for the cloud game is sent to the data staging area in the cloud server. In the embodiment of the application, the data staging area can use a hard disk, and in other embodiments, a remote database can also be used to access through the Internet. At the same time that the control data is stored in the data staging area, the cloud server sends a data trigger message to the cloud game running on the cloud server. The data trigger message indicates a message that informs the cloud game that the control data can be obtained. After receiving the data trigger message, the cloud game accesses the data staging area of the cloud server through the local area network, and obtains the control data that can be used by the game from the data staging area. Thus, the cloud game running on the cloud server without a gyroscope device obtains the gyroscope data, and the playability of the game is improved.

[0065] Referring to Figure 3 The embodiment of the application discloses another flowchart of a gyroscope data transmission method applied to a cloud game, which can be implemented by relying on a computer program, and can also be run on a gyroscope data transmission device applied to a cloud game based on a von Neumann system. The computer program can be integrated in an application, or can be run as an independent tool application, and specifically includes:

[0066] S201: receiving an encrypted control data packet of a cloud game sent by a user terminal, and the encryption mode of the encrypted control data packet is Twofish encryption.

[0067] S202: decrypt the encrypted control data packet to obtain the control data of the cloud game.

[0068] Specifically, the Twofish encryption algorithm is named "Double Fish Algorithm" in Chinese, which is an encryption algorithm developed by Bruce Schneier's project team in 1998. Like Blowfish encryption algorithm, it is also a symmetric encryption algorithm. The difference is that the block size of Blowfish is 64 bits, while the block size of Twofish is 128 bits, and it has three key lengths of 128, 192 and 256 bits to choose from. Since the user terminal obtains the control data, it is sent to the cloud server in the form of a data packet, wherein the data packet is a data unit in TCP / IP protocol communication transmission. The TCP / IP protocol works on the third layer (network layer) and the fourth layer (transport layer) of the OSI model, and the frame works on the second layer (data link layer). The content of the upper layer is transmitted by the content of the lower layer, so in the local area network, the data packet is contained in the "frame". In order to prevent the loss and leakage of network transmission data during the process of receiving data by the cloud server, the Twofish encryption algorithm is used to encrypt the control data, and the cloud server receives the encrypted control data packet of the cloud game sent by the user terminal. Then the encrypted control data packet is decrypted by adjusting the F function and using the reverse order of the sub-key, and the control data of the cloud game is obtained. Compared with other encryption methods, Twofish encryption has faster speed and better attack resistance in data transmission process. In other embodiments, MD5 encryption or 3DES encryption method can also be used to encrypt the control data. It should be noted that this is prior art and will not be described here.

[0069] S203: Obtain the length of the data packet of the data identifier in the control data.

[0070] Specifically, the data identifier includes the relative time of operation and the operation type. For example, the time node of the last control data received by the cloud server sent by the user terminal is a, and after time t, the cloud server receives the control data again, and the time node of the current control data relative to the last control data is a+t, which is the relative time of operation. For another example, the user uses a smart phone to experience cloud game, and the operation type in the control data received by the cloud server is smart phone, and some users use a hand-held device with a gyroscope to play the game, and the operation type in the control data received by the cloud server is a hand-held device with a gyroscope.

[0071] For TCP protocol, the packet length is determined by the maximum transmission size (MSS); for IP protocol, the packet length is determined by the maximum transmission unit (MTU). The packet length, also referred to as the field length of the packet, is obtained by removing the frame header and the check sequence from the packet size. In the embodiments of the present application, since the network transmission data is all binary, the control data each time is a binary string, the field length of the binary string of the entire control data is obtained, and the packet length of the data identifier of the control data is determined according to the preset identifier bit selection rule. In the embodiments of the present application, the packet length of the data identifier is selected as the fixed field length of the head of the binary string.

[0072] S204: Comparing the data identifier with the standard data information to obtain a comparison result, and the standard data information is the data information of the same packet length in the standard gyroscope data.

[0073] S205: Determining whether the control data is gyroscope data according to the comparison result.

[0074] In a feasible implementation, in an embodiment, if the data identifier is consistent with the standard data information, it is determined that the control data is gyroscope data.

[0075] Specifically, after obtaining the packet length of the data identifier, the data identifier is compared with the data information of the same packet length of the standard gyroscope data to obtain a comparison result, and the comparison result is that the data identifier is consistent with the standard data information or the data identifier is inconsistent with the standard data information. For example, the binary string of the control data received by the cloud server is: 00101000100010, and it is assumed that the preset representation selection rule is to select the first 4 bits as the data identifier, that is, 0010, so the packet length of the data identifier is 4. Then, according to the packet length, the data information (standard data information) of the first four bits of the binary string of the standard gyroscope data is selected as 0010, so the data identifier is consistent with the standard data information, both of which are 0010, which indicates that the received control data is gyroscope data; if the data information (standard data information) of the first four bits of the binary string of the standard gyroscope data is selected as 0101, the data identifier is inconsistent with the standard data, which indicates that the data type of the received control data is not gyroscope data.

[0076] S206: If the control data is gyroscope data, obtaining the gyroscope data required by the cloud game;

[0077] S207: Comparing the required gyroscope data with the control data, deleting the data in the control data that is inconsistent with the required gyroscope data, and obtaining the control data adapted to the cloud game,

[0078] and / or

[0079] The original data format of the control data is converted into the gyroscope data format required for cloud gaming, and the original expression of the control data is converted into the gyroscope expression required for cloud gaming to obtain control data adapted to cloud gaming.

[0080] Specifically, after determining that the control data received by the cloud server is gyroscope data, the original data format is determined according to the display format of the control data. For example, if control data 1 is X=0.637621485037823, Y: 2.03815606438956, Z:-2.86846817325508, the original data format is xyz axis, indicating that the user terminal has offsets on the x-axis, y-axis and z-axis; if control data 2 is received as X=-0.637621485037823, Z:2.86846817325508, the original data format is xz axis, indicating that the user terminal has offsets only on the x-axis and z-axis. Figure 4 As shown, it is a schematic diagram of the three-dimensional coordinate display of gyroscope data, where the upper and lower parts of the user terminal are the y-axis, the left and right parts are the x-axis, and the z-axis runs through the screen. In an embodiment of the present application, the gyroscope data required for cloud gaming is the gyroscope data required to match the cloud gaming process or to ensure the stable operation of the cloud gaming. The gyroscope data required for cloud gaming can be obtained by inputting from an external terminal. If the gyroscope data format required for cloud gaming is the xz axis, that is, the cloud gaming only requires the user terminal to flip left and right to operate. If control data 1 is received, its original data format xyz axis needs to be converted to the xz axis, and the z-axis data in the control data 1 is removed to obtain a gyroscope data format that can be used for gaming.

[0081] In the embodiment of the present application, the gyroscope expressions of different user terminals are different, and the gyroscope expressions (i.e., gyroscope data expressions) include: angle vector type, three-axis or six-axis sensor type, quaternion type, nine-axis sensor type, etc. Among them, the three-axis sensor is a three-axis gyroscope, which can simultaneously measure the position, movement trajectory, and acceleration in six directions. A single-axis gyroscope can only measure quantities in two directions, and a three-axis sensor can replace three single-axis gyroscopes. The gyroscope expression corresponding to the user terminal, i.e., the original expression, can be determined based on the original data format of the control data. For example, the original data format of the received control data is the xyz axis. Based on the original data format of the xyz axis, it can be determined that the original expression is a three-axis sensor type.

[0082] The gyroscope data required by the cloud game is converted into the original expression, if the two are not the same. For example, if the gyroscope data required by the cloud game is a three-axis sensor type, the original expression of the control data sent by the user terminal is a six-axis sensor, which is composed of a three-axis accelerator and a three-axis gyroscope. The three-axis accelerator is used to sense front, back, left, right, up and down (three-dimensional space), and the three-dimensional gyroscope senses the dynamic information of left and right tilt, front and back tilt, and left and right swing, respectively. The specific way of converting the six-axis sensor type into the three-axis sensor type required by the cloud game is to remove the three-dimensional accelerator related data in the control data, so that the gyroscope data received by the cloud server can be converted into gyroscope data available for the game. It should be noted that the nine-axis sensor is a combination of a three-axis accelerator, a three-axis gyroscope and a three-axis magnetometer. The conversion between the nine-axis sensor type and the six-axis sensor type, and the conversion between the nine-axis sensor type and the three-axis sensor type can be realized in the same way.

[0083] In one possible implementation, in one embodiment, if the control data is gyroscope data, the adjustment base number sent by the user terminal is obtained, which is the gyroscope effect enhancement base number or weakening base number required by the cloud game.

[0084] According to the adjustment base number, the control data is adjusted to obtain the control data adapted to the cloud game.

[0085] Specifically, because the data definitions of different gyroscope devices are different or the sensitivity of the gyroscope device itself is not standard, when the user experiences the cloud game by using the user terminal supporting the gyroscope device, it is found that the intervention of the gyroscope device is strong or weak, which affects the experience of the cloud game and needs to be weakened or enhanced accordingly. Therefore, after determining that the control data is gyroscope data, the adjustment base number sent by the user terminal is received, that is, the base number of the gyroscope effect weakening or enhancement of the cloud game. Then, according to the adjustment base number, the received control data is adjusted to obtain the control data adapted to the cloud game. For example, the received adjustment base number is 2, which means that the user wants to enhance the intervention of the game gyroscope device. When the user experiences the cloud game by using a smart phone, the smart phone is tilted 20 degrees to the right, the control data is sent to the cloud server after being enhanced by 2 times, and finally the game presented on the smart phone is tilted 40 degrees to the right, and the tilt feeling brought to the user by the game picture is stronger.

[0086] S208: Store the control data adapted to the cloud game to the data temporary storage area, and send a data trigger message to the cloud game, so that the cloud game obtains the control data adapted to the cloud game from the data temporary storage area.

[0087] Specifically, it can be referred to step S104 again and will not be described again.

[0088] The implementation principle of the embodiment of the gyroscope data transmission method applied to cloud games is as follows: after receiving the control data of cloud games sent by a user terminal, it is judged whether the control data is gyroscope data according to the data identifier, if it is determined that the control data is gyroscope data, the control data is analyzed by data reduction and simplification, data format and expression mode conversion, and the like, to obtain control data adapted to cloud games, and finally the control data adapted to cloud games is stored in a data staging area, and a data trigger message is sent to the cloud game, so that the cloud game obtains the control data adapted to the cloud game from the data staging area, and the cloud game running on the cloud server without a gyroscope device can obtain gyroscope data, and the playability of the game is improved.

[0089] The following is an embodiment of the device of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.

[0090] Please refer to Figure 5 A structure diagram of a gyroscope data transmission device applied to cloud games is provided in the embodiment of the present application. The gyroscope data transmission device applied to cloud games can be realized by software, hardware or a combination of the two to become all or part of the device. The device 1 comprises a position control data acquisition module 11, a data identification module 12, a gyroscope data processing module 13 and a message triggering module 14.

[0091] The control data acquisition module 11 is used to receive the control data of cloud games sent by a user terminal, and the user terminal supports a gyroscope;

[0092] The data identification module 12 is used to judge whether the control data is gyroscope data;

[0093] The gyroscope data processing module 13 is used to analyze the control data if the control data is gyroscope data, to obtain control data adapted to cloud games;

[0094] The message triggering module 14 is used to store the control data adapted to cloud games in a data staging area, and send a data trigger message to the cloud game, so that the cloud game obtains the control data adapted to the cloud game from the data staging area.

[0095] Optionally, the data identification module 12 is specifically used for:

[0096] Obtaining the data packet length of the data identifier in the control data;

[0097] Comparing the data identifier with standard data information to obtain a comparison result, and the standard data information is the data information of the same data packet length in the standard gyroscope data;

[0098] According to the comparison result, it is judged whether the control data is gyro data.

[0099] Optionally, the data identification module 12 is specifically further used for:

[0100] If the comparison result is that the data identifier is consistent with the standard data information, it is determined that the control data is gyro data.

[0101] Optionally, the gyro data processing module 13 is specifically used for:

[0102] If the control data is gyro data, gyro data required by the cloud game is obtained;

[0103] The required gyro data is compared with the control data, the data inconsistent with the required gyro data in the control data is deleted, and the control data adapted to the cloud game is obtained,

[0104] and / or

[0105] The original data format of the control data is converted into the gyro data format required by the cloud game, and the original expression mode of the control data is converted into the gyro expression mode required by the cloud game, and the control data adapted to the cloud game is obtained.

[0106] Optionally, the gyro data processing module 13 is specifically further used for:

[0107] If the control data is gyro data, the adjustment base number sent by the user terminal is obtained, and the adjustment base number is the gyro effect enhancement base number or the gyro effect weakening base number required by the cloud game;

[0108] According to the adjustment base number, the control data is adjusted to obtain the control data adapted to the cloud game.

[0109] Optionally, the control data acquisition module 11 is specifically used for:

[0110] Receiving the encrypted control data packet of the cloud game sent by the user terminal, and the encryption mode of the encrypted control data packet is Twofish encryption;

[0111] Decrypting the encrypted control data packet to obtain the control data of the cloud game.

[0112] It should be noted that the above embodiment provides a gyroscope data transmission device applied to cloud game, when the gyroscope data transmission method applied to cloud game is executed, only the division of the above functional modules is exemplified, and in actual application, the above functions can be distributed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the gyroscope data transmission device applied to cloud game and the gyroscope data transmission method applied to cloud game provided by the above embodiment belong to the same concept, and the implementation process is embodied in the method embodiment, which will not be repeated here.

[0113] The embodiment of the application further discloses a computer readable storage medium, and the computer readable storage medium stores a computer program, wherein the computer program is executed by a processor to adopt the gyroscope data transmission method applied to cloud game of the above embodiment.

[0114] The computer program can be stored in the computer readable medium, the computer program includes computer program code, the computer program code can be in the form of source code, object code, executable file or some middleware form, etc., the computer readable medium includes any entity or device, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. which can carry computer program code, it should be noted that the computer readable medium includes but is not limited to the above components.

[0115] The computer readable storage medium stores the gyroscope data transmission method applied to cloud game of the above embodiment in the computer readable storage medium, and is loaded and executed on the processor to facilitate the storage and application of the above method.

[0116] The embodiment of the application further discloses an electronic device, and the computer readable storage medium stores a computer program, and the computer program is loaded and executed by the processor to adopt the gyroscope data transmission method applied to cloud game.

[0117] The electronic device can adopt desktop computer, notebook computer or cloud server, etc., and the electronic device includes but is not limited to processor and memory, for example, the electronic device can further include input output device, network access device and bus, etc.

[0118] The processor can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), programmable logic devices (PLD), field programmable gate arrays (FPGA), or other programmable logic devices, discrete gates or transistor logic components, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, and the present application is not limited thereto.

[0119] The memory can be an internal storage unit of the electronic device, such as a hard disk or a memory of the electronic device, or an external storage device of the electronic device, such as a plug-in hard disk, a smart media card (SMC), a secure digital card (SD), or a flash memory card (FC) equipped on the electronic device, and the memory can also be a combination of the internal storage unit and the external storage device of the electronic device. The memory is used to store computer programs and other programs and data required by the electronic device, and can also be used to temporarily store data that has been output or will be output, and the present application is not limited thereto.

[0120] The above-mentioned embodiment of the application is applied to the cloud game gyroscope data transmission method, which is stored in the memory of the electronic device and loaded and executed on the processor of the electronic device, and is convenient to use.

[0121] The above-mentioned embodiment is only an exemplary embodiment of the present disclosure, and cannot limit the scope of the present disclosure. Any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. Other embodiments of the present disclosure will be easily obtained by those skilled in the art after considering the specification and practicing the disclosure herein. The present application is intended to cover any variations, uses, or adaptive changes of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and examples are only considered as exemplary, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A gyroscope data transmission method applied to cloud gaming, characterized in that, Applied to a cloud server, comprising: Receiving control data of a cloud game sent by a user terminal, the user terminal supporting a gyroscope; Determining whether the control data is gyroscope data; If the control data is gyroscope data, performing analysis processing on the control data to obtain control data adapted to the cloud game, including: if the control data is gyroscope data, obtaining gyroscope data required by the cloud game; Comparing the required gyroscope data with the control data, deleting data in the control data that is inconsistent with the required gyroscope data, and obtaining control data adapted to the cloud game, wherein the gyroscope data required by the cloud game is gyroscope data required to match the game progress of the cloud game; Storing the control data adapted to the cloud game in a data staging area and sending a data trigger message to the cloud game to enable the cloud game to obtain the control data adapted to the cloud game from the data staging area.

2. The gyroscope data transmission method for cloud gaming according to claim 1, characterized in that: The control data has a data identifier added, and determining whether the control data is gyroscope data includes: Obtaining the data packet length of the data identifier in the control data; Comparing the data identifier with standard data information to obtain a comparison result, the standard data information being data information of the same data packet length in standard gyroscope data; Determining whether the control data is gyroscope data according to the comparison result.

3. The gyroscope data transmission method for cloud gaming of claim 2, wherein, The determination whether the control data is gyroscope data according to the comparison result includes: If the comparison result is that the data identifier is consistent with the standard data information, it is determined that the control data is gyroscope data.

4. The gyroscope data transmission method for cloud gaming of claim 1, wherein, If the control data is gyroscope data, performing analysis processing on the control data to obtain control data adapted to the cloud game, including: Converting the original data format of the control data into the gyroscope data format required by the cloud game, and converting the original expression mode of the control data into the gyroscope expression mode required by the cloud game, to obtain control data adapted to the cloud game.

5. The gyroscope data transmission method for cloud gaming of claim 1, wherein, If the control data is gyroscope data, obtaining an adjustment base number sent by the user terminal, the adjustment base number being a gyroscope effect enhancement base number or a gyroscope effect weakening base number required by the cloud game; Adjusting the control data according to the adjustment base number to obtain control data adapted to the cloud game. The receiving of the control data of the cloud game sent by the user terminal includes:

6. The gyroscope data transmission method for cloud gaming of claim 1, wherein, Receiving an encrypted control data packet of a cloud game sent by a user terminal, the encryption mode of the encrypted control data packet being Twofish encryption; Decrypting the encrypted control data packet to obtain control data of a cloud game. Comprising:

7. A gyroscope data transmission device applied to cloud gaming, used to implement the cloud gaming gyroscope data transmission method in any one of claims 1 to 6, characterized in that, A control data acquisition module (11) for receiving control data of a cloud game sent by a user terminal, the user terminal supporting a gyroscope; A data identification module (12) for determining whether the control data is gyroscope data; ​ a gyroscope data processing module (13) configured to, if the control data is gyroscope data, parse the control data to obtain control data adapted to the cloud game; a message triggering module (14) configured to store the control data adapted to the cloud game in a data temporary storage area and send a data triggering message to the cloud game, so that the cloud game obtains the control data adapted to the cloud game from the data temporary storage area.

8. A computer-readable storage medium having stored therein a computer program, characterized in that, The computer program is loaded and executed by the processor, and the method of any one of claims 1-6 is implemented.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that, The processor loads and executes the computer program, and the method of any one of claims 1-6 is implemented.

Citation Information

Patent Citations

  • Cloud game implementation method, cloud game implementation device, storage medium and electronic equipment

    CN112354176A