WO2021184291A1 - Data transmission method, apparatus and system - Google Patents

Data transmission method, apparatus and system Download PDF

Info

Publication number
WO2021184291A1
WO2021184291A1 PCT/CN2020/080176 CN2020080176W WO2021184291A1 WO 2021184291 A1 WO2021184291 A1 WO 2021184291A1 CN 2020080176 W CN2020080176 W CN 2020080176W WO 2021184291 A1 WO2021184291 A1 WO 2021184291A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
target device
local area
area network
previous
Prior art date
Application number
PCT/CN2020/080176
Other languages
French (fr)
Chinese (zh)
Inventor
王文博
韩丹
Original Assignee
西安诺瓦星云科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 西安诺瓦星云科技股份有限公司 filed Critical 西安诺瓦星云科技股份有限公司
Priority to PCT/CN2020/080176 priority Critical patent/WO2021184291A1/en
Priority to CN202080012660.5A priority patent/CN113812127B/en
Publication of WO2021184291A1 publication Critical patent/WO2021184291A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5038Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2370/00Aspects of data communication
    • G09G2370/02Networking aspects
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2370/00Aspects of data communication
    • G09G2370/02Networking aspects
    • G09G2370/025LAN communication management
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2370/00Aspects of data communication
    • G09G2370/04Exchange of auxiliary data, i.e. other than image data, between monitor and graphics controller
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2370/00Aspects of data communication
    • G09G2370/10Use of a protocol of communication by packets in interfaces along the display data pipeline
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/003Details of a display terminal, the details relating to the control arrangement of the display terminal and to the interfaces thereto
    • G09G5/006Details of the interface to the display terminal

Definitions

  • This application relates to the field of display, and in particular to a method, device and system for transmitting data.
  • the LED display system includes a multimedia play box and an LED display.
  • the multimedia play box is composed of an application processor, memory, storage, and an application system (for example, Android Android system).
  • the multimedia player box is connected to the LED display screen, the LED display screen needs to be configured with screen parameters, and the multimedia player box needs to be configured with playback parameters, and the above parameters need to be saved. If there are only a few sets of LED display systems, users can configure them separately. However, for an LED display system that includes a large number of LED display screens and multimedia playback boxes, if it is configured separately, it will inevitably lead to duplication of workload.
  • USB Universal Serial Bus
  • the embodiments of the present application provide a method, device, and system for data transmission, so as to at least solve the technical problem of communication between multiple devices in the related art through the USB protocol, which causes great difficulty in development.
  • a method for transmitting data includes: a target device receives a first IP address sent by a next device connected to it, and sends a second IP address to the previous device connected to it, Among them, the first IP address and the second IP address are respectively assigned by the next device and the target device based on the remote network driver interface specification; based on the first IP address, the target device establishes a first local area network with the next device; based on the second IP address , The target device establishes a second local area network with the previous device; in the second local area network, the target device receives the data sent by the previous device, and in the first local area network, the target device sends the data to the next device.
  • This embodiment solves the technical problem of communication between multiple devices in the related art through the USB protocol, which causes great development difficulty, avoids the problem that the communicating devices need to be configured one by one in advance, and achieves the reduction of the development difficulty and the configuration at the same time.
  • the purpose of multiple devices is to be configured one by one in advance, and achieves the reduction of the development difficulty and the configuration at the same time.
  • the target device includes a USB host module and a USB slave module.
  • the target device receives the first IP address sent by the next device connected to it, and sends the second IP address to the previous device connected to it, including: remote-based
  • the network driver interface specification the target device receives the first IP address through the USB host module, and sends the second IP address to the next device through the USB slave module.
  • This embodiment implements the allocation of IP addresses by running the RNDIS protocol on the USB slave module.
  • the above method further includes: setting the working mode of the USB slave module to the network card mode.
  • the above method further includes: receiving an acquisition instruction, wherein the acquisition instruction is set to acquire configuration information of the target device; and returning the configuration to the previous device information.
  • the above method further includes: the target device sends the multimedia information to the display device, wherein the display device is matched with the target device.
  • the target device is connected to the previous device and the next device via USB.
  • a target device receives a first IP address sent by a next device connected to it, wherein the first IP address is used by the next device based on the remote Network driver interface specification allocation; based on the first IP address, the target device establishes a first local area network with the next device; in the first local area network, the target device sends data to the next device.
  • the development difficulty is reduced through the RNDIS protocol.
  • the above method further includes: receiving a configuration instruction, wherein the configuration instruction is set to the target device configuration driver corresponding to the remote network driver interface specification Programs and software; configure drivers and software based on configuration instructions.
  • the driver and software by configuring the driver and software on the target device, data transmission with the next device can be realized.
  • the target device includes a USB host module
  • the target device receiving the first IP address sent by the next device connected to the target device includes: based on the remote network driver interface specification, the target device receives the first IP address through the USB host module.
  • a method for transmitting data including: the target device sends a second IP address to the previous device connected to it, wherein the second IP address is driven by the target device based on a remote network Program interface specification allocation; based on the second IP address, the target device establishes a second local area network with the previous device; in the second local area network, the target device receives data sent by the previous device.
  • the development difficulty is reduced through the RNDIS protocol.
  • the target device includes a USB slave module, and the target device sends the second IP address to the previous device connected to it, including: based on the remote network driver interface specification, the target device sends the second IP address to the next device through the USB slave module IP address.
  • an apparatus for transmitting data which is set in a target device, and the apparatus includes: a first receiving module configured to receive a first receiving module sent by the next device connected to the target device. IP address, and send a second IP address to the previous device connected to the target device, where the first IP address and the second IP address are respectively allocated by the next device and the target device based on the remote network driver interface specification; the first establishment The module is set to establish a first local area network with the next device based on the first IP address; the second establishment module is set to establish a second local area network with the previous device based on the second IP address; the execution module is set to establish a second local area network with the previous device Inside, receive the data sent by the previous device, and send the data to the next device in the first local area network.
  • a system for transmitting data including: a plurality of cascaded devices, including the last device and other devices except the last device.
  • Each device receives the first IP address sent by the next device connected to it, and sends the second IP address to the previous device connected to it.
  • the last device only sends the second IP address to the previous device connected to it.
  • the IP address and the second IP address are allocated based on the remote network driver interface specification; the upper computer is connected to the first device among the remaining devices, and is set to receive the first IP address sent by the first device based on the first IP address ,
  • the host computer establishes a first local area network with the first device.
  • the host computer sends data to the first device, and the first device transmits the data to the second device connected to it, until it is transmitted sequentially To the last device.
  • the system of this embodiment includes multiple cascaded devices and a host computer.
  • the RNDIS protocol solves the problem of communication between multiple devices in the related technology through the USB protocol, which leads to technical problems that are difficult to develop, and avoids the need for communication between devices.
  • the problem of configuring one by one in advance achieves the goal of reducing the difficulty of development and configuring multiple devices at the same time.
  • a system for transmitting data including: a plurality of cascaded devices, including the last device and other devices except the last device.
  • Each device receives the first IP address sent by the next device connected to it, and sends the second IP address to the previous device connected to it.
  • the last device only sends the second IP address to the previous device connected to it.
  • the IP address and the second IP address are allocated based on the remote network driver interface specification; the upper computer is connected to the first device among the remaining devices, and is set to receive the first IP address sent by the first device based on the first IP address ,
  • the host computer establishes a first local area network with the first device.
  • the host computer sends data to the first device, and the first device transmits the data to the second device connected to it, until it is transmitted sequentially To the last device; multiple display devices, matched with multiple cascaded devices one by one, set to display data.
  • the system of this embodiment includes multiple cascaded devices, multiple display devices, and a host computer. Through the RNDIS protocol, the communication between multiple devices in the related technology through the USB protocol is solved, which leads to technical problems that are difficult to develop.
  • the display device The transmitted data can be displayed intuitively, which avoids the problem of one-by-one configuration between communicating devices, and achieves the purpose of reducing the difficulty of development and configuring multiple devices at the same time.
  • the target device receives the first IP address sent by the next device connected to it, and sends the second IP address to the previous device connected to it, where the first IP address and the second IP address are respectively assigned to The next device and the target device are allocated based on the remote network driver interface specification; based on the first IP address, the target device establishes a first local area network with the next device; based on the second IP address, the target device establishes a second local area network with the previous device; In the second local area network, the target device receives the data sent by the previous device, and in the first local area network, the target device sends the data to the next device.
  • the device in this application can work in the network card mode, and provide an IP address for the previous device connected to it through the remote network driver interface specification, which solves the problem of communication between multiple devices in the related technology through the USB protocol.
  • FIG. 1 is a flowchart of an optional data transmission method according to Embodiment 1 of the present application.
  • FIG. 2 is a structural diagram of an optional data transmission device according to Embodiment 1 of the present application.
  • FIG. 3 is a flowchart of an optional data transmission method according to Embodiment 2 of the present application.
  • FIG. 4 is a structural diagram of an optional data transmission device according to Embodiment 2 of the present application.
  • FIG. 5 is a flowchart of an optional data transmission method according to Embodiment 3 of the present application.
  • FIG. 6 is a structural diagram of an optional data transmission device according to Embodiment 3 of the present application.
  • FIG. 7 is a schematic structural diagram of an optional data transmission device according to Embodiment 4 of the present application.
  • FIG. 8 is a schematic structural diagram of an optional data transmission device according to Embodiment 5 of the present application.
  • FIG. 9 is a schematic structural diagram of an optional data transmission device according to Embodiment 6 of the present application.
  • FIG. 10 is a structural diagram of an optional data transmission system according to Embodiment 7 of the present application.
  • FIG. 11 is a structural diagram of an optional data transmission system according to Embodiment 8 of the present application.
  • Transmission Control Protocol/Internet Protocol refers to the protocol cluster that can realize data transmission between multiple different networks. Its name is derived from the earliest two core protocols: Transmission Control Protocol ( Transmission Control Protocol (TCP) and Internet Protocol (Internet Protocol, IP), which specify the way equipment connects to the network and the standard for how data is transmitted.
  • TCP Transmission Control Protocol
  • IP Internet Protocol
  • an embodiment of a method for transmitting data is provided, which can be applied to multiple cascaded devices. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although the logical sequence is shown in the flowchart, in some cases, The steps shown or described can be performed in a different order than here.
  • Fig. 1 is a flowchart of a method for transmitting data according to an embodiment of the present application. As shown in Fig. 1, the method includes the following steps:
  • Step S102 The target device receives the first IP address sent by the next device connected to it, and sends the second IP address to the previous device connected to it, where the first IP address and the second IP address are respectively assigned by the next device and The target device is allocated based on the remote network driver interface specification.
  • the above-mentioned target device, the next device, and the previous device may be the same device or different devices, which is not limited here.
  • this application uses the same multimedia play box as an example for description. It should be noted that all data transmission between multiple devices, as long as each device can run the Remote Network Driver Interface Specification (RNDIS), is within the protection scope of this application, such as the built-in typical A device with an Android board can implement the communication mode of the embodiment of the present application.
  • RDIS Remote Network Driver Interface Specification
  • the so-called remote network driver interface specification is an implementation of the network driver interface specification (NDIS) based on USB.
  • NDIS network driver interface specification
  • the actual function is TCP/IP over USB, that is, the USB device is regarded as a network card and TCP/IP is run on the USB device. Protocol to realize data transmission between devices.
  • the above-mentioned TCP/IP protocol can be called through the Socket programming interface.
  • the network driver interface specification defines the communication interface specification between the network card or the network card driver and the upper layer protocol driver, it shields the difference of the underlying physical hardware, so that the upper layer protocol driver can communicate with any type of network card at the bottom layer. Therefore, The network driver interface specification creates a complete development environment for the network driver, without considering the kernel of the operating system and the interface with other programs, so that the network driver can be separated from the complex communication of the operating system, which is greatly convenient The preparation of network driver.
  • multiple devices are cascaded, that is, device 1 and device 2 are connected, and device 2 and device 3 are connected.
  • device 3 can run the remote network driver interface specification and assign IP address to device 2;
  • device 2 can be used as the network card of device 1, run the remote network driver interface specification, and assign IP address to device 1.
  • the above solution only needs to run the remote network driver interface specification to realize the interconnection of devices, which greatly reduces the difficulty of development.
  • Step S104 based on the first IP address, the target device establishes a first local area network with the next device.
  • the above-mentioned first local area network may be a TCP/IP local area network.
  • the target device and the next device can establish a first local area network.
  • Step S106 Based on the second IP address, the target device establishes a second local area network with the previous device.
  • the above-mentioned second local area network may be a TCP/IP local area network.
  • the previous device and the target device can establish a second local area network.
  • first local area network and the second local area network are independent of each other and do not interfere with each other. If the transmission link of the second local area network fails, the data transmission of the first local area network will not be affected.
  • Step S108 In the second local area network, the target device receives the data sent by the previous device, and in the first local area network, the target device sends the data to the next device.
  • the above data can be the configuration parameters of the device, such as the screen configuration parameters of the multimedia player box (such as resolution, brightness, etc.), synchronous/asynchronous mode, and network access methods (such as WiFi connection, 4G connection, 5G connection) Etc.), temperature, memory usage, timing switch screen, etc., can also be multimedia information, such as video streams, pictures, text, etc.
  • the screen configuration parameters of the multimedia player box such as resolution, brightness, etc.
  • synchronous/asynchronous mode such as WiFi connection, 4G connection, 5G connection) Etc.
  • temperature such as temperature, memory usage, timing switch screen, etc.
  • multimedia information such as video streams, pictures, text, etc.
  • the target device establishes a second local area network with the previous device, and establishes a first local area network with the next device. Then the data sent by the previous device can be received through the second local area network, and then the data sent by the previous device can be received through the first local area network. The data is sent to the next device, and then passed in order to realize the gradual transmission of data.
  • the upper computer needs to configure the relevant parameters of n multimedia playback boxes at the same time.
  • the first multimedia play box is connected to the host computer, the second multimedia play box is connected between the first multimedia play box and the third multimedia play box,..., the n-1th multimedia play box is connected to the nth -2 between the multimedia play box and the nth multimedia play box.
  • the n-th multimedia player box assigns an IP address to the n-1th multimedia player box based on RNDIS, which forms a local area network; the n-1th multimedia player box assigns an IP address to the n-2th multimedia player box based on RNDIS , The two form a local area network; ...; the first multimedia player box is based on RNDIS to assign an IP address to the upper computer, and the two form a local area network. Therefore, when the networking is completed, the host computer needs to transmit data (for example, setting the relevant parameters of the multimedia play box) to the multimedia play box, and it can send data to the first multimedia play box through the TCP/IP protocol. After the first multimedia play box receives the data, it configures its own related parameters, and at the same time transmits the data to the second multimedia play box, and then the second multimedia play box passes backwards step by step until it is transmitted to the last multimedia player box.
  • RNDIS which forms a local area network
  • the n-1th multimedia player box assigns an IP address to the
  • the target device receives the first IP address sent by the next device connected to it, and sends the second IP address to the previous device connected to it, where the first IP address and the second IP address are respectively assigned to The next device and the target device are allocated based on the remote network driver interface specification; based on the first IP address, the target device establishes a first local area network with the next device; based on the second IP address, the target device establishes a second local area network with the previous device; In the second local area network, the target device receives the data sent by the previous device, and in the first local area network, the target device sends the data to the next device.
  • the device in this application can work in the network card mode, and provide an IP address for the previous device connected to it through the remote network driver interface specification, which solves the problem of communication between multiple devices in the related technology through the USB protocol.
  • the above solution of this embodiment can configure multiple devices at the same time, which can improve work efficiency and maintain the consistency of transmission parameters.
  • the target device includes a USB host module and a USB slave module.
  • the target device receives the first IP address sent by the next device connected to it, and sends the second IP address to the previous device connected to it. It can include:
  • Step S1022 based on the remote network driver interface specification, the target device receives the first IP address through the USB host module, and sends the second IP address to the next device through the USB slave module.
  • the above-mentioned USB host module may include a USB host interface
  • the above-mentioned USB device module may include a USB slave interface
  • the target device, the previous device, and the next device may be the same device, and all may include a USB host module and a USB slave module.
  • Figure 2 shows an optional data transmission device structure diagram.
  • the target device is connected between the previous device and the next device. Specifically, the target device is connected to the USB host module of the previous device through the USB slave interface of the USB slave module, and the target device is connected to the USB slave module of the next device through the host interface of the USB host module.
  • the target device before performing step S1022, the target device receives the first IP address through the USB host module and sends the second IP address to the next device through the USB slave module, the above method may further include:
  • step S1021 the working mode of the USB slave module is set to the network card mode.
  • the above-mentioned network card mode can be RNDIS mode, which can be set through a USB slave module.
  • the RNDIS mode can be set by the supporting software after the system is turned on to save setting time and improve work efficiency.
  • the target device after performing step S106, based on the second IP address, the target device establishes a second local area network with the previous device, the above method may further include:
  • Step S1051 Receive an acquisition instruction, where the acquisition instruction is set to acquire configuration information of the target device.
  • the above configuration information may include the screen configuration parameters of the multimedia player box (such as resolution, brightness, etc.), synchronous/asynchronous mode, network access method (such as WiFi connection, 4G connection, 5G connection, etc.), temperature, Memory usage, timing switch screen, etc.
  • screen configuration parameters of the multimedia player box such as resolution, brightness, etc.
  • synchronous/asynchronous mode such as synchronous/asynchronous mode
  • network access method such as WiFi connection, 4G connection, 5G connection, etc.
  • temperature such as Memory usage, timing switch screen, etc.
  • step S1052 the configuration information is returned to the previous device.
  • the target device After the target device receives the acquisition instruction, it returns its configuration information to the previous device, and transmits it to the upper computer level by level through the previous device, so that the upper computer sends out the configuration instructions according to the configuration information of the target device.
  • the upper computer only needs to obtain the configuration information of the first device connected to the upper computer.
  • the above method may also include:
  • Step S109 The target device sends multimedia information to the display device, where the display device is matched with the target device.
  • the above-mentioned multimedia information may be in the form of video streams, pictures, texts, etc.; the above-mentioned display device may be a TV wall, a monitor, a display screen, etc., and the display device is controlled by a matching multimedia play box.
  • the target device is connected to the previous device and the next device via USB.
  • USB slave interface of the target device is connected to the USB host interface of the previous device through USB, and the USB host interface of the target device and the USB slave interface of the next device are also connected through USB.
  • USB slave interface of the first device and the USB host interface of the upper computer are also connected via USB.
  • USB USB
  • plug and play multiple devices can be configured at the same time without more configuration. Developers do not need to pay attention to the USB protocol, which reduces the difficulty of development.
  • the target device receives the first IP address sent by the next device connected to it, and sends the second IP address to the previous device connected to it, where the first IP address and the second IP address are respectively assigned by The next device and the target device are allocated based on the remote network driver interface specification; based on the first IP address, the target device establishes a first local area network with the next device; based on the second IP address, the target device establishes a second local area network with the previous device; In the second local area network, the target device receives the data sent by the previous device, and in the first local area network, the target device sends the data to the next device.
  • the device in this application can work in the network card mode, and provide an IP address for the previous device connected to it through the remote network driver interface specification, which solves the problem of communication between multiple devices in the related technology through the USB protocol.
  • the above scheme realizes the TCP/IP communication between the devices through the USB host module and the USB slave module; by setting the USB slave module to the network card mode, the IP address is assigned to the previous device; by transmitting the configuration information to The previous device can facilitate the host computer to issue configuration instructions; through the display device matched with the multimedia player box, display multimedia information; connect each device through USB, plug and play, no more configuration, greatly improving work efficiency.
  • the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is Better implementation.
  • the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to enable a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application.
  • an embodiment of a method for transmitting data is provided, which can be applied to an upper computer.
  • the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although the logical sequence is shown in the flowchart, in some cases, The steps shown or described can be performed in a different order than here.
  • Fig. 3 is a flowchart of a method for transmitting data according to an embodiment of the present application. As shown in Fig. 3, the method includes the following steps:
  • Step S302 The target device receives the first IP address sent by the next device connected to it, where the first IP address is allocated by the next device based on the remote network driver interface specification.
  • the above-mentioned target device can be an upper computer or an intelligent terminal with control function; the above-mentioned next device can run Remote Network Driver Interface Specification (RNDIS), such as a built-in typical A device with an Android board card can implement the communication mode of the embodiment of the present application.
  • RNDIS Remote Network Driver Interface Specification
  • this application uses a multimedia play box as an example, it does not constitute an improper limitation of this application.
  • this application uses the same multimedia play box as an example for description. It should be noted that all data transmission between multiple devices, as long as each device can run the Remote Network Driver Interface Specification (RNDIS), is within the protection scope of this application, such as the built-in typical A device with an Android board can implement the communication mode of the embodiment of the present application.
  • RDIS Remote Network Driver Interface Specification
  • the so-called remote network driver interface specification is an implementation of the network driver interface specification (NDIS) based on USB.
  • NDIS network driver interface specification
  • the actual function is TCP/IP over USB, which means that the USB device is regarded as a network card and TCP/IP is run on the USB device. Protocol to realize data transmission between devices.
  • the above-mentioned TCP/IP protocol can be called through the Socket programming interface.
  • the network driver interface specification defines the communication interface specification between the network card or the network card driver and the upper layer protocol driver, it shields the difference of the underlying physical hardware, so that the upper layer protocol driver can communicate with any type of network card at the bottom layer. Therefore, The network driver interface specification creates a complete development environment for the network driver, without considering the kernel of the operating system and the interface with other programs, so that the network driver can be separated from the complex communication of the operating system, which is greatly convenient The preparation of network driver.
  • the upper computer is connected to the device 1, and the device 1 is used as the network card of the upper computer, which can run the remote network driver interface specification and allocate an IP address for the upper computer.
  • Step S304 based on the first IP address, the target device establishes a first local area network with the next device.
  • the above-mentioned first local area network may be a TCP/IP local area network.
  • the target device and the next device can establish a first local area network.
  • Step S306 In the first local area network, the target device sends the data to the next device.
  • the above data can be the configuration parameters of the device, such as the screen configuration parameters of the multimedia player box (such as resolution, brightness, etc.), synchronous/asynchronous mode, and network access methods (such as WiFi connection, 4G connection, 5G connection) Etc.), temperature, memory usage, timing switch screen, etc., can also be multimedia information, such as video streams, pictures, text, etc.
  • the screen configuration parameters of the multimedia player box such as resolution, brightness, etc.
  • synchronous/asynchronous mode such as WiFi connection, 4G connection, 5G connection) Etc.
  • temperature such as temperature, memory usage, timing switch screen, etc.
  • multimedia information such as video streams, pictures, text, etc.
  • the target device and the next device have established the first local area network, and then data can be sent to the next device.
  • the target device before performing step S302, the target device receives the first IP address sent by the next device connected to it, the above method may further include the following steps:
  • Step S3011 Receive a configuration instruction, where the configuration instruction is set to configure the target device to configure the driver and software corresponding to the remote network driver interface specification.
  • the above-mentioned driver may be an RNDIS interface driver
  • the above-mentioned software may be a desktop software matching the next device connected to it, such as a display management software ViPlex Express matching a multimedia player box.
  • Step S3012 based on the configuration instruction, configure the driver and software.
  • the target device After receiving the configuration instruction, the target device can configure the driver and corresponding software for itself.
  • the target device includes a USB host module
  • the target device receiving the first IP address sent by the next device connected to the target device includes: based on the remote network driver interface specification, the target device receives the first IP address through the USB host module.
  • the aforementioned USB host module may include a USB host interface.
  • Fig. 4 shows a structure diagram of an optional data transmission device.
  • the host computer is connected to the slave interface of the USB slave module of the next device through the host interface of the USB host module.
  • the host interface and the slave interface are directly connected through USB, and the USB typeB type of the multimedia player box
  • the interface is directly connected with the host interface of the upper computer.
  • the upper computer runs the desktop software ViPlex Express, which is matched with the multimedia player box, and installs the RNDIS driver. Since the multimedia player box runs RNDIS on the USB slave module, it virtualizes the USB slave module into a network card and assigns an IP address to the upper computer. Therefore, the multimedia player box establishes a TCP/IP local area network with the upper computer. Open the ViPlex Express software and search for the multimedia player box connected to the USB host module. ViPlex Express can obtain multimedia configuration information, set screen configuration parameters, and send multimedia information to multiple devices.
  • an embodiment of a method for transmitting data is provided, which can be applied to the last device of multiple cascaded devices.
  • steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although the logical sequence is shown in the flowchart, in some cases, The steps shown or described can be performed in a different order than here.
  • Fig. 5 is a flowchart of a method for transmitting data according to an embodiment of the present application. As shown in Fig. 5, the method includes the following steps:
  • Step S502 The target device sends a second IP address to the previous device connected to it, where the second IP address is allocated by the target device based on the remote network driver interface specification.
  • the above-mentioned target device can be the last device of multiple cascaded devices, and can run Remote Network Driver Interface Specification (RNDIS), such as a typical Android board.
  • RNDIS Remote Network Driver Interface Specification
  • the device of this application can implement the communication mode of the embodiment of the present application; the previous device mentioned above can be the same device as the target device, or it can be an intelligent terminal with control functions, such as a computer.
  • the so-called remote network driver interface specification is an implementation of the network driver interface specification (NDIS) based on USB.
  • NDIS network driver interface specification
  • the actual function is TCP/IP over USB, that is, the USB device is regarded as a network card and TCP/IP is run on the USB device. Protocol to realize data transmission between devices.
  • the above-mentioned TCP/IP protocol can be called through the Socket programming interface.
  • the network driver interface specification defines the communication interface specification between the network card or the network card driver and the upper layer protocol driver, it shields the difference of the underlying physical hardware, so that the upper layer protocol driver can communicate with any type of network card at the bottom layer. Therefore, The network driver interface specification creates a complete development environment for the network driver, without considering the kernel of the operating system and the interface with other programs, so that the network driver can be separated from the complex communication of the operating system, which is greatly convenient The preparation of network driver.
  • device 2 is used as the target device to connect to the previous device (ie, device 1), and device 2 is used as the network card of device 1, which can run in RNDIS mode and assign an IP address to device 1.
  • Step S504 Based on the second IP address, the target device establishes a second local area network with the previous device.
  • the above-mentioned second local area network may be a TCP/IP local area network.
  • the target device and the previous device can establish a second local area network.
  • Step S506 In the second local area network, the target device receives the data sent by the previous device.
  • the above data can be the configuration parameters of the device, such as the screen configuration parameters of the multimedia player box (such as resolution, brightness, etc.), synchronous/asynchronous mode, and network access methods (such as WiFi connection, 4G connection, 5G connection) Etc.), temperature, memory usage, timing switch screen, etc., can also be multimedia information, such as video streams, pictures, text, etc.
  • the screen configuration parameters of the multimedia player box such as resolution, brightness, etc.
  • synchronous/asynchronous mode such as WiFi connection, 4G connection, 5G connection) Etc.
  • temperature such as temperature, memory usage, timing switch screen, etc.
  • multimedia information such as video streams, pictures, text, etc.
  • the target device and the previous device have established a second local area network, and then the data sent by the previous device can be received.
  • the target device includes a USB slave module, and the target device sends the second IP address to the previous device connected to it, including: based on the remote network driver interface specification, the target device sends the second IP address to the next device through the USB slave module IP address.
  • the above-mentioned USB device module may include a USB device interface.
  • Fig. 6 shows a structure diagram of an optional data transmission device.
  • the target device the last device of multiple cascaded devices, is connected to the host interface of the USB host module of the previous device through the slave interface of the USB slave module, for example, the host interface and the slave interface Direct connection via USB. Since the target device runs RNDIS on the USB slave module, the USB slave module is virtualized into a network card, and the IP address is assigned to the previous device. Therefore, the target device establishes a TCP/IP local area network with the previous device and can receive transmissions from the previous device. The data.
  • a device for transmitting data is provided. It should be noted that the device for transmitting data in an embodiment of the present application can be used to execute the method for transmitting data provided in Embodiment 1 of the present application. The following describes a data transmission device provided in an embodiment of the present application.
  • Fig. 7 is a schematic diagram of an apparatus for transmitting data according to an embodiment of the present application. As shown in FIG. 7, the apparatus 700 is set in a target device, and the apparatus 700 includes: a first receiving module 702, a first establishing module 704, a second establishing module 706, and an executing module 708.
  • the first receiving module 702 is configured to receive a first IP address sent by the next device connected to the target device, and send a second IP address to the previous device connected to the target device, where the first IP address and the first IP address The second IP address is allocated by the next device and the target device based on the remote network driver interface specification; the first establishment module 704 is set to establish a first local area network with the next device based on the first IP address; the second establishment module 706 is set In order to establish a second local area network with the previous device based on the second IP address; the execution module 708 is configured to receive data sent by the previous device in the second local area network, and send the data to the next device in the first local area network .
  • the target device includes a USB host module and a USB slave module.
  • the target device receives the first IP address sent by the next device connected to it, and sends the second IP address to the previous device connected to it, including: remote-based The network driver interface specification, the target device receives the first IP address through the USB host module, and sends the second IP address to the next device through the USB slave module.
  • the above apparatus may further include: a setting module configured to set the USB slave module before the target device receives the first IP address through the USB host module and sends the second IP address to the next device through the USB slave module
  • the working mode is the network card mode.
  • the foregoing apparatus may further include: a second receiving module configured to receive an acquisition instruction after the target device establishes a second local area network with the previous device based on the second IP address, wherein the acquisition instruction is set to acquire the target device's Configuration information; return module, set to return configuration information to the previous device.
  • a second receiving module configured to receive an acquisition instruction after the target device establishes a second local area network with the previous device based on the second IP address, wherein the acquisition instruction is set to acquire the target device's Configuration information
  • return module set to return configuration information to the previous device.
  • the above-mentioned apparatus may further include: a sending module configured to send the multimedia information to the display device by the target device, wherein the display device is matched with the target device.
  • the target device is connected to the previous device and the next device via USB.
  • first receiving module 702, first establishing module 704, second establishing module 706, and executing module 708 correspond to steps S102 to S108 in Embodiment 1.
  • the four modules and the corresponding steps implement The example of is the same as the application scenario, but is not limited to the content disclosed in the above embodiment 1.
  • a device for transmitting data is provided. It should be noted that the device for transmitting data in an embodiment of the present application can be used to execute the method for transmitting data provided in the second embodiment of the present application. The following describes the data transmission device provided in the embodiment of the present application.
  • Fig. 8 is a schematic diagram of an apparatus for transmitting data according to an embodiment of the present application. As shown in FIG. 8, the apparatus 800 is set in the target device, and the apparatus 800 includes a first receiving module 802, an establishing module 804, and a sending module 806.
  • the first receiving module 802 is configured to receive the first IP address sent by the next device connected to the target device, where the first IP address is assigned by the next device based on the remote network driver interface specification;
  • the establishment module 804 is configured to set In order to establish a first local area network with the next device based on the first IP address;
  • the sending module 806 is configured to be in the first local area network and the target device sends data to the next device.
  • the above-mentioned apparatus may further include: a second receiving module configured to receive a configuration instruction before the target device receives the first IP address sent by the next device connected to it, where the configuration instruction is set as the target device configuration and remote The driver and software corresponding to the network driver interface specification; the configuration module is set to configure the driver and software based on configuration instructions.
  • the first receiving module includes: a first receiving sub-module configured to be based on a remote network driver interface specification, and the target device receives the first IP address through the USB host module.
  • first receiving module 802, establishing module 804, and sending module 806 correspond to steps S402 to S406 in Embodiment 2.
  • the examples and application scenarios implemented by these three modules are the same as those of the corresponding steps, but It is not limited to the content disclosed in Embodiment 2 above.
  • a device for transmitting data is provided. It should be noted that the device for transmitting data in an embodiment of the present application can be used to execute the method for transmitting data provided in Embodiment 3 of the present application. The following describes a data transmission device provided in an embodiment of the present application.
  • Fig. 9 is a schematic diagram of an apparatus for transmitting data according to an embodiment of the present application. As shown in FIG. 9, the apparatus 900 may be set in a target device.
  • the apparatus 900 includes a sending module 902, an establishing module 904, and a receiving module 906.
  • the sending module 902 is configured to send a second IP address to the previous device connected to the target device, where the second IP address is allocated by the target device based on the remote network driver interface specification; the establishing module 904 is set to be based on the second IP address. IP address, the target device establishes a second local area network with the previous device; the receiving module 906 is set to be in the second local area network, and the target device receives data sent by the previous device.
  • the target device includes a USB slave module
  • the sending module includes: a sending submodule, which is set based on the remote network driver interface specification, and the target device sends the second IP address to the next device through the USB slave module.
  • sending module 902, establishing module 904, and receiving module 906 correspond to steps S502 to S506 in Embodiment 3.
  • the examples and application scenarios implemented by these three modules are the same as those of the corresponding steps, but are not limited to The content disclosed in Example 3 above.
  • FIG. 10 is a structural diagram of a system for transmitting data according to an embodiment of the present application.
  • the drawn architecture is only an example of a suitable environment, and does not impose any limitation on the scope of use or functions of this application.
  • the system be interpreted as having any dependency or requirement on any component or combination of components shown in FIG. 10.
  • the data transmission system includes:
  • Each of the remaining devices receives the first IP address sent by the next device connected to it, and sends it to the connected device.
  • the previous device sends the second IP address, and the last device only sends the second IP address to the previous device connected to it.
  • the first IP address and the second IP address are allocated based on the remote network driver interface specification.
  • the upper computer is connected to the first device among the other devices, and is set to receive the first IP address sent by the first device. Based on the first IP address, the upper computer and the first device establish a first local area network. In the local area network, the upper computer sends data to the first device, and the first device transmits the data to the second device connected to it, until it is transmitted to the last device in turn.
  • FIG. 11 is a structural diagram of a system for transmitting data according to an embodiment of the present application.
  • the drawn architecture is only an example of a suitable environment, and does not impose any limitation on the scope of use or functions of this application.
  • the system be interpreted as having any dependency or requirement on any component or combination shown in FIG. 11.
  • the data transmission system includes:
  • Each of the remaining devices receives the first IP address sent by the next device connected to it, and sends it to the connected device.
  • the previous device sends the second IP address, and the last device only sends the second IP address to the previous device connected to it.
  • the first IP address and the second IP address are allocated based on the remote network driver interface specification.
  • the above-mentioned devices may be the same device, such as a multimedia play box, which is not limited herein. Any data transmission between multiple identical devices is within the protection scope of this application.
  • the upper computer is connected to the first device among the other devices, and is set to receive the first IP address sent by the first device. Based on the first IP address, the upper computer and the first device establish a first local area network. In the local area network, the upper computer sends data to the first device, and the first device transmits the data to the second device connected to it, until it is transmitted to the last device in turn.
  • the above-mentioned upper computer may be an intelligent terminal with control function such as a computer.
  • Multiple display devices are matched with multiple cascaded devices one by one and set to display data.
  • the above-mentioned display device may be a TV wall, a display, a display screen, etc., and the display device is controlled by a multimedia playback box that is matched with the display device.
  • the method is particularly suitable for this embodiment, and multiple LED display screens can be parameterized at the same time.
  • the data transmission system mainly includes multiple cascaded devices, a host computer, and multiple display devices.
  • the devices in this application can all work in the network card mode, and provide an IP address for the previous device connected to it through the remote network driver interface specification, which solves the problem of communication between multiple devices in the related technology through the USB protocol. , Which leads to technical problems that are difficult to develop, avoids the problem that communication devices need to be configured one by one in advance, and achieves the goal of low development difficulty and simultaneous configuration of multiple devices.
  • the above solutions implement TCP/IP communication between the devices through the USB host module and the USB slave module; by setting the USB slave module to the network card mode, the above A device is assigned an IP address; by transmitting the configuration information to the previous device, it is convenient for the host computer to issue configuration instructions; through the display device matched with the multimedia playback box, the multimedia information is displayed; each device is connected via USB, plug and play, no need More configuration greatly improves work efficiency.
  • the disclosed technical content can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units may be a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, units or modules, and may be in electrical or other forms.
  • 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, they may be located in one place, or they may be distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes. .
  • the remote network driver interface specification provides an IP address for the previous device connected to it, and receives the IP address provided by the next device connected to it, which solves the problem of communication between multiple devices in the related technology through USB Protocol communication leads to technical problems that are difficult to develop, avoids the problem of one-by-one configuration between communication devices, and achieves the technical effect of reducing the difficulty of development and configuring multiple devices at the same time.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

Disclosed are a data transmission method, apparatus and system. The method comprises: a target device receiving a first IP address sent by the next device connected to the target device, and sending a second IP address to a previous device connected to the target device, wherein the first IP address and the second IP address are respectively distributed by the next device and the target device on the basis of a remote network driving program interface specification; on the basis of the first IP address, the target device establishing a first local area network with the next device; on the basis of the second IP address, the target device establishing a second local area network with the previous device; and in the second local area network, the target device receiving data sent by the previous device, and in the first local area network, the target device sending the data to the next device. The present application solves the technical problem in the related art of a high development difficulty caused by the communication between multiple devices by means of a USB protocol.

Description

传输数据的方法、装置和系统Method, device and system for transmitting data 技术领域Technical field
本申请涉及显示领域,具体而言,涉及一种传输数据的方法、装置和系统。This application relates to the field of display, and in particular to a method, device and system for transmitting data.
背景技术Background technique
LED显示系统包括多媒体播放盒和LED显示屏,其中,多媒体播放盒由应用处理器、内存、存储和应用系统(例如安卓Android系统)组成。通常,多媒体播放盒与LED显示屏连接,LED显示屏需要配置屏幕参数,多媒体播放盒需要配置播放参数,上述参数均需要保存。如果只有几套LED显示系统,用户可以单独进行配置。但是,对于包括大量LED显示屏和多媒体播放盒的LED显示系统,如果还单独进行配置,势必导致工作量的重复。The LED display system includes a multimedia play box and an LED display. The multimedia play box is composed of an application processor, memory, storage, and an application system (for example, Android Android system). Generally, the multimedia player box is connected to the LED display screen, the LED display screen needs to be configured with screen parameters, and the multimedia player box needs to be configured with playback parameters, and the above parameters need to be saved. If there are only a few sets of LED display systems, users can configure them separately. However, for an LED display system that includes a large number of LED display screens and multimedia playback boxes, if it is configured separately, it will inevitably lead to duplication of workload.
为了解决上述问题,相关技术中在多个LED显示系统之间连接通用串行总线(Universal Serial Bus,USB),上位机通过USB协议将各种数据发送给多媒体播放盒和LED显示屏,进行相关配置和保存操作。然而,USB协议开发难度大,造成生产成本总体增加。In order to solve the above problems, in the related technology, a Universal Serial Bus (USB) is connected between multiple LED display systems, and the upper computer sends various data to the multimedia play box and the LED display screen through the USB protocol for correlation. Configure and save operations. However, the development of the USB protocol is difficult, resulting in an overall increase in production costs.
针对相关技术中多个设备,例如多媒体播放盒之间通过USB协议通信,导致开发难度大的技术问题,目前尚未提出有效的解决方案。Aiming at the technical problem that multiple devices in related technologies, such as multimedia player boxes communicate through the USB protocol, which leads to difficult development, no effective solution has been proposed yet.
发明内容Summary of the invention
本申请实施例提供了一种传输数据的方法、装置和系统,以至少解决相关技术中多个设备之间通过USB协议通信,导致开发难度大的技术问题。The embodiments of the present application provide a method, device, and system for data transmission, so as to at least solve the technical problem of communication between multiple devices in the related art through the USB protocol, which causes great difficulty in development.
根据本申请实施例的一个方面,提供了一种传输数据的方法,包括:目标设备接收与其相连的下一个设备发送的第一IP地址,并向与其相连的上一个设备发送第二IP地址,其中,第一IP地址和第二IP地址分别由下一个设备和目标设备基于远程网络驱动程序接口规范分配;基于第一IP地址,目标设备与下一个设备建立第一局域网;基于第二IP地址,目标设备与上一个设备建立第二局域网;在第二局域网内,目标设备接收上一个设备发送的数据,并在第一局域网内,目标设备将数据发送至下一个设备。本实施例解决了相关技术中多个设备之间通过USB协议通信,导致开发难度大的技术问题,避免了通信的设备之间需提前一一配置的问题,达到了降低开发难度,且 同时配置多个设备的目的。According to one aspect of the embodiments of the present application, a method for transmitting data is provided, which includes: a target device receives a first IP address sent by a next device connected to it, and sends a second IP address to the previous device connected to it, Among them, the first IP address and the second IP address are respectively assigned by the next device and the target device based on the remote network driver interface specification; based on the first IP address, the target device establishes a first local area network with the next device; based on the second IP address , The target device establishes a second local area network with the previous device; in the second local area network, the target device receives the data sent by the previous device, and in the first local area network, the target device sends the data to the next device. This embodiment solves the technical problem of communication between multiple devices in the related art through the USB protocol, which causes great development difficulty, avoids the problem that the communicating devices need to be configured one by one in advance, and achieves the reduction of the development difficulty and the configuration at the same time. The purpose of multiple devices.
可选地,目标设备包括USB主机模块和USB从机模块,目标设备接收与其相连的下一个设备发送的第一IP地址,并向与其相连的上一个设备发送第二IP地址,包括:基于远程网络驱动程序接口规范,目标设备通过USB主机模块接收第一IP地址,并通过USB从机模块向上一个设备发送第二IP地址。本实施例通过在USB从机模块上运行RNDIS协议,实现了IP地址的分配。Optionally, the target device includes a USB host module and a USB slave module. The target device receives the first IP address sent by the next device connected to it, and sends the second IP address to the previous device connected to it, including: remote-based The network driver interface specification, the target device receives the first IP address through the USB host module, and sends the second IP address to the next device through the USB slave module. This embodiment implements the allocation of IP addresses by running the RNDIS protocol on the USB slave module.
可选地,在目标设备通过USB主机模块接收第一IP地址,并通过USB从机模块向上一个设备发送第二IP地址之前,上述方法还包括:设置USB从机模块的工作模式为网卡模式。Optionally, before the target device receives the first IP address through the USB host module and sends the second IP address to the next device through the USB slave module, the above method further includes: setting the working mode of the USB slave module to the network card mode.
可选地,在基于第二IP地址,目标设备与上一个设备建立第二局域网之后,上述方法还包括:接收获取指令,其中,获取指令设置为获取目标设备的配置信息;向上一个设备返回配置信息。Optionally, after the target device establishes a second local area network with the previous device based on the second IP address, the above method further includes: receiving an acquisition instruction, wherein the acquisition instruction is set to acquire configuration information of the target device; and returning the configuration to the previous device information.
可选地,如果数据包括多媒体信息,上述方法还包括:目标设备向显示设备发送多媒体信息,其中,显示设备与目标设备相配套。Optionally, if the data includes multimedia information, the above method further includes: the target device sends the multimedia information to the display device, wherein the display device is matched with the target device.
可选地,目标设备与上一个设备、下一个设备均通过USB连接。Optionally, the target device is connected to the previous device and the next device via USB.
根据本申请实施例的另一方面,还提供了一种传输数据的方法,包括:目标设备接收与其相连的下一个设备发送的第一IP地址,其中,第一IP地址由下一个设备基于远程网络驱动程序接口规范分配;基于第一IP地址,目标设备与下一个设备建立第一局域网;在第一局域网内,目标设备将数据发送至下一个设备。本实施例通过RNDIS协议降低了开发难度。According to another aspect of the embodiments of the present application, there is also provided a method for transmitting data, including: a target device receives a first IP address sent by a next device connected to it, wherein the first IP address is used by the next device based on the remote Network driver interface specification allocation; based on the first IP address, the target device establishes a first local area network with the next device; in the first local area network, the target device sends data to the next device. In this embodiment, the development difficulty is reduced through the RNDIS protocol.
可选地,在目标设备接收与其相连的下一个设备发送的第一IP地址之前,上述方法还包括:接收配置指令,其中,配置指令设置为目标设备配置与远程网络驱动程序接口规范对应的驱动程序和软件;基于配置指令,配置驱动程序和软件。本实施例通过在目标设备上配置驱动程序和软件,可以与下一个设备实现数据的传输。Optionally, before the target device receives the first IP address sent by the next device connected to it, the above method further includes: receiving a configuration instruction, wherein the configuration instruction is set to the target device configuration driver corresponding to the remote network driver interface specification Programs and software; configure drivers and software based on configuration instructions. In this embodiment, by configuring the driver and software on the target device, data transmission with the next device can be realized.
可选地,目标设备包括USB主机模块,目标设备接收与其相连的下一个设备发送的第一IP地址,包括:基于远程网络驱动程序接口规范,目标设备通过USB主机模块接收第一IP地址。Optionally, the target device includes a USB host module, and the target device receiving the first IP address sent by the next device connected to the target device includes: based on the remote network driver interface specification, the target device receives the first IP address through the USB host module.
根据本申请实施例的另一方面,还提供了一种传输数据的方法,包括:目标设备向与其相连的上一个设备发送第二IP地址,其中,第二IP地址由目标设备基于远程网络驱动程序接口规范分配;基于第二IP地址,目标设备与上一个设备建立第二局域 网;在第二局域网内,目标设备接收上一个设备发送的数据。本实施例通过RNDIS协议降低了开发难度。According to another aspect of the embodiments of the present application, there is also provided a method for transmitting data, including: the target device sends a second IP address to the previous device connected to it, wherein the second IP address is driven by the target device based on a remote network Program interface specification allocation; based on the second IP address, the target device establishes a second local area network with the previous device; in the second local area network, the target device receives data sent by the previous device. In this embodiment, the development difficulty is reduced through the RNDIS protocol.
可选地,目标设备包括USB从机模块,目标设备向与其相连的上一个设备发送第二IP地址,包括:基于远程网络驱动程序接口规范,目标设备通过USB从机模块向上一个设备发送第二IP地址。Optionally, the target device includes a USB slave module, and the target device sends the second IP address to the previous device connected to it, including: based on the remote network driver interface specification, the target device sends the second IP address to the next device through the USB slave module IP address.
根据本申请实施例的另一方面,还提供了一种传输数据的装置,设置在目标设备中,该装置包括:第一接收模块,设置为接收与目标设备相连的下一个设备发送的第一IP地址,并向与目标设备相连的上一个设备发送第二IP地址,其中,第一IP地址和第二IP地址分别由下一个设备和目标设备基于远程网络驱动程序接口规范分配;第一建立模块,设置为基于第一IP地址,与下一个设备建立第一局域网;第二建立模块,设置为基于第二IP地址,与上一个设备建立第二局域网;执行模块,设置为在第二局域网内,接收上一个设备发送的数据,并在第一局域网内,将数据发送至下一个设备。According to another aspect of the embodiments of the present application, there is also provided an apparatus for transmitting data, which is set in a target device, and the apparatus includes: a first receiving module configured to receive a first receiving module sent by the next device connected to the target device. IP address, and send a second IP address to the previous device connected to the target device, where the first IP address and the second IP address are respectively allocated by the next device and the target device based on the remote network driver interface specification; the first establishment The module is set to establish a first local area network with the next device based on the first IP address; the second establishment module is set to establish a second local area network with the previous device based on the second IP address; the execution module is set to establish a second local area network with the previous device Inside, receive the data sent by the previous device, and send the data to the next device in the first local area network.
根据本申请实施例的另一方面,还提供了一种传输数据的系统,包括:多个级联的设备,包括最后一个设备和除最后一个设备之外的其余设备,其中,其余设备中的每个设备接收与其相连的下一个设备发送的第一IP地址,并向与其相连的上一个设备发送第二IP地址,最后一个设备仅向与其相连的上一个设备发送第二IP地址,第一IP地址和第二IP地址基于远程网络驱动程序接口规范分配;上位机,与其余设备中的第一个设备相连,设置为接收第一个设备发送的第一IP地址,并基于第一IP地址,上位机与第一个设备建立第一局域网,在第一局域网内,上位机将数据发送至第一个设备,由第一个设备将数据传输给与其相连的第二个设备,直至依次传输至最后一个设备。本实施例的系统包括多个级联的设备与上位机,通过RNDIS协议解决了相关技术中多个设备之间通过USB协议通信,导致开发难度大的技术问题,避免了通信的设备之间需提前一一配置的问题,达到了降低开发难度,且同时配置多个设备的目的。According to another aspect of the embodiments of the present application, there is also provided a system for transmitting data, including: a plurality of cascaded devices, including the last device and other devices except the last device. Among the other devices, Each device receives the first IP address sent by the next device connected to it, and sends the second IP address to the previous device connected to it. The last device only sends the second IP address to the previous device connected to it. The IP address and the second IP address are allocated based on the remote network driver interface specification; the upper computer is connected to the first device among the remaining devices, and is set to receive the first IP address sent by the first device based on the first IP address , The host computer establishes a first local area network with the first device. In the first local area network, the host computer sends data to the first device, and the first device transmits the data to the second device connected to it, until it is transmitted sequentially To the last device. The system of this embodiment includes multiple cascaded devices and a host computer. The RNDIS protocol solves the problem of communication between multiple devices in the related technology through the USB protocol, which leads to technical problems that are difficult to develop, and avoids the need for communication between devices. The problem of configuring one by one in advance achieves the goal of reducing the difficulty of development and configuring multiple devices at the same time.
根据本申请实施例的另一方面,还提供了一种传输数据的系统,包括:多个级联的设备,包括最后一个设备和除最后一个设备之外的其余设备,其中,其余设备中的每个设备接收与其相连的下一个设备发送的第一IP地址,并向与其相连的上一个设备发送第二IP地址,最后一个设备仅向与其相连的上一个设备发送第二IP地址,第一IP地址和第二IP地址基于远程网络驱动程序接口规范分配;上位机,与其余设备中的第一个设备相连,设置为接收第一个设备发送的第一IP地址,并基于第一IP地址,上位机与第一个设备建立第一局域网,在第一局域网内,上位机将数据发送至第一个设备,由第一个设备将数据传输给与其相连的第二个设备,直至依次传输至最后一个 设备;多个显示设备,与多个级联的设备一一配套,设置为显示数据。本实施例的系统包括多个级联的设备、多个显示设备与上位机,通过RNDIS协议解决了相关技术中多个设备之间通过USB协议通信,导致开发难度大的技术问题,通过显示设备直观显示传输的数据,避免了通信的设备之间需提前一一配置的问题,达到了降低开发难度,且同时配置多个设备的目的。According to another aspect of the embodiments of the present application, there is also provided a system for transmitting data, including: a plurality of cascaded devices, including the last device and other devices except the last device. Among the other devices, Each device receives the first IP address sent by the next device connected to it, and sends the second IP address to the previous device connected to it. The last device only sends the second IP address to the previous device connected to it. The IP address and the second IP address are allocated based on the remote network driver interface specification; the upper computer is connected to the first device among the remaining devices, and is set to receive the first IP address sent by the first device based on the first IP address , The host computer establishes a first local area network with the first device. In the first local area network, the host computer sends data to the first device, and the first device transmits the data to the second device connected to it, until it is transmitted sequentially To the last device; multiple display devices, matched with multiple cascaded devices one by one, set to display data. The system of this embodiment includes multiple cascaded devices, multiple display devices, and a host computer. Through the RNDIS protocol, the communication between multiple devices in the related technology through the USB protocol is solved, which leads to technical problems that are difficult to develop. The display device The transmitted data can be displayed intuitively, which avoids the problem of one-by-one configuration between communicating devices, and achieves the purpose of reducing the difficulty of development and configuring multiple devices at the same time.
在本申请实施例中,目标设备接收与其相连的下一个设备发送的第一IP地址,并向与其相连的上一个设备发送第二IP地址,其中,第一IP地址和第二IP地址分别由下一个设备和目标设备基于远程网络驱动程序接口规范分配;基于第一IP地址,目标设备与下一个设备建立第一局域网;基于第二IP地址,目标设备与上一个设备建立第二局域网;在第二局域网内,目标设备接收上一个设备发送的数据,并在第一局域网内,目标设备将数据发送至下一个设备。与相关技术相比,本申请中的设备可工作在网卡模式,通过远程网络驱动程序接口规范为与其相连的上一个设备提供IP地址,解决了相关技术中多个设备之间通过USB协议通信,导致开发难度大的技术问题,避免了通信的设备之间需提前一一配置的问题,达到了降低开发难度,且同时配置多个设备的目的。In this embodiment of the application, the target device receives the first IP address sent by the next device connected to it, and sends the second IP address to the previous device connected to it, where the first IP address and the second IP address are respectively assigned to The next device and the target device are allocated based on the remote network driver interface specification; based on the first IP address, the target device establishes a first local area network with the next device; based on the second IP address, the target device establishes a second local area network with the previous device; In the second local area network, the target device receives the data sent by the previous device, and in the first local area network, the target device sends the data to the next device. Compared with the related technology, the device in this application can work in the network card mode, and provide an IP address for the previous device connected to it through the remote network driver interface specification, which solves the problem of communication between multiple devices in the related technology through the USB protocol. This leads to technical problems that are difficult to develop, avoids the problem that communication devices need to be configured one by one in advance, and achieves the purpose of reducing the difficulty of development and configuring multiple devices at the same time.
附图说明Description of the drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the application and constitute a part of the application. The exemplary embodiments and descriptions of the application are used to explain the application, and do not constitute an improper limitation of the application. In the attached picture:
图1是根据本申请实施例1的一种可选的传输数据的方法流程图;FIG. 1 is a flowchart of an optional data transmission method according to Embodiment 1 of the present application;
图2是根据本申请实施例1的一种可选的传输数据的装置结构图;2 is a structural diagram of an optional data transmission device according to Embodiment 1 of the present application;
图3是根据本申请实施例2的一种可选的传输数据的方法流程图;FIG. 3 is a flowchart of an optional data transmission method according to Embodiment 2 of the present application;
图4是根据本申请实施例2的一种可选的传输数据的装置结构图;4 is a structural diagram of an optional data transmission device according to Embodiment 2 of the present application;
图5是根据本申请实施例3的一种可选的传输数据的方法流程图;FIG. 5 is a flowchart of an optional data transmission method according to Embodiment 3 of the present application;
图6是根据本申请实施例3的一种可选的传输数据的装置结构图;FIG. 6 is a structural diagram of an optional data transmission device according to Embodiment 3 of the present application;
图7是根据本申请实施例4的一种可选的传输数据的装置结构示意图;FIG. 7 is a schematic structural diagram of an optional data transmission device according to Embodiment 4 of the present application;
图8是根据本申请实施例5的一种可选的传输数据的装置结构示意图;FIG. 8 is a schematic structural diagram of an optional data transmission device according to Embodiment 5 of the present application;
图9是根据本申请实施例6的一种可选的传输数据的装置结构示意图;FIG. 9 is a schematic structural diagram of an optional data transmission device according to Embodiment 6 of the present application;
图10是根据本申请实施例7的一种可选的传输数据的系统结构图;以及FIG. 10 is a structural diagram of an optional data transmission system according to Embodiment 7 of the present application; and
图11是根据本申请实施例8的一种可选的传输数据的系统结构图。FIG. 11 is a structural diagram of an optional data transmission system according to Embodiment 8 of the present application.
具体实施方式Detailed ways
需要说明的是,在不冲突的情况下,本申请中的各实施例及实施例中的特征可以相互组合。为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. In order to enable those skilled in the art to better understand the solutions of the application, the technical solutions in the embodiments of the application will be clearly and completely described below in conjunction with the drawings in the embodiments of the application. Obviously, the described embodiments are only These are a part of the embodiments of this application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work should fall within the protection scope of this application.
另外,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或装置不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或装置固有的其它步骤或单元。In addition, the terms “first” and “second” in the description 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 sequence or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations of them are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those clearly listed. Those steps or units may include other steps or units that are not clearly listed or are inherent to these processes, methods, products, or devices.
为了便于描述,以下对本申请实施例涉及的部分名词或术语进行说明:For ease of description, some terms or terms involved in the embodiments of the present application are described below:
传输控制协议/网际协议(Transmission Control Protocol/Internet Protocol,TCP/IP),是指能够在多个不同网络间实现数据传输的协议簇,其名称源于最早的两个核心协议:传输控制协议(Transmission Control Protocol,TCP)和网际协议(Internet Protocol,IP),它规定了设备连接网络的方式以及数据如何传输的标准。Transmission Control Protocol/Internet Protocol (Transmission Control Protocol/Internet Protocol, TCP/IP) refers to the protocol cluster that can realize data transmission between multiple different networks. Its name is derived from the earliest two core protocols: Transmission Control Protocol ( Transmission Control Protocol (TCP) and Internet Protocol (Internet Protocol, IP), which specify the way equipment connects to the network and the standard for how data is transmitted.
实施例1Example 1
根据本申请实施例,提供了一种传输数据的方法实施例,可以应用在多个级联的设备中。需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to an embodiment of the present application, an embodiment of a method for transmitting data is provided, which can be applied to multiple cascaded devices. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although the logical sequence is shown in the flowchart, in some cases, The steps shown or described can be performed in a different order than here.
图1是根据本申请实施例的一种传输数据的方法流程图,如图1所示,该方法包括如下步骤:Fig. 1 is a flowchart of a method for transmitting data according to an embodiment of the present application. As shown in Fig. 1, the method includes the following steps:
步骤S102,目标设备接收与其相连的下一个设备发送的第一IP地址,并向与其 相连的上一个设备发送第二IP地址,其中,第一IP地址和第二IP地址分别由下一个设备和目标设备基于远程网络驱动程序接口规范分配。Step S102: The target device receives the first IP address sent by the next device connected to it, and sends the second IP address to the previous device connected to it, where the first IP address and the second IP address are respectively assigned by the next device and The target device is allocated based on the remote network driver interface specification.
一种可选方案中,上述目标设备、下一个设备、上一个设备可以为相同的设备,也可以为不同的设备,在此不做限定。In an optional solution, the above-mentioned target device, the next device, and the previous device may be the same device or different devices, which is not limited here.
为描述方便,本申请以相同的多媒体播放盒进行举例描述。需要说明的是,凡是多个设备之间的数据传输,只要每个设备可以运行远程网络驱动程序接口规范(Remote Network Driver Interface Specification,RNDIS),均在本申请的保护范围内,例如内置典型的安卓(Android)板卡的设备,就可以实现本申请实施例的通信方式。For the convenience of description, this application uses the same multimedia play box as an example for description. It should be noted that all data transmission between multiple devices, as long as each device can run the Remote Network Driver Interface Specification (RNDIS), is within the protection scope of this application, such as the built-in typical A device with an Android board can implement the communication mode of the embodiment of the present application.
所谓远程网络驱动程序接口规范,是网络驱动程序接口规范(NDIS)基于USB的一种实现,实际上的作用为TCP/IP over USB,即视USB设备为网卡,在USB设备上运行TCP/IP协议,实现设备之间的数据传输。The so-called remote network driver interface specification is an implementation of the network driver interface specification (NDIS) based on USB. The actual function is TCP/IP over USB, that is, the USB device is regarded as a network card and TCP/IP is run on the USB device. Protocol to realize data transmission between devices.
一种可选方案中,上述TCP/IP协议可以通过Socket编程接口调用。In an optional solution, the above-mentioned TCP/IP protocol can be called through the Socket programming interface.
由于网络驱动程序接口规范定义了网卡或网卡驱动程序与上层协议驱动程序之间的通信接口规范,屏蔽了底层物理硬件的不同,使上层的协议驱动程序可以和底层任何型号的网卡通信,因此,网络驱动程序接口规范为网络驱动程序创建了一个完整的开发环境,无需考虑操作系统的内核以及与其他程序的接口问题,从而使得网络驱动程序可以从操作系统的复杂通讯中分离,极大地方便了网络驱动程序的编写。Since the network driver interface specification defines the communication interface specification between the network card or the network card driver and the upper layer protocol driver, it shields the difference of the underlying physical hardware, so that the upper layer protocol driver can communicate with any type of network card at the bottom layer. Therefore, The network driver interface specification creates a complete development environment for the network driver, without considering the kernel of the operating system and the interface with other programs, so that the network driver can be separated from the complex communication of the operating system, which is greatly convenient The preparation of network driver.
在一个可选的实施例中,多个设备级联,即设备1和设备2连接,设备2和设备3连接。设备3作为设备2的网卡,可以运行远程网络驱动程序接口规范,为设备2分配IP地址;设备2可以作为设备1的网卡,运行远程网络驱动程序接口规范,为设备1分配IP地址。显然,上述方案只需要运行远程网络驱动程序接口规范,就可以实现设备的互联,极大地降低了开发难度。In an optional embodiment, multiple devices are cascaded, that is, device 1 and device 2 are connected, and device 2 and device 3 are connected. As the network card of device 2, device 3 can run the remote network driver interface specification and assign IP address to device 2; device 2 can be used as the network card of device 1, run the remote network driver interface specification, and assign IP address to device 1. Obviously, the above solution only needs to run the remote network driver interface specification to realize the interconnection of devices, which greatly reduces the difficulty of development.
步骤S104,基于第一IP地址,目标设备与下一个设备建立第一局域网。Step S104, based on the first IP address, the target device establishes a first local area network with the next device.
一种可选方案中,上述第一局域网可以为TCP/IP局域网。In an optional solution, the above-mentioned first local area network may be a TCP/IP local area network.
由于第一IP地址是下一个设备发送给目标设备的,所以目标设备与下一个设备可以建立第一局域网。Since the first IP address is sent by the next device to the target device, the target device and the next device can establish a first local area network.
步骤S106,基于第二IP地址,目标设备与上一个设备建立第二局域网。Step S106: Based on the second IP address, the target device establishes a second local area network with the previous device.
一种可选方案中,上述第二局域网可以为TCP/IP局域网。In an optional solution, the above-mentioned second local area network may be a TCP/IP local area network.
由于第二IP地址是目标设备发送给上一个设备的,所以上一个设备与目标设备可 以建立第二局域网。Since the second IP address is sent by the target device to the previous device, the previous device and the target device can establish a second local area network.
需要说明的是,第一局域网和第二局域网相互独立,互不干扰。如果第二局域网传输链路故障,不影响第一局域网的数据传输。It should be noted that the first local area network and the second local area network are independent of each other and do not interfere with each other. If the transmission link of the second local area network fails, the data transmission of the first local area network will not be affected.
步骤S108,在第二局域网内,目标设备接收上一个设备发送的数据,并在第一局域网内,目标设备将数据发送至下一个设备。Step S108: In the second local area network, the target device receives the data sent by the previous device, and in the first local area network, the target device sends the data to the next device.
一种可选方案中,上述数据可以为设备的配置参数,例如多媒体播放盒的配屏参数(如分辨率、亮度等)、同步/异步模式、入网方式(如WiFi连接、4G连接、5G连接等)、温度、内存使用情况、定时开关屏等,也可以为多媒体信息,例如视频流、图片、文字等。In an optional solution, the above data can be the configuration parameters of the device, such as the screen configuration parameters of the multimedia player box (such as resolution, brightness, etc.), synchronous/asynchronous mode, and network access methods (such as WiFi connection, 4G connection, 5G connection) Etc.), temperature, memory usage, timing switch screen, etc., can also be multimedia information, such as video streams, pictures, text, etc.
通过上述步骤,目标设备与上一个设备建立了第二局域网,与下一个设备建立了第一局域网,那么就可以通过第二局域网接收上一个设备发送的数据,然后通过第一局域网,将接收到数据发送给下一个设备,如此依序传递,实现数据的逐级传输。Through the above steps, the target device establishes a second local area network with the previous device, and establishes a first local area network with the next device. Then the data sent by the previous device can be received through the second local area network, and then the data sent by the previous device can be received through the first local area network. The data is sent to the next device, and then passed in order to realize the gradual transmission of data.
在一个可选的实施例中,上位机需要同时配置n个多媒体播放盒的相关参数。第1个多媒体播放盒与上位机连接,第2个多媒体播放盒连接在第1个多媒体播放盒和第3个多媒体播放盒之间,……,第n-1个多媒体播放盒连接在第n-2个多媒体播放盒和第n个多媒体播放盒之间。第n个多媒体播放盒基于RNDIS向第n-1个多媒体播放盒分配IP地址,两者之间组成局域网;第n-1个多媒体播放盒基于RNDIS向第n-2个多媒体播放盒分配IP地址,两者之间组成局域网;……;第1个多媒体播放盒基于RNDIS向上位机分配IP地址,两者之间组成局域网。所以,当组网完成后,上位机需要传输数据(例如设置多媒体播放盒的相关参数)给多媒体播放盒,就可以通过TCP/IP协议向第1个多媒体播放盒发送数据。第1个多媒体播放盒接收到数据后,配置自身的相关参数,同时将数据传输给第2个多媒体播放盒,再由第2个多媒体播放盒逐级向后传递,直至传输给最后一个多媒体播放盒。In an optional embodiment, the upper computer needs to configure the relevant parameters of n multimedia playback boxes at the same time. The first multimedia play box is connected to the host computer, the second multimedia play box is connected between the first multimedia play box and the third multimedia play box,..., the n-1th multimedia play box is connected to the nth -2 between the multimedia play box and the nth multimedia play box. The n-th multimedia player box assigns an IP address to the n-1th multimedia player box based on RNDIS, which forms a local area network; the n-1th multimedia player box assigns an IP address to the n-2th multimedia player box based on RNDIS , The two form a local area network; ...; the first multimedia player box is based on RNDIS to assign an IP address to the upper computer, and the two form a local area network. Therefore, when the networking is completed, the host computer needs to transmit data (for example, setting the relevant parameters of the multimedia play box) to the multimedia play box, and it can send data to the first multimedia play box through the TCP/IP protocol. After the first multimedia play box receives the data, it configures its own related parameters, and at the same time transmits the data to the second multimedia play box, and then the second multimedia play box passes backwards step by step until it is transmitted to the last multimedia player box.
在本申请实施例中,目标设备接收与其相连的下一个设备发送的第一IP地址,并向与其相连的上一个设备发送第二IP地址,其中,第一IP地址和第二IP地址分别由下一个设备和目标设备基于远程网络驱动程序接口规范分配;基于第一IP地址,目标设备与下一个设备建立第一局域网;基于第二IP地址,目标设备与上一个设备建立第二局域网;在第二局域网内,目标设备接收上一个设备发送的数据,并在第一局域网内,目标设备将数据发送至下一个设备。与相关技术相比,本申请中的设备可工作在网卡模式,通过远程网络驱动程序接口规范为与其相连的上一个设备提供IP地址,解决了相关技术中多个设备之间通过USB协议通信,导致开发难度大的技术问题,避免 了通信的设备之间需提前一一配置的问题,达到了开发难度低、同时配置多个设备的目的。In this embodiment of the application, the target device receives the first IP address sent by the next device connected to it, and sends the second IP address to the previous device connected to it, where the first IP address and the second IP address are respectively assigned to The next device and the target device are allocated based on the remote network driver interface specification; based on the first IP address, the target device establishes a first local area network with the next device; based on the second IP address, the target device establishes a second local area network with the previous device; In the second local area network, the target device receives the data sent by the previous device, and in the first local area network, the target device sends the data to the next device. Compared with the related technology, the device in this application can work in the network card mode, and provide an IP address for the previous device connected to it through the remote network driver interface specification, which solves the problem of communication between multiple devices in the related technology through the USB protocol. This leads to technical problems that are difficult to develop, avoids the problem that communication devices need to be configured one by one in advance, and achieves the goal of low development difficulty and simultaneous configuration of multiple devices.
显然,本实施例的上述方案可以同时配置多个设备,既能提高工作效率,又可以保持传输参数的一致性。Obviously, the above solution of this embodiment can configure multiple devices at the same time, which can improve work efficiency and maintain the consistency of transmission parameters.
下面对本实施例的上述步骤进行进一步地说明。The above steps of this embodiment will be further described below.
可选地,目标设备包括USB主机模块和USB从机模块,步骤S102中,目标设备接收与其相连的下一个设备发送的第一IP地址,并向与其相连的上一个设备发送第二IP地址,具体可以包括:Optionally, the target device includes a USB host module and a USB slave module. In step S102, the target device receives the first IP address sent by the next device connected to it, and sends the second IP address to the previous device connected to it. It can include:
步骤S1022,基于远程网络驱动程序接口规范,目标设备通过USB主机模块接收第一IP地址,并通过USB从机模块向上一个设备发送第二IP地址。Step S1022, based on the remote network driver interface specification, the target device receives the first IP address through the USB host module, and sends the second IP address to the next device through the USB slave module.
一种可选方案中,上述USB主机(host)模块可以包括USB主机接口,上述USB从机(device)模块可以包括USB从机接口。In an optional solution, the above-mentioned USB host module may include a USB host interface, and the above-mentioned USB device module may include a USB slave interface.
需要说明的是,目标设备、上一个设备和下一个设备可以为相同的设备,均可以包括USB主机模块和USB从机模块。It should be noted that the target device, the previous device, and the next device may be the same device, and all may include a USB host module and a USB slave module.
图2示出了一种可选的传输数据的装置结构图。如图2所示,目标设备连接在上一个设备和下一个设备之间。具体地,目标设备通过USB从机模块的USB从机接口与上一个设备的USB主机模块相连,目标设备通过USB主机模块的主机接口与下一个设备的USB从机模块相连。Figure 2 shows an optional data transmission device structure diagram. As shown in Figure 2, the target device is connected between the previous device and the next device. Specifically, the target device is connected to the USB host module of the previous device through the USB slave interface of the USB slave module, and the target device is connected to the USB slave module of the next device through the host interface of the USB host module.
可选地,在执行步骤S1022目标设备通过USB主机模块接收第一IP地址,并通过USB从机模块向上一个设备发送第二IP地址之前,上述方法还可以包括:Optionally, before performing step S1022, the target device receives the first IP address through the USB host module and sends the second IP address to the next device through the USB slave module, the above method may further include:
步骤S1021,设置USB从机模块的工作模式为网卡模式。In step S1021, the working mode of the USB slave module is set to the network card mode.
一种可选方案中,上述网卡模式可以为RNDIS模式,可以通过USB从机模块进行设置。例如,RNDIS模式可以在系统开机后通过配套软件自行设置,以节约设置时间,提高工作效率。In an optional solution, the above-mentioned network card mode can be RNDIS mode, which can be set through a USB slave module. For example, the RNDIS mode can be set by the supporting software after the system is turned on to save setting time and improve work efficiency.
可选地,在执行步骤S106基于第二IP地址,目标设备与上一个设备建立第二局域网之后,上述方法还可以包括:Optionally, after performing step S106, based on the second IP address, the target device establishes a second local area network with the previous device, the above method may further include:
步骤S1051,接收获取指令,其中,获取指令设置为获取目标设备的配置信息。Step S1051: Receive an acquisition instruction, where the acquisition instruction is set to acquire configuration information of the target device.
以多媒体播放盒为例,上述配置信息可以包括多媒体播放盒的配屏参数(如分辨 率、亮度等)、同步/异步模式、入网方式(如WiFi连接、4G连接、5G连接等)、温度、内存使用情况、定时开关屏等。Taking the multimedia player box as an example, the above configuration information may include the screen configuration parameters of the multimedia player box (such as resolution, brightness, etc.), synchronous/asynchronous mode, network access method (such as WiFi connection, 4G connection, 5G connection, etc.), temperature, Memory usage, timing switch screen, etc.
步骤S1052,向上一个设备返回配置信息。In step S1052, the configuration information is returned to the previous device.
目标设备在接收到获取指令后,将自身的配置信息返回给上一个设备,通过上一个设备逐级传输至上位机,以便上位机根据目标设备的配置信息发出配置指令。After the target device receives the acquisition instruction, it returns its configuration information to the previous device, and transmits it to the upper computer level by level through the previous device, so that the upper computer sends out the configuration instructions according to the configuration information of the target device.
需要说明的是,在多个设备的配置信息均相同的情况下,上位机只需要获取与上位机相连的第一个设备的配置信息即可。It should be noted that when the configuration information of multiple devices is the same, the upper computer only needs to obtain the configuration information of the first device connected to the upper computer.
可选地,如果数据包括多媒体信息,上述方法还可以包括:Optionally, if the data includes multimedia information, the above method may also include:
步骤S109,目标设备向显示设备发送多媒体信息,其中,显示设备与目标设备相配套。Step S109: The target device sends multimedia information to the display device, where the display device is matched with the target device.
一种可选方案中,上述多媒体信息可以为视频流、图片、文字等形式;上述显示设备可以为电视墙、显示器、显示屏等,该显示设备受与其配套的多媒体播放盒的控制。In an optional solution, the above-mentioned multimedia information may be in the form of video streams, pictures, texts, etc.; the above-mentioned display device may be a TV wall, a monitor, a display screen, etc., and the display device is controlled by a matching multimedia play box.
可选地,目标设备与上一个设备、下一个设备均通过USB连接。Optionally, the target device is connected to the previous device and the next device via USB.
具体地,目标设备的USB从机接口与上一个设备的USB主机接口通过USB相连,目标设备的USB主机接口与下一个设备的USB从机接口也通过USB相连。另外,第一个设备的USB从机接口与上位机的USB主机接口也通过USB相连。Specifically, the USB slave interface of the target device is connected to the USB host interface of the previous device through USB, and the USB host interface of the target device and the USB slave interface of the next device are also connected through USB. In addition, the USB slave interface of the first device and the USB host interface of the upper computer are also connected via USB.
由此可见,多个设备之间只需要通过USB连接,即插即用,无需更多的配置,便可实现多个设备的同时配置。开发人员无需关注USB协议,降低了开发难度。It can be seen that multiple devices only need to be connected via USB, plug and play, and multiple devices can be configured at the same time without more configuration. Developers do not need to pay attention to the USB protocol, which reduces the difficulty of development.
本申请上述实施例中,目标设备接收与其相连的下一个设备发送的第一IP地址,并向与其相连的上一个设备发送第二IP地址,其中,第一IP地址和第二IP地址分别由下一个设备和目标设备基于远程网络驱动程序接口规范分配;基于第一IP地址,目标设备与下一个设备建立第一局域网;基于第二IP地址,目标设备与上一个设备建立第二局域网;在第二局域网内,目标设备接收上一个设备发送的数据,并在第一局域网内,目标设备将数据发送至下一个设备。与相关技术相比,本申请中的设备可工作在网卡模式,通过远程网络驱动程序接口规范为与其相连的上一个设备提供IP地址,解决了相关技术中多个设备之间通过USB协议通信,导致开发难度大的技术问题,避免了通信的设备之间需提前一一配置的问题,达到了降低开发难度低,且同时配置多个设备的目的。容易注意到,上述方案通过USB主机模块和USB从机模块实现设备 之间的TCP/IP通信;通过将USB从机模块设置为网卡模式,为上一个设备分配IP地址;通过将配置信息传输给上一个设备,可以方便上位机发出配置指令;通过与多媒体播放盒配套的显示设备,显示多媒体信息;通过USB连接各设备,即插即用,无需更多的配置,大大提高了工作效率。In the above-mentioned embodiment of the present application, the target device receives the first IP address sent by the next device connected to it, and sends the second IP address to the previous device connected to it, where the first IP address and the second IP address are respectively assigned by The next device and the target device are allocated based on the remote network driver interface specification; based on the first IP address, the target device establishes a first local area network with the next device; based on the second IP address, the target device establishes a second local area network with the previous device; In the second local area network, the target device receives the data sent by the previous device, and in the first local area network, the target device sends the data to the next device. Compared with the related technology, the device in this application can work in the network card mode, and provide an IP address for the previous device connected to it through the remote network driver interface specification, which solves the problem of communication between multiple devices in the related technology through the USB protocol. This leads to technical problems that are difficult to develop, avoids the need to configure the communication devices one by one in advance, and achieves the goal of reducing the difficulty of development and configuring multiple devices at the same time. It is easy to notice that the above scheme realizes the TCP/IP communication between the devices through the USB host module and the USB slave module; by setting the USB slave module to the network card mode, the IP address is assigned to the previous device; by transmitting the configuration information to The previous device can facilitate the host computer to issue configuration instructions; through the display device matched with the multimedia player box, display multimedia information; connect each device through USB, plug and play, no more configuration, greatly improving work efficiency.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端装置(可以是手机,计算机,服务器,或者网络装置等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is Better implementation. Based on this understanding, the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to enable a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application.
实施例2Example 2
根据本申请实施例,提供了一种传输数据的方法实施例,可以应用在上位机中。需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to an embodiment of the present application, an embodiment of a method for transmitting data is provided, which can be applied to an upper computer. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although the logical sequence is shown in the flowchart, in some cases, The steps shown or described can be performed in a different order than here.
图3是根据本申请实施例的一种传输数据的方法流程图,如图3所示,该方法包括如下步骤:Fig. 3 is a flowchart of a method for transmitting data according to an embodiment of the present application. As shown in Fig. 3, the method includes the following steps:
步骤S302,目标设备接收与其相连的下一个设备发送的第一IP地址,其中,第一IP地址由下一个设备基于远程网络驱动程序接口规范分配。Step S302: The target device receives the first IP address sent by the next device connected to it, where the first IP address is allocated by the next device based on the remote network driver interface specification.
一种可选方案中,上述目标设备可以为上位机,也可以为具有控制功能的智能终端;上述下一个设备可以运行远程网络驱动程序接口规范(Remote Network Driver Interface Specification,RNDIS),例如内置典型的安卓(Android)板卡的设备,就可以实现本申请实施例的通信方式。另外,本申请虽然以多媒体播放盒进行举例,但并不构成对本申请的不当限定。In an optional solution, the above-mentioned target device can be an upper computer or an intelligent terminal with control function; the above-mentioned next device can run Remote Network Driver Interface Specification (RNDIS), such as a built-in typical A device with an Android board card can implement the communication mode of the embodiment of the present application. In addition, although this application uses a multimedia play box as an example, it does not constitute an improper limitation of this application.
为描述方便,本申请以相同的多媒体播放盒进行举例描述。需要说明的是,凡是多个设备之间的数据传输,只要每个设备可以运行远程网络驱动程序接口规范(Remote Network Driver Interface Specification,RNDIS),均在本申请的保护范围内,例如内置典型的安卓(Android)板卡的设备,就可以实现本申请实施例的通信方式。For the convenience of description, this application uses the same multimedia play box as an example for description. It should be noted that all data transmission between multiple devices, as long as each device can run the Remote Network Driver Interface Specification (RNDIS), is within the protection scope of this application, such as the built-in typical A device with an Android board can implement the communication mode of the embodiment of the present application.
所谓远程网络驱动程序接口规范,是网络驱动程序接口规范(NDIS)基于USB 的一种实现,实际上的作用为TCP/IP over USB,即视USB设备为网卡,在USB设备上运行TCP/IP协议,实现设备之间的数据传输。The so-called remote network driver interface specification is an implementation of the network driver interface specification (NDIS) based on USB. The actual function is TCP/IP over USB, which means that the USB device is regarded as a network card and TCP/IP is run on the USB device. Protocol to realize data transmission between devices.
一种可选方案中,上述TCP/IP协议可以通过Socket编程接口调用。In an optional solution, the above-mentioned TCP/IP protocol can be called through the Socket programming interface.
由于网络驱动程序接口规范定义了网卡或网卡驱动程序与上层协议驱动程序之间的通信接口规范,屏蔽了底层物理硬件的不同,使上层的协议驱动程序可以和底层任何型号的网卡通信,因此,网络驱动程序接口规范为网络驱动程序创建了一个完整的开发环境,无需考虑操作系统的内核以及与其他程序的接口问题,从而使得网络驱动程序可以从操作系统的复杂通讯中分离,极大地方便了网络驱动程序的编写。Since the network driver interface specification defines the communication interface specification between the network card or the network card driver and the upper layer protocol driver, it shields the difference of the underlying physical hardware, so that the upper layer protocol driver can communicate with any type of network card at the bottom layer. Therefore, The network driver interface specification creates a complete development environment for the network driver, without considering the kernel of the operating system and the interface with other programs, so that the network driver can be separated from the complex communication of the operating system, which is greatly convenient The preparation of network driver.
在一个可选的实施例中,上位机和设备1连接,设备1作为上位机的网卡,可以运行远程网络驱动程序接口规范,为上位机分配IP地址。In an alternative embodiment, the upper computer is connected to the device 1, and the device 1 is used as the network card of the upper computer, which can run the remote network driver interface specification and allocate an IP address for the upper computer.
步骤S304,基于第一IP地址,目标设备与下一个设备建立第一局域网。Step S304, based on the first IP address, the target device establishes a first local area network with the next device.
一种可选方案中,上述第一局域网可以为TCP/IP局域网。In an optional solution, the above-mentioned first local area network may be a TCP/IP local area network.
由于第一IP地址是下一个设备发送给目标设备的,所以目标设备与下一个设备可以建立第一局域网。Since the first IP address is sent by the next device to the target device, the target device and the next device can establish a first local area network.
步骤S306,在第一局域网内,目标设备将数据发送至下一个设备。Step S306: In the first local area network, the target device sends the data to the next device.
一种可选方案中,上述数据可以为设备的配置参数,例如多媒体播放盒的配屏参数(如分辨率、亮度等)、同步/异步模式、入网方式(如WiFi连接、4G连接、5G连接等)、温度、内存使用情况、定时开关屏等,也可以为多媒体信息,例如视频流、图片、文字等。In an optional solution, the above data can be the configuration parameters of the device, such as the screen configuration parameters of the multimedia player box (such as resolution, brightness, etc.), synchronous/asynchronous mode, and network access methods (such as WiFi connection, 4G connection, 5G connection) Etc.), temperature, memory usage, timing switch screen, etc., can also be multimedia information, such as video streams, pictures, text, etc.
通过上述步骤,目标设备与下一个设备建立了第一局域网,那么就可以发送数据给下一个设备。Through the above steps, the target device and the next device have established the first local area network, and then data can be sent to the next device.
下面对该实施例的上述步骤进行进一步地说明。The above steps of this embodiment will be further described below.
可选地,在执行步骤S302目标设备接收与其相连的下一个设备发送的第一IP地址之前,上述方法还可以包括如下步骤:Optionally, before performing step S302, the target device receives the first IP address sent by the next device connected to it, the above method may further include the following steps:
步骤S3011,接收配置指令,其中,配置指令设置为目标设备配置与远程网络驱动程序接口规范对应的驱动程序和软件。Step S3011: Receive a configuration instruction, where the configuration instruction is set to configure the target device to configure the driver and software corresponding to the remote network driver interface specification.
一种可选方案中,上述驱动程序可以为RNDIS接口驱动程序,上述软件可以为与其相连的下一个设备配套的桌面软件,例如与多媒体播放盒配套的显示屏管理软件 ViPlex Express。In an optional solution, the above-mentioned driver may be an RNDIS interface driver, and the above-mentioned software may be a desktop software matching the next device connected to it, such as a display management software ViPlex Express matching a multimedia player box.
步骤S3012,基于配置指令,配置驱动程序和软件。Step S3012, based on the configuration instruction, configure the driver and software.
在接收到配置指令后,目标设备就可以为自身配置驱动程序和相应的软件。After receiving the configuration instruction, the target device can configure the driver and corresponding software for itself.
可选地,目标设备包括USB主机模块,目标设备接收与其相连的下一个设备发送的第一IP地址,包括:基于远程网络驱动程序接口规范,目标设备通过USB主机模块接收第一IP地址。Optionally, the target device includes a USB host module, and the target device receiving the first IP address sent by the next device connected to the target device includes: based on the remote network driver interface specification, the target device receives the first IP address through the USB host module.
一种可选方案中,上述USB主机(host)模块可以包括USB主机接口。In an optional solution, the aforementioned USB host module may include a USB host interface.
图4示出了一种可选的传输数据的装置结构图。如图4所示,上位机通过USB主机模块的主机接口与下一个设备的USB从机模块的从机接口相连,例如,主机接口和从机接口通过USB直连,多媒体播放盒的USB typeB类型接口与上位机的主机接口直接连接。上位机运行与多媒体播放盒配套的桌面软件ViPlex Express,并安装RNDIS驱动。由于多媒体播放盒在USB从机模块上运行RNDIS,将USB从机模块虚拟成一个网卡,分配IP地址给上位机,因此,多媒体播放盒与上位机建立TCP/IP局域网。打开ViPlex Express软件,通过搜索USB主机模块连接的多媒体播放盒,ViPlex Express就可以获取多媒体配置信息、设置配屏参数、发送多媒体信息等数据给多个设备。Fig. 4 shows a structure diagram of an optional data transmission device. As shown in Figure 4, the host computer is connected to the slave interface of the USB slave module of the next device through the host interface of the USB host module. For example, the host interface and the slave interface are directly connected through USB, and the USB typeB type of the multimedia player box The interface is directly connected with the host interface of the upper computer. The upper computer runs the desktop software ViPlex Express, which is matched with the multimedia player box, and installs the RNDIS driver. Since the multimedia player box runs RNDIS on the USB slave module, it virtualizes the USB slave module into a network card and assigns an IP address to the upper computer. Therefore, the multimedia player box establishes a TCP/IP local area network with the upper computer. Open the ViPlex Express software and search for the multimedia player box connected to the USB host module. ViPlex Express can obtain multimedia configuration information, set screen configuration parameters, and send multimedia information to multiple devices.
容易注意到,本实施例的上述方案操作简单,与网线连接的操作相同。It is easy to notice that the operation of the above-mentioned solution of this embodiment is simple, and the operation is the same as the operation of the network cable connection.
需要说明的是,本申请上述实施例2中涉及到优选实施方案与实施例1提供的方案以及应用场景实施过程相同,但不限于实施例1所提供的方案。It should be noted that the preferred implementation involved in the above-mentioned embodiment 2 of this application is the same as the solution provided in embodiment 1 and the application scenario implementation process, but it is not limited to the solution provided in embodiment 1.
实施例3Example 3
根据本申请实施例,提供了一种传输数据的方法实施例,可以应用在多个级联设备的最后一个设备中。需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to an embodiment of the present application, an embodiment of a method for transmitting data is provided, which can be applied to the last device of multiple cascaded devices. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although the logical sequence is shown in the flowchart, in some cases, The steps shown or described can be performed in a different order than here.
图5是根据本申请实施例的一种传输数据的方法流程图,如图5所示,该方法包括如下步骤:Fig. 5 is a flowchart of a method for transmitting data according to an embodiment of the present application. As shown in Fig. 5, the method includes the following steps:
步骤S502,目标设备向与其相连的上一个设备发送第二IP地址,其中,第二IP地址由目标设备基于远程网络驱动程序接口规范分配。Step S502: The target device sends a second IP address to the previous device connected to it, where the second IP address is allocated by the target device based on the remote network driver interface specification.
一种可选方案中,上述目标设备可以为多个级联设备的最后一个设备,可以运行远程网络驱动程序接口规范(Remote Network Driver Interface Specification,RNDIS), 例如内置典型的安卓(Android)板卡的设备,就可以实现本申请实施例的通信方式;上述上一个设备可以为与目标设备相同的设备,也可以为具有控制功能的智能终端,例如电脑。In an optional solution, the above-mentioned target device can be the last device of multiple cascaded devices, and can run Remote Network Driver Interface Specification (RNDIS), such as a typical Android board. The device of this application can implement the communication mode of the embodiment of the present application; the previous device mentioned above can be the same device as the target device, or it can be an intelligent terminal with control functions, such as a computer.
所谓远程网络驱动程序接口规范,是网络驱动程序接口规范(NDIS)基于USB的一种实现,实际上的作用为TCP/IP over USB,即视USB设备为网卡,在USB设备上运行TCP/IP协议,实现设备之间的数据传输。The so-called remote network driver interface specification is an implementation of the network driver interface specification (NDIS) based on USB. The actual function is TCP/IP over USB, that is, the USB device is regarded as a network card and TCP/IP is run on the USB device. Protocol to realize data transmission between devices.
一种可选方案中,上述TCP/IP协议可以通过Socket编程接口调用。In an optional solution, the above-mentioned TCP/IP protocol can be called through the Socket programming interface.
由于网络驱动程序接口规范定义了网卡或网卡驱动程序与上层协议驱动程序之间的通信接口规范,屏蔽了底层物理硬件的不同,使上层的协议驱动程序可以和底层任何型号的网卡通信,因此,网络驱动程序接口规范为网络驱动程序创建了一个完整的开发环境,无需考虑操作系统的内核以及与其他程序的接口问题,从而使得网络驱动程序可以从操作系统的复杂通讯中分离,极大地方便了网络驱动程序的编写。Since the network driver interface specification defines the communication interface specification between the network card or the network card driver and the upper layer protocol driver, it shields the difference of the underlying physical hardware, so that the upper layer protocol driver can communicate with any type of network card at the bottom layer. Therefore, The network driver interface specification creates a complete development environment for the network driver, without considering the kernel of the operating system and the interface with other programs, so that the network driver can be separated from the complex communication of the operating system, which is greatly convenient The preparation of network driver.
例如,设备2作为目标设备,和上一个设备(即设备1)连接,设备2作为设备1的网卡,可以运行在RNDIS模式下,为设备1分配IP地址。For example, device 2 is used as the target device to connect to the previous device (ie, device 1), and device 2 is used as the network card of device 1, which can run in RNDIS mode and assign an IP address to device 1.
步骤S504,基于第二IP地址,目标设备与上一个设备建立第二局域网。Step S504: Based on the second IP address, the target device establishes a second local area network with the previous device.
一种可选方案中,上述第二局域网可以为TCP/IP局域网。In an optional solution, the above-mentioned second local area network may be a TCP/IP local area network.
由于第二IP地址是目标设备发送给上一个设备的,所以目标设备与上一个设备可以建立第二局域网。Since the second IP address is sent by the target device to the previous device, the target device and the previous device can establish a second local area network.
步骤S506,在第二局域网内,目标设备接收上一个设备发送的数据。Step S506: In the second local area network, the target device receives the data sent by the previous device.
一种可选方案中,上述数据可以为设备的配置参数,例如多媒体播放盒的配屏参数(如分辨率、亮度等)、同步/异步模式、入网方式(如WiFi连接、4G连接、5G连接等)、温度、内存使用情况、定时开关屏等,也可以为多媒体信息,例如视频流、图片、文字等。In an optional solution, the above data can be the configuration parameters of the device, such as the screen configuration parameters of the multimedia player box (such as resolution, brightness, etc.), synchronous/asynchronous mode, and network access methods (such as WiFi connection, 4G connection, 5G connection) Etc.), temperature, memory usage, timing switch screen, etc., can also be multimedia information, such as video streams, pictures, text, etc.
通过上述步骤,目标设备与上一个设备建立了第二局域网,那么就可以接收上一个设备发送的数据。Through the above steps, the target device and the previous device have established a second local area network, and then the data sent by the previous device can be received.
可选地,目标设备包括USB从机模块,目标设备向与其相连的上一个设备发送第二IP地址,包括:基于远程网络驱动程序接口规范,目标设备通过USB从机模块向上一个设备发送第二IP地址。Optionally, the target device includes a USB slave module, and the target device sends the second IP address to the previous device connected to it, including: based on the remote network driver interface specification, the target device sends the second IP address to the next device through the USB slave module IP address.
一种可选方案中,上述USB从机(device)模块可以包括USB从机接口。In an optional solution, the above-mentioned USB device module may include a USB device interface.
图6示出了一种可选的传输数据的装置结构图。如图6所示,目标设备,即多个级联设备的最后一个设备,通过USB从机模块的从机接口与上一个设备的USB主机模块的主机接口相连,例如,主机接口和从机接口通过USB直连。由于目标设备在USB从机模块上运行RNDIS,将USB从机模块虚拟成一个网卡,分配IP地址给上一个设备,因此,目标设备与上一个设备建立TCP/IP局域网,可以接收上一个设备发送的数据。Fig. 6 shows a structure diagram of an optional data transmission device. As shown in Figure 6, the target device, the last device of multiple cascaded devices, is connected to the host interface of the USB host module of the previous device through the slave interface of the USB slave module, for example, the host interface and the slave interface Direct connection via USB. Since the target device runs RNDIS on the USB slave module, the USB slave module is virtualized into a network card, and the IP address is assigned to the previous device. Therefore, the target device establishes a TCP/IP local area network with the previous device and can receive transmissions from the previous device. The data.
需要说明的是,本申请上述实施例3中涉及到优选实施方案与实施例1提供的方案以及应用场景实施过程相同,但不限于实施例1所提供的方案。It should be noted that the preferred embodiment involved in the above-mentioned embodiment 3 of this application is the same as the solution provided in embodiment 1 and the application scenario implementation process, but it is not limited to the solution provided in embodiment 1.
实施例4Example 4
根据本申请实施例,提供了一种传输数据的装置,需要说明的是,本申请实施例的一种传输数据的装置可以用于执行本申请实施例1所提供的传输数据的方法。以下对本申请实施例提供的一种传输数据的装置进行介绍。According to an embodiment of the present application, a device for transmitting data is provided. It should be noted that the device for transmitting data in an embodiment of the present application can be used to execute the method for transmitting data provided in Embodiment 1 of the present application. The following describes a data transmission device provided in an embodiment of the present application.
图7是根据本申请实施例的传输数据的装置示意图。如图7所示,该装置700设置在目标设备中,该装置700包括:第一接收模块702、第一建立模块704、第二建立模块706和执行模块708。Fig. 7 is a schematic diagram of an apparatus for transmitting data according to an embodiment of the present application. As shown in FIG. 7, the apparatus 700 is set in a target device, and the apparatus 700 includes: a first receiving module 702, a first establishing module 704, a second establishing module 706, and an executing module 708.
其中,第一接收模块702,设置为接收与目标设备相连的下一个设备发送的第一IP地址,并向与目标设备相连的上一个设备发送第二IP地址,其中,第一IP地址和第二IP地址分别由下一个设备和目标设备基于远程网络驱动程序接口规范分配;第一建立模块704,设置为基于第一IP地址,与下一个设备建立第一局域网;第二建立模块706,设置为基于第二IP地址,与上一个设备建立第二局域网;执行模块708,设置为在第二局域网内,接收上一个设备发送的数据,并在第一局域网内,将数据发送至下一个设备。Wherein, the first receiving module 702 is configured to receive a first IP address sent by the next device connected to the target device, and send a second IP address to the previous device connected to the target device, where the first IP address and the first IP address The second IP address is allocated by the next device and the target device based on the remote network driver interface specification; the first establishment module 704 is set to establish a first local area network with the next device based on the first IP address; the second establishment module 706 is set In order to establish a second local area network with the previous device based on the second IP address; the execution module 708 is configured to receive data sent by the previous device in the second local area network, and send the data to the next device in the first local area network .
可选地,目标设备包括USB主机模块和USB从机模块,目标设备接收与其相连的下一个设备发送的第一IP地址,并向与其相连的上一个设备发送第二IP地址,包括:基于远程网络驱动程序接口规范,目标设备通过USB主机模块接收第一IP地址,并通过USB从机模块向上一个设备发送第二IP地址。Optionally, the target device includes a USB host module and a USB slave module. The target device receives the first IP address sent by the next device connected to it, and sends the second IP address to the previous device connected to it, including: remote-based The network driver interface specification, the target device receives the first IP address through the USB host module, and sends the second IP address to the next device through the USB slave module.
可选地,上述装置还可以包括:设置模块,设置为在目标设备通过USB主机模块接收第一IP地址,并通过USB从机模块向上一个设备发送第二IP地址之前,设置USB从机模块的工作模式为网卡模式。Optionally, the above apparatus may further include: a setting module configured to set the USB slave module before the target device receives the first IP address through the USB host module and sends the second IP address to the next device through the USB slave module The working mode is the network card mode.
可选地,上述装置还可以包括:第二接收模块,设置为在基于第二IP地址,目标 设备与上一个设备建立第二局域网之后,接收获取指令,其中,获取指令设置为获取目标设备的配置信息;返回模块,设置为向上一个设备返回配置信息。Optionally, the foregoing apparatus may further include: a second receiving module configured to receive an acquisition instruction after the target device establishes a second local area network with the previous device based on the second IP address, wherein the acquisition instruction is set to acquire the target device's Configuration information; return module, set to return configuration information to the previous device.
可选地,如果数据包括多媒体信息,上述装置还可以包括:发送模块,设置为目标设备向显示设备发送多媒体信息,其中,显示设备与目标设备相配套。Optionally, if the data includes multimedia information, the above-mentioned apparatus may further include: a sending module configured to send the multimedia information to the display device by the target device, wherein the display device is matched with the target device.
可选地,目标设备与上一个设备、下一个设备均通过USB连接。Optionally, the target device is connected to the previous device and the next device via USB.
需要说明的是,上述第一接收模块702、第一建立模块704、第二建立模块706和执行模块708对应于实施例1中的步骤S102至步骤S108,该四个模块与对应的步骤所实现的示例和应用场景相同,但不限于上述实施例1所公开的内容。It should be noted that the above-mentioned first receiving module 702, first establishing module 704, second establishing module 706, and executing module 708 correspond to steps S102 to S108 in Embodiment 1. The four modules and the corresponding steps implement The example of is the same as the application scenario, but is not limited to the content disclosed in the above embodiment 1.
实施例5Example 5
根据本申请实施例,提供了一种传输数据的装置,需要说明的是,本申请实施例的一种传输数据的装置可以用于执行本申请实施例2所提供的传输数据的方法。以下对本申请实施例提供的传输数据的装置进行介绍。According to an embodiment of the present application, a device for transmitting data is provided. It should be noted that the device for transmitting data in an embodiment of the present application can be used to execute the method for transmitting data provided in the second embodiment of the present application. The following describes the data transmission device provided in the embodiment of the present application.
图8是根据本申请实施例的传输数据的装置示意图。如图8所示,该装置800设置在目标设备中,该装置800包括第一接收模块802、建立模块804和发送模块806。Fig. 8 is a schematic diagram of an apparatus for transmitting data according to an embodiment of the present application. As shown in FIG. 8, the apparatus 800 is set in the target device, and the apparatus 800 includes a first receiving module 802, an establishing module 804, and a sending module 806.
其中,第一接收模块802,设置为接收与目标设备相连的下一个设备发送的第一IP地址,其中,第一IP地址由下一个设备基于远程网络驱动程序接口规范分配;建立模块804,设置为基于第一IP地址,目标设备与下一个设备建立第一局域网;发送模块806,设置为在第一局域网内,目标设备将数据发送至下一个设备。Among them, the first receiving module 802 is configured to receive the first IP address sent by the next device connected to the target device, where the first IP address is assigned by the next device based on the remote network driver interface specification; the establishment module 804 is configured to set In order to establish a first local area network with the next device based on the first IP address; the sending module 806 is configured to be in the first local area network and the target device sends data to the next device.
可选地,上述装置还可以包括:第二接收模块,设置为在目标设备接收与其相连的下一个设备发送的第一IP地址之前,接收配置指令,其中,配置指令设置为目标设备配置与远程网络驱动程序接口规范对应的驱动程序和软件;配置模块,设置为基于配置指令,配置驱动程序和软件。Optionally, the above-mentioned apparatus may further include: a second receiving module configured to receive a configuration instruction before the target device receives the first IP address sent by the next device connected to it, where the configuration instruction is set as the target device configuration and remote The driver and software corresponding to the network driver interface specification; the configuration module is set to configure the driver and software based on configuration instructions.
可选地,第一接收模块包括:第一接收子模块,设置为基于远程网络驱动程序接口规范,目标设备通过USB主机模块接收第一IP地址。Optionally, the first receiving module includes: a first receiving sub-module configured to be based on a remote network driver interface specification, and the target device receives the first IP address through the USB host module.
需要说明的是,上述第一接收模块802、建立模块804和发送模块806对应于实施例2中的步骤S402至步骤S406,该三个模块与对应的步骤所实现的示例和应用场景相同,但不限于上述实施例2所公开的内容。It should be noted that the above-mentioned first receiving module 802, establishing module 804, and sending module 806 correspond to steps S402 to S406 in Embodiment 2. The examples and application scenarios implemented by these three modules are the same as those of the corresponding steps, but It is not limited to the content disclosed in Embodiment 2 above.
实施例6Example 6
根据本申请实施例,提供了一种传输数据的装置,需要说明的是,本申请实施例的一种传输数据的装置可以用于执行本申请实施例3所提供的传输数据的方法。以下对本申请实施例提供的一种传输数据的装置进行介绍。According to an embodiment of the present application, a device for transmitting data is provided. It should be noted that the device for transmitting data in an embodiment of the present application can be used to execute the method for transmitting data provided in Embodiment 3 of the present application. The following describes a data transmission device provided in an embodiment of the present application.
图9是根据本申请实施例的传输数据的装置示意图。如图9所示,该装置900可以设置在目标设备中,该装置900包括发送模块902、建立模块904和接收模块906。Fig. 9 is a schematic diagram of an apparatus for transmitting data according to an embodiment of the present application. As shown in FIG. 9, the apparatus 900 may be set in a target device. The apparatus 900 includes a sending module 902, an establishing module 904, and a receiving module 906.
其中,发送模块902,设置为向与目标设备相连的上一个设备发送第二IP地址,其中,第二IP地址由目标设备基于远程网络驱动程序接口规范分配;建立模块904,设置为基于第二IP地址,目标设备与上一个设备建立第二局域网;接收模块906,设置为在第二局域网内,目标设备接收上一个设备发送的数据。The sending module 902 is configured to send a second IP address to the previous device connected to the target device, where the second IP address is allocated by the target device based on the remote network driver interface specification; the establishing module 904 is set to be based on the second IP address. IP address, the target device establishes a second local area network with the previous device; the receiving module 906 is set to be in the second local area network, and the target device receives data sent by the previous device.
可选地,目标设备包括USB从机模块,发送模块包括:发送子模块,设置为基于远程网络驱动程序接口规范,目标设备通过USB从机模块向上一个设备发送第二IP地址。Optionally, the target device includes a USB slave module, and the sending module includes: a sending submodule, which is set based on the remote network driver interface specification, and the target device sends the second IP address to the next device through the USB slave module.
需要说明的是,上述发送模块902、建立模块904和接收模块906对应于实施例3中的步骤S502至步骤S506,该三个模块与对应的步骤所实现的示例和应用场景相同,但不限于上述实施例3所公开的内容。It should be noted that the foregoing sending module 902, establishing module 904, and receiving module 906 correspond to steps S502 to S506 in Embodiment 3. The examples and application scenarios implemented by these three modules are the same as those of the corresponding steps, but are not limited to The content disclosed in Example 3 above.
实施例7Example 7
在其最基本的配置中,图10是根据本申请实施例的传输数据的系统结构图。出于描述的目的,所绘的体系结构仅为合适环境的一个示例,并非对本申请的使用范围或功能提出任何局限。也不应将该系统解释为对图10所示的任一组件或其组合具有任何依赖或需求。In its most basic configuration, FIG. 10 is a structural diagram of a system for transmitting data according to an embodiment of the present application. For the purpose of description, the drawn architecture is only an example of a suitable environment, and does not impose any limitation on the scope of use or functions of this application. Nor should the system be interpreted as having any dependency or requirement on any component or combination of components shown in FIG. 10.
如图10所示,本申请提供的传输数据的系统包括:As shown in Figure 10, the data transmission system provided by this application includes:
多个级联的设备,包括最后一个设备和除最后一个设备之外的其余设备,其中,其余设备中的每个设备接收与其相连的下一个设备发送的第一IP地址,并向与其相连的上一个设备发送第二IP地址,最后一个设备仅向与其相连的上一个设备发送第二IP地址,第一IP地址和第二IP地址基于远程网络驱动程序接口规范分配。Multiple cascaded devices, including the last device and other devices except the last device. Each of the remaining devices receives the first IP address sent by the next device connected to it, and sends it to the connected device. The previous device sends the second IP address, and the last device only sends the second IP address to the previous device connected to it. The first IP address and the second IP address are allocated based on the remote network driver interface specification.
上位机,与其余设备中的第一个设备相连,设置为接收第一个设备发送的第一IP地址,并基于第一IP地址,上位机与第一个设备建立第一局域网,在第一局域网内,上位机将数据发送至第一个设备,由第一个设备将数据传输给与其相连的第二个设备,直至依次传输至最后一个设备。The upper computer is connected to the first device among the other devices, and is set to receive the first IP address sent by the first device. Based on the first IP address, the upper computer and the first device establish a first local area network. In the local area network, the upper computer sends data to the first device, and the first device transmits the data to the second device connected to it, until it is transmitted to the last device in turn.
实施例8Example 8
在其最基本的配置中,图11是根据本申请实施例的传输数据的系统结构图。出于描述的目的,所绘的体系结构仅为合适环境的一个示例,并非对本申请的使用范围或功能提出任何局限。也不应将该系统解释为对图11所示的任一组件或其组合具有任何依赖或需求。In its most basic configuration, FIG. 11 is a structural diagram of a system for transmitting data according to an embodiment of the present application. For the purpose of description, the drawn architecture is only an example of a suitable environment, and does not impose any limitation on the scope of use or functions of this application. Nor should the system be interpreted as having any dependency or requirement on any component or combination shown in FIG. 11.
如图11所示,本申请提供的传输数据的系统包括:As shown in Figure 11, the data transmission system provided by this application includes:
多个级联的设备,包括最后一个设备和除最后一个设备之外的其余设备,其中,其余设备中的每个设备接收与其相连的下一个设备发送的第一IP地址,并向与其相连的上一个设备发送第二IP地址,最后一个设备仅向与其相连的上一个设备发送第二IP地址,第一IP地址和第二IP地址基于远程网络驱动程序接口规范分配。Multiple cascaded devices, including the last device and other devices except the last device. Each of the remaining devices receives the first IP address sent by the next device connected to it, and sends it to the connected device. The previous device sends the second IP address, and the last device only sends the second IP address to the previous device connected to it. The first IP address and the second IP address are allocated based on the remote network driver interface specification.
一种可选方案中,上述设备可以为相同的设备,例如多媒体播放盒,在此不做限定。凡是多个相同的设备之间的数据传输,均在本申请的保护范围内。In an optional solution, the above-mentioned devices may be the same device, such as a multimedia play box, which is not limited herein. Any data transmission between multiple identical devices is within the protection scope of this application.
上位机,与其余设备中的第一个设备相连,设置为接收第一个设备发送的第一IP地址,并基于第一IP地址,上位机与第一个设备建立第一局域网,在第一局域网内,上位机将数据发送至第一个设备,由第一个设备将数据传输给与其相连的第二个设备,直至依次传输至最后一个设备。The upper computer is connected to the first device among the other devices, and is set to receive the first IP address sent by the first device. Based on the first IP address, the upper computer and the first device establish a first local area network. In the local area network, the upper computer sends data to the first device, and the first device transmits the data to the second device connected to it, until it is transmitted to the last device in turn.
一种可选方案中,上述上位机可以为电脑等具有控制功能的智能终端。In an optional solution, the above-mentioned upper computer may be an intelligent terminal with control function such as a computer.
多个显示设备,与多个级联的设备一一配套,设置为显示数据。Multiple display devices are matched with multiple cascaded devices one by one and set to display data.
一种可选方案中,上述显示设备可以为电视墙、显示器、显示屏等,该显示设备受与其配套的多媒体播放盒的控制。In an optional solution, the above-mentioned display device may be a TV wall, a display, a display screen, etc., and the display device is controlled by a multimedia playback box that is matched with the display device.
例如,由于LED显示屏需要在很多场合进行各种组合展示,因此尤其适用于本实施例的方法,可以同时对多个LED显示屏进行参数设置。For example, since the LED display screen needs to be displayed in various combinations on many occasions, the method is particularly suitable for this embodiment, and multiple LED display screens can be parameterized at the same time.
在本申请实施例中,传输数据的系统主要包括多个级联的设备、上位机、多个显示设备。与相关技术相比,本申请中的设备均可工作在网卡模式,通过远程网络驱动程序接口规范为与其相连的上一个设备提供IP地址,解决了相关技术中多个设备之间通过USB协议通信,导致开发难度大的技术问题,避免了通信的设备之间需提前一一配置的问题,达到了开发难度低、同时配置多个设备的目的。容易注意到,由于各实施例的方案可以相互组合,因此,上述方案通过USB主机模块和USB从机模块实现设备之间的TCP/IP通信;通过将USB从机模块设置为网卡模式,为上一个设备分配 IP地址;通过将配置信息传输给上一个设备,可以方便上位机发出配置指令;通过与多媒体播放盒配套的显示设备,显示多媒体信息;通过USB连接各设备,即插即用,无需更多的配置,大大提高了工作效率。In the embodiment of the present application, the data transmission system mainly includes multiple cascaded devices, a host computer, and multiple display devices. Compared with the related technology, the devices in this application can all work in the network card mode, and provide an IP address for the previous device connected to it through the remote network driver interface specification, which solves the problem of communication between multiple devices in the related technology through the USB protocol. , Which leads to technical problems that are difficult to develop, avoids the problem that communication devices need to be configured one by one in advance, and achieves the goal of low development difficulty and simultaneous configuration of multiple devices. It is easy to notice that since the solutions of the various embodiments can be combined with each other, the above solutions implement TCP/IP communication between the devices through the USB host module and the USB slave module; by setting the USB slave module to the network card mode, the above A device is assigned an IP address; by transmitting the configuration information to the previous device, it is convenient for the host computer to issue configuration instructions; through the display device matched with the multimedia playback box, the multimedia information is displayed; each device is connected via USB, plug and play, no need More configuration greatly improves work efficiency.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the foregoing embodiments of the present application are for description only, and do not represent the superiority or inferiority of the embodiments.
在本申请的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present application, the description of each embodiment has its own focus. For a part that is not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,可以为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units may be a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, units or modules, and may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。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, they may be located in one place, or they may be distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机装置(可为个人计算机、服务器或者网络装置等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes. .
以上所述仅是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above are only the preferred embodiments of this application. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of this application, several improvements and modifications can be made, and these improvements and modifications are also Should be regarded as the scope of protection of this application.
工业实用性Industrial applicability
本申请实施例提供的方案可应设置为显示领域,尤其适用于为多媒体播放盒通信的场景。在本申请实施例中,通过远程网络驱动程序接口规范为与其相连的上一个设备提供IP地址,并接收与其相连的下一个设备提供的IP地址,解决了相关技术中多个设备之间通过USB协议通信,导致开发难度大的技术问题,避免了通信的设备之间需提前一一配置的问题,达到了降低开发难度,且同时配置多个设备的技术效果。The solution provided by the embodiment of the present application should be set as the display field, which is especially suitable for the scenario of multimedia player box communication. In the embodiment of the present application, the remote network driver interface specification provides an IP address for the previous device connected to it, and receives the IP address provided by the next device connected to it, which solves the problem of communication between multiple devices in the related technology through USB Protocol communication leads to technical problems that are difficult to develop, avoids the problem of one-by-one configuration between communication devices, and achieves the technical effect of reducing the difficulty of development and configuring multiple devices at the same time.

Claims (14)

  1. 一种传输数据的方法,包括:A method of transmitting data, including:
    目标设备接收与其相连的下一个设备发送的第一IP地址,并向与其相连的上一个设备发送第二IP地址,其中,所述第一IP地址和所述第二IP地址分别由所述下一个设备和所述目标设备基于远程网络驱动程序接口规范分配;The target device receives the first IP address sent by the next device connected to it, and sends a second IP address to the previous device connected to it, wherein the first IP address and the second IP address are respectively assigned by the downloader A device and the target device are allocated based on the remote network driver interface specification;
    基于所述第一IP地址,所述目标设备与所述下一个设备建立第一局域网;Based on the first IP address, the target device establishes a first local area network with the next device;
    基于所述第二IP地址,所述目标设备与所述上一个设备建立第二局域网;Based on the second IP address, the target device establishes a second local area network with the previous device;
    在所述第二局域网内,所述目标设备接收所述上一个设备发送的所述数据,并在所述第一局域网内,所述目标设备将所述数据发送至所述下一个设备。In the second local area network, the target device receives the data sent by the previous device, and in the first local area network, the target device sends the data to the next device.
  2. 根据权利要求1所述的方法,其中,所述目标设备包括USB主机模块和USB从机模块,目标设备接收与其相连的下一个设备发送的第一IP地址,并向与其相连的上一个设备发送第二IP地址,包括:The method according to claim 1, wherein the target device includes a USB host module and a USB slave module, and the target device receives the first IP address sent by the next device connected to it, and sends it to the previous device connected to it. The second IP address includes:
    基于所述远程网络驱动程序接口规范,所述目标设备通过所述USB主机模块接收所述第一IP地址,并通过所述USB从机模块向所述上一个设备发送所述第二IP地址。Based on the remote network driver interface specification, the target device receives the first IP address through the USB host module, and sends the second IP address to the previous device through the USB slave module.
  3. 根据权利要求2所述的方法,其中,在所述目标设备通过所述USB主机模块接收所述第一IP地址,并通过所述USB从机模块向所述上一个设备发送所述第二IP地址之前,所述方法还包括:The method according to claim 2, wherein the target device receives the first IP address through the USB host module, and sends the second IP address to the previous device through the USB slave module Before the address, the method also includes:
    设置所述USB从机模块的工作模式为网卡模式。The working mode of the USB slave module is set to the network card mode.
  4. 根据权利要求1所述的方法,其中,在基于所述第二IP地址,所述目标设备与所述上一个设备建立第二局域网之后,所述方法还包括:The method according to claim 1, wherein after the target device establishes a second local area network with the previous device based on the second IP address, the method further comprises:
    接收获取指令,其中,所述获取指令设置为获取所述目标设备的配置信息;Receiving an acquisition instruction, where the acquisition instruction is set to acquire configuration information of the target device;
    向所述上一个设备返回所述配置信息。Return the configuration information to the previous device.
  5. 根据权利要求1所述的方法,其中,如果所述数据包括多媒体信息,所述方法还包括:The method according to claim 1, wherein, if the data includes multimedia information, the method further comprises:
    所述目标设备向显示设备发送所述多媒体信息,其中,所述显示设备与所述目标设备相配套。The target device sends the multimedia information to a display device, where the display device is matched with the target device.
  6. 根据权利要求1所述的方法,其中,所述目标设备与所述上一个设备、所述下一个设备均通过USB连接。The method according to claim 1, wherein the target device, the previous device, and the next device are all connected via USB.
  7. 一种传输数据的方法,包括:A method of transmitting data, including:
    目标设备接收与其相连的下一个设备发送的第一IP地址,其中,所述第一IP地址由所述下一个设备基于远程网络驱动程序接口规范分配;The target device receives the first IP address sent by the next device connected to it, where the first IP address is allocated by the next device based on the remote network driver interface specification;
    基于所述第一IP地址,所述目标设备与所述下一个设备建立第一局域网;Based on the first IP address, the target device establishes a first local area network with the next device;
    在所述第一局域网内,所述目标设备将所述数据发送至所述下一个设备。In the first local area network, the target device sends the data to the next device.
  8. 根据权利要求7所述的方法,其中,在目标设备接收与其相连的下一个设备发送的第一IP地址之前,所述方法还包括:The method according to claim 7, wherein before the target device receives the first IP address sent by the next device connected to it, the method further comprises:
    接收配置指令,其中,所述配置指令设置为所述目标设备配置与所述远程网络驱动程序接口规范对应的驱动程序和软件;Receiving a configuration instruction, where the configuration instruction is set to configure the target device to configure the driver and software corresponding to the remote network driver interface specification;
    基于所述配置指令,配置所述驱动程序和所述软件。Based on the configuration instruction, the driver and the software are configured.
  9. 根据权利要求7所述的方法,其中,所述目标设备包括USB主机模块,目标设备接收与其相连的下一个设备发送的第一IP地址,包括:8. The method according to claim 7, wherein the target device comprises a USB host module, and the target device receiving the first IP address sent by the next device connected to the target device comprises:
    基于所述远程网络驱动程序接口规范,所述目标设备通过所述USB主机模块接收所述第一IP地址。Based on the remote network driver interface specification, the target device receives the first IP address through the USB host module.
  10. 一种传输数据的方法,包括:A method of transmitting data, including:
    目标设备向与其相连的上一个设备发送第二IP地址,其中,所述第二IP地址由所述目标设备基于远程网络驱动程序接口规范分配;The target device sends a second IP address to the previous device connected to it, where the second IP address is allocated by the target device based on the remote network driver interface specification;
    基于所述第二IP地址,所述目标设备与所述上一个设备建立第二局域网;Based on the second IP address, the target device establishes a second local area network with the previous device;
    在所述第二局域网内,所述目标设备接收所述上一个设备发送的所述数据。In the second local area network, the target device receives the data sent by the previous device.
  11. 根据权利要求10所述的方法,其中,所述目标设备包括USB从机模块,目标设备向与其相连的上一个设备发送第二IP地址,包括:The method according to claim 10, wherein the target device includes a USB slave module, and the target device sending the second IP address to the previous device connected to the target device includes:
    基于所述远程网络驱动程序接口规范,所述目标设备通过所述USB从机模块向所述上一个设备发送所述第二IP地址。Based on the remote network driver interface specification, the target device sends the second IP address to the previous device through the USB slave module.
  12. 一种传输数据的装置,设置在目标设备中,所述装置包括:A device for transmitting data is set in a target device, and the device includes:
    第一接收模块,设置为接收与所述目标设备相连的下一个设备发送的第一IP地址,并向与所述目标设备相连的上一个设备发送第二IP地址,其中,所述第一IP地址和所述第二IP地址分别由所述下一个设备和所述目标设备基于远程网络驱动程序接口规范分配;The first receiving module is configured to receive a first IP address sent by the next device connected to the target device, and send a second IP address to the previous device connected to the target device, wherein the first IP The address and the second IP address are respectively allocated by the next device and the target device based on a remote network driver interface specification;
    第一建立模块,设置为基于所述第一IP地址,与所述下一个设备建立第一局域网;A first establishment module, configured to establish a first local area network with the next device based on the first IP address;
    第二建立模块,设置为基于所述第二IP地址,与所述上一个设备建立第二局域网;A second establishment module, configured to establish a second local area network with the previous device based on the second IP address;
    执行模块,设置为在所述第二局域网内,接收所述上一个设备发送的所述数据,并在所述第一局域网内,将所述数据发送至所述下一个设备。The execution module is configured to receive the data sent by the previous device in the second local area network, and send the data to the next device in the first local area network.
  13. 一种传输数据的系统,包括:A system for transmitting data, including:
    多个级联的设备,包括最后一个设备和除最后一个设备之外的其余设备,其中,所述其余设备中的每个设备接收与其相连的下一个设备发送的第一IP地址,并向与其相连的上一个设备发送第二IP地址,所述最后一个设备仅向与其相连的上一个设备发送第二IP地址,所述第一IP地址和所述第二IP地址基于远程网络驱动程序接口规范分配;Multiple cascaded devices, including the last device and the rest of the devices except the last device, wherein each of the remaining devices receives the first IP address sent by the next device connected to it, and sends it to it The last connected device sends a second IP address, and the last device only sends a second IP address to the previous device connected to it. The first IP address and the second IP address are based on the remote network driver interface specification distribute;
    上位机,与所述其余设备中的第一个设备相连,设置为接收所述第一个设备发送的第一IP地址,并基于所述第一IP地址,所述上位机与所述第一个设备建立第一局域网,在所述第一局域网内,所述上位机将所述数据发送至所述第一个设备,由所述第一个设备将所述数据传输给与其相连的第二个设备,直至依次传输至所述最后一个设备。The upper computer is connected to the first device among the remaining devices, and is set to receive the first IP address sent by the first device, and based on the first IP address, the upper computer is connected to the first device. A device establishes a first local area network. In the first local area network, the host computer sends the data to the first device, and the first device transmits the data to the second device connected to it. Devices until the last device is transferred to the last device in turn.
  14. 一种传输数据的系统,包括:A system for transmitting data, including:
    多个级联的设备,包括最后一个设备和除最后一个设备之外的其余设备,其中,所述其余设备中的每个设备接收与其相连的下一个设备发送的第一IP地址,并向与其相连的上一个设备发送第二IP地址,所述最后一个设备仅向与其相连的 上一个设备发送第二IP地址,所述第一IP地址和所述第二IP地址基于远程网络驱动程序接口规范分配;Multiple cascaded devices, including the last device and the rest of the devices except the last device, wherein each of the remaining devices receives the first IP address sent by the next device connected to it, and sends it to it The last connected device sends a second IP address, and the last device only sends a second IP address to the previous device connected to it. The first IP address and the second IP address are based on the remote network driver interface specification distribute;
    上位机,与所述其余设备中的第一个设备相连,设置为接收所述第一个设备发送的第一IP地址,并基于所述第一IP地址,所述上位机与所述第一个设备建立第一局域网,在所述第一局域网内,所述上位机将所述数据发送至所述第一个设备,由所述第一个设备将所述数据传输给与其相连的第二个设备,直至依次传输至所述最后一个设备;The upper computer is connected to the first device among the remaining devices, and is set to receive the first IP address sent by the first device, and based on the first IP address, the upper computer is connected to the first device. A device establishes a first local area network. In the first local area network, the host computer sends the data to the first device, and the first device transmits the data to the second device connected to it. Devices, until the transmission to the last device in turn;
    多个显示设备,与所述多个级联的设备一一配套,设置为显示所述数据。Multiple display devices are matched with the multiple cascaded devices one by one, and are set to display the data.
PCT/CN2020/080176 2020-03-19 2020-03-19 Data transmission method, apparatus and system WO2021184291A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2020/080176 WO2021184291A1 (en) 2020-03-19 2020-03-19 Data transmission method, apparatus and system
CN202080012660.5A CN113812127B (en) 2020-03-19 2020-03-19 Method, device and system for transmitting data applied to LED display system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/080176 WO2021184291A1 (en) 2020-03-19 2020-03-19 Data transmission method, apparatus and system

Publications (1)

Publication Number Publication Date
WO2021184291A1 true WO2021184291A1 (en) 2021-09-23

Family

ID=77772200

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/080176 WO2021184291A1 (en) 2020-03-19 2020-03-19 Data transmission method, apparatus and system

Country Status (2)

Country Link
CN (1) CN113812127B (en)
WO (1) WO2021184291A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120054372A1 (en) * 2010-08-24 2012-03-01 Mediatek Inc. Method of usb device enumeration including detecting the operating system type of the usb host
CN105679231A (en) * 2015-12-31 2016-06-15 西安诺瓦电子科技有限公司 Terminal device access control system and led display system
CN106533800A (en) * 2016-12-16 2017-03-22 深圳市有方科技股份有限公司 Method for network adaptation of terminal, and RNDIS equipment
CN106713509A (en) * 2017-02-27 2017-05-24 武汉芯光云信息技术有限责任公司 ARM cloud terminal system based on AOC optical fiber
EP3299982A1 (en) * 2016-09-26 2018-03-28 Comarch Spolka Akcyjna Method of communication of a cryptographic apparatus with a computing device, and cryptographic apparatus
CN209962605U (en) * 2019-05-09 2020-01-17 杭州海康威视数字技术股份有限公司 LED display screen and display system

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030073219A (en) * 2002-03-09 2003-09-19 (주)디아냇 LED bulletin board system for transmitting information by both directions using internet
CN101547137A (en) * 2008-03-27 2009-09-30 华为技术有限公司 Method and device for sending data and communication equipment
CN102209124B (en) * 2011-06-08 2014-03-12 杭州华三通信技术有限公司 Method for communication between private network and public network and network address translation equipment
CN103037021B (en) * 2011-10-09 2017-08-08 南京中兴新软件有限责任公司 A kind of method of transmitting network data, wireless communication terminal and main frame
CN103366204B (en) * 2013-07-10 2016-04-13 沈阳航空航天大学 Picking System assisted by two lines system electronic label
CN104426961A (en) * 2013-08-29 2015-03-18 腾讯科技(深圳)有限公司 Browse content sharing method and terminal
US20160366711A1 (en) * 2015-06-09 2016-12-15 Harman International Industries, Incorporated Data synchronization
CN106101072A (en) * 2016-05-30 2016-11-09 上海小蚁科技有限公司 For transmitting the system and method for video data on network
CN106413045B (en) * 2016-09-30 2018-05-11 深圳市保千里电子有限公司 A kind of wireless wifi and the method and system of mobile communication synchronous operation
CN106506720B (en) * 2016-11-16 2020-02-14 西安诺瓦星云科技股份有限公司 Automatic network IP address allocation method
CN106604085A (en) * 2016-12-19 2017-04-26 天脉聚源(北京)传媒科技有限公司 Video sharing method and video sharing device
CN110224917B (en) * 2018-03-02 2021-10-08 杭州海康威视数字技术股份有限公司 Data transmission method, device and system and server
CN108777722B (en) * 2018-04-25 2021-07-16 广州视源电子科技股份有限公司 Multi-system networking communication method and device, mobile terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120054372A1 (en) * 2010-08-24 2012-03-01 Mediatek Inc. Method of usb device enumeration including detecting the operating system type of the usb host
CN105679231A (en) * 2015-12-31 2016-06-15 西安诺瓦电子科技有限公司 Terminal device access control system and led display system
EP3299982A1 (en) * 2016-09-26 2018-03-28 Comarch Spolka Akcyjna Method of communication of a cryptographic apparatus with a computing device, and cryptographic apparatus
CN106533800A (en) * 2016-12-16 2017-03-22 深圳市有方科技股份有限公司 Method for network adaptation of terminal, and RNDIS equipment
CN106713509A (en) * 2017-02-27 2017-05-24 武汉芯光云信息技术有限责任公司 ARM cloud terminal system based on AOC optical fiber
CN209962605U (en) * 2019-05-09 2020-01-17 杭州海康威视数字技术股份有限公司 LED display screen and display system

Also Published As

Publication number Publication date
CN113812127B (en) 2023-08-18
CN113812127A (en) 2021-12-17

Similar Documents

Publication Publication Date Title
US10305823B2 (en) Network interface card configuration method and resource management center
US8015331B2 (en) Multi-console workstations concurrently supporting multiple users
US8762544B2 (en) Selectively communicating data of a peripheral device to plural sending computers
US8806065B2 (en) Server device connecting with USB device and device sharing method
JP2008210115A (en) System for operating usb device of local terminal on remote computer, method therefor and program therefor
JP6014274B2 (en) Method and system for mapping a plurality of virtual machines and client device
WO2022048419A1 (en) Method for transmission by usb, and electronic device
CN103856374A (en) Data transmission method, terminal and home interconnected system
CN103257941A (en) Multi-protocol storage controller and system
CN113778593B (en) Cloud desktop control method and device, electronic equipment, storage medium and program product
US20140379888A1 (en) Host device and slave device controlling method
US20120260018A1 (en) Kvm switcher with ability to extend universal serial bus (usb) host interface via serial peripherial interface (spi)
WO2021184291A1 (en) Data transmission method, apparatus and system
US20080270512A1 (en) Virtual network projection system supporting multiple projection sources and method thereof
WO2023035619A1 (en) Scene rendering method and apparatus, device and system
JP2013516844A (en) Method and apparatus for interface to layer 2 of an open system interconnection (OSI) communication protocol
US9658970B1 (en) Interconnection of peripheral devices on different electronic devices
JP2007317067A (en) Network file management system, device server, and file transmission method
WO2024093546A1 (en) Image display method and device for virtual machine
CN112698874B (en) Method for simultaneously displaying ast display card and independent display card in kylin system
US10044771B2 (en) Apparatus, method, and computer program for streaming media peripheral address and capability configuration
CN114424160B (en) Electronic device and control method thereof
CN115914771A (en) Display device and control method for acquiring different network card addresses based on android system
CN116126272A (en) Screen projection method and device, electronic equipment and nonvolatile storage medium
KR101945840B1 (en) Server device connecting usb device, client device connecting server device, device driving method and device sharing method

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: 20925888

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: 20925888

Country of ref document: EP

Kind code of ref document: A1