CN107846466B - Mapping method of cloud terminal external equipment, server, cloud terminal and system - Google Patents
Mapping method of cloud terminal external equipment, server, cloud terminal and system Download PDFInfo
- Publication number
- CN107846466B CN107846466B CN201711127762.8A CN201711127762A CN107846466B CN 107846466 B CN107846466 B CN 107846466B CN 201711127762 A CN201711127762 A CN 201711127762A CN 107846466 B CN107846466 B CN 107846466B
- Authority
- CN
- China
- Prior art keywords
- equipment
- cloud terminal
- target
- server
- virtual
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000013507 mapping Methods 0.000 title claims abstract description 86
- 238000000034 method Methods 0.000 title claims abstract description 57
- 230000005540 biological transmission Effects 0.000 claims abstract description 74
- 238000012546 transfer Methods 0.000 claims description 11
- 238000006243 chemical reaction Methods 0.000 claims description 6
- 238000004891 communication Methods 0.000 claims description 5
- 238000012545 processing Methods 0.000 claims description 3
- 230000002093 peripheral effect Effects 0.000 abstract description 33
- 238000010586 diagram Methods 0.000 description 10
- 230000011664 signaling Effects 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 4
- 239000013589 supplement Substances 0.000 description 4
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/08—Protocols specially adapted for terminal emulation, e.g. Telnet
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The application provides a mapping method of cloud terminal external equipment, a server, a cloud terminal and a system, wherein the method comprises the following steps: receiving an equipment list of external equipment connected with the cloud terminal, wherein the equipment list is sent by the cloud terminal; determining the equipment type of each external equipment according to the equipment list; determining target equipment needing to adopt video stream for data transmission and equipment types of the target equipment according to the equipment types of the external equipment; generating a mapping request according to the device type of the target device; creating virtual equipment with the same equipment type as the target equipment according to the mapping request; and establishing a data logical link between the virtual device and the target device so as to enable the virtual device and the target device to carry out data transmission. The method has the advantages that the function of the cloud terminal video peripheral is effectively realized, the transmission rate and the real-time performance of video stream data are improved, and the efficiency and the accuracy of determining the equipment type of the peripheral and establishing the corresponding virtual equipment are improved.
Description
Technical Field
The application relates to the technical field of cloud, in particular to a mapping method, a server, a cloud terminal and a system for external equipment of the cloud terminal.
Background
With the development of cloud computing technology, cloud desktop technology is increasingly widely used. The cloud desktop technology is a remote desktop virtualization technology, in a desktop virtualization environment, a cloud terminal is connected with a desktop of a server through a network, a user transmits various operations of the cloud terminal to the server for operation, and returns results to the cloud terminal, so that external equipment connected to the cloud terminal needs to transmit data to the server end through a certain mapping mode to be normally used.
In the prior art, mapping of part of specific external devices, such as a usb disk and a printer, is realized, and after a cloud terminal is connected to a video peripheral device such as a camera and a high-speed camera that needs video stream data transmission, the cloud terminal cannot be mapped into a virtual desktop, which results in that functions of the external devices cannot be realized, the operability of the video peripheral device is poor, and the transmission efficiency of the video stream data stream is low. Therefore, how to effectively implement mapping of the video peripheral of the cloud terminal becomes a technical problem which needs to be solved urgently.
Disclosure of Invention
The application provides a mapping method, a server, a cloud terminal and a system of cloud terminal external equipment, and aims to solve the problem that video peripherals connected with the cloud terminal in the prior art cannot be mapped to a virtual desktop.
The first aspect of the present application provides a mapping method for a cloud terminal external device, including:
receiving an equipment list of external equipment connected with a cloud terminal, wherein the equipment list comprises equipment type identifiers corresponding to the external equipment;
determining the equipment type of each external equipment according to the equipment list;
determining target equipment needing to adopt video stream for data transmission and equipment types of the target equipment according to the equipment types of the external equipment;
generating a mapping request according to the device type of the target device;
creating virtual equipment with the same equipment type as the target equipment according to the mapping request;
and establishing a data logical link between the virtual device and the target device so as to enable the virtual device and the target device to perform data transmission.
Another aspect of the present application provides a mapping method for a cloud terminal external device, including:
acquiring equipment information of each external equipment connected with a cloud terminal, wherein the equipment information comprises an equipment type identifier;
generating an equipment list according to the equipment information;
sending the device list to a server, so that the server determines the device type of each external device according to the device list, determines a target device which needs to adopt a video stream for data transmission and the device type of the target device according to the device type of each external device, generates a mapping request according to the device type of the target device, creates a virtual device which is the same as the device type of the target device according to the mapping request, and establishes a data logical link between the virtual device and the target device, so that the data transmission is performed between the virtual device and the target device.
Yet another aspect of the present application provides a server comprising:
the device list comprises device type identifiers corresponding to the external devices;
the first determining module is used for determining the equipment type of each external equipment according to the equipment list;
the first determining module is further configured to determine, according to the device type of each of the external devices, a target device that needs to perform data transmission using a video stream and a device type of the target device;
the first generation module is used for generating a mapping request according to the equipment type of the target equipment;
the lower-layer virtual equipment bus driver is used for creating virtual equipment with the same equipment type as the target equipment according to the mapping request;
and the upper layer communication component is used for establishing a data logical link between the virtual device and the target device so as to enable the virtual device and the target device to perform data transmission.
Yet another aspect of the present application provides a cloud terminal, including:
the second acquisition module is used for acquiring equipment information of each external equipment connected with the cloud terminal, wherein the equipment information comprises an equipment type identifier;
the second generation module is used for generating an equipment list according to the equipment information;
a second sending module, configured to send the device list to a server, so that the server determines, according to the device list, a device type of each external device, determines, according to the device type of each external device, a target device that needs to perform data transmission using a video stream and a device type of the target device, generates a mapping request according to the device type of the target device, creates, according to the mapping request, a virtual device of the same device type as the target device, and establishes a data logical link between the virtual device and the target device, so that data transmission is performed between the virtual device and the target device.
Another aspect of the present application provides a mapping system for a cloud terminal external device, including:
the server as described above and the cloud terminal as described above.
According to the mapping method, the server, the cloud terminal and the system for the cloud terminal external equipment, whether target equipment needing to adopt video stream for data transmission exists is judged by obtaining the equipment types of all the external equipment connected with the cloud terminal, and a mapping request is generated according to the equipment type of the target equipment, so that the lower layer virtual equipment bus driver creates virtual equipment with the same equipment type as the target equipment according to the mapping request. The method and the device realize that the USB port number corresponding to the specific USB device does not need to be acquired, reduce the number of signaling transmission times, and improve the efficiency and the accuracy of determining the peripheral device type and establishing the corresponding virtual device. Meanwhile, the data logic link between the virtual equipment and the target equipment enables the operation of the virtual equipment by the server to be sent to the cloud terminal actual equipment through the data logic link, and data returned by the actual equipment can also be returned to the virtual equipment through the data logic link, so that the function of the cloud terminal video peripheral equipment is effectively realized, and the transmission rate and the real-time performance of video stream data are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a mapping method for a cloud terminal external device according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a mapping method for a cloud terminal external device according to another embodiment of the present application;
fig. 3 is a schematic structural diagram of a server according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a server according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of a cloud terminal according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a cloud terminal according to another embodiment of the present application;
fig. 7 is a schematic structural diagram of a mapping system of a cloud terminal external device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Example one
The embodiment provides a mapping method of external equipment of a cloud terminal, which is used for mapping of video peripheral equipment of the cloud terminal. The execution subject of the present embodiment is a server.
As shown in fig. 1, a schematic flowchart of a mapping method for a cloud terminal external device provided in this embodiment is shown, where the method includes:
And step 102, determining the equipment type of each external equipment according to the equipment list.
And 104, generating a mapping request according to the device type of the target device.
And 105, creating a virtual device with the same device type as the target device according to the mapping request.
And 106, establishing a data logical link between the virtual device and the target device so as to transmit data between the virtual device and the target device.
Specifically, when the external device is connected to the cloud terminal, the cloud terminal may obtain a device list of all the external devices connected to the cloud terminal, where the device list may include device type identifiers corresponding to the external devices, and the cloud terminal sends the device list to the server.
After receiving the device list, the server may determine the device type of each external device according to the device list, and specifically may determine the device type according to the device type identifier corresponding to each external device. After the device type of each external device is determined, the external device in which data transmission needs to be performed using a video stream, that is, the target device, can be determined according to the device type of each external device, and thus the device type of the target device can be determined. The server can generate a mapping request according to the device type of the target device and send the mapping request to the lower layer virtual device bus driver, so that the lower layer virtual device bus driver creates a virtual device with the same device type as the target device on the virtual desktop according to the mapping request. And a data logical link between the virtual device and the target device can be established through the upper layer communication component, so that data transmission is carried out between the virtual device and the target device. Therefore, the virtual mapping of the video peripheral connected with the cloud terminal to the virtual desktop is realized, the functions of the video peripheral can be realized, and the operability of the video peripheral and the transmission efficiency of video stream data are improved.
In the mapping method for the cloud terminal external device provided in this embodiment, by obtaining the device types of all the external devices connected to the cloud terminal, it is determined whether there is a target device that needs to perform data transmission using a video stream, and according to the device type of the target device, a mapping request is generated, so that the lower layer virtual device bus driver creates a virtual device having the same device type as the target device according to the mapping request. The method and the device realize that the USB port number corresponding to the specific USB device does not need to be acquired, reduce the number of signaling transmission times, and improve the efficiency and the accuracy of determining the peripheral device type and establishing the corresponding virtual device. Meanwhile, the data logic link between the virtual equipment and the target equipment enables the operation of the virtual equipment by the server to be sent to the cloud terminal actual equipment through the data logic link, and data returned by the actual equipment can also be returned to the virtual equipment through the data logic link, so that the function of the cloud terminal video peripheral equipment is effectively realized, and the transmission rate and the real-time performance of video stream data are improved.
Example two
The embodiment further supplements and explains the mapping method for the cloud terminal external device provided in the first embodiment.
On the basis of the first embodiment, optionally, after the step 106, the method may further include:
and step 107, acquiring a user operation instruction.
Step 108, converting the user operation instruction into an instruction data packet which can be transmitted by the data logical link.
And step 109, sending the instruction data packet to the cloud terminal through the data logical link, so that the cloud terminal obtains a corresponding operation instruction according to the instruction data packet, sends the operation instruction to the target device, receives video stream data returned by the target device, and feeds the video stream data back to the server.
And step 110, receiving video stream data fed back by the cloud terminal so as to be displayed to a user through the virtual equipment.
Specifically, after a virtual device of the same type as the device of the target device is created in the virtual desktop and a logical data link between the virtual device and the actual target device is established, data transmission may be performed between the virtual device and the actual target device.
When the user operates the virtual equipment through the virtual desktop, the server can obtain a user operation instruction, converts the user operation instruction into an instruction data packet which can be transmitted by the data logic link, and then sends the instruction data packet to the cloud terminal through the data logic link.
After receiving the instruction data packet sent by the server, the cloud terminal can acquire a corresponding operation instruction according to the instruction data packet and send the operation instruction to the actual target device so as to control the target device to execute the operation and return the video stream data, and after receiving the video stream data returned by the target device, the cloud terminal feeds the video stream data back to the server.
After receiving the video stream data fed back by the cloud terminal, the server may display the video stream data to the user through the virtual device corresponding to the target device on the virtual desktop, for example, play a shot video, or display a video recording preview, or a shooting preview effect.
It should be noted that, since the video is shot at a time interval, the server may identify what operation the user operation instruction is, may be a video recording or shooting instruction, or may also be a video recording end or shooting end instruction, and the like, when it is monitored that the user sends the video recording or shooting instruction, the server may control the video peripheral to start recording or shooting through the above process, when it is monitored that the video peripheral stops recording or shooting, during or after the recording or shooting process, the video stream data is returned to the cloud terminal, and the cloud terminal may send the video stream data to the server for display or playing.
On the basis of the first embodiment, optionally, before the step 101, the method may further include:
step 201, receiving a prompt message sent by a cloud terminal for accessing an external device to the cloud terminal.
Step 202, generating a query request according to the prompt message.
Step 203, sending the query request to the cloud terminal, so that the cloud terminal obtains the device information of each external device connected with the cloud terminal according to the query request, generates a device list according to the device information, and sends the device list to the server.
Specifically, when an external device accesses the cloud terminal, the cloud terminal can monitor the external device, and then a prompt message can be generated and sent to the server.
After receiving the prompt message sent by the cloud terminal, the server can generate an inquiry request according to the prompt message and send the inquiry request to the cloud terminal.
After receiving the query request, the cloud terminal acquires device information of all external devices connected to the cloud terminal according to the query request, where the device information may include device type identifiers corresponding to the devices, and the cloud terminal may generate a device list according to the device information and send the device list to the server.
The server may then perform the above-mentioned steps 101-110 after receiving the device list.
In the mapping method for the cloud terminal external device provided in this embodiment, by obtaining the device types of all the external devices connected to the cloud terminal, it is determined whether there is a target device that needs to perform data transmission using a video stream, and according to the device type of the target device, a mapping request is generated, so that the lower layer virtual device bus driver creates a virtual device having the same device type as the target device according to the mapping request. The method and the device realize that the USB port number corresponding to the specific USB device does not need to be acquired, reduce the number of signaling transmission times, and improve the efficiency and the accuracy of determining the peripheral device type and establishing the corresponding virtual device. Meanwhile, the data logic link between the virtual equipment and the target equipment enables the operation of the virtual equipment by the server to be sent to the cloud terminal actual equipment through the data logic link, and data returned by the actual equipment can also be returned to the virtual equipment through the data logic link, so that the function of the cloud terminal video peripheral equipment is effectively realized, and the transmission rate and the real-time performance of video stream data are improved.
EXAMPLE III
The embodiment provides a mapping method of external equipment of a cloud terminal, which is used for mapping of video peripheral equipment of the cloud terminal. The execution subject of the embodiment is a cloud terminal.
As shown in fig. 2, a schematic flowchart of a mapping method for a cloud terminal external device provided in this embodiment is shown, where the method includes:
Sending the equipment list to a server, so that the server determines the equipment type of each external equipment according to the equipment list, determines target equipment needing to adopt video stream for data transmission and the equipment type of the target equipment according to the equipment type of each external equipment, generates a mapping request according to the equipment type of the target equipment, creates virtual equipment with the same equipment type as the target equipment according to the mapping request, establishes a data logical link between the virtual equipment and the target equipment, and enables the virtual equipment and the target equipment to perform data transmission.
It should be noted that the specific operations of steps 301-303 have been described in detail in the above embodiments, and are not described herein again.
In the mapping method for the cloud terminal external device provided in this embodiment, by obtaining the device types of all the external devices connected to the cloud terminal, it is determined whether there is a target device that needs to perform data transmission using a video stream, and according to the device type of the target device, a mapping request is generated, so that the lower layer virtual device bus driver creates a virtual device having the same device type as the target device according to the mapping request. The method and the device realize that the USB port number corresponding to the specific USB device does not need to be acquired, reduce the number of signaling transmission times, and improve the efficiency and the accuracy of determining the peripheral device type and establishing the corresponding virtual device. Meanwhile, the data logic link between the virtual equipment and the target equipment enables the operation of the virtual equipment by the server to be sent to the cloud terminal actual equipment through the data logic link, and data returned by the actual equipment can also be returned to the virtual equipment through the data logic link, so that the function of the cloud terminal video peripheral equipment is effectively realized, and the transmission rate and the real-time performance of video stream data are improved.
Example four
The embodiment further supplements and explains the mapping method of the cloud terminal external device provided by the third embodiment.
On the basis of the third embodiment, optionally, after the step 303, the method may further include:
step 304, receiving the instruction data packet sent by the server through the data logical link.
And 305, acquiring a corresponding operation instruction according to the instruction data packet.
Step 306, sending the operation instruction to the target device to control the target device to execute the operation and return the video stream data.
And step 307, receiving the video stream data returned by the target device.
And 308, feeding back the video stream data to the server so that the server displays the video stream data to the user through the virtual device.
Optionally, step 305 may specifically include:
step 3051, converting the instruction data packet into a Transfer transmission instruction which can be processed by the bottom layer driving interface.
And step 3052, calling a bottom-layer driving interface through the Transfer transmission instruction to obtain a corresponding operation instruction.
Specifically, after receiving an instruction data packet sent by a server through a data logical link, the cloud terminal converts the instruction data packet into a Transfer transmission instruction which can be processed by a bottom layer driving interface, calls the bottom layer driving interface through the Transfer transmission instruction, obtains a corresponding operation instruction, interacts with a target device through a bottom layer driver, and sends the operation instruction to the target device so as to control the target device to execute operation.
Optionally, after receiving the instruction data packet sent by the server through the data logical link, the cloud terminal may determine whether the packet header of the instruction data packet is instruction data, and if the packet header of the instruction data packet is instruction data, convert the instruction data packet into a Transfer transmission instruction that can be processed by the bottom layer drive interface, and perform subsequent steps.
On the basis of the third embodiment, optionally, step 301 may specifically include:
step 3011, when an external device accesses to the cloud terminal, a prompt message is generated.
And step 3012, sending the prompt message to the server, so that the server generates a query request according to the prompt message and sends the query request to the cloud terminal.
Step 3013, receive the query request sent by the server.
And 3014, acquiring device information of each external device connected to the cloud terminal according to the query request.
It should be noted that the specific operations of steps 304-308 and 3011-3014 have been described in detail in the above embodiments, and are not described herein again.
In the mapping method for the cloud terminal external device provided in this embodiment, by obtaining the device types of all the external devices connected to the cloud terminal, it is determined whether there is a target device that needs to perform data transmission using a video stream, and according to the device type of the target device, a mapping request is generated, so that the lower layer virtual device bus driver creates a virtual device having the same device type as the target device according to the mapping request. The method and the device realize that the USB port number corresponding to the specific USB device does not need to be acquired, reduce the number of signaling transmission times, and improve the efficiency and the accuracy of determining the peripheral device type and establishing the corresponding virtual device. Meanwhile, the data logic link between the virtual equipment and the target equipment enables the operation of the virtual equipment by the server to be sent to the cloud terminal actual equipment through the data logic link, and data returned by the actual equipment can also be returned to the virtual equipment through the data logic link, so that the function of the cloud terminal video peripheral equipment is effectively realized, and the transmission rate and the real-time performance of video stream data are improved.
EXAMPLE five
The embodiment provides a server, which is used for executing the mapping method of the cloud terminal external device provided in the first embodiment.
As shown in fig. 3, a schematic structural diagram of the server provided in this embodiment is shown. The server 50 includes a first receiving module 51, a first determining module 52, a first generating module 53, a lower layer virtual device bus driver 54, and an upper layer communication component 55.
The first receiving module 51 is configured to receive an equipment list of external equipment connected to the cloud terminal, where the equipment list includes equipment type identifiers corresponding to the external equipment; the first determining module 52 is configured to determine the device type of each external device according to the device list; the first determining module 52 is further configured to determine, according to the device type of each external device, a target device that needs to perform data transmission using a video stream and a device type of the target device; the first generation module 53 is configured to generate a mapping request according to the device type of the target device; the lower layer virtual device bus driver 54 is configured to create a virtual device of the same device type as the target device according to the mapping request; the upper layer communication component 55 is configured to establish a logical data link between the virtual device and the target device, so as to enable data transmission between the virtual device and the target device.
The specific manner in which each module performs operations has been described in detail in the embodiment of the method with respect to the server in the present embodiment, and will not be elaborated here.
According to the server provided by the embodiment, by acquiring the device types of all the external devices connected with the cloud terminal, whether a target device which needs to perform data transmission by using a video stream exists is judged, and a mapping request is generated according to the device type of the target device, so that the lower layer virtual device bus driver creates a virtual device which is the same as the device type of the target device according to the mapping request. The method and the device realize that the USB port number corresponding to the specific USB device does not need to be acquired, reduce the number of signaling transmission times, and improve the efficiency and the accuracy of determining the peripheral device type and establishing the corresponding virtual device. Meanwhile, the data logic link between the virtual equipment and the target equipment enables the operation of the virtual equipment by the server to be sent to the cloud terminal actual equipment through the data logic link, and data returned by the actual equipment can also be returned to the virtual equipment through the data logic link, so that the function of the cloud terminal video peripheral equipment is effectively realized, and the transmission rate and the real-time performance of video stream data are improved.
EXAMPLE six
This embodiment further supplements the description of the server provided in the fifth embodiment.
As shown in fig. 4, a schematic structural diagram of the server provided in this embodiment is shown. On the basis of the fifth embodiment, optionally, the server 50 may further include: a first acquisition module 56, a first conversion module 57 and a first sending module 58.
Optionally, the first obtaining module 56 is configured to obtain a user operation instruction; the first conversion module 57 is configured to convert the user operation instruction into an instruction data packet that can be transmitted by the data logical link; the first sending module 58 is configured to send the instruction data packet to the cloud terminal through the data logical link, so that the cloud terminal obtains a corresponding operation instruction according to the instruction data packet, sends the operation instruction to the target device, receives video stream data returned by the target device, and feeds the video stream data back to the server; the first receiving module 51 is further configured to receive video stream data fed back by the cloud terminal, so as to be displayed to the user through the virtual device.
Optionally, the first receiving module 51 is further configured to receive a prompt message sent by the cloud terminal that the external device accesses the cloud terminal; the first generating module 53 is further configured to generate a query request according to the prompt message; the first sending module 58 is further configured to send the query request to the cloud terminal, so that the cloud terminal obtains device information of each external device connected to the cloud terminal according to the query request, generates a device list according to the device information, and sends the device list to the server.
The specific manner in which each module performs operations has been described in detail in the embodiment of the method with respect to the server in the present embodiment, and will not be elaborated here.
According to the server of the embodiment, by acquiring the device types of all the external devices connected with the cloud terminal, whether a target device which needs to perform data transmission by using a video stream exists is judged, and a mapping request is generated according to the device type of the target device, so that the lower layer virtual device bus driver creates a virtual device which is the same as the device type of the target device according to the mapping request. The method and the device realize that the USB port number corresponding to the specific USB device does not need to be acquired, reduce the number of signaling transmission times, and improve the efficiency and the accuracy of determining the peripheral device type and establishing the corresponding virtual device. Meanwhile, the data logic link between the virtual equipment and the target equipment enables the operation of the virtual equipment by the server to be sent to the cloud terminal actual equipment through the data logic link, and data returned by the actual equipment can also be returned to the virtual equipment through the data logic link, so that the function of the cloud terminal video peripheral equipment is effectively realized, and the transmission rate and the real-time performance of video stream data are improved.
EXAMPLE seven
The embodiment provides a cloud terminal, which is used for executing the mapping method of the cloud terminal external device provided by the third embodiment.
As shown in fig. 5, a schematic structural diagram of the cloud terminal provided in this embodiment is shown. The cloud terminal 70 includes a second obtaining module 71, a second generating module 72, and a second sending module 73.
The second obtaining module 71 is configured to obtain device information of each external device connected to the cloud terminal, where the device information includes a device type identifier; the second generating module 72 is configured to generate an equipment list according to the equipment information; the second sending module 73 is configured to send the device list to the server, so that the server determines the device type of each external device according to the device list, determines a target device that needs to perform data transmission using a video stream and the device type of the target device according to the device type of each external device, generates a mapping request according to the device type of the target device, creates a virtual device of the same device type as the target device according to the mapping request, establishes a data logical link between the virtual device and the target device, and performs data transmission between the virtual device and the target device.
With regard to the cloud terminal in the present embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment related to the method, and will not be elaborated here.
According to the cloud terminal provided by this embodiment, by acquiring the device types of all the external devices connected to the cloud terminal, it is determined whether there is a target device that needs to perform data transmission using a video stream, and according to the device type of the target device, a mapping request is generated, so that the lower layer virtual device bus driver creates a virtual device of the same device type as the target device according to the mapping request. The method and the device realize that the USB port number corresponding to the specific USB device does not need to be acquired, reduce the number of signaling transmission times, and improve the efficiency and the accuracy of determining the peripheral device type and establishing the corresponding virtual device. Meanwhile, the data logic link between the virtual equipment and the target equipment enables the operation of the virtual equipment by the server to be sent to the cloud terminal actual equipment through the data logic link, and data returned by the actual equipment can also be returned to the virtual equipment through the data logic link, so that the function of the cloud terminal video peripheral equipment is effectively realized, and the transmission rate and the real-time performance of video stream data are improved.
Example eight
The present embodiment further supplements and explains the cloud terminal provided in the seventh embodiment.
As shown in fig. 6, which is a schematic structural diagram of the cloud terminal provided in this embodiment. On the basis of the seventh embodiment, optionally, the cloud terminal 70 may further include a second receiving module 74, a second determining module 75, and an underlying driver 76.
Optionally, the second receiving module 74 is configured to receive an instruction data packet sent by the server through the data logical link; the second determining module 75 is configured to obtain a corresponding operation instruction according to the instruction data packet; the underlying driver 76 is configured to send an operation instruction to the target device to control the target device to perform an operation and return video stream data; the second receiving module 74 is further configured to receive video stream data returned by the target device; the second sending module 73 is further configured to feed back the video stream data to the server, so that the server displays the video stream data to the user through the virtual device.
Optionally, the second generating module 72 is further configured to generate a prompt message when an external device accesses the cloud terminal; the second sending module 73 is further configured to send the prompt message to the server, so that the server generates an inquiry request according to the prompt message and sends the inquiry request to the cloud terminal; the second receiving module 74 is further configured to receive a query request sent by the server; the second obtaining module 71 is further configured to obtain device information of each external device connected to the cloud terminal according to the query request.
Optionally, the second determining module 75 may specifically include a conversion sub-module and a processing sub-module.
The conversion submodule is used for converting the instruction data packet into a Transfer transmission instruction which can be processed by the bottom layer driving interface; and the processing submodule is used for calling the bottom layer driving interface through the Transfer transmission instruction to acquire a corresponding operation instruction.
With regard to the cloud terminal in the present embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment related to the method, and will not be elaborated here.
According to the cloud terminal of the embodiment, by acquiring the device types of all the external devices connected with the cloud terminal, whether a target device needing to perform data transmission by using a video stream exists is judged, and a mapping request is generated according to the device type of the target device, so that the lower layer virtual device bus driver creates a virtual device with the same device type as the target device according to the mapping request. The method and the device realize that the USB port number corresponding to the specific USB device does not need to be acquired, reduce the number of signaling transmission times, and improve the efficiency and the accuracy of determining the peripheral device type and establishing the corresponding virtual device. Meanwhile, the data logic link between the virtual equipment and the target equipment enables the operation of the virtual equipment by the server to be sent to the cloud terminal actual equipment through the data logic link, and data returned by the actual equipment can also be returned to the virtual equipment through the data logic link, so that the function of the cloud terminal video peripheral equipment is effectively realized, and the transmission rate and the real-time performance of video stream data are improved.
Example nine
The embodiment provides a mapping system of a cloud terminal external device, which is used for executing the mapping method of the cloud terminal external device provided by the embodiment.
As shown in fig. 7, it is a schematic structural diagram of the mapping system of the cloud terminal external device provided in this embodiment. The mapping system 90 of the cloud terminal external device includes the server 50 provided in any of the above embodiments and the cloud terminal 70 provided in any of the above embodiments. It is understood that the cloud terminal and the server are connected through a network.
Optionally, the system 90 may further include external devices connected to the cloud terminal.
The specific manner in which the modules of the respective components perform operations has been described in detail in the embodiments related to the method, and will not be elaborated herein.
According to the mapping system for the cloud terminal external devices provided by the embodiment, the device types of all the external devices connected with the cloud terminal are obtained through the server, whether a target device needing to adopt a video stream for data transmission exists is judged, and a mapping request is generated according to the device type of the target device, so that the lower layer virtual device bus driver creates the virtual device with the same device type as the target device according to the mapping request. The method and the device realize that the USB port number corresponding to the specific USB device does not need to be acquired, reduce the number of signaling transmission times, and improve the efficiency and the accuracy of determining the peripheral device type and establishing the corresponding virtual device. Meanwhile, the data logic link between the virtual equipment and the target equipment enables the operation of the virtual equipment by the server to be sent to the cloud terminal actual equipment through the data logic link, and data returned by the actual equipment can also be returned to the virtual equipment through the data logic link, so that the function of the cloud terminal video peripheral equipment is effectively realized, and the transmission rate and the real-time performance of video stream data are improved.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
Claims (11)
1. A mapping method of external equipment of a cloud terminal is characterized by comprising the following steps:
receiving an equipment list of external equipment connected with a cloud terminal, wherein the equipment list comprises equipment type identifiers corresponding to the external equipment;
determining the equipment type of each external equipment according to the equipment list;
determining target equipment needing to adopt video stream for data transmission and equipment types of the target equipment according to the equipment types of the external equipment;
generating a mapping request according to the device type of the target device;
creating virtual equipment with the same equipment type as the target equipment according to the mapping request;
establishing a data logical link between the virtual device and the target device so as to enable data transmission between the virtual device and the target device;
before receiving a device list of external devices connected with a cloud terminal, which is sent by the cloud terminal, the method further includes:
receiving a prompt message sent by the cloud terminal and used for accessing the external equipment to the cloud terminal;
generating a query request according to the prompt message;
and sending the query request to the cloud terminal so that the cloud terminal can acquire the equipment information of each external equipment connected with the cloud terminal according to the query request, generate the equipment list according to the equipment information and send the equipment list to a server.
2. The method of claim 1, wherein after establishing the logical link for data between the virtual device and the target device for data transmission between the virtual device and the target device, the method further comprises:
acquiring a user operation instruction;
converting the user operation instruction into an instruction data packet which can be transmitted by the data logic link;
sending the instruction data packet to the cloud terminal through the data logical link, so that the cloud terminal obtains a corresponding operation instruction according to the instruction data packet, sends the operation instruction to the target device, receives video stream data returned by the target device, and feeds the video stream data back to a server;
and receiving video stream data fed back by the cloud terminal so as to be displayed to a user through the virtual equipment.
3. A mapping method of external equipment of a cloud terminal is characterized by comprising the following steps:
acquiring equipment information of each external equipment connected with a cloud terminal, wherein the equipment information comprises an equipment type identifier;
generating an equipment list according to the equipment information;
sending the equipment list to a server, so that the server determines the equipment type of each external equipment according to the equipment list, determines target equipment needing to adopt video stream for data transmission and the equipment type of the target equipment according to the equipment type of each external equipment, generates a mapping request according to the equipment type of the target equipment, creates virtual equipment with the same equipment type as the target equipment according to the mapping request, establishes a data logical link between the virtual equipment and the target equipment, and enables the virtual equipment and the target equipment to perform data transmission;
the acquiring of the device information of each external device connected to the cloud terminal includes:
when an external device is accessed to the cloud terminal, generating a prompt message and sending the prompt message to a server, so that the server generates a query request according to the prompt message and sends the query request to the cloud terminal;
receiving a query request sent by a server;
and acquiring the equipment information of each external equipment connected with the cloud terminal according to the query request.
4. The method of claim 3, wherein after sending the device manifest to a server, the method further comprises:
receiving an instruction data packet sent by the server through a data logic link;
acquiring a corresponding operation instruction according to the instruction data packet, and sending the operation instruction to the target equipment so as to control the target equipment to execute operation and return video stream data;
and receiving video stream data returned by the target device, and feeding back the video stream data to the server, so that the server displays the video stream data to a user through the virtual device.
5. The method according to claim 4, wherein the obtaining the corresponding operation command according to the command packet comprises:
converting the instruction data packet into a Transfer transmission instruction which can be processed by a bottom layer driving interface;
and calling a bottom layer driving interface through the Transfer transmission instruction to acquire a corresponding operation instruction.
6. A server, comprising:
the device list comprises device type identifiers corresponding to the external devices;
the first determining module is used for determining the equipment type of each external equipment according to the equipment list;
the first determining module is further configured to determine, according to the device type of each of the external devices, a target device that needs to perform data transmission using a video stream and a device type of the target device;
the first generation module is used for generating a mapping request according to the equipment type of the target equipment;
the lower-layer virtual equipment bus driver is used for creating virtual equipment with the same equipment type as the target equipment according to the mapping request;
the upper layer communication component is used for establishing a data logical link between the virtual device and the target device so as to enable the virtual device and the target device to perform data transmission;
the first receiving module is further configured to receive a prompt message sent by the cloud terminal that the external device accesses the cloud terminal;
the first generating module is further configured to generate a query request according to the prompt message;
the first sending module is used for sending the query request to the cloud terminal so that the cloud terminal can obtain the equipment information of each external equipment connected with the cloud terminal according to the query request, generate the equipment list according to the equipment information and send the equipment list to a server.
7. The server of claim 6, further comprising:
the first acquisition module is used for acquiring a user operation instruction;
the first conversion module is used for converting the user operation instruction into an instruction data packet which can be transmitted by the data logic link;
the first sending module is further configured to send the instruction data packet to the cloud terminal through the data logical link, so that the cloud terminal obtains a corresponding operation instruction according to the instruction data packet, sends the operation instruction to the target device, receives video stream data returned by the target device, and feeds the video stream data back to a server;
the first receiving module is further configured to receive video stream data fed back by the cloud terminal, so as to be displayed to a user through the virtual device.
8. A cloud terminal, comprising:
the second acquisition module is used for acquiring equipment information of each external equipment connected with the cloud terminal, wherein the equipment information comprises an equipment type identifier;
the second generation module is used for generating an equipment list according to the equipment information;
a second sending module, configured to send the device list to a server, so that the server determines, according to the device list, a device type of each external device, determines, according to the device type of each external device, a target device that needs to perform data transmission using a video stream and a device type of the target device, generates a mapping request according to the device type of the target device, creates, according to the mapping request, a virtual device of the same device type as the target device, and establishes a data logical link between the virtual device and the target device, so that data transmission is performed between the virtual device and the target device;
the second generating module is further used for generating a prompt message when an external device is accessed to the cloud terminal;
the second sending module is further configured to send the prompt message to a server, so that the server generates a query request according to the prompt message and sends the query request to the cloud terminal;
the second receiving module is used for receiving the query request sent by the server;
the second obtaining module is further configured to obtain device information of each external device connected to the cloud terminal according to the query request.
9. The cloud terminal of claim 8, further comprising:
the second receiving module is further configured to receive an instruction data packet sent by the server through a data logical link;
the second determining module is used for acquiring a corresponding operation instruction according to the instruction data packet;
the bottom layer driver is used for sending an operation instruction to the target equipment so as to control the target equipment to execute operation and return video stream data;
the second receiving module is further configured to receive video stream data returned by the target device;
the second sending module is further configured to feed back the video stream data to the server, so that the server displays the video stream data to a user through the virtual device.
10. The cloud terminal of claim 9, wherein the second determining module comprises:
the conversion submodule is used for converting the instruction data packet into a Transfer transmission instruction which can be processed by a bottom layer driving interface;
and the processing submodule is used for calling a bottom layer driving interface through the Transfer transmission instruction to acquire a corresponding operation instruction.
11. A mapping system of a cloud terminal external device is characterized by comprising:
the server according to claim 6 or 7 and the cloud terminal according to any of claims 8-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711127762.8A CN107846466B (en) | 2017-11-15 | 2017-11-15 | Mapping method of cloud terminal external equipment, server, cloud terminal and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711127762.8A CN107846466B (en) | 2017-11-15 | 2017-11-15 | Mapping method of cloud terminal external equipment, server, cloud terminal and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107846466A CN107846466A (en) | 2018-03-27 |
CN107846466B true CN107846466B (en) | 2020-04-07 |
Family
ID=61678923
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711127762.8A Active CN107846466B (en) | 2017-11-15 | 2017-11-15 | Mapping method of cloud terminal external equipment, server, cloud terminal and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107846466B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108810583A (en) * | 2018-06-26 | 2018-11-13 | 中国联合网络通信集团有限公司 | The method, apparatus of video steaming transfer, equipment and medium under desktop virtual environment |
CN108965768B (en) * | 2018-08-08 | 2021-03-02 | 西安万像电子科技有限公司 | Method and system for transmitting multimedia data |
CN109395372B (en) * | 2018-12-07 | 2021-02-26 | 上海达龙信息科技有限公司 | Method, system and electronic equipment for realizing remote control of computer game by gamepad |
CN112131146B (en) * | 2019-06-24 | 2022-07-12 | 维塔科技(北京)有限公司 | Method and device for acquiring equipment information, storage medium and electronic equipment |
CN111405059B (en) * | 2020-03-26 | 2023-07-11 | 北京自如信息科技有限公司 | Cloud device data transmission method, electronic device and Internet of things system |
CN113691465B (en) * | 2020-05-19 | 2023-05-26 | 阿里巴巴集团控股有限公司 | Data transmission method, intelligent network card, computing device and storage medium |
CN113407044B (en) * | 2021-07-16 | 2023-06-09 | 北京百度网讯科技有限公司 | Method, device, equipment and storage medium for simulating terminal handle input |
CN113805952B (en) * | 2021-09-17 | 2023-10-31 | 中国联合网络通信集团有限公司 | Peripheral virtualization management method, server and system |
CN114938384B (en) * | 2022-04-25 | 2024-09-13 | 惠州华阳通用电子有限公司 | Virtualization device and method based on regional EEA architecture |
CN115253284A (en) * | 2022-07-20 | 2022-11-01 | 天翼安全科技有限公司 | Game control method and device, electronic equipment and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105100157A (en) * | 2014-05-15 | 2015-11-25 | 中兴通讯股份有限公司 | USB equipment mapping and interaction methods, apparatuses, cloud terminal, and cloud server |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8433873B2 (en) * | 2010-03-04 | 2013-04-30 | Apple Inc. | Disposition instructions for extended access commands |
CN101980143B (en) * | 2010-10-26 | 2012-02-01 | 南开大学 | Method for simultaneously displaying multiple computer desktops on single physical projector |
EP3355561B1 (en) * | 2012-09-10 | 2021-04-28 | Samsung Electronics Co., Ltd. | Method for connecting mobile terminal and external display and apparatus implementing the same |
CN104994077A (en) * | 2015-06-08 | 2015-10-21 | 北京奇虎科技有限公司 | Wireless local area network access equipment identity marking method and device |
CN105263175A (en) * | 2015-10-29 | 2016-01-20 | 华为技术有限公司 | Networking method for intelligent equipment, intelligent equipment and mobile terminal |
CN107239272B (en) * | 2017-04-10 | 2020-09-29 | 成都长天信息技术有限公司 | Video capture equipment redirection method and device |
CN107277163B (en) * | 2017-07-21 | 2020-07-14 | 奇安信科技集团股份有限公司 | Equipment remote mapping method and device |
-
2017
- 2017-11-15 CN CN201711127762.8A patent/CN107846466B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105100157A (en) * | 2014-05-15 | 2015-11-25 | 中兴通讯股份有限公司 | USB equipment mapping and interaction methods, apparatuses, cloud terminal, and cloud server |
Also Published As
Publication number | Publication date |
---|---|
CN107846466A (en) | 2018-03-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107846466B (en) | Mapping method of cloud terminal external equipment, server, cloud terminal and system | |
US10698717B2 (en) | Accelerator virtualization method and apparatus, and centralized resource manager | |
US10354430B2 (en) | Image update method, system, and apparatus | |
US10009303B2 (en) | Message push method and apparatus | |
CN108174248B (en) | Video playing method, video playing control device and storage medium | |
US20200107057A1 (en) | Video coding method, system and server | |
US10165058B2 (en) | Dynamic local function binding apparatus and method | |
CN110489440B (en) | Data query method and device | |
CN102402413A (en) | Electronic system communicating with image sensor, controller and controlling method | |
CN112073758A (en) | Cloud desktop screen projection method and device, computer equipment, computer readable storage medium and cloud desktop screen projection interaction system | |
US10810024B2 (en) | Redirection method and apparatus, and system | |
US8954851B2 (en) | Adding video effects for video enabled applications | |
CN113778593B (en) | Cloud desktop control method and device, electronic equipment, storage medium and program product | |
US20120117472A1 (en) | Systems and Methods for Application of Special Effects to a Captured Video Stream | |
CN111143017B (en) | Cloud operation system interaction processing method, client and cloud operation system | |
CN113010381A (en) | Method and equipment for managing components | |
CN103299298A (en) | Service processing method and system | |
WO2023077866A1 (en) | Multimedia data processing method and apparatus, electronic device, and storage medium | |
CN113452948B (en) | Conference terminal control method, device, equipment and storage medium | |
US9088631B2 (en) | Game streaming system and method of supporting the multiuser and multiplatform | |
CN114051155A (en) | Video stream acquisition method, server and storage medium | |
US11973994B2 (en) | Media processing method | |
CN114338830A (en) | Data transmission method and device, computer readable storage medium and computer equipment | |
CN113055350B (en) | Data transmission method, device, equipment and readable storage medium | |
CN104869133A (en) | Data recording method, system and access server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |