A data communication method, apparatus, electronic device, and storage medium

CN117942571BActive Publication Date: 2026-09-22TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211282211.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-19
Publication Date
2026-09-22
Estimated Expiration
2042-10-19

AI Technical Summary

Technical Problem

[0004]但是,在现有的多人游玩云游戏的场景下,各个用户无法直观从大屏幕或者手柄上判断自己操控的虚拟角色,相关方案将手柄的出厂外观颜色设计成不同颜色,但这种做法只是为了帮助用户从多个手柄中找到自己的手柄,依旧无法快速判断云游戏中虚拟角色的控制对象

Benefits of technology

[0071]本发明的实施例的便携数码装置响应于连接操作生成的连接信号,将连接信号发送至目标终端,由目标终端生成各个便携数码装置的设备标识信息后,向云服务器发送连接通知,云服务器根据连接通知,从目标应用程序获取各个设备标识信息对应的虚拟角色信息,并建立设备标识信息与虚拟角色信息之间的角色映射表;本发明通过云服务器中建立的角色映射表,使得各个便携数码装置在任意时间接入目标终端时,都能够对设备标识信息所对应的虚拟角色进行持续控制,提高了实用性;接着,接收目标应用程序生成的角色区分信息,并将角色区分信息发送至目标终端;目标终端根据角色区分信息显示目标画面内容,并向各个便携数码装置发送不同的控制指令,使得各个便携数码装置执行不同的控制指令后展示不同的表征内容;每个便携数码装置的表征内容与便携数码装置控制的虚拟角色一一对应;本发明实施例的目标终端在接收到角色区分信息显示目标画面内容,能够直观地观察到虚拟角色在画面中的区分度,另外,本发明的便携数码装置在接收到目标终端发送的控制指令后,执行控制指令并展示对应的表征内容,进一步可以高效准确地通过便携数码装置上的表征内容来确定当前便携数码装置所控制的虚拟角色。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117942571B_ABST
    Figure CN117942571B_ABST
Patent Text Reader

Abstract

The application discloses a data communication method and device, electronic equipment and storage medium, and the virtual role information corresponding to each device identification information is obtained from a target application program through a connection notification received by a cloud server, and a role mapping table between the device identification information and the virtual role information is established, then, role distinguishing information generated by the target application program is received, and the role distinguishing information is sent to a target terminal, so that the target terminal displays target picture content according to the role distinguishing information, and different control instructions are sent to each portable digital device, so that each portable digital device displays different representation content after executing the control instructions; the virtual role corresponding to the device identification information is continuously controlled through the role mapping table, and the practicability is improved; the distinguishing degree of the virtual role in the picture is directly reflected through the target picture content; the virtual role corresponding to the portable digital device is efficiently and accurately determined through the representation content, and the application can be widely used in the technical field of computers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a data communication method, apparatus, electronic device, and storage medium. Background Technology

[0002] Cloud gaming is an online gaming technology based on cloud computing. In the cloud gaming operating mode, all games run on servers. The servers render and compress the game screen and transmit the compressed game screen to physical terminal devices via the network. The servers generate corresponding touch events based on the touch parameter information sent by the physical terminal devices and control the cloud game to respond to the touch events.

[0003] In home life, the large-screen TV in the living room is often the center of family entertainment. Some game developers have launched game consoles that output video and audio signals to the large-screen TV. Users can then use dedicated wired or wireless game controllers to play games. Combined with increasingly mature cloud gaming technology, this can bring users an extremely vivid entertainment experience. For example, users can control virtual characters in cloud games to move or release skills using buttons on the controller. As more and more users participate in large-screen entertainment through controllers, scenarios where multiple people use different controllers to play the same game on a large screen are becoming increasingly common.

[0004] However, in existing multiplayer cloud gaming scenarios, users cannot intuitively identify the virtual character they are controlling from the large screen or the controller. The solution is to design different colors for the controllers at the factory, but this is only to help users find their controller among multiple controllers, and still cannot quickly identify the control object of the virtual character in the cloud game.

[0005] Furthermore, in scenarios involving multiplayer real-time cloud gaming, when the same controller is connected to the cloud gaming platform at different times, the virtual character controlled by that controller will be reset. This means that after disconnecting the controller, the player using that controller will be unable to continue controlling the same game character in the current real-time game. For example, if the controller's battery runs out during gameplay and it is reconnected to the game after charging, the player will not be able to continue controlling the previously controlled virtual character. Summary of the Invention

[0006] In view of this, embodiments of the present invention provide a data communication method, apparatus, electronic device, and storage medium that can efficiently and accurately determine virtual characters controlled by different portable digital devices, and can connect portable digital devices to target applications at any time to achieve continuous control of virtual characters, thereby improving practicality.

[0007] One aspect of this invention provides a data communication method, comprising:

[0008] Receive a connection notification sent by the target terminal. The connection notification indicates that the target terminal is connected to a portable digital device. The connection notification contains the device identification information of the portable digital device.

[0009] Based on the connection notification, obtain the virtual role information corresponding to each device identification information from the target application, and establish a role mapping table between device identification information and virtual role information;

[0010] Receive role differentiation information generated by the target application and send the role differentiation information to the target terminal; so that the target terminal sends different control commands to each portable digital device according to the role differentiation information, so that each portable digital device displays different representation content after executing different control commands; the representation content of each portable digital device corresponds one-to-one with the virtual character controlled by the portable digital device.

[0011] The role differentiation information is generated by the target application based on the virtual role information.

[0012] Another aspect of the present invention provides a data communication device, comprising:

[0013] The first module is used to receive a connection notification sent by the target terminal. The connection notification indicates that the target terminal is connected to a portable digital device. The connection notification contains the device identification information of the portable digital device.

[0014] The second module is used to obtain the virtual role information corresponding to each device identification information from the target application based on the connection notification, and to establish a role mapping table between device identification information and virtual role information.

[0015] The third module is used to receive role differentiation information generated by the target application and send the role differentiation information to the target terminal; so that the target terminal sends different control commands to each portable digital device according to the role differentiation information, so that each portable digital device displays different representation content after executing different control commands; the representation content of each portable digital device corresponds one-to-one with the virtual character controlled by the portable digital device.

[0016] The role differentiation information is generated by the target application based on the virtual role information.

[0017] Optionally, at least one or more of the first, second, or third modules described above are further specifically used for:

[0018] Deploy the target application's process and deploy the software development kit within the process;

[0019] In response to the target application's startup message, the software development kit is initialized and configured, and the callback functions are registered.

[0020] The callback function is used to call the target function in the target application to obtain the execution result of the target function.

[0021] Optionally, the second module described above is specifically used for:

[0022] In response to the received connection notification, the connection notification is parsed by the target logic process to obtain the device identification information of the portable digital device connected to the target terminal, and the device identification information is sent to the software development kit;

[0023] In response to the received device identification information, a call message notification is generated, and the target function in the target application is called through the callback function registered in the software development kit to obtain the virtual role information generated after the target function is executed;

[0024] Based on the obtained virtual character information, a role mapping table is established between the virtual character information and the device identification information.

[0025] Optionally, the third module mentioned above is specifically used for:

[0026] Based on the virtual character information, character differentiation information is generated through the program process of the target application, and the character differentiation information is sent to the software development kit;

[0027] Based on the received role differentiation information, the software development kit traverses and queries the role mapping table to obtain the device identification information corresponding to the role differentiation information;

[0028] Target parameters are generated based on device identification information and role differentiation information, and then sent to the target logic process.

[0029] The target parameters are sent to the target terminal through the target logic process;

[0030] The target parameters include role differentiation information and device identification information.

[0031] Optionally, the third module described above is also specifically used to implement at least one of the following:

[0032] Based on the virtual character information, character rendering data is generated through the program process of the target application; the character rendering data is different for different device identification information.

[0033] Alternatively, based on the virtual character information, device vibration data can be generated through the program process of the target application; the device vibration data will differ depending on the device identification information.

[0034] Alternatively, based on the virtual character information, character audio data can be generated through the program process of the target application; the character audio data will differ depending on the device identification information.

[0035] Optionally, the third module described above is also specifically used to implement at least one of the following:

[0036] When the character differentiation information is character rendering data, the first parameter is generated based on the device identification information and the character rendering data. The first parameter includes a light-up command, device identification information, and character rendering data. After the light-up command is executed by the portable digital device, the portable digital device emits a light-up representation of the corresponding color.

[0037] When the character differentiation information is device vibration data, a second parameter is generated based on the device identification information and the device vibration data. The second parameter includes vibration command, vibration parameters, device identification information and character rendering data. The vibration command is executed by the portable digital device, causing the portable digital device to emit vibration representation content.

[0038] When the role differentiation information is role audio data, a third parameter is generated based on the device identification information and the role audio data. The third parameter includes an audio playback command, audio encoding data, and device identification information. The audio playback command, after being executed by the portable digital device, causes the portable digital device to play the corresponding audio representation content.

[0039] Optionally, when the character differentiation information is character audio data, the third module mentioned above is also specifically used for:

[0040] The target logic process encodes the character audio data in the target parameters to obtain the audio encoded data.

[0041] The audio encoding data, audio playback instructions, and device identification information are packaged and sent to the target terminal.

[0042] Another aspect of the present invention provides a data communication method, including:

[0043] Displays the initial screen content;

[0044] In response to connection signals from multiple portable digital devices, device identification information for each portable digital device is generated;

[0045] Based on the device identification information, a connection notification is sent to the cloud server, so that the cloud server can obtain the virtual role information corresponding to each device identification information from the target application according to the connection notification, and establish a role mapping table between device identification information and virtual role information.

[0046] Receive role differentiation information sent by the cloud server;

[0047] Based on the character differentiation information, the target screen content is displayed, and different control commands are sent to each portable digital device so that each portable digital device can execute different control commands and display different representation content; the representation content of each portable digital device corresponds one-to-one with the virtual character controlled by the portable digital device.

[0048] The role differentiation information is generated by the target application based on the virtual role information.

[0049] Another aspect of the present invention provides a data communication device, comprising:

[0050] The fourth module is used to display the initial screen content;

[0051] The fifth module is used to generate device identification information for each portable digital device in response to connection signals from multiple portable digital devices.

[0052] The sixth module is used to send a connection notification to the cloud server based on the device identification information, so that the cloud server can obtain the virtual role information corresponding to each device identification information from the target application based on the connection notification, and establish a role mapping table between device identification information and virtual role information.

[0053] The seventh module is used to receive role differentiation information sent by the cloud server;

[0054] The eighth module is used to display the target screen content based on the character differentiation information, and send different control commands to each portable digital device so that each portable digital device can display different representation content after executing different control commands; the representation content of each portable digital device corresponds one-to-one with the virtual character controlled by the portable digital device.

[0055] The role differentiation information is generated by the target application based on the virtual role information.

[0056] Another aspect of the present invention provides a data communication method, including:

[0057] In response to the connection signal generated by the connection operation, the connection signal is sent to the target terminal; so that the target terminal generates the device identification information of each portable digital device according to the connection signal and then sends a connection notification to the cloud server.

[0058] Receive control commands sent by the target terminal;

[0059] Execute control commands and display the corresponding representation content;

[0060] The control commands are generated by the target terminal based on the role differentiation information received from the cloud server.

[0061] Another aspect of the present invention provides a data communication device, comprising:

[0062] The ninth module is used to respond to the connection signal generated by the connection operation and send the connection signal to the target terminal; so that the target terminal generates the device identification information of each portable digital device according to the connection signal and then sends a connection notification to the cloud server.

[0063] The tenth module is used to receive control commands sent by the target terminal;

[0064] The eleventh module is used to execute control commands and display the corresponding representation content;

[0065] The control commands are generated by the target terminal based on the role differentiation information received from the cloud server.

[0066] Another aspect of the present invention provides an electronic device, including a processor and a memory;

[0067] Memory is used to store programs;

[0068] The processor executes programs to implement data communication methods.

[0069] Another aspect of the present invention provides a computer-readable storage medium storing a program, which is executed by a processor to implement a data communication method.

[0070] Another embodiment of the present invention provides a computer program product, including a computer program, which, when executed by a processor, implements a data communication method.

[0071] In embodiments of the present invention, the portable digital device responds to a connection signal generated by a connection operation and sends the connection signal to a target terminal. The target terminal then generates device identification information for each portable digital device and sends a connection notification to a cloud server. Based on the connection notification, the cloud server retrieves the virtual role information corresponding to each device identification information from the target application and establishes a role mapping table between the device identification information and the virtual role information. This invention, through the role mapping table established in the cloud server, enables each portable digital device to continuously control the virtual role corresponding to its device identification information whenever it connects to the target terminal, improving practicality. Next, it receives role differentiation information generated by the target application and sends the role differentiation information to the target terminal. The target terminal displays target screen content based on role differentiation information and sends different control commands to each portable digital device, causing each portable digital device to execute different control commands and display different representation content; the representation content of each portable digital device corresponds one-to-one with the virtual character controlled by the portable digital device; in this embodiment of the invention, the target terminal displays target screen content upon receiving role differentiation information, and can intuitively observe the distinguishability of the virtual character in the screen. In addition, after receiving the control commands sent by the target terminal, the portable digital device of the present invention executes the control commands and displays the corresponding representation content, further enabling efficient and accurate determination of the virtual character currently controlled by the portable digital device through the representation content on the portable digital device. Attached Figure Description

[0072] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0073] Figure 1 A schematic diagram illustrating the implementation environment of the data communication method provided in this embodiment of the invention;

[0074] Figure 2 This is a schematic diagram of the structure of a portable digital device provided in an embodiment of the present invention;

[0075] Figure 3 A flowchart illustrating a data communication method provided in an embodiment of the present invention;

[0076] Figure 4 This is a schematic diagram of the structure of a cloud server process provided in an embodiment of the present invention;

[0077] Figure 5 A signal flow diagram of a data communication method provided in an embodiment of the present invention;

[0078] Figure 6 Signal flow diagram of another data communication method provided in an embodiment of the present invention;

[0079] Figure 7 This is a schematic diagram of the structure of a data communication device provided in an embodiment of the present invention;

[0080] Figure 8 A flowchart illustrating another data communication method provided in an embodiment of the present invention;

[0081] Figure 9 This is a schematic diagram of another data communication device provided in an embodiment of the present invention;

[0082] Figure 10 A flowchart illustrating another data communication method provided in an embodiment of the present invention;

[0083] Figure 11 This is a schematic diagram of another data communication device provided in an embodiment of the present invention;

[0084] Figure 12 A schematic diagram illustrating the steps of a specific embodiment of the data communication method provided in this invention;

[0085] Figure 13 A signal flow diagram of a specific embodiment of the data communication method provided in this invention;

[0086] Figure 14 Another signal flow diagram of a specific embodiment of the data communication method provided in this invention. Detailed Implementation

[0087] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0088] First, the technical terms involved in the embodiments of this invention will be introduced:

[0089] Cloud technology is a collective term for network technologies, information technologies, integration technologies, management platform technologies, and application technologies applied to the cloud computing business model. It can form resource pools, providing flexible and convenient on-demand access. Cloud computing technology will become a crucial support. Backend services of technical network systems require substantial computing and storage resources, such as video websites, image websites, and many portal websites. With the rapid development and application of the internet industry, every item may have its own identification mark in the future, requiring transmission to backend systems for logical processing. Data at different levels will be processed separately, and various industry data will all require robust system support, which can only be achieved through cloud computing.

[0090] Cloud gaming, also known as gaming on demand, is an online gaming technology based on cloud computing. It enables thin clients with relatively limited graphics processing and data processing capabilities to run high-quality games. In cloud gaming, the game does not reside on the player's terminal but runs on a cloud server. The cloud server renders the game scene as a video and audio stream, which is then transmitted to the player's terminal via the network. The player's terminal does not need powerful graphics processing and data processing capabilities; it only needs basic streaming media playback capabilities and the ability to receive player input commands and send them to the cloud server.

[0091] An SDK (Software Development Kit) is a collection of development tools used by software engineers to create application software for specific software packages, frameworks, hardware platforms, and operating systems. Broadly speaking, software development tools refer to a collection of related documentation, examples, and tools that assist in developing a particular type of software. A software development kit is a collection of development tools used by software engineers to create application software for specific software packages, frameworks, hardware platforms, and operating systems. Generally, an SDK is the SDK used to develop applications for the Windows platform. It can simply provide some documentation for an application programming interface (API) for a programming language, but it may also include complex hardware that can communicate with an embedded system. Common tools include utilities for debugging and other purposes. SDKs often also include sample code, supporting technical annotations, or other supporting documentation to clarify ambiguities for basic reference materials.

[0092] In home life, large-screen TVs or projectors in the living room are often the family entertainment center. For example, educational or entertainment videos can be played on these devices, allowing family members to participate together and increase interaction and communication. Some game developers offer game consoles whose video and audio signals are output to large-screen TVs. Users can then use dedicated wired or wireless game controllers to play games. Combined with increasingly sophisticated cloud gaming technology, this can provide a highly immersive entertainment experience. For instance, users can control virtual characters in cloud games by using buttons on the controller to move or unleash skills. As more and more users engage in large-screen entertainment using controllers, scenarios where multiple people use different controllers to play the same game on a single large screen are becoming increasingly common.

[0093] However, in existing multiplayer cloud gaming scenarios, users cannot intuitively identify their virtual character from the large screen or controller. While some solutions use different colors for the controllers at the factory, this only helps users find their controller among multiple options and doesn't quickly determine which virtual character is being controlled in the cloud game. Furthermore, in real-time multiplayer cloud gaming scenarios, when the same controller is connected to the cloud gaming platform at different times, the virtual character controlled by that controller is reset. This means that after disconnecting the controller, the player cannot continue controlling the same character in the current real-time game. For example, if the controller's battery runs out during gameplay and it is recharged and reconnected, the previously controlled virtual character cannot be resumed.

[0094] Based on the above, embodiments of the present invention provide a data communication method, apparatus, electronic device, and storage medium. A portable digital device responds to a connection signal generated by a connection operation and sends the connection signal to a target terminal. The target terminal generates device identification information for each portable digital device and sends a connection notification to a cloud server. The cloud server, based on the connection notification, obtains virtual role information corresponding to each device identification information from the target application and establishes a role mapping table between device identification information and virtual role information. This invention, through the role mapping table established in the cloud server, enables each portable digital device to continuously control the virtual role corresponding to its device identification information whenever it connects to the target terminal, improving practicality. Next, the target application receives role differentiation information and sends it to the target terminal. The target terminal displays target screen content based on the role differentiation information and sends different control commands to each portable digital device, causing each portable digital device to display different representation content after executing different control commands. The representation content of each portable digital device corresponds one-to-one with the virtual role controlled by that portable digital device. In this embodiment of the invention, the target terminal, upon receiving role differentiation information and displaying target screen content, can more intuitively demonstrate the distinguishability of virtual roles on the screen. In addition, after receiving a control command sent by a target terminal, the portable digital device of the present invention executes the control command and displays the corresponding representation content, thereby efficiently and accurately determining the virtual character controlled by the portable digital device through the representation content on the portable digital device.

[0095] See Figure 1 , Figure 1 This is a schematic diagram of an implementation environment provided in an embodiment of the present invention. The implementation environment includes a cloud server 100, a plurality of target terminals (exemplarily, the target terminals connected to the cloud server include a first target terminal 201 and a second target terminal 202, etc.) and a plurality of portable digital devices (exemplarily, a first portable digital device 301, a second portable digital device 302 and a third portable digital device 303 connected to the first target terminal 201, and a fourth portable digital device 304 and a fifth portable digital device 305 connected to the second target terminal 202).

[0096] In this implementation environment, a cloud server 100 is directly or indirectly connected to several target terminals via wired or wireless communication. Each target terminal is directly or indirectly connected to several portable digital devices via wired or wireless communication. The portable digital devices and the cloud server establish a communication connection through the target terminals. The connection method can be wired or wireless, and this application does not impose any restrictions. Different connection methods and corresponding communication protocols are used between the cloud server and the target terminals, or between the target terminals and the portable digital devices. For example, if a network connection is used, the network protocol can be TCP (Transmission Control Protocol), UDP (User Datagram Protocol), or HTTP (Hypertext Transfer Protocol), etc.; if a USB (Universal Serial Bus) connection is used, it corresponds to the HID (Human Interface Device) protocol. The application target program runs on the cloud server, the target terminal displays the relevant information transmitted by the application target program, and the target user experiences cloud gaming through the portable digital device. For example, the target device operates the portable digital device 301, and the operation information generated by the portable digital device 301 is sent to the corresponding connected target terminal 201. The target terminal 201 receives the operation information sent by the portable digital device 301 and sends the operation information to the cloud server 100. The cloud server 100 receives the operation information, processes the operation information to obtain feedback information, and sends the feedback information to the target terminal 201. The target terminal 201 receives the feedback information sent by the cloud server 100, displays the feedback information on the screen, and generates control commands based on the feedback information and sends them to the portable digital device 301 to control the portable digital device 301. The operation information includes, but is not limited to, connection operation information of the portable digital device to the target terminal, or control operation information of the portable digital device to a cloud game on the cloud server; the feedback information includes, but is not limited to, virtual character information in the cloud game, or character differentiation information in the cloud game, or motion or posture information of the virtual character in the cloud game.

[0097] The server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The target terminal can be a smart TV, smartphone, tablet, laptop, desktop computer, smart speaker, wearable device, in-vehicle device, etc., but is not limited to these. Portable digital devices can be operation controllers such as game controllers, steering wheels, light guns, etc., and the choice of operation controller varies depending on the target application. For example, see [link to relevant documentation]. Figure 2 In this embodiment, the game controller 300 includes a control component 311, an indicator component 312, a vibration feedback component (not shown), and an audio component (not shown).

[0098] For example, the control unit 311 is used to acquire operation information of the target object, and may include any one or more of a touchpad, buttons, or joysticks. The buttons are standard physical buttons recognizable by Windows and Android operating systems, and the joysticks are high-precision standard joysticks. It is understood that the number of buttons and joysticks can be set according to actual needs. For example, the game controller 300 has 20 physical buttons and two joysticks to realize operations such as moving, turning, switching perspectives, and fixed taps on virtual objects. The touchpad is used to collect mouse operation information on the game controller and transmit this information to the control unit 311. The touchpad has the function of collecting touch signals, which can be input as control signals to the control unit 311 for processing. At this time, the touchpad can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, the touchpad can be a touch panel located in front of the game controller 300.

[0099] For example, the indicating component 312 may include an indicator light and a color control component. The indicator light includes multiple light-emitting chips, and the color control component includes a control circuit. By adjusting the electrical parameters of the control circuit, the light emission of different chips is controlled, thereby obtaining the target color light according to the color mixing principle. For example, the indicator light includes light-emitting chips of three colors: R (red), G (green), and B (blue). The control circuit can control the light emission of the three chips respectively, and other colors of light can be obtained through the color mixing principle.

[0100] For example, the vibration feedback component includes several motors and a pulse width modulation (PWM) controller, which provides different vibration control signals to the motors. The motors drive the starter rotor to rotate via coils, causing gears meshing with the rotor to rotate the flywheel of the engine, producing the vibration effect. It should be noted that the number and type of motors can be set according to actual needs. For example, the vibration feedback component can use two asymmetrical motors, controlling the vibration parameters of the two asymmetrical motors to achieve various different vibration sensations; or the vibration feedback component can use one motor, achieving various different vibration sensations through different vibration frequencies and intensities.

[0101] The audio component may include a microphone and a speaker. The microphone is used to collect sound waves from a target object or environment and convert them into electrical signals, which are then input to the control component 311 for processing to achieve voice communication. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert the electrical signals into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio component may also include a headphone jack.

[0102] It should be noted that the number of target terminals connected to a cloud server and the number of portable digital devices connected to a target terminal both vary depending on the actual application scenario. For example, if a cloud game is running on a cloud server, after the game starts, multiple target terminals load the game, and each target terminal connects to multiple portable digital devices. If the cloud game is interesting, the number of players joining the game will increase, and both the number of portable digital devices and target terminals may increase; if the cloud game is not attractive enough, fewer players will participate, and the number of portable digital devices and target terminals may decrease.

[0103] Reference Figure 3 , Figure 3 This is a flowchart illustrating a data communication method provided in an embodiment of the present invention. The data communication method can be... Figure 1 The cloud server 100 shown executes the data communication method, which includes, but is not limited to, the following steps S100-S300:

[0104] S100: Receive a connection notification sent by the target terminal. The connection notification indicates that the target terminal is connected to a portable digital device. The connection notification contains the device identification information of the portable digital device.

[0105] The device identification information can be generated based on device parameter information that distinguishes the portable digital device, such as its device ID. Device parameter information includes the portable digital device's device ID, design parameters, or functional parameters, such as the portable digital device having indicator and vibration function components. The connection notification is determined based on the device identification information of the portable digital device connected to the target terminal and the operation information received by the portable digital device. For example, when a portable digital device connects to a target terminal, the target terminal first identifies the portable digital device's port connection information, connection time information, device ID, and device parameter information. Then, it generates device identification information based on some or all of the identified device ID and other identification information. Next, it generates a connection notification based on the device identification information and the operation information received by the portable digital device, and then sends the connection notification to the cloud server.

[0106] S200. Based on the connection notification, obtain the virtual role information corresponding to each device identification information from the target application, and establish a role mapping table between device identification information and virtual role information.

[0107] In this context, "program" refers to a description of instructions, data, and their organizational form; "target application" can refer to any application software capable of data interaction or data transfer with a target object; for example, social software, e-commerce software, and game software that can be downloaded, installed, and run on any mobile terminal; it is understood that the target application referred to in the embodiments should be client software oriented towards the target object; furthermore, the target application in the embodiments can refer to the program process mounted on the aforementioned target application, used to implement corresponding functions or perform corresponding actions. Specifically, in the embodiments of virtual character control, the target application is used to describe instructions, data, and their organizational form for implementing multiple virtual characters and the interactive behaviors between different virtual characters, such as the target application being used to implement interactive activities of multiple aircraft combat in an airplane combat game. Virtual character information refers to character-related information set in the target application. The character mapping table in the embodiments is used to record the correspondence between device identification information and virtual character information. It should be noted that the device identification information and virtual character information can be in a one-to-one correspondence, but in some specific embodiment scenarios, such as scenarios where multiple virtual characters need to be controlled through a portable digital device, the device identification information can be associated with multiple virtual character information.

[0108] Specifically, in this embodiment, after the portable digital device is connected to the target terminal, the target terminal can also obtain the target object's operation information on the portable digital device and send the operation information to the cloud server. This operation information may include information on selecting a virtual character, such as the target terminal obtaining the virtual character selected by the target object through the portable digital device and sending the virtual character to the cloud server. Additionally, the connection notification may also include the device identification information of the portable digital device and the virtual character, such as the connection notification including the device ID of the portable digital device and the character ID in a flight simulator game. After receiving the connection notification, the cloud server, based on the device identification information of each portable digital device and the virtual character selected by the target object in the connection notification, obtains the virtual character information corresponding to each device identification information from the target application and establishes a character mapping table based on the device identification information and the virtual character information. The virtual character information includes the virtual character's name, description, or ID information. It should be noted that the data structure of the character mapping table can be a hash table or a tree diagram, or it can be recorded in a file such as a table or text file. For example, in a scenario where the character mapping relationship is recorded in a text file to form a character mapping table, the character mapping table records two mapping relationships in the airplane combat game, including: fighter jet 1 is associated with game controller 1; fighter jet 2 is associated with game controller 2.

[0109] S300: Receive role differentiation information generated by the target application and send the role differentiation information to the target terminal; so that the target terminal sends different control commands to each portable digital device according to the role differentiation information, so that each portable digital device displays different representation content after executing different control commands; the representation content of each portable digital device corresponds one-to-one with the virtual role controlled by the portable digital device.

[0110] In this embodiment, the character differentiation information is generated by the target application based on the virtual character information. This character differentiation information can refer to the distinguishing information used in the target application to differentiate between virtual characters. This information can include any one or more combinations of different light colors, different vibration information, or different audio information. Vibration information includes vibration frequency information and / or vibration intensity information, and audio information includes voice content information and / or volume information. The categories and specific content of the character differentiation information are determined based on factors such as the needs of the virtual characters and the design parameters of the portable digital device.

[0111] Specifically, in this embodiment, the target application, during operation, uses role-differentiation information to provide reminders and prompts to the target object at different stages according to the application scenario, thereby improving the interactive experience of the target object during this process. The application receives virtual character information corresponding to various device identifiers sent by the target application and constructs a role mapping table. Simultaneously, it receives role-differentiation information of the virtual characters sent by the target application and sends this information to the corresponding target terminal. After receiving the role-differentiation information, the target terminal generates different control commands based on the role-differentiation information and sends these commands to the corresponding portable digital device for execution. Taking a game scenario as an example, when a player connects to the game through an external device, such as a game controller, and controls a target character; when a new external device joins the game as a game character, the game application first obtains the device serial number of the external device as the device ID and associates it with the newly created game character ID, recording this in the aforementioned role mapping table. While associating the device ID and the game character ID, the game application can also use appropriate role-differentiation information to allow the player to clearly and intuitively understand the game character controlled by the current game device. For example, a game application might use a breathing light to indicate which character is being distinguished. The application controls a newly connected game controller, causing its LED light module to flash yellow intermittently. Simultaneously, in the game application's client interface, the outline of the newly created (virtual) game character also flashes yellow intermittently, with the blinking frequency of the same group of breathing lights remaining consistent. Players can distinguish their controlled game characters by observing these lights.

[0112] Optionally, the target application needs to be preprocessed before it runs. The preprocessing process includes, but is not limited to, the following steps S010 to S020:

[0113] S010. Deploy the program process of the target application and deploy the software development kit in the program process.

[0114] As mentioned earlier, a process is the entity that executes programs or computer instructions, and the program process of a target application is the entity that executes the program or computer instructions of the target application. Specifically, the cloud server deploys the program process of the target application by downloading and installing the installation files of the target application, and then deploys a software development kit (SDK) within the program process. In this embodiment, the software development kit (SDK) can refer to a collection of related documents, examples, and tools that assist in the development of a certain type of software. By deploying the software development kit (SDK) in this embodiment, more complex logical functions can be achieved. While maintaining the running performance of the deployed target application, the functionality of the target application can be further enriched, and the later maintenance costs of the program can be reduced.

[0115] S020. In response to the startup message of the target application, the software development kit is initialized and configured, and the callback function is registered. The callback function is used to call the target function in the target application to obtain the execution result of the target function.

[0116] In this context, a startup message refers to an operation command or program used to launch the target application, such as a game start command input by the target object through a portable digital device. This game start command is transmitted to the target application via the target terminal as startup information. Initialization in computer programs refers to assigning initial values ​​to data objects or variables within the program, such as assigning default values ​​to variables, setting controls to their default states, and configuring the communication environment. In this embodiment, the software development kit (SDK) is initialized and configured, specifically including setting the program process of the target application and the calling interfaces and interface transmission protocols between the SSDs. A callback function is a function passed as a parameter, such as calling a function through a function pointer. Before using a callback function, the called function needs to be registered, such as by defining a function that implements a certain functionality to register the callback function. The objective function refers to a set of encapsulated code with parameter inputs and result outputs. For example, in the process of a game program, in order to ensure the performance of the game program and at the same time provide players with richer game content, the game program in this embodiment calls the cloud gaming SDK to render the game scene that changes during the operation of the game program. It obtains real-time control command data with small data volume and low computational difficulty through necessary interface calls and unified protocol processing in the game program, and inputs such data into the cloud gaming SDK. The rendering tools in the SDK combine the player's real-time control command data to integrate and render the game screen, and return the relevant data of the real-time game screen to the game program. Finally, the game program outputs a complete real-time game screen.

[0117] See Figure 4 The cloud server includes program processes and target logic processes. The software development kit is deployed in the program process, and the program process and the target logic process can communicate through cross-process mechanisms.

[0118] Optionally, step S200 includes, but is not limited to, steps S210-S230, specifically:

[0119] S210. In response to the received connection notification, the target logic process parses the connection notification to obtain the device identification information of the portable digital device connected to the target terminal, and sends the device identification information to the software development kit.

[0120] In this embodiment, the target logic process is hosted on a cloud server. This process handles logical business logic, implementing functions such as hardware resource allocation, encoding, and data transmission. For example, the target logic process handles the logical business logic of the target application and communicates with the target terminal. The target logic process can be a sandboxed process. Sandboxing reduces the potential harm caused by malicious code by restricting access to most system resources; sandboxed processes can only freely use CPU cycles and memory. To perform operations requiring additional privileges, processes within the sandbox delegate tasks to processes with higher privileges through dedicated communication channels.

[0121] like Figure 5 As shown, after receiving the connection notification, the cloud server parses the connection notification through the target logic process to obtain the parsed information of the connection notification. The parsed information includes the device identification information of the portable digital device connected to the target terminal. Then, the device identification information is filtered out from the parsed information and sent to the software development kit running on the program process through the program process.

[0122] Specifically, the target logic process and the program process communicate through inter-process communication mechanisms. Each process has its own target object space within the cloud server, while the kernel space is shared by both processes. Communication between the target logic process and the program process is achieved through the kernel space. Inter-process communication methods between the target logic process and the program process include pipes, message queues, shared memory, semaphores, signals, and sockets.

[0123] S220. In response to the received device identification information, a call message notification is generated, and the target function in the target application is called through the callback function registered in the software development kit to obtain the virtual role information generated after the target function is executed.

[0124] Taking a game scenario as an example, specifically in the implementation example, such as Figure 5As shown, when the target application receives the access of a portable digital device, it triggers the device identification information. Based on this device identification information, it is necessary to associate the device with a game character in order to achieve precise control after the device is associated with the game character. To this end, the embodiment will generate a message notification based on device identification information for loading or creating the corresponding virtual (game player) character. After the target application detects this message notification during operation, it will obtain the necessary input data such as the game player, game character, and player operation from the game program through the callback function in the integrated software development kit (SDK), such as the cloud gaming SDK. This input data can be obtained by the cloud gaming SDK calling the corresponding function in the basic function of the game program for calculation and processing, and by performing data-level calculations and analysis based on the device identification information and the corresponding operation data obtained by the corresponding device. After the cloud gaming SDK obtains the necessary game data by calling the relevant function in the game program, the corresponding virtual character is generated in the cloud gaming backend or server, and the game content and game screen are rendered by combining the aforementioned calculated player operation data. The data content obtained by performing data-level calculations and analysis based on the device identification information and the corresponding operation data obtained by the corresponding device can also be stored locally on the running game program, realizing local storage of the virtual character controlled by the player, which will also facilitate the secure storage of player data, fast response, and simple preview of character information.

[0125] S230. Based on the obtained virtual role information, establish a role mapping table between virtual role information and device identification information.

[0126] In this embodiment, the software development tool obtains virtual role information and establishes a role mapping table between the virtual role information and device identification information in memory. The virtual role information can be a role ID, and the device identification information can be a portable digital device ID. It should be noted that if the cloud server connects to multiple target terminals, the role mapping table can also include target terminal information. It should also be noted that the role mapping table is updated according to the actual application. For example, as shown in Table 1, the target application generates four virtual role information sets: role 1 is mapped one-to-one with portable digital device 1 connected to target terminal 1; role 2 is mapped one-to-one with portable digital device 2 connected to target terminal 1; and role 3 is mapped one-to-one with portable digital device 3 connected to target terminal 2.

[0127] Table 1

[0128] Character 1 Target terminal 1 Portable digital device 1 Character 2 Target terminal 1 Portable digital device 2 Character 3 Target terminal 2 Portable digital device 3

[0129] Optionally, step S300 involves receiving role differentiation information generated by the target application and sending the role differentiation information to the target terminal, including but not limited to steps S310-S340:

[0130] S310. Based on the virtual role information, generate role differentiation information through the program process of the target application, and send the role differentiation information to the software development kit.

[0131] Specifically, during the execution of the target application, different role differentiation information is generated according to the needs of the virtual character. For example... Figure 6 As shown, the target application's process generates role differentiation information based on the virtual role information, and then sends the role differentiation information to the software development kit (SDK). The role differentiation information can be one or more of color differentiation information, vibration information, or audio information. For example, as described in Table 2, the target application's process generates role differentiation information as red for role 1, yellow for role 2, and green for role 3.

[0132] Table 2

[0133] Character 1 red Character 2 yellow Character 3 green

[0134] S320. Based on the received role differentiation information, the software development kit traverses and queries the role mapping table to obtain the device identification information corresponding to the role differentiation information.

[0135] In this embodiment, after receiving the role differentiation information, the software development kit (SDK) iterates through the established role mapping table to query the device identification information and target terminal information corresponding to the role differentiation information. For example, when the SSD receives the role differentiation information that role 1 is red (as shown in Table 2), it iterates through the role mapping table (Table 1) to find that the device identification information corresponding to the role differentiation information that role 1 is red is portable digital device 1.

[0136] S330: Generate target parameters based on device identification information and role differentiation information, and send the target parameters to the target logic process.

[0137] Specifically, such as Figure 6 As shown, the software development kit (SDK) generates target parameters based on device identification information, role differentiation information, and other necessary parameter information, and then sends the target parameters to the target logic process. When the cloud server connects to multiple target terminals, the target parameters also include target terminal information. For example, based on the role mapping table in Table 1 and the role differentiation information in Table 2, the target parameters obtained include the correspondence in Table 3.

[0138] Table 3

[0139] Character 1 red Target terminal 1 Portable digital device 1 Character 2 yellow Target terminal 1 Portable digital device 2 Character 3 green Target terminal 2 Portable digital device 3

[0140] S340. Send the target parameters to the target terminal through the target logic process; wherein, the target parameters include role differentiation information and device identification information.

[0141] After receiving the target parameters, the target logic process determines the corresponding target terminal based on the target terminal information in the target parameters when the cloud server is connected to multiple target terminals, and then sends the target parameters to the corresponding target terminal. When the cloud server is connected to only one target terminal, the target parameters may not contain target terminal information, or the target logic process may directly send the target parameters to the connected target terminal. For example, as shown in Table 3, the target functions corresponding to role 1 and role 2 are sent to target terminal 1, and the target function corresponding to role 3 is sent to target terminal 2.

[0142] The character differentiation information is determined based on the representation content that different virtual characters need to feed back to each portable digital device in different application scenarios of the target application. The character differentiation information includes one or more of the following: character rendering data, vibration data, or audio data, without limitation.

[0143] Optionally, in step S310, role differentiation information is generated based on the virtual role information through the program process of the target application, including at least one of steps S311-S313. The execution order of S311-S313 is arbitrary. Specifically:

[0144] S311. Based on the virtual character information, generate character rendering data through the program process of the target application; wherein, the character rendering data corresponding to different device identification information is different.

[0145] Character rendering data represents the effects of a virtual character, including its background color, shadows, highlights, rimlight, self-illumination, and outline. The target application's process generates different character rendering data based on the application scenario of the virtual character information. Different portable digital devices control different virtual character information; therefore, the character rendering data corresponding to the device identification information of the digital device differs. For example, game A supports multi-character battles. After the game starts, when the target user selects character 1 via a portable digital device, game A's process generates character rendering data with a red background for character 1; when the target user selects character 2 via a portable digital device, game A's process generates character rendering data with a green background for character 2.

[0146] S312, or, based on the virtual character information, generate device vibration data through the program process of the target application; wherein, the device vibration data corresponding to different device identification information is different.

[0147] Similar to step S311, the target application's program process generates different device vibration data based on the application scenario of the virtual character information. Different portable digital devices control different virtual character information; therefore, the vibration data corresponding to the device identification information of the portable digital devices are different. For example, game A supports multi-character battles. When the target object successfully selects character 1 through a portable digital device, the program process of game A generates the first vibration data for character 1; when the target object selects character 2 through a portable digital device, the program process of game A generates the second vibration data for character 2.

[0148] S313, or, based on the virtual character information, generate character audio data through the program process of the target application; wherein, the character audio data corresponding to different device identification information is different.

[0149] Similar to step S312, the program process of the target application generates different character audio data based on the application scenario of the virtual character information. Different portable digital devices control different virtual character information; therefore, the character audio corresponding to the device identification information of the portable digital device is different. For example, game A supports multi-character battles. After the game ends, if character 1 wins the match in game A, the program process of game A generates the first audio data for character 1; if character 2 loses in game A, the program process of game A generates the second audio data for character 2. The first audio data is audio data indicating victory, such as cheers, applause, or the voice "Congratulations," etc., which is not limited here; the second audio data is audio data indicating defeat, such as a sound of frustration or the voice "Keep going, try again."

[0150] It should be noted that character differentiation information can be data of the same type, such as all character differentiation information being character rendering data, vibration data, or character audio data; or it can be data of different types, such as character 1 being character rendering data, character 2 being vibration data, and character 3 being character audio data. For example, if game B is a racing game, during the game, character 1 reaches the finish line while character 2 is still on the track. The game B program process generates character differentiation information for character 1 with a yellow background, and generates character 2's engine noise as character differentiation information.

[0151] Optionally, in step S330, target parameters are generated based on device identification information and role differentiation information, including at least one of steps S331-S333. The execution order of S331-S333 is arbitrary. Specifically:

[0152] S331. When the character differentiation information is character rendering data, a first parameter is generated based on the device identification information and the character rendering data. The first parameter includes a light-up command, device identification information, and character rendering data. After the light-up command is executed by the portable digital device, the portable digital device emits a light-up representation of the corresponding color.

[0153] In this embodiment, when the role differentiation information is role rendering data, the role rendering data includes the background color of the virtual character. After receiving the role differentiation information sent by the program process of the target application, the software development kit finds the corresponding device identification information of the portable digital device in the role mapping table according to the virtual character information in the role differentiation information, and determines the indicator light color of the portable digital device according to the background color in the role rendering data. It then generates a lighting command based on the indicator light color, lighting start time, and lighting duration. Finally, it generates a first parameter based on the lighting command, device identification information, and role rendering data.

[0154] The lighting command includes control instructions for the indicator light and the light color. The control instructions include on / off instructions, and the type of light color is determined based on the actual application and is not specifically limited here. For example, when the number of virtual characters in the target application is small, the light color can be set to a highly distinguishable color, such as red, yellow, or green; when the number of virtual characters in the target application is large, the variety of light colors increases accordingly, and the light colors can include peach pink, light red, dark green, or light green, etc.

[0155] S332. When the role differentiation information is device vibration data, a second parameter is generated based on the device identification information and the device vibration data. The second parameter includes vibration command, vibration parameters, device identification information and role rendering data. The vibration command is executed by the portable digital device, causing the portable digital device to emit vibration representation content.

[0156] Similarly, when the role differentiation information is device vibration data, the device vibration data includes the vibration information of the virtual character. After the software development kit receives the role differentiation information sent by the program process of the target application, it finds the corresponding portable digital device's device identification information in the role mapping table based on the virtual character information in the role differentiation information, and determines the vibration parameters and vibration commands of the portable digital device based on the vibration information in the character rendering data; then, it generates the second parameter based on the vibration parameters, vibration commands, device identification information and character rendering data.

[0157] Vibration commands include vibration on / off commands, and vibration parameters include vibration amplitude, vibration frequency, and vibration duration. It should be noted that vibration parameters are determined based on the specific application scenario of the target application and are not limited here. For example, during game C, when character 1 enters an earthquake scene, the vibration amplitude and frequency at the earthquake source are the highest. The closer character 1 is to the earthquake source, the greater the vibration amplitude, the higher the vibration frequency, and the longer the duration; the farther character 1 is from the earthquake source, the smaller the vibration amplitude, the lower the vibration frequency, and the shorter the duration. In this case, character 1's vibration parameters (vibration amplitude, vibration frequency, or vibration duration) are jointly determined by the earthquake source parameters and the distance from character 1 to the earthquake source. As another example, in game D, a racing game, character 2 may crash into a guardrail during a race. The greater the speed at which the character crashes into the guardrail, the greater the vibration amplitude. In this case, character 2's vibration parameters are determined based on the racing speed.

[0158] S333. When the role differentiation information is role audio data, a third parameter is generated based on the device identification information and the role audio data. The third parameter includes an audio playback command, audio encoding data, and device identification information. The audio playback command, after being executed by the portable digital device, causes the portable digital device to play the corresponding audio representation content.

[0159] Similarly, when the role differentiation information is role audio data, after the software development kit receives the role differentiation information sent by the program process of the target application, it finds the corresponding portable digital device device identification information in the role mapping table based on the virtual role information in the role differentiation information, and generates audio playback instructions and audio encoding data based on the role audio data; then, it generates a third parameter based on the audio playback instructions, audio encoding data and device identification information.

[0160] The audio playback commands include play-on and play-stop commands. Audio encoded data includes high-fidelity uncompressed audio data, such as PCM (Pulse Code Modulation) format audio data. PCM format audio data is uncompressed raw audio sample data stream, which is standard digital audio data converted from analog signals through sampling, quantization, and encoding. Audio encoded data can also include compressed audio data, such as AAC (Advanced Audio Coding) format audio data. AAC is a high-compression audio compression algorithm; compression can reduce the size of the audio encoded data and increase transmission speed. The specific format of the audio encoded data is determined based on the actual application scenario and is not limited here. For example, if Game E is a poetry recitation competition, and the tone of voice can convey different emotional nuances, the audio data quality requirements are high; therefore, Game E's audio encoded data can use PCM format audio data. For example, if game F is a dance competition, the focus is on the virtual character's movements and postures, and the quality requirements for the audio data are not high. Therefore, the audio encoding data for game F can use AAC format audio data.

[0161] Optionally, when the role differentiation information is role audio data, step S340 sends the target parameters to the target terminal through the target logic process, including but not limited to steps S341-S342:

[0162] S341. The target logic process encodes the character audio data in the target parameters to obtain the audio encoded data.

[0163] S342. Pack the audio encoding data, audio playback instructions and device identification information and send them to the target terminal.

[0164] When the character differentiation information is character audio data, the software development kit (SDK) generates target parameters based on the character audio data and sends these parameters to the target logic process. The target logic process can then perform appropriate encoding processing on the audio data in the target parameters according to the actual application scenario requirements. Finally, it packages the audio playback instructions, device identification information, and the processed encoded audio data and sends it to the target terminal. Encoding processing includes compression or compression-to-decompression processing. For example, in game F, which is a dance competition, if the character audio data in the target parameters sent by the SSD is high-fidelity uncompressed audio data, the target logic process compresses the received high-fidelity uncompressed audio data and sends the compressed audio data to the corresponding target terminal. Similarly, in game E, which is a poetry writing and recitation competition, if the character audio data in the target parameters sent by the SSD is lossy compressed audio data, the target logic process restores the received lossy compressed audio data to obtain more realistic audio data and sends the restored audio data to the target terminal. It should be noted that if the audio encoded data received by the target logic process matches the requirements of the actual application scenario, the target logic process does not need to perform encoding processing on the received audio encoded data.

[0165] See Figure 7 , Figure 7 This is a schematic diagram of the structure of a data communication device provided in an embodiment of the present invention. The data communication device 700 may be... Figure 1 The cloud server 100 shown specifically includes:

[0166] The first module 701 is used to receive a connection notification sent by the target terminal. The connection notification is used to indicate that the target terminal is connected to a portable digital device. The connection notification contains the device identification information of the portable digital device.

[0167] The second module 702 is used to obtain the virtual role information corresponding to each device identification information from the target application according to the connection notification, and to establish a role mapping table between device identification information and virtual role information;

[0168] The third module 703 is used to receive role differentiation information generated by the target application and send the role differentiation information to the target terminal; so that the target terminal sends different control commands to each portable digital device according to the role differentiation information, so that each portable digital device displays different representation content after executing different control commands; the representation content of each portable digital device corresponds one-to-one with the virtual character controlled by the portable digital device.

[0169] The role differentiation information is generated by the target application based on the virtual role information.

[0170] It should be noted that since the data communication device 700 of this embodiment can implement the data communication method with the server as the execution subject in the previous embodiment, the data communication device 700 of this embodiment and the data communication method with the server as the execution subject in the previous embodiment have the same technical principle and the same beneficial effect. In order to avoid repetition, it will not be described again here.

[0171] Reference Figure 8 , Figure 8 This is a flowchart illustrating another data communication method provided in an embodiment of the present invention. This data communication method can be... Figure 1 The target terminal 201 or 202 shown executes the data communication method, which includes, but is not limited to, the following steps S410-S450:

[0172] S410, Display the initial screen content.

[0173] The initial screen content can be the content after the target terminal starts up or the screen content transmitted by the target application. When the target terminal is not connected to the target application, the initial screen content is the content after the target terminal starts up; when the target terminal is connected to the target application, the initial screen content is the screen content transmitted by the target application.

[0174] S420, in response to connection signals from multiple portable digital devices, generates device identification information for each portable digital device.

[0175] Connection signals can be generated via wired or wireless connections. For example, when a portable digital device connects to a target terminal via USB, the device generates a connection signal through the USB interface; when it connects via Bluetooth, it transmits a connection signal via Bluetooth. Upon receiving the connection signal, the target terminal can number the portable digital devices according to the order in which they were connected, using these numbers as device identification information. Additionally, a unique identifier can be determined based on the portable digital device's factory settings, and this unique identifier is associated with the aforementioned numbering. Even after the portable digital device disconnects from and reconnects to the target terminal, the device identification information remains consistent. The target terminal may include multiple connection ports. Port connection information indicates that the portable digital device is connected to a specific port on the target terminal. This port connection information can be a port number on the target terminal, which can be added to the established identifier-number mapping.

[0176] S430. Based on the device identification information, send a connection notification to the cloud server so that the cloud server can obtain the virtual role information corresponding to each device identification information from the target application according to the connection notification, and establish a role mapping table between device identification information and virtual role information.

[0177] The target terminal first generates a connection notification based on the device identification information and the virtual role input by the target object, and then sends the connection notification to the cloud server. After receiving the connection notification, the cloud server obtains the virtual role information corresponding to each device identification information from the target application based on the parsed content of the connection notification, and establishes a role mapping table between device identification information and virtual role information.

[0178] S440, Receive role differentiation information sent by the cloud server; wherein, the role differentiation information is generated by the target application based on the virtual role information.

[0179] The character differentiation information is generated by the target application running on the cloud server based on the virtual character information. Different virtual characters have different character differentiation information, and the same virtual character may also have different character differentiation information in different application scenarios. Character differentiation information includes one or more of the following: character rendering data, device vibration data, or character audio data.

[0180] S450: Based on the role differentiation information, display the target screen content and send different control commands to each portable digital device so that each portable digital device can display different representation content after executing different control commands; the representation content of each portable digital device corresponds one-to-one with the virtual character controlled by the portable digital device.

[0181] The target screen content is generated based on the role differentiation information and may include virtual character information and corresponding icons. Control commands are also generated based on the role differentiation information and may include activation information, the device identification information of the portable digital device corresponding to the virtual character, and the role differentiation information. Activation information includes activation time and duration; it's understood that different portable digital devices will have different control commands. The representation content is the physical phenomenon exhibited by the portable digital device, such as a red light, up-and-down vibration, or voice playback. After receiving the role differentiation information, the target terminal generates and displays the target screen content based on the role differentiation information; simultaneously, it generates control commands based on the role differentiation information and sends them to the corresponding portable digital device so that the corresponding portable digital device displays the representation content included in the role differentiation information of the control commands. It's understood that when there are multiple virtual characters, the role differentiation information of multiple virtual characters will be displayed simultaneously.

[0182] In this embodiment, the target terminal responds to connection signals from multiple portable digital devices, generates device identification information for each portable digital device, and sends a connection notification to the cloud server based on the device identification information. This allows the cloud server to retrieve the virtual character information corresponding to each device identification information from the target application and establish a role mapping table between the device identification information and the virtual character information. Then, the terminal receives role differentiation information from the cloud server, displays the target screen content based on the role differentiation information, and sends different control commands to each portable digital device so that each portable digital device displays different representational content after executing the different control commands. The target terminal in this embodiment displays the target screen content after receiving role differentiation information, which more intuitively demonstrates the distinguishability of virtual characters on the screen.

[0183] See Figure 9 , Figure 9 This is another data communication device 900 provided in an embodiment of the present invention. The data communication device 900 includes:

[0184] The fourth module, 904, is used to display the initial screen content;

[0185] The fifth module 905 is used to generate device identification information for each portable digital device in response to connection signals from multiple portable digital devices.

[0186] The sixth module 906 is used to send a connection notification to the cloud server based on the device identification information, so that the cloud server can obtain the virtual role information corresponding to each device identification information from the target application based on the connection notification, and establish a role mapping table between device identification information and virtual role information.

[0187] Module 7, 907, is used to receive role differentiation information sent by the cloud server;

[0188] The eighth module 908 is used to display the target screen content based on the character differentiation information and send different control commands to each portable digital device so that each portable digital device can display different representation content after executing different control commands; the representation content of each portable digital device corresponds one-to-one with the virtual character controlled by the portable digital device.

[0189] The role differentiation information is generated by the target application based on the virtual role information.

[0190] It should be noted that since the data communication device 900 of this embodiment can realize the data communication method with the target terminal as the execution subject as in the previous embodiment, the data communication device 900 of this embodiment and the data communication method with the target terminal as the execution subject in the previous embodiment have the same technical principle and the same beneficial effect. In order to avoid repetition, it will not be described again here.

[0191] Reference Figure 10 , Figure 10 This is a flowchart illustrating another data communication method provided in an embodiment of the present invention. This data communication method can be... Figure 1 The data communication method is executed by any one or more of the portable digital devices 301 to 305 shown, including but not limited to the following steps S510-S530:

[0192] S510, in response to the connection signal generated by the connection operation, sends the connection signal to the target terminal; so that the target terminal generates device identification information of each portable digital device according to the connection signal, and then sends a connection notification to the cloud server.

[0193] Connection operations can be performed via button operation or touchscreen operation. After receiving the connection signal generated by button operation or touchscreen operation, the portable digital device sends the connection signal to the target terminal. The target terminal then generates device identification information for each portable digital device based on the connection signal and sends a connection notification to the cloud server.

[0194] S520: Receive control commands sent by the target terminal; wherein the control commands are generated by the target terminal based on the role differentiation information received from the cloud server.

[0195] The control commands are generated by the target terminal based on the role differentiation information received from the cloud server, including startup information, device identification information of the portable digital device, and role differentiation information. The startup information includes the startup time and duration. Each portable digital device receives the corresponding control commands sent by the target terminal.

[0196] S530: Execute control commands and display the corresponding representation content.

[0197] Upon receiving a control command, the system parses the command to obtain character differentiation information and controls the corresponding component to display the representation content based on this information. The character differentiation information includes one or more of the following: character rendering data, device vibration data, or character audio data. For example, if the background color in the character rendering data is red, the indicator component 312 is controlled to light up red. If the vibration amplitude in the device vibration data is M centimeters and the vibration frequency is LHz, the vibration feedback component's motor vibration is controlled by adjusting the pulse size and pulse period of the pulse width modulation controller. If the character differentiation information includes the character audio data "Congratulations," the speaker of the audio component is controlled to play the sound wave of the audio file "Congratulations."

[0198] In this embodiment, the portable digital device responds to the connection signal generated by the connection operation and sends the connection signal to the target terminal. The target terminal then generates device identification information for each portable digital device based on the connection signal and sends a connection notification to the cloud server. Next, it receives control commands from the target terminal, whereby the control commands are generated by the target terminal based on role differentiation information received from the cloud server. Finally, it executes the control commands and displays the corresponding representation content. In this embodiment, after receiving the control commands from the target terminal, the portable digital device executes the commands and displays the corresponding representation content, further enabling efficient and accurate determination of the virtual role currently controlled by the portable digital device through the representation content on the portable digital device.

[0199] See Figure 11 , Figure 11 This invention provides another data communication device 1100, which includes:

[0200] Module 9 1109 is used to send a connection signal to the target terminal in response to the connection signal generated by the connection operation; so that the target terminal generates device identification information of each portable digital device according to the connection signal and then sends a connection notification to the cloud server.

[0201] Module 1110 is used to receive control commands sent by the target terminal;

[0202] Module 1111 is used to execute control commands and display the corresponding representation content;

[0203] The control commands are generated by the target terminal based on the role differentiation information received from the cloud server.

[0204] It should be noted that since the data communication device 1100 of this embodiment can implement the data communication method with a portable digital device as the execution subject as in the previous embodiment, the data communication device 1100 of this embodiment has the same technical principle and the same beneficial effect as the data communication method with a portable digital device as the execution subject in the previous embodiment. To avoid repetition, it will not be described again here.

[0205] See Figure 12 , Figure 13 and Figure 14 , Figure 12 This is a schematic diagram of an implementation environment provided by an embodiment of the present invention. Figure 13 This is a signal flow diagram provided in an embodiment of the present invention. Figure 14This is another signal flow diagram provided by an embodiment of the present invention. The data communication method provided by this embodiment is described below using a specific implementation scenario. In this scenario, the target terminal 201 is a television, and the portable digital devices 301 to 303 are all game controllers. The cloud server 100 is connected to the television 201 via a network, and the television 201 is connected to the game controllers 301 to 303 via USB. The cloud server 100 and the television 201 communicate using the TCP network protocol, and the television 201 and the game controllers 301 to 303 communicate using the HID protocol. The target application deployed on the cloud server 100 is an outdoor treasure hunt game. The target application includes a program process and a target logic process. The program process and the target logic process communicate through an inter-process communication mechanism. The target logic process is connected to the television 201 via a network, and the target logic process is a sandbox process. A software development kit (SDK) is deployed in the program process. The SSD has completed initialization configuration and callback function registration. The SSD uses a cloud gaming SDK. The specific data communication process includes steps S601 to S609:

[0206] The S601 and TV 201 display the start screen of an outdoor treasure hunt game as the initial screen content.

[0207] S602 and game controllers 301 to 303 respectively obtain connection signals through buttons and send the connection signals to TV 201.

[0208] S603 and TV 201 receive connection signals sent by game controllers 301 to 303. According to the order in which the connection signals are received, the device identification information of game controller 301 is set to No. 1, the device identification information of game controller 302 is set to No. 2, and the device identification information of game controller 303 is set to No. 3.

[0209] S604 and TV 201 will generate a connection notification based on the connection signal and device identification information, and send the connection notification to the sandbox process of cloud server 100. The connection notification includes device identification information: 1, 2, and 3.

[0210] After receiving the connection notification, the sandbox process of S605 and cloud server 100 parses the notification to obtain the device identification information of the game controller connected to TV 201: No. 1, No. 2, and No. 3. This device identification information is then sent to the cloud gaming SDK. Upon receiving the device identification information, the cloud gaming SDK generates a call message notification and obtains the virtual character information—Character 1, Character 2, and Character 3—through a function call. It then establishes the following character mapping table: [Character 1, No. 1], [Character 2, No. 2], [Character 3, No. 3].

[0211] In S606 and cloud server 100, the outdoor treasure hunt game program process generates the following character differentiation information based on the virtual character information: [Character 1, Red], [Character 2, Yellow], and [Character 1, Green], and sends the character differentiation information to the cloud gaming SDK. After receiving the character differentiation information, the cloud gaming SDK traverses the stored character mapping table to obtain the device identification information corresponding to the character differentiation information as follows: [Character 1, No. 1, Red], [Character 2, No. 2, Yellow], and [Character 3, No. 3, Green], generates target parameters containing a light-up command, device identification information, and character differentiation information, and sends the target parameters to the sandbox process. After receiving the target parameters, the sandbox process sends the target parameters to TV 201.

[0212] S607, TV 201 receives target parameters sent by the sandbox process in cloud server 100 as role differentiation information.

[0213] S608 and TV 201 display target screen content based on the target parameters in the character differentiation information; the target screen content includes the icon of character 1 with a red background color, the icon of character 2 with a yellow background color, and the icon of character 3 with a green background color. Additionally, TV 201 sends a red light control command to game controller 1 301, a yellow light control command to game controller 2 302, and a green light control command to game controller 303.

[0214] S609, Gamepad 1 301 receives the red light control command, and control indicator light 3011 emits red light; Gamepad 2 302 receives the yellow light control command, and control indicator light 3021 emits yellow light; Gamepad 303 receives the green light control command, and control indicator light 3021 emits green light.

[0215] In this embodiment, the portable digital device responds to the connection signal generated by the connection operation and sends the connection signal to the target terminal. The target terminal then generates device identification information for each portable digital device and sends a connection notification to the cloud server. Based on the connection notification, the cloud server retrieves the virtual role information corresponding to each device identification information from the target application and establishes a role mapping table between the device identification information and the virtual role information. This invention, through the role mapping table established in the cloud server, enables each portable digital device to continuously control the virtual role corresponding to its device identification information whenever it connects to the target terminal, improving practicality. Next, the target application generates role differentiation information, which is then sent to the target terminal. The target terminal displays the target screen content based on the role differentiation information and sends different control commands to each portable digital device, causing each portable digital device to execute different control commands and display different representational content. The representational content of each portable digital device corresponds one-to-one with the virtual role controlled by that portable digital device. In this embodiment, the target terminal, upon receiving the role differentiation information and displaying the target screen content, can more intuitively demonstrate the distinguishability of the virtual role on the screen. In addition, after receiving a control command sent by a target terminal, the portable digital device of the present invention executes the control command and displays the corresponding representation content, thereby efficiently and accurately determining the virtual character currently controlled by the portable digital device through the representation content on the portable digital device.

[0216] Another aspect of the present invention provides an electronic device, including a processor and a memory;

[0217] Memory is used to store programs;

[0218] Processor Execution Program Implementation Figure 3 , Figure 8 and Figure 10 The data communication methods shown are as follows.

[0219] Another aspect of the present invention provides a computer-readable storage medium storing a program, which is executed by a processor to implement as follows: Figure 3 , Figure 8 and Figure 10 The data communication methods shown are as follows.

[0220] Another embodiment of the present invention provides a computer program product, including a computer program, which, when executed by a processor, implements as follows: Figure 3 , Figure 8 and Figure 10 The data communication methods shown are as follows.

[0221] In some alternative embodiments, the functions / operations mentioned in the block diagrams may not occur in the order shown in the operation diagrams. For example, depending on the functions / operations involved, two consecutively shown blocks may actually be executed substantially simultaneously, or the blocks may sometimes be executed in reverse order. Furthermore, the embodiments presented and described in the flowcharts of this invention are provided by way of example to provide a more comprehensive understanding of the technology. The disclosed methods are not limited to the operations and logic flows presented herein. Alternative embodiments are contemplated in which the order of various operations is altered and sub-operations described as part of a larger operation are executed independently.

[0222] Furthermore, although the invention has been described in the context of functional modules, it should be understood that, unless otherwise stated, one or more of the described functions and / or features may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the invention. Rather, given the properties, functions, and internal relationships of the various functional modules in the apparatus disclosed herein, the actual implementation of the module will be understood within the scope of conventional skill of an engineer. Therefore, those skilled in the art can implement the invention as set forth in the claims using ordinary techniques without excessive experimentation. It is also understood that the specific concepts disclosed are merely illustrative and not intended to limit the scope of the invention, which is determined by the full scope of the appended claims and their equivalents.

[0223] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0224] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device.

[0225] More specific examples of computer-readable media (a non-exhaustive list) include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which the program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.

[0226] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0227] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0228] Although embodiments of the invention have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

[0229] The above is a detailed description of the preferred embodiments of the present invention, but the present invention is not limited to the embodiments described. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention, and these equivalent modifications or substitutions are all included within the scope defined by the claims of this application.

Claims

1. A data communication method, characterized in that, Applied to cloud servers, including: The system receives a connection notification sent by a target terminal, which is generated by the target terminal in response to a connection signal from a portable digital device. The connection notification indicates that the target terminal is connected to a portable digital device. The connection notification includes device identification information associated with the hardware identifier of the portable digital device. According to the connection notification, virtual role information corresponding to each device identification information is obtained from the target application, and a role mapping table between the device identification information and the virtual role information is established. The role mapping table is used to restore the mapping relationship between the portable digital device and the corresponding virtual role information when the portable digital device reconnects with the target terminal, so as to enable the same portable digital device to continuously control the same virtual role through the mapping relationship. The system receives role differentiation information generated by the target application and sends the role differentiation information to the target terminal. The target terminal then sends different control commands to each of the portable digital devices based on the role differentiation information, so that each portable digital device displays different representation content after executing the different control commands. The representation content of each portable digital device corresponds one-to-one with the virtual character controlled by the portable digital device. The role differentiation information is dynamically generated by the target application based on the state of the virtual role indicated by the virtual role information.

2. The data communication method according to claim 1, characterized in that, The method further includes: Deploy the program process of the target application, and deploy the software development kit in the program process; In response to the startup message of the target application, the software development kit is initialized and configured, and the callback function is registered. The callback function is used to call the target function in the target application to obtain the execution result of the target function.

3. The data communication method according to claim 2, characterized in that, The step of obtaining virtual role information corresponding to each device identifier from the target application according to the connection notification, and establishing a role mapping table between the device identifier information and the virtual role information, includes: In response to the received connection notification, the connection notification is parsed by the target logic process to obtain the device identification information of the portable digital device connected to the target terminal, and the device identification information is sent to the software development kit; In response to the received device identification information, a call message notification is generated, and the target function in the target application is called through the callback function registered in the software development kit to obtain the virtual character information generated after the target function is executed; Based on the obtained virtual character information, a role mapping table is established between the virtual character information and the device identification information.

4. The data communication method according to claim 3, characterized in that, The step of receiving role differentiation information generated by the target application and sending the role differentiation information to the target terminal includes: Based on the virtual character information, character differentiation information is generated through the program process of the target application, and the character differentiation information is sent to the software development kit; Based on the received role differentiation information, the software development kit traverses and queries the role mapping table to obtain the device identification information corresponding to the role differentiation information; Target parameters are generated based on the device identification information and the role differentiation information, and the target parameters are sent to the target logic process; The target parameters are sent to the target terminal through the target logic process. The target parameters include the role differentiation information and the device identification information.

5. The data communication method according to claim 4, characterized in that, The step of generating character differentiation information through the program process of the target application based on the virtual character information includes at least one of the following: Based on the virtual character information, character rendering data is generated through the program process of the target application; wherein, the character rendering data corresponding to different device identification information is different; Alternatively, based on the virtual character information, device vibration data can be generated through the program process of the target application; wherein, different device identification information corresponds to different device vibration data; Alternatively, based on the virtual character information, character audio data can be generated through the program process of the target application; wherein, the character audio data corresponding to different device identification information is different.

6. The data communication method according to claim 4 or 5, characterized in that, The step of generating target parameters based on the device identification information and the role differentiation information includes at least one of the following: When the character differentiation information is character rendering data, a first parameter is generated based on the device identification information and the character rendering data; the first parameter includes a light-up command, the device identification information, and the character rendering data; after the light-up command is executed by the portable digital device, the portable digital device emits a light-up representation of the corresponding color. When the character differentiation information is device vibration data, a second parameter is generated based on the device identification information and the device vibration data; the second parameter includes a vibration command, vibration parameters, the device identification information, and the character rendering data; wherein, the vibration command is executed by the portable digital device, causing the portable digital device to emit vibration representation content; When the role differentiation information is role audio data, a third parameter is generated based on the device identification information and the role audio data; the third parameter includes an audio playback command, audio encoding data, and the device identification information; wherein, after the audio playback command is executed by the portable digital device, the portable digital device plays the corresponding audio representation content.

7. The data communication method according to claim 6, characterized in that, When the role differentiation information is role audio data, the step of sending the target parameters to the target terminal through the target logic process includes: The target logic process encodes the character audio data in the target parameters to obtain the encoded audio data. The audio encoding data, the audio playback command, and the device identification information are packaged and sent to the target terminal.

8. A data communication method, characterized in that, Applied to target terminals, including: Displays the initial screen content; In response to connection signals from multiple portable digital devices, device identification information associated with the hardware identifiers of each portable digital device is generated; Based on the device identification information, a connection notification is sent to the cloud server, so that the cloud server can obtain the virtual role information corresponding to each device identification information from the target application according to the connection notification, and establish a role mapping table between the device identification information and the virtual role information. The role mapping table is used to restore the mapping relationship between the portable digital device and the corresponding virtual role information when the portable digital device reconnects with the target terminal, so as to enable the same portable digital device to continuously control the same virtual role through the mapping relationship. Receive role differentiation information sent by the cloud server; Based on the character differentiation information, the target screen content is displayed, and different control commands are sent to each of the portable digital devices so that each portable digital device displays different representation content after executing different control commands; the representation content of each portable digital device corresponds one-to-one with the virtual character controlled by the portable digital device. The role differentiation information is dynamically generated by the target application based on the state of the virtual role indicated by the virtual role information.

9. A data communication method, characterized in that, Applications in portable digital devices, including: In response to the connection signal generated by the connection operation, the connection signal is sent to the target terminal; so that the target terminal generates device identification information associated with the hardware identifier of each portable digital device based on the connection signal and then sends a connection notification to the cloud server. The system receives control commands sent by the target terminal. These control commands are generated by the target terminal based on role differentiation information received from the cloud server. The role differentiation information is different for different device identification information. The role differentiation information is dynamically generated by the target application based on the virtual role information corresponding to the device identification information and the status of the indicated virtual role. The control commands are executed, and the corresponding representation content is displayed. The representation content of each portable digital device corresponds one-to-one with the virtual character controlled by each portable digital device.

10. A data communication device, characterized in that, Applied to cloud servers, including: The first module is used to receive a connection notification sent by a target terminal. The connection notification is generated by the target terminal in response to a connection signal from a portable digital device. The connection notification is used to indicate that the target terminal is connected to a portable digital device. The connection notification includes device identification information associated with the hardware identifier of the portable digital device. The second module is used to obtain virtual role information corresponding to each device identification information from the target application according to the connection notification, and establish a role mapping table between the device identification information and the virtual role information. The role mapping table is used to restore the mapping relationship between the portable digital device and the corresponding virtual role information when the portable digital device reconnects with the target terminal, so as to enable the same portable digital device to continuously control the same virtual role through the mapping relationship. The third module is used to receive role differentiation information generated by the target application and send the role differentiation information to the target terminal; so that the target terminal sends different control commands to each of the portable digital devices according to the role differentiation information, so that each of the portable digital devices displays different representation content after executing different control commands; the representation content of each portable digital device corresponds one-to-one with the virtual character controlled by the portable digital device; The role differentiation information is dynamically generated by the target application based on the state of the virtual role indicated by the virtual role information.

11. A data communication device, characterized in that, Applied to target terminals, including: The fourth module is used to display the initial screen content; The fifth module is used to generate device identification information associated with the hardware identifier of each portable digital device in response to connection signals from multiple portable digital devices. The sixth module is used to send a connection notification to the cloud server according to the device identification information, so that the cloud server can obtain the virtual role information corresponding to each device identification information from the target application according to the connection notification, and establish a role mapping table between the device identification information and the virtual role information. The role mapping table is used to restore the mapping relationship between the portable digital device and the corresponding virtual role information when the portable digital device reconnects with the target terminal, so as to enable the same portable digital device to continuously control the same virtual role through the mapping relationship. The seventh module is used to receive role differentiation information sent by the cloud server; The eighth module is used to display the target screen content according to the role differentiation information, and send different control commands to each of the portable digital devices so that each portable digital device displays different representation content after executing different control commands; the representation content of each portable digital device corresponds one-to-one with the virtual character controlled by the portable digital device. The role differentiation information is dynamically generated by the target application based on the state of the virtual role indicated by the virtual role information.

12. A data communication device, characterized in that, Applications in portable digital devices, including: The ninth module is used to send the connection signal generated by the connection operation to the target terminal in response to the connection signal; so that the target terminal generates device identification information associated with the hardware identifier of each portable digital device according to the connection signal, and then sends a connection notification to the cloud server. The tenth module is used to receive control commands sent by the target terminal. The control commands are generated by the target terminal based on role differentiation information received from the cloud server. The role differentiation information is different for different device identification information. The role differentiation information is dynamically generated by the target application based on the virtual role information corresponding to the device identification information and the state corresponding to the indicated virtual role. The eleventh module is used to execute the control commands and display the corresponding representation content. The representation content of each portable digital device corresponds one-to-one with the virtual character controlled by each portable digital device.

13. An electronic device, characterized in that, Including the processor and memory; The memory is used to store programs; The processor executes the program to implement the method as described in any one of claims 1 to 9.

14. A computer-readable storage medium, characterized in that, The storage medium stores a program that is executed by a processor to implement the method as described in any one of claims 1 to 9.

15. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Cloud mobile phone handle data processing method and system and storage medium

    CN111698210A

  • Matching method and device for control object in cloud application and electronic equipment

    CN111803926A

  • Method of indicating the ordinal number of a player in a wireless gaming system

    US20070093291A1