BYOD method and device
By using a network protocol to create virtual UAC and UVC devices in the Byod method, the problem of hardware USB endpoint enumeration restrictions in the existing technology has been solved, and high -efficiency and simplified multi -current data transmission and high expansion are achieved.
Patent Information
- Application Number
- PCT/CN2024/101111
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-07-20
- Filing Date
- 2024-06-25
- Publication Date
- 2025-01-23
AI Technical Summary
In the existing BYOD method, enumerating UAC/UVC devices through actual USB endpoints results in limited number of devices and high hardware requirements, which cannot meet the number of hardware endpoints in multi-stream scenarios.
Through a BULK endpoint, multiple audio data and video data are sent to the PC side according to the network protocol, so that the PC side creates virtual UAC devices and virtual UVC devices to avoid the enumeration of the actual USB endpoint, break the hardware limit, improve the can Expansion.
The ByOD function that does not require hardware USB endpoints, simplify the data transmission process, and improve the efficiency and expansion of data transmission.
Smart Images

Figure CN2024101111_23012025_PF_FP_ABST
Abstract
Description
BYOD method and device Technical Field
[0001] The present invention relates to the field of data communications, and in particular to a BYOD method and device. Background Art
[0002] Currently, in the BYOD (Bring Your Own Device) method, the BYOD device receives audio and video data streams from the VCS (Video Conference System) host via the network. It then uses the BYOD program to send the video to the UVC (USB Video Class) device via the BULK (bulk transfer mode) endpoint and the audio to the UAC (USB Audio Class) device via the ISOC (isochronous transfer mode) endpoint. The PC receives the video data from the UVC device enumerated by the BULK endpoint and plays it on the video software on the PC. The PC receives the audio data from the UAC device enumerated by the ISOC endpoint and plays it on the audio software on the PC. This allows the PC to play the audio and video data from the VCS (Video Conference System) host, thus implementing the BYOD function.
[0003] Although the existing solution implements BYOD function, it requires the use of actual USB endpoint devices for enumeration during use. In the multi-stream scenario, the requirement for the number of USB endpoints is very high, and there is a risk that the number of hardware endpoints cannot be met.
[0004] Summary of the Invention
[0005] The present invention provides a BYOD method and device to solve the technical problems of the existing solution of enumerating UAC / UVC devices through actual USB endpoints, resulting in a limited number of devices and high hardware requirements.
[0006] In order to solve the above technical problems, the present invention provides a BYOD method, comprising:
[0007] Acquiring network data, wherein the network data includes multiple channels of audio data and multiple channels of video data;
[0008] The network data is sent to the PC end through a BULK endpoint according to the network protocol, so that the PC end writes the multi-channel audio data into each virtual UAC device and writes the multi-channel video data into each virtual UVC device.
[0009] The present invention uses a BULK endpoint to package network data and send it to the PC through the network protocol, and creates a virtual UAC device and a virtual UVC device based on the network protocol, avoiding the enumeration of UAC devices and UVC devices through actual USB endpoints, breaking hardware limitations, and having strong scalability. In addition, when transmitting data to the PC, there is no need to shunt audio data and video data, which simplifies the data transmission process and improves data transmission efficiency.
[0010] Furthermore, the PC is configured to write multiple audio data channels into each virtual UAC device and multiple video data channels into each virtual UVC device, specifically:
[0011] Parsing the network data to obtain the number of audio data and the number of video data;
[0012] Based on the network protocol, a corresponding number of virtual UAC devices are created according to the number of audio data, and a corresponding number of virtual UVC devices are created according to the number of video data;
[0013] The audio data and the video data are written into the virtual UAC devices and the virtual UVC devices respectively.
[0014] The present invention creates virtual UAC devices and UVC devices corresponding to the number of video data and the number of audio data based on a network protocol, without the need to enumerate UAC devices and UVC devices through actual USB endpoints, thus breaking through hardware limitations and improving scalability.
[0015] Furthermore, the obtaining of network data is specifically as follows:
[0016] Receive network data through a wired network card or a wireless network card.
[0017] In the present invention, network data is received through a wired network card or a wireless network card, and the network data is transmitted to the PC end through a network protocol. The data transmission formats of the two times are the same. Therefore, when the network data is received, there is no need to shunt the audio data and video data in the network data. They can be merged into one BULK port for transmission, which simplifies the data transmission process and improves data transmission efficiency.
[0018] Furthermore, after writing the audio data and video data into the virtual UAC devices and virtual UVC devices respectively, the method further includes:
[0019] Open all virtual UAC devices and virtual UVC devices through the audio software and video software on the PC respectively;
[0020] The audio data and the video data in all the virtual UAC devices and the virtual UVC devices are played simultaneously.
[0021] In a second aspect, the present invention further provides a BYOD device, comprising: a data acquisition module and a data forwarding module;
[0022] The data acquisition module is used to acquire network data, wherein the acquired network data includes multiple channels of audio data and multiple channels of video data;
[0023] The data forwarding module is used to send the network data to the PC end through a BULK endpoint according to the network protocol, so that the PC end writes multiple audio data into each virtual UAC device and writes multiple video data into each virtual UVC device.
[0024] Furthermore, the data forwarding module is specifically configured to:
[0025] Parsing the network data to obtain the number of audio data and the number of video data;
[0026] Based on the TCP / IP network protocol, a corresponding number of virtual UAC devices are created according to the number of audio data, and a corresponding number of virtual UVC devices are created according to the number of video data;
[0027] The audio data and the video data are written into the virtual UAC devices and the virtual UVC devices respectively.
[0028] Furthermore, the data acquisition module is specifically used to:
[0029] Receive network data through a wired network card or a wireless network card.
[0030] Furthermore, the data forwarding module is further configured to:
[0031] Open all virtual UAC devices and virtual UVC devices through the audio software and video software on the PC respectively;
[0032] Plays all audio data and video data in all virtual UAC devices and virtual UVC devices.
[0033] In a third aspect, the present invention also provides a computer device comprising: a processor, a communication interface and a memory, wherein the processor, the communication interface and the memory are interconnected, wherein the memory stores an executable program code, and the processor is used to call the executable program code to execute the BYOD method.
[0034] In a fourth aspect, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the BYOD method is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] FIG1 is a schematic diagram of a flow chart of a BYOD method provided by an embodiment of the present invention;
[0036] FIG2 is a schematic diagram of data transmission of a BYOD method provided by an embodiment of the present invention;
[0037] FIG3 is a schematic structural diagram of a BYOD device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0038] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0039] Example 1
[0040] Please refer to FIG. 1 , which is a flow chart of a BYOD method provided by an embodiment of the present invention, including steps 101 to 102, which are specifically as follows:
[0041] Step 101: Acquire network data, where the network data includes multiple channels of audio data and multiple channels of video data;
[0042] In this embodiment, the acquisition of network data is specifically as follows:
[0043] Receive network data through a wired network card or a wireless network card.
[0044] In this embodiment, the BYOD device obtains the network data sent by the VCS host through a wired network card or a wireless network card.
[0045] In this embodiment, the VCS host collects the video data and audio data, encodes and packages the video data using a video codec such as H.264 and an audio codec such as AAC, and sends the data to the BYOD device via the network.
[0046] In this embodiment, network data is received through a wired network card or a wireless network card, and the network data is transmitted to the PC through a network protocol. The data transmission formats of the two times are the same. Therefore, when the network data is received, there is no need to shunt the audio data and video data in the network data. They can be merged into one BULK port for transmission, which simplifies the data transmission process and improves data transmission efficiency.
[0047] Step 102: The network data is sent to the PC end through a BULK endpoint according to the network protocol, so that the PC end writes the multi-channel audio data into each virtual UAC device and writes the multi-channel video data into each virtual UVC device.
[0048] In this embodiment, the network protocol includes but is not limited to TCP / IP protocol, IPX / SPX protocol, and NetBEUI protocol.
[0049] In this embodiment, the TCP / IP protocol is used as an example for illustration. Since the TCP / IP protocol is a reliable transmission protocol with a retransmission mechanism, when transmitting audio data and video data, the reliability of the protocol itself can be relied upon to improve the anti-packet loss capability of data transmission, thereby improving the fault tolerance of the BYOD method and thereby enhancing the user experience.
[0050] In this embodiment, since the format of the audio data transmitted by the TCP / IP network protocol on the BYOD device and the PC is the same, when the network data is transmitted to the BYOD device, the BYOD device only needs to forward it. There is no need for the BYOD device to decode the network data and separate the audio and video streams for transmission through two ports. It can be transmitted through one port BULK.
[0051] In this embodiment, the PC is configured to write multiple channels of audio data into each virtual UAC device and multiple channels of video data into each virtual UVC device, specifically:
[0052] Parsing the network data to obtain the number of audio data and the number of video data;
[0053] Based on the network protocol, a corresponding number of virtual UAC devices are created according to the number of audio data, and a corresponding number of virtual UVC devices are created according to the number of video data;
[0054] The audio data and the video data are written into the virtual UAC devices and the virtual UVC devices respectively.
[0055] In this embodiment, the BYOD device forwards the network data to the PC via a BULK endpoint using the TCP / IP protocol. The PC receives the network data via the TCP / IP protocol and decodes the network data to obtain the number of audio data and the number of video data. Based on the TCP / IP protocol, a virtual UAC (USB audio class) device and a virtual UVC (USB video class) device corresponding to the number of audio data and the number of video data are created.
[0056] In this embodiment, the BOYD device sends data based on the TCP / IP network protocol. The network data is also transmitted via the USB interface using the USB over IP technology, that is, the USB interface supports data transmission using the TCP / IP network protocol.
[0057] In this embodiment, by creating virtual UAC devices and UVC devices corresponding to the number of video data and audio data based on the TCP / IP network protocol, there is no need to enumerate UAC devices and UVC devices through actual USB endpoints, which breaks the hardware limitations and improves scalability.
[0058] Please refer to FIG. 2 , which is a schematic diagram of data transmission in a BYOD method according to an embodiment of the present invention.
[0059] In this embodiment, a TCP / IP protocol stack, specifically LWIP (Lightweight IP), is built into the PC and BYOD device. This stack can run with or without operating system support. LWIP maintains the core functionality of the TCP protocol while reducing RAM (Random Access Memory) usage. It requires only a dozen KB of RAM and approximately 40KB of ROM (Read-Only Memory), making it suitable for use in low-end embedded systems.
[0060] In this embodiment, the BYOD device receives multi-channel audio and video data from the VCS host through a wired or wireless network card, and then transmits the audio and video data to the PC through the BYOD program via the TCP / IP network protocol. The BYOD program is software built into the BYOD device that receives and transmits the received audio and video data.
[0061] In this embodiment, each audio data is written to each virtual UAC device in a one-to-one manner through the TCP / IP protocol, and each video data is written to each virtual UVC device in a one-to-one manner.
[0062] In this embodiment, after writing the audio data and video data into the virtual UAC devices and virtual UVC devices respectively, the method further includes:
[0063] Open all virtual UAC devices and virtual UVC devices through the audio software and video software on the PC respectively;
[0064] The audio data and the video data in all the virtual UAC devices and the virtual UVC devices are played simultaneously.
[0065] In this embodiment, the audio software on the PC will open a virtual UAC device to play the received audio data. The video software on the PC will open a virtual UVC device to play the received video data, thereby enabling a multi-person audio and video call through simultaneous playback.
[0066] In this embodiment, the present invention uses a BULK endpoint to package network data and send it to the PC through the TCP / IP network protocol, and creates a virtual UAC device and a virtual UVC device based on the TCP / IP network protocol, avoiding the enumeration of UAC devices and UVC devices through actual USB endpoints, breaking hardware limitations, and having strong scalability; in addition, when transmitting data to the PC, there is no need to divert audio data and video data, which simplifies the data transmission process and improves data transmission efficiency.
[0067] Please refer to FIG. 3 , which is a schematic structural diagram of a BYOD device provided by an embodiment of the present invention, including: a data acquisition module 301 and a data forwarding module 302;
[0068] The data acquisition module 301 is used to acquire network data, wherein the acquired network data includes multiple channels of audio data and multiple channels of video data;
[0069] The data forwarding module 302 is used to send the network data to the PC end through a BULK endpoint according to the network protocol, so that the PC end writes multiple audio data into each virtual UAC device and writes multiple video data into each virtual UVC device.
[0070] In this embodiment, the data forwarding module 302 is specifically configured to:
[0071] Parsing the network data to obtain the number of audio data and the number of video data;
[0072] Based on the network protocol, a corresponding number of virtual UAC devices are created according to the number of audio data, and a corresponding number of virtual UVC devices are created according to the number of video data;
[0073] The audio data and the video data are written into the virtual UAC devices and the virtual UVC devices respectively.
[0074] In this embodiment, the data acquisition module 301 is specifically configured to:
[0075] Receive network data through a wired network card or a wireless network card.
[0076] In this embodiment, the data forwarding module 302 is further configured to:
[0077] Open all virtual UAC devices and virtual UVC devices through the audio software and video software on the PC respectively;
[0078] Plays all audio data and video data in all virtual UAC devices and virtual UVC devices.
[0079] In another implementation example, the BYOD device includes a processor, wherein the processor is configured to execute the program modules stored in the memory, including a data acquisition module 301 and a data forwarding module 302 .
[0080] An embodiment of the present invention also provides a computer device, comprising: a processor, a communication interface, and a memory, wherein the processor, the communication interface, and the memory are interconnected, wherein the memory stores executable program code, and the processor is used to call the executable program code to execute the BYOD method.
[0081] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the BYOD method is implemented.
[0082] In this embodiment, network data is packaged and sent to the PC through a BULK endpoint via a network protocol, and a virtual UAC device and a virtual UVC device are created based on the network protocol, avoiding the enumeration of UAC devices and UVC devices through actual USB endpoints, breaking hardware limitations, and having strong scalability. In addition, when transmitting data to the PC, there is no need to divert audio data and video data, which simplifies the data transmission process and improves data transmission efficiency.
[0083] The specific embodiments described above further illustrate the objectives, technical solutions, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included within the scope of protection of the present invention for those skilled in the art.
Claims
1. A BYOD method, characterized in that: include: Acquire network data, wherein the network data includes multiple channels of audio data and multiple channels of video data; The network data is sent to the PC end through a BULK endpoint according to the network protocol, so that the PC end writes the multi-channel audio data into each virtual UAC device and writes the multi-channel video data into each virtual UVC device.
2. The BYOD method according to claim 1, wherein: The method of enabling the PC to write multiple channels of audio data into each virtual UAC device and multiple channels of video data into each virtual UVC device is as follows: Parsing the network data to obtain the number of audio data and the number of video data; Based on the network protocol, a corresponding number of virtual UAC devices are created according to the number of audio data, and a corresponding number of virtual UVC devices are created according to the number of video data; The audio data and the video data are written into the virtual UAC devices and the virtual UVC devices respectively.
3. The BYOD method according to claim 1, wherein: The obtaining of network data is specifically as follows: Receive network data through wired network card or wireless network card.
4. The BYOD method according to claim 2, wherein: After writing the audio data and the video data into the virtual UAC devices and the virtual UVC devices respectively, the method further includes: Open all virtual UAC devices and virtual UVC devices through the audio software and video software on the PC respectively; The audio data and the video data in all the virtual UAC devices and the virtual UVC devices are played simultaneously.
5. A BYOD device, characterized in that: include: Data acquisition module and data forwarding module; The data acquisition module is used to acquire network data, wherein the acquired network data includes multiple channels of audio data and multiple channels of video data; The data forwarding module is used to send the network data to the PC end through a BULK endpoint according to the network protocol, so that the PC end writes multiple audio data into each virtual UAC device and writes multiple video data into each virtual UVC device.
6. The BYOD device according to claim 5, wherein: The data forwarding module is specifically used for: Parsing the network data to obtain the number of audio data and the number of video data; Based on the network protocol, a corresponding number of virtual UAC devices are created according to the number of audio data, and a corresponding number of virtual UVC devices are created according to the number of video data; The audio data and the video data are written into the virtual UAC devices and the virtual UVC devices respectively.
7. The BYOD device according to claim 5, wherein: The data acquisition module is specifically used for: Receive network data through wired network card or wireless network card.
8. The BYOD device according to claim 6, wherein: The data forwarding module is further used for: Open all virtual UAC devices and virtual UVC devices through the audio software and video software on the PC respectively; Play the audio data and the video data in all the virtual UAC devices and the virtual UVC devices.
9. A computer device, characterized in that: include: A processor, a communication interface and a memory, wherein the processor, the communication interface and the memory are connected to each other, wherein the memory stores an executable program code, and the processor is used to call the executable program code to execute the BYOD method according to any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the BYOD method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
USB2.0 interface-based audio and video data transfer method
CN101009849A
Method and device for simulating USB (Universal Serial Bus) device
CN102737003A
Data transmission control method, law enforcement instrument, system and storage medium
CN111200626A
Multi-platform multi-application live broadcast method and system, live broadcast equipment and storage medium
CN114286117A
USB camera bridging method and cloud terminal
CN116366928A