Cloud terminal peripheral device and virtual terminal interaction method, device, terminal and system
Patent Information
- Application Number
- CN202210706566.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-21
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2042-06-21
AI Technical Summary
[0004]本发明所要解决的技术问题是针对现有技术的上述不足,提供一种云终端外设与虚拟终端交互方法、设备、终端及系统,以解决现有技术中需要在用户本地配置了一台物理主机连接外设,造成云业务成本高、灵活性不够的问题
[0058] This invention provides a method, device, terminal, and system for interaction between cloud terminal peripherals and virtual terminals. A communication module is added to a peripheral module to form a cloud terminal peripheral. The cloud terminal peripheral only receives and sends operation codes, while the conversion between operation codes and standard operation commands is completed by the virtual terminal's peripheral service module. The peripheral service module interacts with the communication module to exchange operation codes and with the virtual terminal's application service module to exchange standard operation commands. Through the cooperation of the communication module and the peripheral service module, the goal of eliminating the need for a physical host on the user side of the cloud terminal peripheral is achieved. This eliminates the requirement of a physical host on the user end of existing cloud terminals, further simplifying equipment investment for cloud services, reducing costs, and improving flexibility.
Smart Images

Figure CN117319495B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of network cloud technology, and in particular to a method, device, terminal and system for interaction between cloud terminal peripherals and virtual terminals. Background Technology
[0002] A cloud terminal is a terminal device that runs in the cloud. It connects to the cloud-based system desktop via a specific communication protocol and displays it on the front end, redirecting the cloud terminal's input and output data to a virtual terminal on the cloud side. Currently, peripherals such as keyboards, mice, and game controllers are typically connected to a local host. The local host detects the connected device, identifies the device type by obtaining the peripheral's characteristic values, and loads the corresponding device driver. If the peripheral needs to operate a remote device, the message is forwarded through an application installed on the local host, provided the local host is connected to the network.
[0003] Existing technology requires a physical host configured locally by the user. All peripherals must pass through this host for protocol conversion and interact with the cloud-based virtual terminal. This host, as a dedicated device that the user must use, increases the user's purchase cost and reduces the flexibility of cloud services. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to address the above-mentioned shortcomings of the prior art by providing a method, device, terminal and system for interaction between cloud terminal peripherals and virtual terminals, so as to solve the problem that the prior art requires the user to configure a physical host locally to connect the peripherals, resulting in high cloud service costs and insufficient flexibility.
[0005] In a first aspect, the present invention provides a method for interaction between a cloud terminal peripheral and a virtual terminal, applied to a cloud terminal peripheral, wherein the cloud terminal peripheral includes a peripheral module and a communication module, and the method includes:
[0006] The communication module receives a first operation code input by the peripheral module and sends the first operation code to the peripheral service module of the virtual terminal, so that the peripheral service module converts the first operation code into a first standard operation instruction and inputs it into the application service module of the virtual terminal; and / or,
[0007] The communication module receives the second operation code sent by the peripheral service module of the virtual terminal, and outputs the second operation code to the peripheral module. The second operation code is obtained by the peripheral service module based on the second standard operation instruction output by the application service module of the virtual terminal.
[0008] Preferably, before the communication module receives the first operation code input by the peripheral module / before the communication module receives the second operation code sent by the peripheral service module of the virtual terminal, the method further includes:
[0009] The communication module sends the device parameters of the peripheral module to the peripheral service module.
[0010] Preferably, the device parameters include: the device type and driver information of the peripheral module.
[0011] Preferably, before the communication module sends the device parameters of the peripheral module to the peripheral service module, the method further includes:
[0012] The communication module sends an authentication request to the peripheral service module;
[0013] The communication module receives the authentication success message sent by the peripheral service module.
[0014] Preferably, the communication module receives a first operation code input by the peripheral module and sends the first operation code to the peripheral service module of the virtual terminal, specifically including:
[0015] The communication module receives the first operation code input by the peripheral module through the original protocol;
[0016] The communication module encapsulates the first operation code input through the original protocol into IP and sends it to the peripheral service module of the virtual terminal using the network protocol stack.
[0017] Preferably, the communication module receives a second operation code sent by the peripheral service module of the virtual terminal, and outputs the second operation code to the peripheral module, specifically including:
[0018] The communication module receives second operation code encapsulated in IP from the peripheral service module of the virtual terminal through the network protocol stack.
[0019] The communication module decapsulates the IP-encapsulated second operation code and outputs it to the peripheral module using the original protocol.
[0020] Secondly, the present invention provides a method for interaction between a cloud terminal peripheral and a virtual terminal, applied to a virtual terminal, wherein the virtual terminal includes a peripheral service module and an application service module, and the method includes:
[0021] The peripheral service module receives a first operation code sent by the communication module of the cloud terminal peripheral, converts the first operation code into a first standard operation instruction, and inputs it into the application service module. The first operation code is input from the peripheral module of the cloud terminal peripheral to the communication module; and / or,
[0022] The peripheral service module receives the second standard operation instruction output by the application service module, converts the second standard operation instruction into a second operation code, and sends it to the communication module of the cloud terminal peripheral, so that the communication module outputs the second operation code to the peripheral module of the cloud terminal peripheral.
[0023] Preferably, before the peripheral service module receives the first operation code sent by the communication module of the cloud terminal peripheral / before the peripheral service module receives the second standard operation instruction output by the application service module, the method further includes:
[0024] The peripheral service module receives the device parameters of the peripheral module sent by the communication module;
[0025] The peripheral service module registers the peripheral module according to the device parameters;
[0026] After registration is completed, the peripheral service module notifies the application service module of the registration result.
[0027] Preferably, the peripheral service module registers the peripheral module according to the device parameters, specifically including:
[0028] The peripheral service module establishes a simulated peripheral for the peripheral module based on the device type in the device parameters.
[0029] The peripheral service module calls the corresponding driver to complete the driving of the simulated peripheral based on the driver information in the device parameters.
[0030] Preferably, before the peripheral service module receives the device parameters of the peripheral module sent by the communication module, the method further includes:
[0031] The peripheral service module receives the authentication request sent by the communication module;
[0032] The peripheral service module authenticates the communication module according to the authentication request;
[0033] After successful authentication, the peripheral service module sends an authentication success message to the communication module.
[0034] Preferably, the peripheral service module receives a first operation code sent by the communication module of the cloud terminal peripheral, and converts the first operation code into a first standard operation instruction before inputting it into the application service module, specifically including:
[0035] The peripheral service module receives the first operation code, which is encapsulated in IP, sent by the communication module through the network protocol stack;
[0036] After the peripheral service module decapsulates the first operation code that has been encapsulated in IP, it converts the decapsulated first operation code into a first standard operation instruction through the driver of the simulated peripheral.
[0037] The first standard operation command is input into the application service module through the simulated peripheral device.
[0038] Preferably, the peripheral service module receives the second standard operation command output by the application service module, converts the second standard operation command into a second operation code, and sends it to the communication module of the cloud terminal peripheral, specifically including:
[0039] The analog peripheral device receives the second standard operation command output by the application service module.
[0040] The second standard operation instruction is converted into the second operation code through the driver of the simulated peripheral;
[0041] The peripheral service module encapsulates the converted second operation code into IP and sends it to the communication module of the cloud terminal peripheral using a network protocol stack.
[0042] Thirdly, the present invention provides a cloud terminal peripheral device, the cloud terminal peripheral device including a peripheral module and a communication module;
[0043] The peripheral module is used to input a first operation code to the communication module, and / or to receive a second operation code output by the communication module;
[0044] The communication module includes:
[0045] A first input module is configured to receive a first operation code input by the peripheral module and send the first operation code to the peripheral service module of the virtual terminal, so that the peripheral service module converts the first operation code into a first standard operation instruction and inputs it into the application service module of the virtual terminal; and / or,
[0046] The first output module is used to receive the second operation code sent by the peripheral service module of the virtual terminal, and output the second operation code to the peripheral module. The second operation code is obtained by the peripheral service module according to the second standard operation instruction output by the application service module of the virtual terminal.
[0047] Preferably, the peripheral module is a peripheral function module, and the communication module is a communication function module, and the two are integrated into a single design; or,
[0048] The peripheral module is a peripheral device, and the communication module is a communication device, and the two are connected through an interface.
[0049] Fourthly, the present invention provides a cloud device having a virtual terminal thereon, wherein the virtual terminal executes the cloud terminal peripheral and virtual terminal interaction method described above.
[0050] Fifthly, the present invention provides a virtual terminal, the virtual terminal including a peripheral service module and an application service module;
[0051] The application service module is used to receive a first standard operation command input by the peripheral service module, and / or to output a second standard operation command to the peripheral service module;
[0052] The peripheral service module includes:
[0053] The second input module is used to receive a first operation code sent by the communication module of the cloud terminal peripheral, and convert the first operation code into a first standard operation instruction before inputting it into the application service module. The first operation code is input from the peripheral module of the cloud terminal peripheral into the communication module; and / or,
[0054] The second output module is used for the peripheral service module to receive the second standard operation instruction output by the application service module, and to convert the second standard operation instruction into a second operation code and send it to the communication module of the cloud terminal peripheral, so that the communication module outputs the second operation code to the peripheral module of the cloud terminal peripheral.
[0055] Sixthly, the present invention provides a cloud terminal peripheral and virtual terminal interaction system, comprising:
[0056] The cloud terminal peripheral is used to execute the cloud terminal peripheral and virtual terminal interaction method described above;
[0057] A virtual terminal, connected to the cloud terminal peripheral, is used to execute the interaction method between the cloud terminal peripheral and the virtual terminal as described above.
[0058] This invention provides a method, device, terminal, and system for interaction between cloud terminal peripherals and virtual terminals. A communication module is added to a peripheral module to form a cloud terminal peripheral. The cloud terminal peripheral only receives and sends operation codes, while the conversion between operation codes and standard operation commands is completed by the virtual terminal's peripheral service module. The peripheral service module interacts with the communication module to exchange operation codes and with the virtual terminal's application service module to exchange standard operation commands. Through the cooperation of the communication module and the peripheral service module, the goal of eliminating the need for a physical host on the user side of the cloud terminal peripheral is achieved. This eliminates the requirement of a physical host on the user end of existing cloud terminals, further simplifying equipment investment for cloud services, reducing costs, and improving flexibility. Attached Figure Description
[0059] Figure 1This is a flowchart of a method for interaction between a cloud terminal peripheral and a virtual terminal according to an embodiment of the present invention;
[0060] Figure 2 This is a schematic diagram of the structure of a cloud terminal peripheral and virtual terminal interaction system according to an embodiment of the present invention;
[0061] Figure 3 This is a flowchart of another method for interaction between cloud terminal peripherals and virtual terminals according to an embodiment of the present invention;
[0062] Figure 4 This is a schematic diagram of the structure of a cloud terminal peripheral according to an embodiment of the present invention;
[0063] Figure 5 This is a schematic diagram of the structure of a cloud device according to an embodiment of the present invention;
[0064] Figure 6 This is a schematic diagram of the structure of a virtual terminal according to an embodiment of the present invention. Detailed Implementation
[0065] To enable those skilled in the art to better understand the technical solution of the present invention, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0066] It is understood that the specific embodiments and accompanying drawings described herein are merely for explaining the invention and are not intended to limit the invention.
[0067] It is understood that, without conflict, the various embodiments and features in the embodiments of the present invention can be combined with each other.
[0068] It is understood that, for ease of description, only the parts related to the present invention are shown in the accompanying drawings, while the parts unrelated to the present invention are not shown in the drawings.
[0069] It is understood that each unit or module involved in the embodiments of the present invention may correspond to only one entity structure, or may be composed of multiple entity structures, or multiple units or modules may be integrated into one entity structure.
[0070] It is understood that, without conflict, the functions and steps marked in the flowcharts and block diagrams of this invention may occur in a different order than that marked in the accompanying drawings.
[0071] It is understood that the flowcharts and block diagrams of this invention illustrate the possible architecture, functions, and operations of systems, apparatuses, devices, and methods according to various embodiments of this invention. Each block in the flowchart or block diagram may represent a unit, module, program segment, or code, containing executable instructions for implementing the specified function. Furthermore, each block or combination of blocks in the block diagram and flowchart can be implemented using a hardware-based system to achieve the specified function, or using a combination of hardware and computer instructions.
[0072] It is understood that the units and modules involved in the embodiments of the present invention can be implemented by software or by hardware. For example, the units and modules can be located in a processor.
[0073] Example 1:
[0074] like Figure 1 As shown, Embodiment 1 of the present invention provides a method for interaction between a cloud terminal peripheral and a virtual terminal, applicable to, for example... Figure 2 The cloud terminal peripheral 1 shown in the cloud terminal peripheral and virtual terminal interaction system includes a peripheral module 11 and a communication module 12. The method includes:
[0075] S121, the communication module 12 receives the first operation code input by the peripheral module 11 and sends the first operation code to the peripheral service module 22 of the virtual terminal 2, so that the peripheral service module 22 converts the first operation code into a first standard operation instruction and inputs it into the application service module 21 of the virtual terminal 2.
[0076] In an optional embodiment, before the communication module 12 receives the first operation code input by the peripheral module 11, the method further includes:
[0077] The communication module 12 sends the device parameters of the peripheral module 11 to the peripheral service module 22.
[0078] In an optional embodiment, the device parameters include: the device type and driver information of the peripheral module 11.
[0079] In an optional embodiment, before the communication module 12 sends the device parameters of the peripheral module 11 to the peripheral service module 22, the method further includes:
[0080] The communication module 12 sends an authentication request to the peripheral service module 22;
[0081] The communication module 12 receives the authentication success message sent by the peripheral service module 22.
[0082] In an optional embodiment, the communication module 12 receives a first operation code input by the peripheral module 11 and sends the first operation code to the peripheral service module 22 of the virtual terminal 2, specifically including:
[0083] The communication module 12 receives the first operation code input by the peripheral module 11 through the original protocol;
[0084] The communication module 12 encapsulates the first operation code input through the original protocol into IP and sends it to the peripheral service module 22 of the virtual terminal 2 using the network protocol stack.
[0085] S122, the communication module 12 receives the second operation code sent by the peripheral service module 22 of the virtual terminal 2, and outputs the second operation code to the peripheral module 11. The second operation code is obtained by the peripheral service module 22 according to the second standard operation instruction output by the application service module 21 of the virtual terminal 2.
[0086] In an optional embodiment, before the communication module 12 receives the second operation code sent by the peripheral service module 22 of the virtual terminal 2, the method further includes:
[0087] The communication module 12 sends the device parameters of the peripheral module 11 to the peripheral service module 22.
[0088] In an optional embodiment, the device parameters include: the device type and driver information of the peripheral module 11.
[0089] In an optional embodiment, before the communication module 12 sends the device parameters of the peripheral module 11 to the peripheral service module 22, the method further includes:
[0090] The communication module 12 sends an authentication request to the peripheral service module 22;
[0091] The communication module 12 receives the authentication success message sent by the peripheral service module 22.
[0092] In an optional embodiment, the communication module 12 receives a second operation code sent by the peripheral service module 22 of the virtual terminal 2, and outputs the second operation code to the peripheral module 11, specifically including:
[0093] The communication module 12 receives the second operation code, which is encapsulated in IP, sent by the peripheral service module 22 of the virtual terminal 2 through the network protocol stack.
[0094] The communication module 12 decapsulates the second operation code that has been encapsulated in IP and outputs it to the peripheral module 11 using the original protocol.
[0095] In one specific embodiment, in order to achieve the goal of the present invention that does not require the peripheral device to be connected to the host at the user end, the following improvements are required:
[0096] Improvements are made to the peripherals on the user end by adding communication functions to the existing peripheral functions. In actual design, the specific implementation forms of the communication functions may include: USB, Bluetooth, Zigbee, Z-wave, infrared, Wi-Fi, Ethernet, WLAN, digital audio interface, digital video interface, etc. These communication functions are used to directly or indirectly connect the peripheral module 11 to the network. The cloud terminal peripheral 1 obtained through these improvements has at least two specific forms. One is an integrated design of peripheral functions and communication functions, where the cloud terminal peripheral 1 includes a peripheral module 11 in the form of a peripheral function module and a communication module 12 in the form of a communication function module, such as a mouse with communication functions, a keyboard with communication functions, a monitor with communication functions, etc. Each cloud terminal peripheral... One approach is to allow the device 1 to independently connect to the virtual terminal 2. Another approach is to design the peripheral functions and communication functions separately. That is, the cloud terminal peripheral 1 includes a peripheral module 11 in the form of a peripheral device and a communication module 12 in the form of a communication device. The two can be connected together through an interface, such as a specially designed independent communication device that can connect to the virtual terminal 2. It contains several wired or wireless interfaces for peripherals such as mice, keyboards, and monitors to access. In either of the above approaches, the communication module 12 is only responsible for encapsulating and sending the operation codes input to the peripheral module 11, and / or decapsulating and outputting the operation codes to be output to the peripheral module 11. It is not responsible for the conversion and recognition of the operation codes, thus greatly simplifying the functions, size, arithmetic unit architecture, and operating system compared to the existing physical host.
[0097] The virtual terminal 2 is improved in the cloud by adding peripheral service functions on the basis of application service functions, forming a virtual terminal 2 including application service module 21 and peripheral service module 22. The peripheral service module 22 is responsible for the conversion and recognition of operation codes, including: decapsulating and converting the first operation code sent by the communication module 12 to obtain a first standard operation instruction, inputting the first standard operation instruction into the application service module 21, and / or converting and recognizing the second standard operation instruction output by the application service module 21 to obtain a second operation code, encapsulating the second operation code and sending it to the communication module 12. The virtual terminal 2 is set on a cloud device, which may include multiple virtual terminals 2. The virtual terminals 2 can be provided to different users. The cloud device may be multiple servers, etc. The application service module 21 and peripheral service module 22 can be program code function modules, which can be set on the same cloud server or on different cloud servers, and are not limited to specific forms.
[0098] To implement the input function, the following steps can be performed:
[0099] 1. After the communication module 12 is powered on, it loads the communication protocol required for communication with the peripheral service module 22;
[0100] 2. The communication module 12 sends an authentication request to the peripheral service module 22. The authentication request may include at least one of the following: the local token of the communication module 12, the MAC address (Media Access Control Address), or the SN (Serial Number).
[0101] 3. The peripheral service module 22 authenticates the communication module 12 according to the authentication request and the preset authentication rules;
[0102] 4. After successful authentication, the peripheral service module 22 sends an authentication success message to the communication module 12;
[0103] 5. After receiving the authentication success message, the communication module 12 sends the device parameters of the peripheral module 11 to the peripheral service module 22. The device parameters include the device type and the required driver information. For the cloud terminal peripheral 1, which is designed as an integrated peripheral module 11 and communication module 12, the device parameters only need to be sent once after each authentication success. For the cloud terminal peripheral 1, which is designed separately, the device parameters can be sent separately according to the actual access situation of the peripheral device after each authentication success.
[0104] 6. The peripheral service module 22 creates a simulated peripheral of the same type as the peripheral module 11 according to the device parameters, completes the corresponding driver, and notifies the application service module 21 that the peripheral is ready.
[0105] 7. Peripheral module 11 receives user input operations and inputs the operation code of the input operation to communication module 12;
[0106] 8. The communication module 12 encapsulates the received operation code into an IP data packet and sends it to the peripheral service module 22 using the Wi-Fi protocol stack;
[0107] 9. After decapsulating the operation code, the peripheral service module 22 converts the operation code into the standard operation instruction corresponding to the peripheral according to the driver, and inputs the standard operation instruction into the application service module 21 through the simulated peripheral. From the perspective of the application service module 21, it is equivalent to connecting a local peripheral. In this application, the operation code refers to the instruction that the peripheral can recognize but the application cannot recognize. The specific form of the operation code varies depending on the peripheral module 11. Specifically, it may include: code for simple operation instructions (such as peripherals such as mouse and touch screen), video uplink and downlink (peripherals such as monitor and camera), audio uplink and downlink (peripherals such as microphone and speaker), and file uplink and downlink (peripherals such as USB flash drive). The standard operation instruction refers to the instruction that the application corresponding to the operation code can directly recognize. The two may differ in terms of interface, multi-layer protocol, and fields.
[0108] The implementation steps for the output function are similar to those for the input function, except that the direction of the data flow is reversed. That is, after steps 1-6, the standard operation command is output from the application service module 21 to the peripheral service module 22. In the peripheral service module 22, the standard operation command is converted into operation code. The peripheral service module 22 encapsulates the operation code and sends it to the communication module 12. After the communication module 12 decapsulates the operation code, it outputs the operation code to the peripheral module 11. It can be understood that for the integrated cloud terminal peripheral 1, it may only be able to implement one of the input or output functions. For the separately designed cloud terminal peripheral 1, it may be able to implement one of the input or output functions, or both, depending on the number and type of the connected peripheral devices.
[0109] Example 2:
[0110] like Figure 3 As shown, Embodiment 2 of the present invention provides a method for interaction between a cloud terminal peripheral and a virtual terminal, applicable to, for example... Figure 2 The virtual terminal 2 in the interaction between the cloud terminal peripheral and the virtual terminal includes a peripheral service module 22 and an application service module 21. The method includes:
[0111] S221, the peripheral service module 22 receives the first operation code sent by the communication module 12 of the cloud terminal peripheral 1, and converts the first operation code into a first standard operation instruction and inputs it into the application service module 21. The first operation code is input from the peripheral module 11 of the cloud terminal peripheral 1 into the communication module 12.
[0112] In an optional embodiment, before the peripheral service module 22 receives the first operation code sent by the communication module 12 of the cloud terminal peripheral 1, the method further includes:
[0113] The peripheral service module 22 receives the device parameters of the peripheral module 11 sent by the communication module 12;
[0114] The peripheral service module 22 registers the peripheral module 11 according to the device parameters;
[0115] After registration is completed, the peripheral service module 22 notifies the application service module 21 of the registration result of the peripheral module 11.
[0116] In an optional embodiment, the peripheral service module 22 registers the peripheral module 11 according to the device parameters, specifically including:
[0117] The peripheral service module 22 establishes the simulated peripheral of the peripheral module 11 according to the device type in the device parameters;
[0118] The peripheral service module 22 calls the corresponding driver to complete the driving of the simulated peripheral based on the driver information in the device parameters.
[0119] In an optional embodiment, before the peripheral service module 22 receives the device parameters of the peripheral module 11 sent by the communication module 12, the method further includes:
[0120] The peripheral service module 22 receives the authentication request sent by the communication module 12;
[0121] The peripheral service module 22 authenticates the communication module 12 according to the authentication request;
[0122] After successful authentication, the peripheral service module 22 sends an authentication success message to the communication module 12.
[0123] In an optional embodiment, the peripheral service module 22 receives a first operation code sent by the communication module 12 of the cloud terminal peripheral 1, and converts the first operation code into a first standard operation instruction before inputting it into the application service module 21, specifically including:
[0124] The peripheral service module 22 receives the first operation code encapsulated in IP sent by the communication module 12 through the network protocol stack;
[0125] After the peripheral service module 22 decapsulates the first operation code that has been encapsulated by IP, it converts the first operation code after IP decapsulation into a first standard operation instruction through the driver of the simulated peripheral.
[0126] The first standard operation command is input into the application service module 21 through the simulated peripheral device.
[0127] S222, the peripheral service module 22 receives the second standard operation instruction output by the application service module 21, converts the second standard operation instruction into a second operation code, and sends it to the communication module 12 of the cloud terminal peripheral 1, so that the communication module 12 outputs the second operation code to the peripheral module 11 of the cloud terminal peripheral 1.
[0128] In an optional embodiment, before the peripheral service module 22 receives the second standard operation command output by the application service module 21, the method further includes:
[0129] The peripheral service module 22 receives the device parameters of the peripheral module 11 sent by the communication module 12;
[0130] The peripheral service module 22 registers the peripheral module 11 according to the device parameters;
[0131] After registration is completed, the peripheral service module 22 notifies the application service module 21 of the registration result of the peripheral module 11.
[0132] In an optional embodiment, the peripheral service module 22 registers the peripheral module 11 according to the device parameters, specifically including:
[0133] The peripheral service module 22 establishes the simulated peripheral of the peripheral module 11 according to the device type in the device parameters;
[0134] The peripheral service module 22 calls the corresponding driver to complete the driving of the simulated peripheral based on the driver information in the device parameters.
[0135] In an optional embodiment, before the peripheral service module 22 receives the device parameters of the peripheral module 11 sent by the communication module 12, the method further includes:
[0136] The peripheral service module 22 receives the authentication request sent by the communication module 12;
[0137] The peripheral service module 22 authenticates the communication module 12 according to the authentication request;
[0138] After successful authentication, the peripheral service module 22 sends an authentication success message to the communication module 12.
[0139] In an optional embodiment, the peripheral service module 22 receives a second standard operation command output by the application service module 21, converts the second standard operation command into a second operation code, and sends it to the communication module 12 of the cloud terminal peripheral 1, specifically including:
[0140] The analog peripheral device receives the second standard operation command output by the application service module 21.
[0141] The second standard operation instruction is converted into the second operation code through the driver of the simulated peripheral;
[0142] The peripheral service module 22 encapsulates the converted second operation code into IP and sends it to the communication module 12 of the cloud terminal peripheral 1 using the network protocol stack.
[0143] Example 2 is an interaction method with Example 1. The detailed process has been described in Example 1. Example 2 can be understood in conjunction with Example 1.
[0144] Example 3:
[0145] like Figure 2 and 4 As shown, Embodiment 3 of the present invention provides a cloud terminal peripheral device 1, which includes a peripheral module 11 and a communication module 12;
[0146] The peripheral module 11 is used to input a first operation code to the communication module 12, and / or to receive a second operation code output by the communication module 12;
[0147] The communication module 12 includes:
[0148] The first input module 121 is configured to receive a first operation code input by the peripheral module 11 and send the first operation code to the peripheral service module 22 of the virtual terminal 2, so that the peripheral service module 22 converts the first operation code into a first standard operation instruction and inputs it into the application service module 21 of the virtual terminal 2; and / or,
[0149] The first output module 122 is used to receive the second operation code sent by the peripheral service module 22 of the virtual terminal 2, and output the second operation code to the peripheral module 11. The second operation code is obtained by the peripheral service module 22 according to the second standard operation instruction output by the application service module 21 of the virtual terminal 2.
[0150] In an optional embodiment, the peripheral module 11 is a peripheral function module, and the communication module 12 is a communication function module, and the two are integrated into a single design; or,
[0151] The peripheral module 11 is a peripheral device, and the communication module 12 is a communication device, and the two are connected through an interface.
[0152] In an optional embodiment, the communication module 12 further includes:
[0153] The parameter sending unit is used to send the device parameters of the peripheral module 11 to the peripheral service module 22.
[0154] In an optional embodiment, the device parameters include: the device type and driver information of the peripheral module 11.
[0155] In an optional embodiment, the communication module 12 further includes:
[0156] An authentication request unit is used to send an authentication request to the peripheral service module 22.
[0157] The authentication pass unit is used to receive the authentication pass message sent by the peripheral service module 22.
[0158] In an optional embodiment, the first input module 121 specifically includes:
[0159] The first input receiving unit is used to receive the first operation code input by the peripheral module 11 through the original protocol;
[0160] The first input sending unit is used to encapsulate the first operation code input through the original protocol into IP and send it to the peripheral service module 22 of the virtual terminal 2 using the network protocol stack.
[0161] In an optional embodiment, the first output module 122 specifically includes:
[0162] The first output receiving unit is used to receive the first operation code encapsulated in IP sent by the peripheral service module 22 of the virtual terminal 2 through the network protocol stack;
[0163] The output unit is used to decapsulate the first operation code that has been encapsulated in IP and output it to the peripheral module 11 using the original protocol.
[0164] Example 4:
[0165] like Figure 5 As shown, the present invention provides a cloud device 20 in Embodiment 4, on which a virtual terminal 2 is provided, and the virtual terminal 2 executes the cloud terminal peripheral and virtual terminal interaction method as described in Embodiment 2.
[0166] Example 5:
[0167] like Figure 2 and 6 As shown, Embodiment 5 of the present invention provides a virtual terminal 2, which includes a peripheral service module 22 and an application service module 21;
[0168] The application service module 21 is used to receive a first standard operation command input by the peripheral service module 22, and / or to output a second standard operation command to the peripheral service module 22.
[0169] The peripheral service module 22 includes:
[0170] The second input module 221 is used to receive a first operation code sent by the communication module 12 of the cloud terminal peripheral 1, and convert the first operation code into a first standard operation instruction before inputting it into the application service module 21. The first operation code is input from the peripheral module 11 of the cloud terminal peripheral 1 to the communication module 12; and / or,
[0171] The second output module 222 is used to receive the second standard operation instruction output by the application service module 21, convert the second standard operation instruction into a second operation code, and send it to the communication module 12 of the cloud terminal peripheral device 1, so that the communication module 12 outputs the second operation code to the peripheral module 11 of the cloud terminal peripheral device 1.
[0172] In an optional embodiment, the peripheral service module 22 further includes:
[0173] A parameter receiving unit is used to receive device parameters of the peripheral module 11 sent by the communication module 12;
[0174] A registration unit is used to register the peripheral module 11 according to the device parameters;
[0175] The notification unit is used to notify the application service module 21 of the registration result of the peripheral module 11 after registration is completed.
[0176] In an optional embodiment, the registration unit specifically includes:
[0177] The simulation subunit is used to establish the simulation peripherals of the peripheral module 11 according to the device type in the device parameters;
[0178] The driver subunit is used to call the corresponding driver to complete the driving of the simulated peripheral based on the driver information in the device parameters.
[0179] In an optional embodiment, the peripheral service module 22 further includes:
[0180] An authentication receiving unit is used to receive authentication requests sent by the communication module 12;
[0181] An authentication unit is used to authenticate the communication module 12 according to the authentication request;
[0182] The authentication sending unit is used to send an authentication success message to the communication module 12 after authentication is successful.
[0183] In an optional embodiment, the second input module 221 specifically includes:
[0184] The second input receiving unit is used to receive the first operation code encapsulated in IP sent by the communication module 12 through the network protocol stack;
[0185] The first conversion unit is used to decapsulate the first operation code after IP encapsulation and then convert the decapsulated first operation code into a first standard operation instruction through the driver of the simulated peripheral device.
[0186] The input unit is used to input the first standard operation command into the application service module 21 through the simulated peripheral device.
[0187] In an optional embodiment, the second output module 222 specifically includes:
[0188] The second output receiving unit is used to receive the second standard operation command output by the application service module 21 through the analog peripheral device;
[0189] The second conversion unit is used to convert the second standard operation instruction into the second operation code through the driver of the analog peripheral;
[0190] The second output sending unit is used to encapsulate the second operation code obtained by conversion into IP and send it to the communication module 12 of the cloud terminal peripheral 1 using the network protocol stack.
[0191] Example 6:
[0192] like Figure 2 As shown, Embodiment 6 of the present invention provides a cloud terminal peripheral and virtual terminal interaction system, comprising:
[0193] Cloud terminal peripheral 1 is used to execute the cloud terminal peripheral and virtual terminal interaction method as described in Example 1;
[0194] Virtual terminal 2 is connected to cloud terminal peripheral 1 and is used to execute the cloud terminal peripheral and virtual terminal interaction method as described in embodiment 2.
[0195] Embodiments 1-6 of this invention provide a method, device, terminal, and system for interaction between a cloud terminal peripheral and a virtual terminal. A communication module is added to a peripheral module to form a cloud terminal peripheral. The cloud terminal peripheral only receives and sends operation codes, while the conversion between operation codes and standard operation commands is completed by the peripheral service module of the virtual terminal. The peripheral service module interacts with the communication module to exchange operation codes and with the application service module of the virtual terminal to exchange standard operation commands. Through the cooperation of the communication module and the peripheral service module, the purpose of eliminating the need for the cloud terminal peripheral to be connected to a "host" on the user side is achieved. This removes the existing requirement of a physical host on the user end of the cloud terminal, further simplifying equipment investment for cloud services, reducing costs, and improving flexibility.
[0196] It is understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, and the present invention is not limited thereto. For those skilled in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.
Claims
1. A method for interaction between a cloud terminal peripheral and a virtual terminal, characterized in that, The method is applied to cloud terminal peripherals, which include a peripheral module and a communication module. The peripheral module is connected to the communication module, and the two are designed separately. The communication module is a specially designed, independent communication device that can connect to a virtual terminal in the cloud, and it includes several interfaces for peripheral access. The cloud terminal peripheral is located on the user side and is not connected to a physical host on the user side. After the communication module is powered on, it loads the communication protocol required to communicate with the peripheral service module and sends an authentication request to the peripheral service module. The authentication request includes at least one of the communication module's local token, MAC address, and SN. The communication module receives the authentication success message. The authentication success message is sent by the peripheral service module after authenticating the communication module according to the authentication request and the preset authentication rules. After receiving the authentication success message, the communication module sends the device parameters of the peripheral module to the peripheral service module. The device parameters are sent according to the actual access situation of the peripheral device. The device parameters include the device type and the required driver information, so that the peripheral service module can create a simulated peripheral of the same type as the peripheral module, complete the driver of the simulated peripheral, and notify the application service module that the peripheral is ready. The communication module receives a first operation code input by the user through the peripheral module, and encapsulates the first operation code and sends it to the peripheral service module of the virtual terminal, so that the peripheral service module converts the decapsulated first operation code into a first standard operation instruction through the driver of the simulated peripheral, and then inputs it into the application service module of the virtual terminal through the simulated peripheral; and / or, The communication module receives the second operation code encapsulated and sent by the peripheral service module of the virtual terminal, and outputs the decapsulated second operation code to the peripheral module. The second operation code is the second standard operation instruction output by the application service module of the virtual terminal received by the peripheral service module through the simulated peripheral and converted by the driver of the simulated peripheral.
2. The method according to claim 1, characterized in that, The communication module receives a first operation code input by the user through the peripheral module, and encapsulates the first operation code and sends it to the peripheral service module of the virtual terminal, specifically including: The communication module receives the first operation code input by the peripheral module through the original protocol; The communication module encapsulates the first operation code input through the original protocol into IP and sends it to the peripheral service module of the virtual terminal using the network protocol stack.
3. The method according to claim 1, characterized in that, The communication module receives the second operation code encapsulated and sent by the peripheral service module of the virtual terminal, and outputs the decapsulated second operation code to the peripheral module, specifically including: The communication module receives second operation code encapsulated in IP from the peripheral service module of the virtual terminal through the network protocol stack. The communication module decapsulates the IP-encapsulated second operation code and outputs it to the peripheral module using the original protocol.
4. A method for interaction between a cloud terminal peripheral and a virtual terminal, characterized in that, The method is applied to a virtual terminal, which includes a peripheral service module and an application service module. The virtual terminal connects to a cloud terminal peripheral, which includes a peripheral module and a communication module. The peripheral module is connected to the communication module, and the two are designed separately. The communication module is a specially designed, independent communication device capable of connecting to the virtual terminal in the cloud, and it includes several interfaces for peripheral access. The cloud terminal peripheral is located on the user side and is not connected to a physical host on the user side. The method includes: The peripheral service module receives an authentication request, which includes at least one of the communication module's local token, MAC address, and SN. The communication module loads the communication protocol required for communication with the peripheral service module after powering on and sends the request. The peripheral service module authenticates the communication module according to the authentication request and preset authentication rules, and sends an authentication success message to the communication module. The peripheral service module receives device parameters from the peripheral module, including device type and required driver information. After receiving the authentication success message, the communication module sends the device parameters to the peripheral service module according to the actual access status of the peripheral device. The peripheral service module creates a simulated peripheral of the same type as the peripheral module, completes the driver for the simulated peripheral, and notifies the application service module that the peripheral is ready. The peripheral service module receives the first operation code encapsulated and sent by the communication module of the cloud terminal peripheral, and converts the decapsulated first operation code into a first standard operation instruction through the driver of the simulated peripheral, and then inputs it into the application service module through the simulated peripheral. The first operation code is input by the user into the communication module through the peripheral module of the cloud terminal peripheral; and / or, The peripheral service module receives the second standard operation command output by the application service module through the simulated peripheral, and converts the second standard operation command into a second operation code through the driver of the simulated peripheral, encapsulates it, and sends it to the communication module of the cloud terminal peripheral, so that the communication module outputs the decapsulated second operation code to the peripheral module of the cloud terminal peripheral.
5. The method according to claim 4, characterized in that, The peripheral service module receives the first operation code encapsulated and sent by the communication module of the cloud terminal peripheral, and converts the decapsulated first operation code into a first standard operation instruction through the driver of the simulated peripheral, and then inputs it into the application service module through the simulated peripheral, specifically including: The peripheral service module receives the first operation code, which is encapsulated in IP, sent by the communication module through the network protocol stack; After the peripheral service module decapsulates the first operation code that has been encapsulated in IP, it converts the decapsulated first operation code into a first standard operation instruction through the driver of the simulated peripheral. The first standard operation command is input into the application service module through the simulated peripheral device.
6. The method according to claim 4, characterized in that, The peripheral service module receives the second standard operation command output by the application service module through a simulated peripheral device, and then encapsulates and sends the second standard operation command into second operation code through the driver of the simulated peripheral device before sending it to the communication module of the cloud terminal peripheral device. Specifically, this includes: The analog peripheral device receives the second standard operation command output by the application service module. The second standard operation instruction is converted into the second operation code through the driver of the simulated peripheral; The peripheral service module encapsulates the converted second operation code into IP and sends it to the communication module of the cloud terminal peripheral using a network protocol stack.
7. A cloud terminal peripheral, characterized in that, The cloud terminal peripheral includes a peripheral module and a communication module. The peripheral module is connected to the communication module, and the two are designed separately. The communication module is a specially designed independent communication device that can make calls to the virtual terminal in the cloud. It contains several interfaces for peripheral access. The cloud terminal peripheral is on the user side and is not connected to the physical host on the user side. The peripheral module is used to input a first operation code to the communication module, and / or to receive a second operation code output by the communication module; The communication module includes: The authentication request unit is used to load the communication protocol required for communication with the peripheral service module after power-on, and send an authentication request to the peripheral service module. The authentication request includes at least one of the communication module's local token, MAC address, and SN. The authentication pass unit is used to receive authentication pass messages. The authentication pass message is sent by the peripheral service module after authenticating the communication module according to the authentication request and the preset authentication rules. The parameter sending unit is used to send the device parameters of the peripheral module to the peripheral service module after receiving the authentication success message. The device parameters are sent according to the actual access situation of the peripheral device. The device parameters include the device type and the required driver information, so that the peripheral service module can create a simulated peripheral of the same type as the peripheral module, complete the driver of the simulated peripheral, and notify the application service module that the peripheral is ready. The first input module is configured to receive a first operation code input by the user through the peripheral module, and encapsulate the first operation code and send it to the peripheral service module of the virtual terminal, so that the peripheral service module converts the decapsulated first operation code into a first standard operation instruction through the driver of the simulated peripheral and then inputs it into the application service module of the virtual terminal through the simulated peripheral; and / or, The first output module is used to receive the second operation code encapsulated and sent by the peripheral service module of the virtual terminal, and output the decapsulated second operation code to the peripheral module. The second operation code is the second standard operation instruction output by the application service module of the virtual terminal received by the peripheral service module through the simulated peripheral and converted by the driver of the simulated peripheral.
8. A virtual terminal, characterized in that, The virtual terminal includes a peripheral service module and an application service module. The virtual terminal is connected to a cloud terminal peripheral. The cloud terminal peripheral includes a peripheral module and a communication module, which are designed separately. The peripheral module is connected to the communication module. The communication module is a specially designed independent communication device that can make calls to the virtual terminal in the cloud. It contains several interfaces for peripheral access. The cloud terminal peripheral is on the user side and is not connected to the physical host on the user side. The application service module is used to receive a first standard operation command input by the peripheral service module, and / or to output a second standard operation command to the peripheral service module; The peripheral service module includes: The authentication receiving unit is used to receive authentication requests, which include at least one of the communication module's local token, MAC address, and SN. These requests are sent after the communication module loads the communication protocol required for communication with the peripheral service module upon power-on. The authentication unit is used to authenticate the communication module based on the authentication request and preset authentication rules. The authentication sending unit is used to send an authentication successful message to the communication module; The parameter receiving unit is used to receive device parameters from the peripheral module. These parameters include device type and required driver information. After receiving the authentication success message, the communication module sends the parameters to the peripheral service module. The device parameters are sent based on the actual connection status of the peripheral device. The analog subunit is used to establish an analog peripheral of the same type as the peripheral module. The driver subunit is used to drive the analog peripheral. The notification unit is used to notify the application service module peripherals that they are ready. The second input module is used to receive the first operation code encapsulated and sent by the communication module of the cloud terminal peripheral, and to convert the decapsulated first operation code into a first standard operation instruction through the driver of the simulated peripheral, and then input it into the application service module through the simulated peripheral. The first operation code is input by the user into the communication module through the peripheral module of the cloud terminal peripheral; and / or, The second output module is used for the peripheral service module to receive the second standard operation command output by the application service module through the simulated peripheral, and to convert the second standard operation command into second operation code through the driver of the simulated peripheral and then encapsulate and send it to the communication module of the cloud terminal peripheral, so that the communication module outputs the decapsulated second operation code to the peripheral module of the cloud terminal peripheral.
9. A cloud terminal peripheral and virtual terminal interaction system, characterized in that, include: A cloud terminal peripheral device, used to execute the cloud terminal peripheral device and virtual terminal interaction method as described in any one of claims 1-3; A virtual terminal, connected to the cloud terminal peripheral, is used to execute the cloud terminal peripheral and virtual terminal interaction method as described in any one of claims 4-6.
Citation Information
Patent Citations
Method and system for redirecting USB (universal serial bus) devices
CN102368231A
Re-orientating system for USB (Universal Series Bus) equipment
CN202257550U