WO2013082783A1 - 数据处理方法及设备 - Google Patents
数据处理方法及设备 Download PDFInfo
- Publication number
- WO2013082783A1 WO2013082783A1 PCT/CN2011/083692 CN2011083692W WO2013082783A1 WO 2013082783 A1 WO2013082783 A1 WO 2013082783A1 CN 2011083692 W CN2011083692 W CN 2011083692W WO 2013082783 A1 WO2013082783 A1 WO 2013082783A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- usb
- priority
- data
- devices
- usb devices
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0042—Universal serial bus [USB]
Definitions
- the present invention relates to data processing technologies, and in particular, to a data processing method and device. Background technique
- the cloud terminal (Thin Client, TC) can be simplified into a simple input and output device, and the cloud server provides the processing capability of all applications of the cloud terminal.
- the cloud terminal can log in to the cloud server through the remote desktop protocol to perform operations such as desktop access, application software access, and data storage.
- USB universal serial bus
- the cloud server can detect the USB device through the remote desktop protocol, and load the driver of the USB device, so that the USB device can be normally performed through the server.
- Data transfer such as: data write, data read (for example: read from a USB device, or read via a USB device).
- the invention provides a data processing method and device for ensuring real-time transmission of a USB device.
- the data of the at least two USB devices is transmitted using a remote desktop protocol according to the priority of the at least two USB devices.
- a data processing device including a driving unit, a priority control unit, and a protocol stack unit;
- the driving unit is configured to obtain a device type of a USB device inserted into the cloud terminal, and send the device type of the USB device to the priority control unit;
- the priority control unit is configured to receive a device type of the USB device sent by the driving unit, and determine, according to the device type of the USB device, the USB device corresponding to the device type of the USB device Priority, and according to the priority of the at least two USB devices, the protocol stack unit is configured to send the received data of the at least two USB devices sent by the priority control unit by using a remote desktop protocol.
- the embodiment of the present invention determines the device type of the USB device inserted into the cloud terminal, and determines the priority of the USB device corresponding to the device type of the USB device according to the device type of the USB device, thereby enabling
- the data of the at least two USB devices is sent by using the remote desktop protocol according to the priority of the at least two USB devices, so that the real-time transmission of the partial USB devices can be preferentially guaranteed according to the priority, thereby avoiding multiple The real-time transmission of all USB devices caused by USB devices being transmitted through the cloud server cannot be guaranteed.
- FIG. 1 is a schematic flowchart of a data processing method according to an embodiment of the present invention.
- FIG. 2 is a schematic flowchart of a data processing method according to another embodiment of the present invention.
- FIG. 3 is a schematic flowchart of a data processing method according to another embodiment of the present invention.
- FIG. 4 is a schematic structural diagram of a data processing device according to another embodiment of the present invention.
- the technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is apparent that the described embodiments are a part of the embodiments of the invention, rather than all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
- FIG. 1 is a schematic flowchart of a data processing method according to an embodiment of the present invention.
- the data processing method provided in this embodiment may be a cloud terminal, or may be a cloud server, which is not limited in this embodiment.
- the data processing method in this embodiment may include:
- the device type of the above USB device may include, but is not limited to, a USB storage device, a USB audio device, or a USB video device.
- the cloud terminal may determine a priority of the USB device corresponding to the device type of the USB device according to the device type of the USB device when detecting the insertion of the USB device.
- the cloud server may determine, according to the device type of the at least two USB devices, the device type of the at least two USB devices when the data of the at least two USB devices needs to be sent. Corresponding to the priority of the above at least two USB devices.
- the correspondence between the device type of the USB device and the priority of the USB device may be further established according to the real-time requirement of the USB device.
- the correspondence between the device type of the USB device and the priority of the USB device can be as shown in Table 1.
- the at least two USB devices may be allocated corresponding buffers according to the priorities of the at least two USB devices, and the priority of the buffers is consistent with the priorities of the at least two USB devices;
- the priority of the buffer sends the data of the USB device stored in the above buffer.
- the foregoing data may be a control command for controlling an USB device by an application running in the cloud server, or may also be data written by a storage operation of the USB device by an application running in the cloud service.
- the foregoing data may also be status information sent by the USB device to the application running in the cloud server through the cloud terminal, or may also be read by the application running in the cloud service (for example: from the USB device) Read in, or read from a USB device) the data read by the operation.
- the device type of the USB device inserted into the cloud terminal is obtained, and according to the device type of the USB device, the priority of the USB device corresponding to the device type of the USB device is determined, so that the USB device can be configured according to at least two USB devices.
- the priority of the device using the remote desktop protocol to send data of the at least two USB devices, can ensure the real-time transmission of the USB device, thereby avoiding the data transmission caused by multiple USB devices through the cloud server in the prior art. The real-time transmission of USB devices cannot be guaranteed.
- the cloud terminal and the cloud server are connected through an IP network.
- the cloud terminal can log in to the cloud server through the remote desktop protocol to perform operations such as desktop access, application software access, and data storage.
- a rate threshold for example, the transmission of the IP network is unstable, and may further be based on at least two
- the priority of the USB devices is such that the synchronous transmission transaction data in the data of the at least two USB devices is discarded, and the delay of the synchronous transmission transaction data is greater than or equal to the delay threshold, thereby alleviating the transmission pressure of the network.
- FIG. 2 is a schematic flowchart of a data processing method according to another embodiment of the present invention.
- the embodiment is applicable to a cloud terminal, where the cloud terminal includes a driving unit (including a main controller driving unit and a virtual USB driving unit), and a priority control unit. And protocol stack unit.
- the data processing method of this embodiment may include:
- the driving unit detects a USB storage device, a USB audio device, and a USB video device that the user inserts into the cloud terminal, and obtains a device type of the USB storage device, the USB audio device, and the USB video device.
- the device types of the USB storage device, the USB audio device, and the USB video device are respectively a storage device, an audio device, and a video device.
- a drive unit of the cloud terminal and a drive unit of the cloud server (including a virtual host controller drive)
- the unit of the USB storage device, the USB audio device, and the USB video device that the drive unit of the cloud terminal will obtain during the process of interactively loading the above USB storage device, USB audio device, and USB video device driver.
- the priority control unit determines a priority of the USB storage device, the USB audio device, and the USB video device according to the obtained device type, and assigns a corresponding to the USB storage device, the USB audio device, and the USB video device according to the priority.
- the priority of the buffer is consistent with the priority of the USB storage device, the USB audio device, and the USB video device.
- the priority control unit can determine that the USB video device has a priority of 1 according to Table 1, the USB audio device has a priority of 2, and the USB storage device has a priority of 3, indicating that the USB video device has the highest priority, and the USB storage device has the highest priority. The device has the lowest priority.
- the priority control unit puts the data of the USB storage device, the USB audio device, and the USB video device into a corresponding buffer.
- the priority control unit sends the data of the USB device stored in the buffer in the buffer unit to the protocol stack unit according to the priority of the buffer.
- the protocol stack unit sequentially sends the received data of the USB device stored in the buffer to the cloud server.
- the priority control unit of the cloud terminal determines the device type of the USB device inserted into the cloud terminal sent by the driving unit, and determines the USB device corresponding to the device type of the USB device according to the device type of the USB device.
- the priority level enables the priority control unit to transmit the data of the USB storage device, the USB audio device, and the USB video device through the protocol stack unit according to the priority of at least two USB devices, thereby ensuring the real-time transmission of the USB device, thereby The problem that the real-time transmission of the USB device cannot be guaranteed due to the data transmission of the plurality of USB devices through the cloud server together in the prior art is avoided.
- FIG. 3 is a schematic flowchart of a data processing method according to another embodiment of the present invention.
- the embodiment is applicable to a cloud server, where the cloud server includes a driving unit (including a virtual host controller driving unit and a USB driving unit), and a priority control unit. And protocol stack unit.
- the data processing method of this embodiment may include:
- the cloud terminal detects that the user inserts the USB storage device and the USB audio device of the cloud terminal. And USB video devices, and the other 'J get the USB storage device, USB audio device and USB video device device type;
- the device types of the USB storage device, the USB audio device, and the USB video device are respectively a storage device, an audio device, and a video device.
- the cloud terminal is in the process of loading the driving device of the USB storage device, the USB audio device, and the USB video device by the driving unit of the cloud terminal (including the main controller driving unit and the virtual USB driving unit) and the driving unit of the cloud server.
- the driving unit of the cloud terminal including the main controller driving unit and the virtual USB driving unit
- the priority control unit determines the priority of the USB storage device, the USB audio device, and the USB video device according to the obtained device type. And assigning a corresponding buffer to the USB storage device, the USB audio device, and the USB video device according to the priority; wherein the priority of the buffer is the same as that of the USB storage device, the USB audio device, and the USB video device The priorities are the same.
- the priority control unit can determine that the USB video device has a priority of 1 according to Table 1, the USB audio device has a priority of 2, and the USB storage device has a priority of 3, indicating that the USB video device has the highest priority, and the USB storage device has the highest priority. The device has the lowest priority.
- the priority control unit puts the data of the USB storage device, the USB audio device, and the USB video device into a corresponding buffer.
- the priority control unit sends the data of the USB device stored in the buffer in the buffer unit to the protocol stack unit according to the priority of the buffer.
- the protocol stack unit sequentially sends the received data of the USB device stored in the buffer to the cloud terminal, so that the cloud terminal sends the data to the corresponding USB device.
- the priority control unit of the cloud server determines the device type of the USB device inserted into the cloud terminal sent by the driving unit, and determines the USB device corresponding to the device type of the USB device according to the device type of the USB device.
- the priority level enables the priority control unit to transmit the data of the USB storage device, the USB audio device and the USB video device through the protocol stack unit according to the priority of the at least two USB devices, thereby ensuring the real-time transmission of the USB device, thereby Avoiding the prior art due to multiple USB devices coming together through the cloud cloud server The real-time transmission of USB devices caused by data transmission cannot be guaranteed.
- FIG. 4 is a schematic structural diagram of a data processing device according to another embodiment of the present invention.
- the data processing device of this embodiment may include a driving unit 41, a priority control unit 42, and a protocol stack unit 43.
- the driving unit 41 is configured to obtain a device type of the USB device inserted into the cloud terminal, and send the device type of the USB device to the priority control unit 42.
- the priority control unit 42 is configured to receive the a device type of the USB device, and determining a priority of the USB device corresponding to the device type of the USB device according to the device type of the USB device, and passing the driving unit 41 according to the priority of the at least two USB devices Sending data of the at least two USB devices to the protocol stack unit protocol stack unit 43; the protocol stack unit 43 is configured to send at least two USBs sent by the received priority control unit 42 by using a remote desktop protocol Device data.
- FIG. 1, FIG. 2 and FIG. 3 can all be implemented by the data processing device provided in this embodiment.
- the priority control unit 42 in this embodiment may specifically allocate a corresponding buffer to the at least two USB devices according to the priority of the at least two USB devices, and the priority of the buffer is The priorities of the at least two USB devices are the same, and the data of the USB device stored in the buffer is sent to the protocol stack unit 43 by the driving unit 41 according to the priority of the buffer.
- the driving unit 41 may specifically determine, according to the device type of the USB device, the device corresponding to the device type of the USB device when the driving unit 41 detects the USB device insertion. The priority of the USB device.
- the driving unit 41 may specifically: when the data of the at least two USB devices needs to be sent, according to Determining, by the device type of the at least two USB devices, a priority of the at least two USB devices corresponding to device types of the at least two USB devices.
- the cloud terminal and the cloud server are connected through an IP network.
- the cloud terminal can log in to the cloud server through the remote desktop protocol to perform operations such as desktop access, application software access, and data storage.
- the priority control unit 42 may further further according to the at least two The priority of the USB device discards the synchronous transmission transaction data in the data of the at least two USB devices, and the delay of the synchronous transmission transaction data is greater than or equal to the delay threshold.
- the data processing device obtains, by the priority control unit, the device type of the USB device inserted into the cloud terminal sent by the driving unit, and determines the USB device corresponding to the device type of the USB device according to the device type of the USB device.
- the priority of the priority control unit enables the priority control unit to transmit the data of the at least two USB devices through the protocol stack unit according to the priority of the at least two USB devices, thereby ensuring the real-time transmission of the USB device, thereby avoiding the prior art. Due to the data transmission of multiple USB devices together through the cloud server, the real-time transmission of the USB device cannot be guaranteed.
- the cloud terminal and the cloud server are connected through an IP network.
- the cloud terminal can log in to the cloud server through the remote desktop protocol to perform operations such as desktop access, application software access, and data storage.
- the sending unit 43 in this embodiment may be further configured to: when the data sending rate between the cloud terminal and the cloud server is less than or equal to a rate threshold, discarding the foregoing according to the priority of the at least two USB devices.
- the synchronous transmission transaction data in the data of the two USB devices, the delay of the synchronous transmission transaction data is greater than or equal to the delay threshold.
- the disclosed system, apparatus, and method may be implemented in other manners.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
- Another point that is shown or discussed between each other The coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
- the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
- the above software functional units are stored in a storage medium and include a number of instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform some of the steps of the methods described in various embodiments of the present invention.
- the foregoing storage medium includes: a USB flash drive, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. Medium.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Systems (AREA)
- Computer And Data Communications (AREA)
Abstract
本发明实施例提供一种数据处理方法及设备。本发明实施例通过获得插入云终端的USB设备的设备类型,并根据上述USB设备的设备类型,确定与上述USB设备的设备类型对应的上述USB设备的优先级,使得能够根据至少两个USB设备的优先级,利用远程桌面协议发送上述至少两个USB设备的数据,能够保证USB设备的传输实时性,从而避免了现有技术中由于多个USB设备一起通过云服务器进行数据传输而导致的USB设备的传输实时性无法得到保证的问题。
Description
数据处理方法及设备
技术领域
本发明涉及数据处理技术, 尤其涉及一种数据处理方法及设备。 背景技术
云计算 ( Cloud Computing ) 系统中, 云终端即瘦终端 ( Thin Client, 简 称 TC )可以简化成一个单纯的输入输出设备, 由云服务器提供该云终端所有 应用的处理能力。 云终端可以通过远程桌面协议登录到云服务器上, 进行桌 面接入、应用软件访问、数据存储等操作。 当通用串行总线( Universal Serial Bus, 简称 USB )设备插入云终端时, 云服务器可以通过远程桌面协议检测 到该 USB设备, 并加载该 USB设备的驱动, 以使得上述 USB设备能够通 过服务器正常进行数据传输, 例如: 数据写入、 数据读取(例如: 从 USB设 备中读取, 或者通过 USB设备读取)等。
然而,如果多个 USB设备一起通过云服务器进行数据传输,会占用过大 的网络带宽, 多个 USB设备的数据可能会随机丟失, 导致 USB设备的传输 实时性无法得到保证。 发明内容
本发明提供一种数据处理方法及设备, 用以保证 USB设备的传输实时 性。
一方面提供了一种数据处理方法, 包括:
获得插入云终端的 USB设备的设备类型;
根据所述 USB设备的设备类型, 确定与所述 USB设备的设备类型对应 的所述 USB设备的优先级;
根据至少两个 USB设备的优先级,利用远程桌面协议发送所述至少两个 USB设备的数据。
另一方面提供了一种数据处理设备, 包括驱动单元、 优先级控制单元和 协议栈单元;
所述驱动单元, 用于获得插入云终端的 USB设备的设备类型, 并将所述 USB设备的设备类型发送给所述优先级控制单元;
所述优先级控制单元,用于接收所述驱动单元发送的所述 USB设备的设 备类型, 并根据所述 USB设备的设备类型, 确定与所述 USB设备的设备类 型对应的所述 USB设备的优先级, 并根据至少两个 USB设备的优先级, 通 所述协议栈单元, 用于利用远程桌面协议, 发送接收到的所述优先级控 制单元发送的至少两个 USB设备的数据。
由上述技术方案可知,本发明实施例通过获得插入云终端的 USB设备的 设备类型, 并根据上述 USB设备的设备类型, 确定与上述 USB设备的设备 类型对应的上述 USB设备的优先级, 使得能够根据至少两个 USB设备的优 先级, 利用远程桌面协议发送上述至少两个 USB设备的数据,从而可以根据 优先级, 优先保证部分 USB设备的传输实时性, 从而避免了现有技术中由于 多个 USB设备一起通过云服务器进行数据传输而导致的所有 USB设备的传 输实时性无法得到保证的问题。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下 面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在 不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明一实施例提供的数据处理方法的流程示意图;
图 2为本发明另一实施例提供的数据处理方法的流程示意图;
图 3为本发明另一实施例提供的数据处理方法的流程示意图;
图 4为本发明另一实施例提供的数据处理设备的结构示意图。 具体实施方式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述,
显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。
图 1 为本发明一实施例提供的数据处理方法的流程示意图, 本实施例所 提供的数据处理方法可以是云终端, 或者还可以是云服务器, 本实施例对此 不进行限定。 如图 1所示, 本实施例的数据处理方法可以包括:
101、 获得插入云终端的 USB设备的设备类型;
例如:上述 USB设备的设备类型可以包括但不限于 USB存储设备、 USB 音频设备或 USB视频设备。
102、 根据上述 USB设备的设备类型, 确定与上述 USB设备的设备类 型对应的上述 USB设备的优先级;
可选地, 云终端可以在检测到 USB设备插入时, 根据上述 USB设备的 设备类型,确定与上述 USB设备的设备类型对应的上述 USB设备的优先级。
可选地,为了节省云服务器的资源,云服务器可以在有上述至少两个 USB 设备的数据需要发送时,根据上述至少两个 USB设备的设备类型, 确定与上 述至少两个 USB设备的设备类型对应的上述至少两个 USB设备的优先级。
在 102之前, 本实施例中, 还可以进一步根据 USB设备对实时性的要 求,建立 USB设备的设备类型与 USB设备的优先级的对应关系。例如: USB 设备的设备类型与 USB设备的优先级的对应关系可以如表 1所示。
表 1 USB设备的设备类型与 USB设备的优先级的对应关系
103、 根据至少两个 USB设备的优先级, 利用远程桌面协议发送上述至 少两个 USB设备的数据。
例如: 可以根据至少两个 USB设备的优先级, 为上述至少两个 USB设 备分配对应的緩冲区,上述緩冲区的优先级与上述至少两个 USB设备的优先 级一致;然后,根据上述緩冲区的优先级,依次发送上述緩冲区中存储的 USB 设备的数据。
可选地,上述数据可以为云服务器中运行的应用程序对 USB设备进行控 制的控制命令,或者还可以为云服务中运行的应用程序对 USB设备进行存储 操作所写入的数据。
可选地,上述数据还可以为 USB设备通过云终端向云服务器中运行的应 用程序发送的状态信息,或者还可以为云服务中运行的应用程序对 USB设备 进行读取(例如: 从 USB设备中读取, 或者通过 USB设备读取)操作所读 取的数据。
本实施例中, 通过获得插入云终端的 USB设备的设备类型, 并根据上述 USB设备的设备类型,确定与上述 USB设备的设备类型对应的上述 USB设 备的优先级,使得能够根据至少两个 USB设备的优先级, 利用远程桌面协议 发送上述至少两个 USB设备的数据, 能够保证 USB设备的传输实时性, 从 而避免了现有技术中由于多个 USB设备一起通过云服务器进行数据传输而 导致的 USB设备的传输实时性无法得到保证的问题。
一般来说, 云终端与云服务器之间是通过 IP网络连接的, 云终端可以通 过远程桌面协议登录到云服务器上, 进行桌面接入、 应用软件访问、 数据存 储等操作。 可选地, 本实施例中, 在 103之前、 同时或者之后, 如果云终端 与云服务器之间的数据发送速率小于或等于速率阈值, 例如: IP网络的传输 不稳定, 还可以进一步根据至少两个 USB设备的优先级, 丟弃上述至少两个 USB设备的数据中的同步传输事务数据, 上述同步传输事务数据的时延大于 或等于时延阈值, 从而緩解了网络的传输压力。
图 2为本发明另一实施例提供的数据处理方法的流程示意图, 本实施例 适用于云终端, 该云终端包括驱动单元(包括主控制器驱动单元和虚拟 USB 驱动单元) 、 优先级控制单元和协议栈单元。 本实施例的数据处理方法可以 包括:
201、驱动单元检测到用户插入该云终端的 USB存储设备、 USB音频设 备和 USB视频设备, 并分另 'J获得 USB存储设备、 USB音频设备和 USB视 频设备的设备类型;
其中, USB存储设备、 USB音频设备和 USB视频设备的设备类型分别 为存储设备、 音频设备和视频设备。
202、在云终端的驱动单元与云服务器的驱动单元(包括虚拟主控制器驱
动单元和 USB驱动单元)进行交互加载上述 USB存储设备、 USB音频设备 和 USB视频设备的驱动的过程中, 云终端的驱动单元将获得的 USB存储设 备、 USB音频设备和 USB视频设备的设备类型发送给优先级控制单元;
203、 优先级控制单元根据获得的设备类型, 确定上述 USB存储设备、 USB音频设备和 USB视频设备的优先级, 并根据该优先级, 为上述 USB存 储设备、 USB音频设备和 USB视频设备分配对应的緩冲区;
其中,上述緩冲区的优先级与上述 USB存储设备、 USB音频设备和 USB 视频设备的优先级一致。
例如:优先级控制单元可以根据表 1 ,确定 USB视频设备的优先级为 1 , USB音频设备的优先级为 2, USB存储设备的优先级为 3, 说明 USB视频 设备的优先级最高, USB存储设备的优先级最低。
204、 当上述 USB存储设备、 USB音频设备和 USB视频设备有数据需 要发送给服务器时, 优先级控制单元将上述 USB存储设备、 USB音频设备 和 USB视频设备的数据放入对应的緩冲区中;
205、优先级控制单元根据上述緩冲区的优先级,依次通过驱动单元向协 议栈单元发送上述緩冲区中存储的 USB设备的数据;
206、 协议栈单元依次向云服务器发送接收到的上述緩冲区中存储的 USB设备的数据。
本实施例中, 云终端的优先级控制单元通过获得驱动单元发送的插入云 终端的 USB设备的设备类型, 并根据上述 USB设备的设备类型, 确定与上 述 USB设备的设备类型对应的上述 USB设备的优先级, 使得优先级控制单 元能够根据至少两个 USB设备的优先级, 通过协议栈单元发送上述 USB存 储设备、 USB音频设备和 USB视频设备的数据, 能够保证 USB设备的传输 实时性,从而避免了现有技术中由于多个 USB设备一起通过云服务器进行数 据传输而导致的 USB设备的传输实时性无法得到保证的问题。
图 3为本发明另一实施例提供的数据处理方法的流程示意图, 本实施例 适用于云服务器, 该云服务器包括驱动单元(包括虚拟主控制器驱动单元和 USB驱动单元) 、 优先级控制单元和协议栈单元。 本实施例的数据处理方法 可以包括:
301、 云终端检测到用户插入该云终端的 USB存储设备、 USB音频设备
和 USB视频设备, 并分另 'J获得 USB存储设备、 USB音频设备和 USB视频 设备的设备类型;
其中, USB存储设备、 USB音频设备和 USB视频设备的设备类型分别 为存储设备、 音频设备和视频设备。
302、 在云终端的驱动单元(包括主控制器驱动单元和虚拟 USB驱动单 元)与云服务器的驱动单元进行交互加载上述 USB存储设备、 USB音频设 备和 USB视频设备的驱动的过程中, 云终端通过云服务器的协议栈单元、 云 服务器的驱动单元将获得的 USB存储设备、 USB音频设备和 USB视频设备 的设备类型发送给优先级控制单元;
303、 当云服务器有数据需要发送给上述 USB存储设备、 USB音频设备 和 USB视频设备时, 优先级控制单元根据获得的设备类型, 确定上述 USB 存储设备、 USB音频设备和 USB视频设备的优先级, 并根据该优先级, 为 上述 USB存储设备、 USB音频设备和 USB视频设备分配对应的緩冲区; 其中,上述緩冲区的优先级与上述 USB存储设备、 USB音频设备和 USB 视频设备的优先级一致。
例如:优先级控制单元可以根据表 1 ,确定 USB视频设备的优先级为 1 , USB音频设备的优先级为 2, USB存储设备的优先级为 3, 说明 USB视频 设备的优先级最高, USB存储设备的优先级最低。
304、 优先级控制单元将上述 USB存储设备、 USB音频设备和 USB视 频设备的数据放入对应的緩冲区中;
305、优先级控制单元根据上述緩冲区的优先级,依次通过驱动单元向协 议栈单元发送上述緩冲区中存储的 USB设备的数据;
306、 协议栈单元依次向云终端发送接收到的上述緩冲区中存储的 USB 设备的数据, 以使得云终端将数据发送给对应的 USB设备。
本实施例中, 云服务器的优先级控制单元通过获得驱动单元发送的插入 云终端的 USB设备的设备类型, 并根据上述 USB设备的设备类型, 确定与 上述 USB设备的设备类型对应的上述 USB设备的优先级, 使得优先级控制 单元能够根据至少两个 USB设备的优先级, 通过协议栈单元发送上述 USB 存储设备、 USB音频设备和 USB视频设备的数据, 能够保证 USB设备的传 输实时性,从而避免了现有技术中由于多个 USB设备一起通过云云服务器进
行数据传输而导致的 USB设备的传输实时性无法得到保证的问题。
需要说明的是: 对于前述的各方法实施例, 为了简单描述, 故将其都表 述为一系列的动作组合, 但是本领域技术人员应该知悉, 本发明并不受所描 述的动作顺序的限制, 因为依据本发明, 某些步骤可以采用其他顺序或者同 时进行。 其次, 本领域技术人员也应该知悉, 说明书中所描述的实施例均属 于优选实施例, 所涉及的动作和模块并不一定是本发明所必须的。
在上述实施例中, 对各个实施例的描述都各有侧重, 某个实施例中没有 详述的部分, 可以参见其他实施例的相关描述。
图 4为本发明另一实施例提供的数据处理设备的结构示意图, 如图 4所 示, 本实施例的数据处理设备可以包括驱动单元 41、 优先级控制单元 42和 协议栈单元 43。 其中, 驱动单元 41用于获得插入云终端的 USB设备的设备 类型, 并将所述 USB设备的设备类型发送给优先级控制单元 42; 优先级控 制单元 42用于接收驱动单元 41发送的所述 USB设备的设备类型, 并根据 所述 USB设备的设备类型, 确定与所述 USB设备的设备类型对应的所述 USB设备的优先级, 并根据至少两个 USB设备的优先级, 通过驱动单元 41 向所述协议栈单元协议栈单元 43发送所述至少两个 USB设备的数据; 所述 协议栈单元 43, 用于利用远程桌面协议, 发送接收到的优先级控制单元 42 发送的至少两个 USB设备的数据。
上述图 1、 图 2和图 3对应的实施例中方法均可以由本实施例提供的数 据处理设备实现。
例如:本实施例中的优先级控制单元 42具体可以根据所述至少两个 USB 设备的优先级, 为所述至少两个 USB设备分配对应的緩冲区, 所述緩冲区的 优先级与所述至少两个 USB设备的优先级一致, 并根据所述緩冲区的优先 级, 通过驱动单元 41 向所述协议栈单元 43发送所述緩冲区中存储的 USB 设备的数据。
例如: 如果该数据处理设备为云终端,驱动单元 41则具体可以在驱动单 元 41检测到 USB设备插入时, 根据所述 USB设备的设备类型, 确定与所 述 USB设备的设备类型对应的所述 USB设备的优先级。
例如: 如果该数据处理设备为云服务器, 为了节省云服务器的资源, 驱 动单元 41则具体可以在有所述至少两个 USB设备的数据需要发送时, 根据
所述至少两个 USB设备的设备类型, 确定与所述至少两个 USB设备的设备 类型对应的所述至少两个 USB设备的优先级。
一般来说, 云终端与云服务器之间是通过 IP网络连接的, 云终端可以通 过远程桌面协议登录到云服务器上, 进行桌面接入、 应用软件访问、 数据存 储等操作。 可选地, 本实施例中, 如果云终端与云服务器之间的数据发送速 率小于或等于速率阈值, 例如: IP 网络的传输不稳定, 优先级控制单元 42 还可以进一步根据所述至少两个 USB设备的优先级,丟弃所述至少两个 USB 设备的数据中的同步传输事务数据, 所述同步传输事务数据的时延大于或等 于时延阈值。
本实施例中, 数据处理设备通过优先级控制单元获得驱动单元发送的插 入云终端的 USB设备的设备类型, 并根据上述 USB设备的设备类型, 确定 与上述 USB设备的设备类型对应的上述 USB设备的优先级, 使得优先级控 制单元能够根据至少两个 USB设备的优先级,通过协议栈单元发送上述至少 两个 USB设备的数据, 能够保证 USB设备的传输实时性, 从而避免了现有 技术中由于多个 USB设备一起通过云服务器进行数据传输而导致的 USB设 备的传输实时性无法得到保证的问题。
一般来说, 云终端与云服务器之间是通过 IP网络连接的, 云终端可以通 过远程桌面协议登录到云服务器上, 进行桌面接入、 应用软件访问、 数据存 储等操作。可选地,本实施例中的发送单元 43还可以进一步用于若云终端与 云服务器之间的数据发送速率小于或等于速率阈值, 根据上述至少两个 USB 设备的优先级, 丟弃上述至少两个 USB设备的数据中的同步传输事务数据, 上述同步传输事务数据的时延大于或等于时延阈值。
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描 述的系统, 装置和单元的具体工作过程, 可以参考前述方法实施例中的对应 过程, 在此不再赘述。
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统, 装置和 方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示 意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可 以有另外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个 系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间
的耦合或直接耦合或通信连接可以是通过一些接口, 装置或单元的间接耦合 或通信连接, 可以是电性, 机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的, 作 为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或 者全部单元来实现本实施例方案的目的。
另外 ,在本发明各个实施例中的各功能单元可以集成在一个处理单元中 , 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单 元中。 上述集成的单元既可以采用硬件的形式实现, 也可以采用硬件加软件 功能单元的形式实现。
上述以软件功能单元的形式实现的集成的单元, 可以存储在一个计算机 可读取存储介质中。 上述软件功能单元存储在一个存储介质中, 包括若干指 令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等) 执行本发明各个实施例所述方法的部分步骤。 而前述的存储介质包括: U盘、 移动硬盘、 只读存储器(Read-Only Memory, 简称 ROM ) 、 随机存取存储 器( Random Access Memory, 简称 RAM )、 磁碟或者光盘等各种可以存储 程序代码的介质。
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其 限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或 者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技 术方案的本质脱离本发明各实施例技术方案的精神和范围。
Claims
1、 一种数据处理方法, 其特征在于, 包括:
获得插入云终端的 USB设备的设备类型;
根据所述 USB设备的设备类型, 确定与所述 USB设备的设备类型对应 的所述 USB设备的优先级;
根据至少两个 USB设备的优先级,利用远程桌面协议发送所述至少两个 USB设备的数据。
2、 根据权利要求 1 所述的方法, 其特征在于, 所述根据至少两个 USB 设备的优先级,利用远程桌面协议发送所述至少两个 USB设备的数据,包括: 根据所述至少两个 USB设备的优先级, 为所述至少两个 USB设备分配 对应的緩冲区, 所述緩冲区的优先级与所述至少两个 USB设备的优先级一 致;
根据所述緩冲区的优先级, 利用远程桌面协议发送所述緩冲区中存储的 USB设备的数据。
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述根据所述 USB 设备的设备类型, 确定与所述 USB设备的设备类型对应的所述 USB设备的 优先级, 包括:
云终端在检测到 USB设备插入时, 根据所述 USB设备的设备类型, 确 定与所述 USB设备的设备类型对应的所述 USB设备的优先级; 或者
云服务器在有所述至少两个 USB设备的数据需要发送时,根据所述至少 两个 USB设备的设备类型, 确定与所述至少两个 USB设备的设备类型对应 的所述至少两个 USB设备的优先级。
4、 根据权利要求 1~3任一权利要求所述的方法, 其特征在于, 所述根 据所述 USB设备的设备类型, 确定与所述 USB设备的设备类型对应的所述 USB设备的优先级之后, 还包括:
若云终端与云服务器之间的数据发送速率小于或等于速率阈值, 根据所 述至少两个 USB设备的优先级, 丟弃所述至少两个 USB设备的数据中的同 步传输事务数据, 所述同步传输事务数据的时延大于或等于时延阈值。
5、 一种数据处理设备, 其特征在于, 包括驱动单元、 优先级控制单元和 协议栈单元; 所述驱动单元, 用于获得插入云终端的 USB设备的设备类型, 并将所述 USB设备的设备类型发送给所述优先级控制单元;
所述优先级控制单元,用于接收所述驱动单元发送的所述 USB设备的设 备类型, 并根据所述 USB设备的设备类型, 确定与所述 USB设备的设备类 型对应的所述 USB设备的优先级, 并根据至少两个 USB设备的优先级, 通 所述协议栈单元, 用于利用远程桌面协议, 发送接收到的所述优先级控 制单元发送的至少两个 USB设备的数据。
6、 根据权利要求 5所述的设备, 其特征在于,
所述优先级控制单元具体用于
根据所述至少两个 USB设备的优先级, 为所述至少两个 USB设备分配 对应的緩冲区, 所述緩冲区的优先级与所述至少两个 USB设备的优先级一 致, 并根据所述緩冲区的优先级, 通过所述驱动单元向所述协议栈单元发送 所述緩冲区中存储的 USB设备的数据。
7、根据权利要求 5或 6所述的设备, 其特征在于, 所述驱动单元具体用 于
在所述驱动单元检测到 USB设备插入时, 根据所述 USB设备的设备类 型, 确定与所述 USB设备的设备类型对应的所述 USB设备的优先级; 或者 在有所述至少两个 USB设备的数据需要发送时,根据所述至少两个 USB 设备的设备类型,确定与所述至少两个 USB设备的设备类型对应的所述至少 两个 USB设备的优先级。
8、 根据权利要求 5~7任一权利要求所述的设备, 其特征在于, 所述优 先级控制单元还用于
若云终端与云服务器之间的数据发送速率小于或等于速率阈值, 根据所 述至少两个 USB设备的优先级, 丟弃所述至少两个 USB设备的数据中的同 步传输事务数据, 所述同步传输事务数据的时延大于或等于时延阈值。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2011/083692 WO2013082783A1 (zh) | 2011-12-08 | 2011-12-08 | 数据处理方法及设备 |
CN201180003562.6A CN103503403B (zh) | 2011-12-08 | 2011-12-08 | 数据处理方法及设备 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2011/083692 WO2013082783A1 (zh) | 2011-12-08 | 2011-12-08 | 数据处理方法及设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2013082783A1 true WO2013082783A1 (zh) | 2013-06-13 |
Family
ID=48573501
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2011/083692 WO2013082783A1 (zh) | 2011-12-08 | 2011-12-08 | 数据处理方法及设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103503403B (zh) |
WO (1) | WO2013082783A1 (zh) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107426806B (zh) * | 2017-07-17 | 2021-01-26 | 深圳市盛路物联通讯技术有限公司 | 物联网终端传输数据的方法及装置 |
CN116366928B (zh) * | 2023-06-01 | 2023-08-11 | 南京美乐威电子科技有限公司 | Usb摄像头桥接方法和云终端 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1467605A (zh) * | 2002-06-14 | 2004-01-14 | 三星电子株式会社 | 外围接口设备及其优先级控制方法 |
CN101482854A (zh) * | 2009-02-10 | 2009-07-15 | 深圳华为通信技术有限公司 | Usb多通道传输方法、系统及主机 |
CN101876958A (zh) * | 2009-07-24 | 2010-11-03 | 威盛电子股份有限公司 | 通用序列总线输入输出端口传送器及其传送方法 |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7912987B2 (en) * | 2005-01-14 | 2011-03-22 | Microsoft Corporation | USB devices in application server environments |
US20100005178A1 (en) * | 2006-10-24 | 2010-01-07 | Catalin Sindelaru | Method and system for firewall friendly real-time communication |
CN101309195A (zh) * | 2008-06-18 | 2008-11-19 | 华为技术有限公司 | 一种在安全套接层虚拟专网保证服务质量的方法及装置 |
CN101651963B (zh) * | 2009-07-09 | 2012-05-23 | 南京工业大学 | 一种ieee 802.11 wlan中基于区分服务的传输控制方法 |
CN101753440A (zh) * | 2009-12-18 | 2010-06-23 | 华为技术有限公司 | 主动队列管理方法、装置和无线网络控制器 |
CN101937261A (zh) * | 2010-05-18 | 2011-01-05 | 上海同悦信息科技有限公司 | 基于通用串行总线的云计算终端 |
WO2011144128A2 (zh) * | 2011-05-31 | 2011-11-24 | 华为终端有限公司 | 云终端设备 |
CN102223675B (zh) * | 2011-06-08 | 2014-06-04 | 大唐移动通信设备有限公司 | 拥塞告警及处理方法、系统和设备 |
-
2011
- 2011-12-08 WO PCT/CN2011/083692 patent/WO2013082783A1/zh active Application Filing
- 2011-12-08 CN CN201180003562.6A patent/CN103503403B/zh active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1467605A (zh) * | 2002-06-14 | 2004-01-14 | 三星电子株式会社 | 外围接口设备及其优先级控制方法 |
CN101482854A (zh) * | 2009-02-10 | 2009-07-15 | 深圳华为通信技术有限公司 | Usb多通道传输方法、系统及主机 |
CN101876958A (zh) * | 2009-07-24 | 2010-11-03 | 威盛电子股份有限公司 | 通用序列总线输入输出端口传送器及其传送方法 |
Also Published As
Publication number | Publication date |
---|---|
CN103503403B (zh) | 2016-09-28 |
CN103503403A (zh) | 2014-01-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11991072B2 (en) | System and method for facilitating efficient event notification management for a network interface controller (NIC) | |
US10986171B2 (en) | Method for unified communication of server, baseboard management controller, and server | |
US10838665B2 (en) | Method, device, and system for buffering data for read/write commands in NVME over fabric architecture | |
US7720064B1 (en) | Method and system for processing network and storage data | |
EP3358456A1 (en) | Control method, storage device and system for data read/write command in nvme over fabric architecture | |
US9875206B2 (en) | Methods and devices for extending USB 3.0-compliant communication | |
JP2018509674A (ja) | ネットワーク・マップド・ストレージを用いたホスト・ベースの不揮発性メモリのクラスタ化 | |
US20050044250A1 (en) | File transfer system | |
US10097459B2 (en) | Apparatus and method for high-speed data transmission between virtual desktops | |
JP2005527007A (ja) | コンピュータネットワーク内のブロックデータ保存 | |
US8856407B2 (en) | USB redirection for write streams | |
WO2012100724A1 (zh) | 在pcie总线上传输报文的方法、设备和系统 | |
TW200815990A (en) | Host port redundancy selection | |
KR20130107618A (ko) | Usb 디바이스 장치의 데이터를 클라이언트 단말을 통해 서버로 전송하는 데이터 처리 방법 및 클라이언트 단말 | |
WO2015013981A1 (zh) | 一种图像显示方法和装置 | |
WO2016008338A1 (zh) | 一种i/o请求处理方法及存储系统 | |
CN116868553A (zh) | 用于管理端点资源和拥塞缓解的数据中心网络上的动态网络接收器驱动的数据调度 | |
JP2017503420A (ja) | パケットフロー制御方法、関連装置、及びコンピューティングノード | |
US20070150683A1 (en) | Dynamic memory buffer allocation method and system | |
WO2013082783A1 (zh) | 数据处理方法及设备 | |
US8055726B1 (en) | Method and system for writing network data | |
CN111404842A (zh) | 数据传输方法、装置及计算机存储介质 | |
US8953608B1 (en) | Method and system for frame aggregation | |
KR20140125311A (ko) | 멀티 코어를 가진 네트워크 인터페이스 카드를 이용한 트래픽 처리 장치 및 방법 | |
JP2014527218A (ja) | ネットワーク・コントロール・モデル・ドライバ |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 11877096 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 11877096 Country of ref document: EP Kind code of ref document: A1 |