Data transmission method and data transmission device
By using modules that support the same communication protocol in the data transmission device, the media data is processed directly in the data transmission device, which solves the efficiency and quality problems caused by protocol conversion in the existing technology, and achieves more efficient and reliable media data transmission.
Patent Information
- Application Number
- CN202110449956.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-25
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-04-25
AI Technical Summary
In the existing technology, data transmission equipment needs to convert protocol formats when transmitting media data, resulting in low transmission efficiency and poor quality.
By using the first communication module and the second communication module that support the same communication protocol in the data transmission device, the electronic device directly controls the first communication module to send media data, and the second communication module sends the media data to the interactive tablet with the same protocol, avoiding the protocol conversion step. .
It improves the efficiency and quality of data transmission equipment when transmitting media data, and reduces delays and the possibility of errors.
Smart Images

Figure CN115334060B
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and in particular to a data transmission method and a data transmission device. Background Art
[0002] In order to help people communicate in meetings, traditional technology provides many technical solutions, such as projecting presentations onto a screen for display and sharing, remote instant messaging, and using a large-screen touch tablet to provide a writing canvas. Another way is to use a data transmission device, which is connected to the user's electronic device (including laptops, tablets, desktop computers, and mobile phones) through a connecting line, and transmits the media data (including display screen data and audio data) in the user's electronic device to the interactive tablet in the meeting room for display.
[0003] In the prior art, since the interactive tablet is usually installed on the wall of the conference room and is not easy to move, and the size of the data transmission device is designed to be smaller and smaller for easy carrying, the data transmission device can be connected to the electronic device through a wired method such as Universal Serial Bus (USB), and connected to the interactive tablet through wireless communication methods such as Wireless Fidelity (Wi-Fi), Bluetooth, etc. When the user uses the data transmission device, after connecting the data transmission device to the electronic device through a connecting line, the electronic device can send the media data to the data transmission device through the USB connecting line, and then the data transmission device sends the media data to the interactive tablet through wireless communication methods such as Wi-Fi, completing the entire media data transmission process.
[0004] However, using the existing technology, since the data transmission device receives media data through a USB cable and sends the media data through Wi-Fi, the data transmission device also needs to convert the protocol format supported by the media data when transmitting the media data, which not only increases the time for media data transmission, but also increases the possibility of errors in media data conversion, thereby reducing the transmission efficiency and transmission quality of the data transmission device when transmitting media data. Summary of the invention
[0005] The present application provides a data transmission method and a data transmission device to solve the technical problem of low transmission efficiency and low transmission quality of data transmission devices in the prior art when transmitting media data.
[0006] A first aspect of the present application provides a data transmission method, including: applied to a data transmission device, the data transmission device including: a first communication module and a second communication module, the first communication module and the second communication module both transmit data using a first communication protocol; the method includes: the first communication module acquires media data from an electronic device; the first communication module sends the media data to the second communication module using the first communication protocol; the second communication module receives the media data and sends the media data to an interactive tablet using the first communication protocol.
[0007] In an embodiment of the first aspect of the present application, the first communication module includes: a USB network card, wherein the USB network card is connected to the electronic device via a USB connection cable; the first communication module obtains media data from the electronic device, including: the USB network card receives media data sent by the electronic device via the USB connection cable.
[0008] In an embodiment of the first aspect of the present application, the first communication protocol includes: an Ethernet communication protocol; a communication connection relationship of bridging or network address translation NAT is established between the first communication module and the second communication module.
[0009] A second aspect of the present application provides a data transmission method, which is applied to an electronic device, wherein the electronic device is used to send media data to a data transmission device, so that the data transmission device transmits the media data to an interactive tablet, and the data transmission device includes: a first communication module and a second communication module, and the first communication module and the second communication module both transmit data using a first communication protocol; the method includes: determining that the electronic device is connected to the first communication module of the data transmission device; controlling the first communication module to send media data to the second communication module using the first communication protocol, so that the second communication module sends media data to the interactive tablet using the first communication protocol.
[0010] In an embodiment of the second aspect of the present application, the first communication module includes: a USB network card, wherein the electronic device is connected to the USB network card via a USB connection cable; determining that the electronic device is connected to the first communication module of the data transmission device includes: detecting through a USB enumeration method that the electronic device is connected to the USB network card of the data transmission device via a USB connection cable.
[0011] In an embodiment of the second aspect of the present application, controlling the first communication module to send media data to the second communication module using the first communication protocol includes: sending media data to the first communication module via a USB connection cable, and controlling the first communication module to send media data to the second communication module using the first communication protocol.
[0012] In an embodiment of the second aspect of the present application, the first communication protocol includes: an Ethernet communication protocol.
[0013] In an embodiment of the second aspect of the present application, after determining that the electronic device is connected to the first communication module of the data transmission device, it also includes: controlling the first communication module to send a dynamic host configuration protocol DHCP to the interactive tablet; receiving an IP address assigned by the interactive tablet to the electronic device through the first communication module, wherein the IP address is used by the electronic device to control the first communication module to transmit data using the Ethernet communication protocol.
[0014] The third aspect of the present application provides a data transmission device, which can be used to execute the data transmission method provided in the embodiment of the first aspect of the present application, and the data transmission device includes: a first communication module and a second communication module; wherein the first communication module is used to obtain media data from the electronic device and send the media data to the second communication module using the first communication protocol; the second communication module is used to receive the media data and send the media data to the interactive tablet using the first communication protocol.
[0015] In an embodiment of the third aspect of the present application, the first communication module includes: a USB network card, wherein the USB network card is connected to the electronic device via a USB connection cable; the first communication module is specifically used for the USB network card to receive media data sent by the electronic device via the USB connection cable.
[0016] In an embodiment of the third aspect of the present application, the first communication protocol includes: an Ethernet communication protocol; a communication connection relationship of bridging or network address translation NAT is established between the first communication module and the second communication module.
[0017] The fourth aspect of the present application provides an electronic device that can be used to execute the data transmission method provided in the second aspect of the present application, and the electronic device includes: a communication interface and a processing module; wherein the communication interface is used to communicate with a first communication module of the data transmission device; the processing module is used to determine that the communication interface is connected to the first communication module of the data transmission device, and control the first communication module through the communication interface to send media data to the second communication module using the first communication protocol, so that the second communication module sends media data to the interactive tablet using the first communication protocol.
[0018] In an embodiment of the fourth aspect of the present application, the first communication module includes: a USB network card, wherein the electronic device is connected to the USB network card via a USB connection cable; the processing module is specifically used to detect, through a USB enumeration method, that the electronic device is connected to the USB network card of a data transmission device via a USB connection cable.
[0019] In an embodiment of the fourth aspect of the present application, the processing module is specifically used to send media data to the first communication module via a USB connection cable, and control the first communication module to send media data to the second communication module using a first communication protocol.
[0020] In an embodiment of the fourth aspect of the present application, the first communication protocol includes: an Ethernet communication protocol.
[0021] In an embodiment of the fourth aspect of the present application, the processing module is also used to send a dynamic host configuration protocol DHCP to the interactive tablet through the communication interface; and receive an IP address assigned by the interactive tablet to the electronic device through the communication interface, wherein the IP address is used by the electronic device to transmit data using an Ethernet communication protocol.
[0022] The fifth aspect of the present application provides a data transmission system, comprising: an electronic device as described in any one of the fourth aspect of the present application and a data transmission device as described in any one of the third aspect of the present application; for example, the electronic device can be used to connect to the first communication module of the data transmission device, and control the first communication module to send media data to the second communication module using the first communication protocol; the data transmission device can be used to send media data to the interactive tablet through the second communication module using the first communication protocol.
[0023] In summary, the data transmission method and data transmission device provided in the embodiments of the present application, when the electronic device sends media data to the interactive tablet through the data transmission device, because the electronic device can directly control the first communication module in the data transmission device to send media data of the first communication protocol, and the second communication module can continue to send the media data to the interactive tablet with the first communication protocol, the data transmission device does not need to convert the protocol of the media data during the entire process of each media data transmission, thereby reducing the time of the data transmission device for transmitting the media data, reducing the delay of the data transmission device each time the media data is transmitted, and thereby improving the transmission efficiency of the data transmission device when transmitting media data; at the same time, because the data transmission device omits the protocol conversion step, it can also reduce the possibility of errors when performing protocol conversion on the media data, thereby improving the transmission quality of the data transmission device for transmitting media data. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0025] Figure 1 A schematic diagram of the application scenario of this application;
[0026] Figure 2 A schematic diagram of the structure of a data transmission device;
[0027] Figure 3A flowchart of a data transmission method is shown;
[0028] Figure 4 A schematic diagram of the structure of an embodiment of a data transmission device provided by the present application;
[0029] Figure 5 A schematic diagram of a flow chart of an embodiment of a data transmission method provided by the present application;
[0030] Figure 6 Schematic diagram of the usage status of the data transmission equipment provided for this application. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0032] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0033] Before formally introducing the embodiments of the present application, the application scenarios of the present application and the deficiencies existing in some technologies are first introduced in conjunction with the accompanying drawings.
[0034] Figure 1 This is a schematic diagram of the application scenario of the present application, in which a scenario in which a user needs to share a presentation in an electronic device 1 at a meeting is taken as an example. Due to the limitation of the screen size of the electronic device 1, the user can connect the electronic device 1 to the data transmission device 3 using a connecting cable 2, and then transmit the screen of the presentation displayed in the display interface of the electronic device 1 to the interactive tablet 4 hung on the wall for display through the data transmission device 3.
[0035] Among them, the electronic device 1 can be a device with a display interface such as a laptop, a tablet computer, a desktop computer or a workstation; the data transmission device 3 can also be called a screen projection device, a screen projection device, a wireless screen projection device, a screen transmission device or a wireless screen transmission device, etc., and the interactive tablet 4 (interactive white board) can also be called an interactive smart tablet, a smart interactive tablet, a smart interactive whiteboard, a large-screen tablet, etc. The data transmission device 3 and the interactive tablet 4 can be connected through wireless communication, and the wireless communication method includes but is not limited to: Wireless Fidelity (Wireless Fidelity, referred to as: Wi-Fi), Bluetooth or other short-range wireless communication methods. The interactive tablet 4 can cooperate with the data transmission device 3 to realize the sharing of presentations in the electronic device 1. In some embodiments, the interactive tablet 4 can also realize remote instant communication and provide functions such as writing canvas through a touch panel. In some implementations, the data transmission device 3 and the interactive tablet 4 can be provided by the same manufacturer, and the user can purchase the data transmission device 3 and the interactive tablet 4 at the same time, and after installing the interactive tablet 4 on the wall of the conference room, use the data transmission device 3 to transmit the screen on the display interface of the electronic device 1 to the conference tablet 4 for display.
[0036] Data communication can be performed between the electronic device 1 and the data transmission device 3. For example, a connection line 2 can be provided between the electronic device 1 and the data transmission device 3 to connect to each other through wired communication. The connection line 2 can be a Universal Serial Bus (USB) connection line, a High Definition Multimedia Interface (HDMI) connection line, or a network cable. In one embodiment, the USB connection line can be a USB Type-C connection line.
[0037] In some embodiments, the connection line 2 can be separately provided with the data transmission device 3, and the connection line 2 can be provided by the manufacturer of the data transmission device 3, or purchased separately by the user. In other embodiments, the connection line 2 can be integrated with the data transmission device 3, that is, the connection line 2 and the data transmission device 3 together form an integral device, and the connection line 2 can be regarded as a part of the data transmission device 3. In this way, when the user connects the data transmission device 3 to the electronic device 1, the step of connecting the data transmission device 3 to one end of the connection line 2 can be omitted, and the electronic device 1 only needs to be connected to the other end of the connection line, thereby improving efficiency and avoiding the situation where the data transmission device 3 cannot be connected to the electronic device 1 because the connection line 2 cannot be found.
[0038] In such Figure 1In the scenario shown, since the interactive tablet 4 is usually installed on the wall of the conference room and is not easy to move, and the data transmission device 3 is designed to be smaller and smaller for easy carrying, the data transmission device 3 is usually connected to the electronic device 1 through a wired method such as a USB connection cable 2, and is connected to the interactive tablet 4 through wireless communication methods such as Wi-Fi and Bluetooth.
[0039] In some embodiments, Figure 2 is a structural diagram of a data transmission device, such as Figure 2 The data transmission device 3 shown in the figure includes: a USB communication interface 31, a processor 32 and a Wi-Fi communication module. Figure 2 The data transmission device 3 shown is used for Figure 1 In the scenario shown, when implementing the screen projection function, the overall process can be referred to Figure 3 shown.
[0040] Figure 3 A schematic diagram of a data transmission method, wherein the structure of the data transmission device is shown in FIG. Figure 2 As shown. Specifically, when the user uses the data transmission device 3 to cast the screen, first in S10, the electronic device 1 is connected to the USB communication interface 31 of the data transmission device 3 through the USB connection cable 2. Subsequently, for the data transmission device 3, in S10, after detecting that the USB communication interface 31 is connected to the electronic device 1 through the USB connection cable 2 through the USB enumeration method, a Wi-Fi connection relationship with the interactive tablet 4 is established through the Wi-Fi communication module 33 in S20. Then, when the wired connection relationship between the data transmission device 3 and the electronic device 1 and the wireless connection relationship with the interactive tablet 4 are established, in S30, the electronic device 1 can send the media data (including the current display screen data and audio data of the electronic device 1, etc.) to the data transmission device 3 through the USB connection cable 2 in the USB protocol, and correspondingly, the processor 32 of the data transmission device 3 receives the media data sent by the electronic device 1 through the USB communication interface 31. Since the media data received by the processor 32 at this time supports the USB protocol and cannot be transmitted through the Ethernet protocol supported by the Wi-Fi communication module, the processor 32 needs to convert the format of the media data through S40, so that the media data supporting the USB protocol is converted into media data supporting the Ethernet protocol. Finally, the processor 32 sends the media data supporting the Ethernet protocol to the Wi-Fi communication module 33, and the Wi-Fi communication module 33 sends the media data to the interactive tablet 4 through the Ethernet protocol in S50. After receiving the media data, the interactive tablet 4 can display / play the media data after decoding and rendering.
[0041] In summary, in Figure 3In the data transmission method shown, when the data transmission device transmits media data between the electronic device and the interactive tablet, due to the different connection methods with the electronic device and the interactive tablet, the communication protocols supported by the data transmission device when receiving data sent by the electronic device and sending data to the interactive tablet are different, which results in the data transmission device also needing to convert the protocol format supported by the media data when implementing the screen projection function. This step not only increases the time for the data transmission device to transmit media data, but also increases the possibility of errors when performing protocol conversion on the media data, thereby reducing the transmission efficiency and transmission quality of the data transmission device when transmitting media data.
[0042] Therefore, the present application provides a data transmission method and a data transmission device, which respectively connect an electronic device and an interactive tablet through a first communication module and a second communication module that support the same first communication protocol provided in the data transmission device, so that when the data transmission device transmits media data between the electronic device and the interactive tablet, the electronic device can control the first communication module to send the media data to the second communication module using the first communication protocol, so that the second communication module can directly send the media data to the interactive tablet using the first communication protocol. In this process, the data transmission device does not need to perform protocol conversion and other processing on the media data, thereby reducing the time for the data transmission device to transmit the media data and the possibility of errors when performing protocol conversion on the media data, thereby improving the transmission efficiency and transmission quality of the data transmission device when transmitting media data.
[0043] The technical solution of the present application is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0044] Specifically, the data transmission device 3 provided in this embodiment can be applied to Figure 1 In the scenario shown, the data transmission device includes at least two communication modules, which are denoted as the first communication module and the second communication module, wherein the data transmission device 3 is connected to the electronic device 1 through the first communication module and to the interactive tablet 4 through the second communication module. At the same time, the first communication module and the second communication module support the same communication protocol, which is denoted as the first communication protocol, that is, the electronic device can send data to the first communication module using the first communication protocol, and the second communication module can send data to the interactive tablet using the first communication protocol.
[0045] In one possible implementation, Figure 4 A schematic diagram of the structure of an embodiment of a data transmission device provided by the present application is shown in FIG. Figure 4 The data transmission device shown can be used in Figure 1In the scenario shown, the data transmission device 3 is connected to the electronic device 1 via a connection line 2 and can be used to transmit media data of the electronic device 1 to the interactive tablet 4 .
[0046] In such Figure 4 In the example shown, the first communication module may be a USB communication module 34, and the second communication module may be a Wi-Fi communication module 33. Specifically, the USB communication module 34 may be a USB network card, which may be implemented by a hardware entity module provided in the data transmission device 3, or the USB network card may be implemented by a software program running in the processor 32 in the data transmission device 3, so that the USB communication module 34 can transmit data via the Ethernet communication protocol through the USB interface. Then, in the data transmission device 3, the USB communication module 34 is also connected to the USB communication interface 31, and is connected to the electronic device 1 via the USB communication interface 31 and the connecting line 2 in turn. Both the USB communication module 34 and the Wi-Fi communication module support the same Ethernet communication protocol, so the electronic device 1 can send media data of the Ethernet protocol to the USB communication module 34, and the Wi-Fi communication module 33 can also send media data of the Ethernet protocol to the interactive tablet 4.
[0047] More specifically, Figure 5 A flow chart of an embodiment of a data transmission method provided by the present application is shown in FIG. Figure 5 The data transmission method shown can be applied to Figure 1 In the scene shown, the electronic device 1, the interactive tablet 4 and Figure 4 The data transmission device 3 shown is implemented. Figure 5 As shown, the data transmission method provided in this embodiment includes:
[0048] S101, the electronic device 1 is connected to the USB communication module 34 in the data transmission device 3 via the USB connection line 2 and the USB communication interface 31, and a communication connection relationship between the electronic device 1 and the USB communication module 34 is established via the USB connection line and the USB communication interface 31, which is recorded as the first connection relationship.
[0049] Among them, in S101, the user can use the USB cable 2 to connect the electronic device 1 with the data transmission device 3, specifically, one end of the USB cable 2 can be connected to the USB communication interface in the electronic device 1, and the other end of the USB cable 2 can be connected to the USB communication interface 31 of the data transmission device 3. Subsequently, for the electronic device 1, the processing module such as the processor of the electronic device 1 can read that the USB communication interface of the electronic device 1 is connected to the USB communication module 34 of the data transmission device 3 through the USB enumeration method. At the same time, since the USB communication interface 31 of the data transmission device 3 is also connected to the USB communication module 34, the electronic device 1 can also read that the USB interface is connected to the USB communication module 34 during the USB enumeration, and then the USB communication module 34 can be used for communication later. Then the electronic device 1 can also initialize the USB communication module 34 through the USB cable 2, so that a communication connection relationship is established between the electronic device 1 and the USB communication module 34, which is recorded as a first connection relationship. Through the first connection relationship, the electronic device can use the USB communication module 34 for communication. In this embodiment, the specific implementation of establishing the first connection relationship is not limited. Reference may be made to the relevant technology for establishing a connection between the electronic device and the USB network card when the electronic device is connected to the USB network card so that the electronic device can use the USB network card.
[0050] For example, Figure 6 A schematic diagram of the use status of the data transmission device provided for the present application, wherein the process in S101 can be understood as the process of the electronic device 1 connecting to the USB communication module 34 (USB network card) and further using the USB network card. Then, when the electronic device 1 uses the USB communication module 34 for communication, the underlying data transmission between the two can be carried out in accordance with the USB protocol. After the electronic device 1 is connected to the data transmission device 3 via the USB connection cable 2, the electronic device 1 is connected to the USB communication module 34 via the USB connection cable 2 and the USB communication interface 31. At this time, it is "equivalent to" installing a USB network card in the electronic device 1, so that the USB communication module 34 can work as a part of the electronic device 1, and the electronic device 1' after the USB network card is installed can transmit Ethernet protocol data through the USB network card. That is, the electronic device 1' framed by dotted lines in the figure, within the electronic device 1', the connection cable 2, the USB communication interface 31 and the USB communication module 34 can be "regarded as" a whole communication module 11', and the electronic device 1' can transmit data in accordance with the Ethernet protocol through the communication module 11'. It should be noted that Figure 6 The virtual electronic device 1 ′ and the communication module 11 ′ indicated by the dotted lines are only logical virtual inclusion relationships. In terms of physical structure, the USB communication interface 31 and the USB communication module 34 are still arranged in the data transmission device 3 .
[0051] S102 . The Wi-Fi communication module 33 in the data transmission device 3 establishes a connection relationship with the interactive tablet 4 , which is recorded as a third connection relationship.
[0052] Among them, the Wi-Fi communication module 33 can specifically establish a Wi-Fi connection relationship with the interactive tablet 4 through wireless communication, and continue to maintain the established Wi-Fi connection relationship after S102. The specific process of establishing the Wi-Fi connection relationship is not limited in this embodiment, and the Wi-Fi communication module 33 can be controlled by the processor 32 to execute.
[0053] S103 , establishing a second connection relationship between the USB communication module 34 and the Wi-Fi communication module 33 by means of bridging or network address translation NAT.
[0054] Among them, since both the USB communication module 34 and the Wi-Fi communication module 33 support the Ethernet protocol, a bridge or NAT connection relationship can be established between the network port of the USB communication module 34 and the network port of the Wi-Fi communication module 33, so that Ethernet protocol data can be transmitted between the USB communication module 34 and the Wi-Fi communication module 33 through the established connection relationship.
[0055] For example, in Figure 6 In the example shown, after S103, a second connection relationship is established between the USB communication module 34 and the Wi-Fi communication module 33 in the data transmission device 3. The second connection relationship is implemented by wireless communication. Figure 6 The second connection relationship is identified by a dotted connecting line between the two.
[0056] S104 , the electronic device 1 sends a Dynamic Host Configuration Protocol (DHCP) request to the interactive tablet 4 by controlling the USB communication module 34 .
[0057] Among them, after the electronic device 1 is connected to the USB communication module 34, in order to use the USB communication module 34 for Ethernet protocol communication, the electronic device 1 can request the interactive tablet 4 to allocate an Internet Protocol address (IP address) to the electronic device 1 by sending a DHCP request to the interactive tablet 4. In one embodiment, the electronic device 1 can specifically control the USB communication module 34 to send a DHCP request to the interactive tablet 4 through the connecting line 2 and the USB communication interface 31, or control the USB communication module 34 to send a DHCP request to the interactive tablet 4 through the bridged Wi-Fi communication module 33.
[0058] S105 . The interactive tablet 4 allocates an IP address to the electronic device 1 , and sends the IP address to the electronic device 1 .
[0059] After receiving the DHCP request sent by the electronic device, the interactive tablet 4 allocates an IP address to the electronic device 1 and sends the IP address to the electronic device 1. After receiving the IP address sent by the interactive tablet 4, the electronic device 1 can execute the subsequent process of sending data to the interactive tablet 4 through the Ethernet protocol in S106-S108.
[0060] S106, the electronic device 1 specifically sends the media data to the Wi-Fi communication module 33 by controlling the USB communication module 34 through the first connection relationship with the USB communication module 34. In S106, the electronic device 1 can send the media data to the USB communication module 34 through the USB connection line 2, and correspondingly, the USB communication module 34 receives the media data sent by the electronic device 1. At this time, the electronic device 1 is equivalent to using the USB communication module 34 as a USB network card as an interface for outputting media data. The underlying protocol between the electronic device 1 and the USB communication module 34 still uses the USB protocol, so that the electronic device 1 sends the media data to the USB communication module 34 through the USB connection line 2 in the USB protocol, and controls the USB communication module to send the media data to the Wi-Fi communication module 33 in the Ethernet protocol.
[0061] S107, USB communication module 34, specifically through the second connection relationship with Wi-Fi communication module 33, directly forwards the media data received in S106 to Wi-Fi communication module 33 through Ethernet protocol under the control of electronic device 1. In S107, USB communication module 34 is equivalent to the network card of electronic device 1 at the application level, directly sending the media data of electronic device 1 to Wi-Fi communication module 33 through Ethernet protocol. In this process, the protocol format of the transmitted media data is not modified. Correspondingly, Wi-Fi communication module 33 receives the media data sent by USB communication module 34 through Ethernet protocol.
[0062] S108, the Wi-Fi communication module 33 continues to forward the media data directly to the interactive tablet 4 through the Ethernet protocol through the third connection relationship between the interactive tablet 4. In S108, the Wi-Fi communication module 33 does not modify the protocol format of the transmitted media data, which is equivalent to the Wi-Fi communication module 33 playing a relay role between the USB communication module 34 and the interactive tablet 4. After receiving the media data, the interactive screen 4 can directly decode and render the media data and display / play it.
[0063] In summary, in the data transmission method provided in the present embodiment, a USB communication module and a Wi-Fi communication module that both support the Ethernet protocol are provided in the data transmission device, and after the USB communication module is connected to the electronic device, the electronic device can use the USB communication module to transmit the media data to the Wi-Fi communication module using the Ethernet protocol, and then the Wi-Fi communication module sends the media data to the interactive flat panel for screen projection display using the Ethernet protocol. Since the electronic device can directly control the USB communication module to send the media data of the Ethernet protocol, the data transmission device does not need to perform such a process on the media data during the entire process of each transmission of the media data. Figure 2-Figure 3 The conversion of the USB protocol to the Ethernet protocol in the embodiment shown in the figure is Figure 2-Figure 3 Compared with the embodiment shown, the time taken by the data transmission device to transmit media data is reduced, and the delay of the data transmission device in each media data transmission is reduced, thereby improving the transmission efficiency of the data transmission device in transmitting media data; at the same time, since the data transmission device omits the protocol conversion step, it can also reduce the possibility of errors when performing protocol conversion on media data, thereby improving the transmission quality of the data transmission device for transmitting media data; in addition, the architecture of adding a USB communication module to the data transmission device provided in this embodiment is simple and easy to implement, and can be flexibly implemented in the form of hardware or software. After one configuration, it can be used in each subsequent transmission of media data.
[0064] In addition, based on the embodiment of the present application, the electronic device 1 uses the USB communication module 34 in the data transmission device 3 to transmit data. When a USB network card is provided in the electronic device 1, the USB communication module 34 may not be provided in the data transmission device 3. Instead, the USB network card in the electronic device 1 is used directly as the USB communication module 34 in this embodiment. After establishing a second connection relationship with the Wi-Fi communication module in the data transmission device 3 through bridging / NAT, the electronic device 1 directly controls the USB communication module to transmit media data to the interactive tablet through the second connection relationship and the third connection relationship using the Ethernet protocol. The specific implementation is the same as the principle and will not be repeated here.
[0065] In the foregoing embodiments, the data transmission method provided by the embodiments of the present application is introduced, and in order to realize the various functions in the method provided by the embodiments of the present application, the electronic device and the data transmission device as the execution subject may include a hardware structure and / or a software module, and the above functions are realized in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
[0066] For example, Figure 4 The data transmission device shown can be used to execute the data transmission method in the above embodiment. The first communication module can be used to obtain media data from the electronic device and send the media data to the second communication module using the first communication protocol. The second communication module can be used to receive the media data and send the media data to the interactive tablet using the first communication protocol. Figure 5 The embodiments shown will not be described in detail.
[0067] For another example, the present application also provides an electronic device that can be used to execute the data transmission method executed by the electronic device in the above embodiment. The electronic device may include a communication interface and a processing module. The communication interface may be a USB communication interface that can be used to connect to a first communication module of a data transmission device via a USB cable; the processing module may be a processor such as a CPU. When the communication interface of the electronic device is connected to the first communication module of the data transmission device via a USB cable, the processing module may be used to determine that the communication interface is connected to the first communication module of the data transmission device, and control the first communication module to send media data to the second communication module using the first communication protocol through the communication interface, so that the second communication module sends media data to the interactive tablet using the first communication protocol. For details, please refer to Figure 5 The embodiments shown will not be described in detail.
[0068] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. It can be a separate processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0069] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more microprocessors (digital signal processors, DSP), or one or more field programmable gate arrays (FPGA), etc. For another example, when a module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0070] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
[0071] The present application also provides an electronic device, comprising: a processor, a memory and a computer program; wherein the computer program is stored in the memory and is configured to be executed by the processor, and the computer program includes instructions for executing any of the data transmission methods executed by the electronic device in the aforementioned embodiments of the present application.
[0072] The present application also provides a data transmission device, comprising: a processor, a memory and a computer program; wherein the computer program is stored in the memory and is configured to be executed by the processor, and the computer program includes instructions for executing any data transmission method performed by the data transmission device in any of the aforementioned embodiments of the present application.
[0073] The present application also provides a computer-readable storage medium, which stores a computer program, and the computer program enables a server to execute instructions of a data transmission method executed by an electronic device in any of the aforementioned embodiments of the present application; or, the computer program enables a server to execute instructions of a data transmission method executed by a data transmission device in any of the aforementioned embodiments of the present application.
[0074] An embodiment of the present application also provides a chip for running instructions, wherein the chip is used to execute a method executed by an electronic device as in any of the foregoing embodiments of the present application; or, the chip is used to execute a method executed by a data transmission device as in any of the foregoing embodiments of the present application.
[0075] An embodiment of the present application also provides a program product, which includes a computer program, which is stored in a storage medium. At least one processor can read the computer program from the storage medium, and when the at least one processor executes the computer program, it can implement the data transmission method performed by the electronic device in any of the aforementioned embodiments of the present application; or, when the at least one processor executes the computer program, it can implement the data transmission method performed by the data transmission device in any of the aforementioned embodiments of the present application.
[0076] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0077] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A data transmission method, characterized in that: Applied to a data transmission device, the data transmission device comprises: a USB communication interface, a first communication module and a second communication module, the first communication module and the second communication module both transmit data using a first communication protocol; the first communication module comprises: a USB network card, wherein the USB network card is connected to the electronic device via a USB connection line and a USB communication interface; The method comprises: The USB network card receives the media data sent by the electronic device through the USB connection line and the USB communication interface; wherein the first communication protocol is different from the USB communication protocol; The first communication module sends the media data to the second communication module using the first communication protocol; The second communication module receives the media data and sends the media data to the interactive tablet using the first communication protocol.
2. The method according to claim 1, characterized in that The first communication protocol includes: Ethernet communication protocol; A communication connection relationship of bridging or network address translation NAT is established between the first communication module and the second communication module.
3. A data transmission method, characterized in that: Applied to an electronic device, the electronic device is used to send media data to a data transmission device, so that the data transmission device transmits the media data to an interactive tablet, the data transmission device comprises: a USB communication interface, a first communication module and a second communication module, the first communication module and the second communication module both transmit data using a first communication protocol; the first communication module comprises: a USB network card, wherein the USB network card is connected to the electronic device via a USB connection cable and a USB communication interface; The method comprises: By USB enumeration, it is detected that the electronic device is connected to the USB network card of the data transmission device through the USB connection line and the USB communication interface; Controlling the first communication module to send the media data to the second communication module using the first communication protocol, so that the second communication module sends the media data to the interactive tablet using the first communication protocol; wherein the first communication protocol is different from the USB communication protocol; The controlling the first communication module to send the media data to the second communication module using the first communication protocol includes: The media data is sent to the first communication module through the USB connection line and the USB communication interface, and the first communication module is controlled to send the media data to the second communication module using the first communication protocol.
4. The method according to claim 3, characterized in that The first communication protocol includes: Ethernet communication protocol.
5. The method according to claim 4, characterized in that After determining that the electronic device is connected to the first communication module of the data transmission device, the method further includes: Control the first communication module to send a dynamic host configuration protocol DHCP to the interactive tablet; The IP address assigned by the interactive tablet to the electronic device is received through the first communication module, wherein the IP address is used by the electronic device to control the first communication module to transmit data using the Ethernet communication protocol.
6. A data transmission device, characterized in that: include: A first communication module, the first communication module comprising: a USB network card, wherein the USB network card is connected to the electronic device via a USB connection line and a USB communication interface; and is used to obtain media data from the electronic device and send the media data to the second communication module using a first communication protocol; wherein the first communication protocol is different from the USB communication protocol; A second communication module, configured to receive the media data and send the media data to the interactive tablet using the first communication protocol; The first communication module is specifically used to receive the media data sent by the electronic device through a USB connection line and a USB communication interface.
7. An electronic device, characterized in that: include: A communication interface, used for communicating with a first communication module of a data transmission device; a processing module, configured to determine that the communication interface is connected to a first communication module of the data transmission device, and control the first communication module to send media data to the second communication module using a first communication protocol through the communication interface, so that the second communication module sends the media data to the interactive tablet using the first communication protocol; wherein the first communication protocol is different from the USB communication protocol; The processing module is specifically used to detect, through USB enumeration, that the electronic device is connected to the USB network card of the data transmission device through a USB connection cable and a USB communication interface, and to send the media data to the first communication module through the USB connection cable and the USB communication interface, and to control the first communication module to send the media data to the second communication module using the first communication protocol.
8. A data transmission system, characterized in that: include: Electronic equipment and data transmission equipment; The data transmission device comprises: a USB communication interface, a first communication module and a second communication module, wherein the first communication module and the second communication module both transmit data using a first communication protocol; the first communication module comprises: a USB network card, wherein the USB network card is connected to the electronic device via a USB connection line and a USB communication interface; wherein the first communication protocol is different from the USB communication protocol; The electronic device is used to connect to the first communication module of the data transmission device and control the first communication module to send media data to the second communication module using the first communication protocol; The data transmission device is used to send the media data to the interactive tablet through the second communication module using the first communication protocol.
Citation Information
Cited By
Data transmission method and data transmission device
WO2022228002A1
