Network data transmission method and device based on ums protocol, equipment and medium
Through the USB interface and UMS protocol, the terminal device and the network adapter negotiate to establish a data transmission channel, which solves the problem that embedded and industrial devices cannot directly connect to the Internet, realizes convenient network connection and data transmission, is suitable for a variety of terminal devices, and has efficient and stable network connection and high cost-effectiveness.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-19
- Publication Date
- 2026-03-31
AI Technical Summary
Many embedded and industrial devices cannot connect to the Internet directly via Ethernet interfaces or wireless communication modules due to hardware or software limitations, and existing network adapters are difficult to make compatible with these devices.
The terminal device is connected to the network adapter via USB interface. The network adapter's virtual storage device is accessed using the UMS protocol to obtain the network configuration driver and configuration file, a virtual network interface is created, and a data transmission channel is negotiated with the network adapter through the UMS protocol to realize data transmission between the terminal device and the target network.
It enables network connectivity and data transmission without requiring terminal devices to have Ethernet interfaces or wireless communication modules, improving the convenience of network connectivity and data transmission. It is suitable for a variety of terminal devices, including embedded and industrial equipment, simplifies the network configuration process, and provides efficient and stable network connectivity with high cost-effectiveness.
Smart Images

Figure CN119520506B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and in particular to a network data transmission method, apparatus, electronics, and media based on the UMS protocol. Background Technology
[0002] With the widespread adoption of the internet, the demand for internet connectivity among devices is increasing. However, many devices, especially embedded or industrial equipment, cannot directly connect to the internet via Ethernet interfaces or wireless communication modules due to hardware or software limitations. Furthermore, most network adapters on the market currently use standard network card drivers, which are incompatible with certain specialized devices. These problems urgently need to be addressed. Summary of the Invention
[0003] The purpose of this invention is to at least partially solve one of the technical problems existing in the prior art.
[0004] Therefore, one objective of this invention is to provide a network data transmission method based on the UMS protocol. This method connects a terminal device to a target network via a USB interface and realizes data transmission between the terminal device and the target network through the UMS protocol, thereby improving the convenience of network connection and data transmission.
[0005] Another objective of this invention is to provide a network data transmission system based on the UMS protocol.
[0006] To achieve the above-mentioned technical objectives, the technical solutions adopted in the embodiments of the present invention include:
[0007] On one hand, embodiments of the present invention provide a network data transmission method based on the UMS protocol, applied to a terminal device. The terminal device is connected to a network adapter via a USB interface, and the network adapter is communicatively connected to a target network. The network data transmission method includes the following steps:
[0008] Access the virtual storage device of the network adapter via the UMS protocol, and obtain the network configuration driver and network configuration file stored in the virtual storage device;
[0009] Install the network configuration driver and configure the network according to the network configuration file to create a virtual network interface, which then negotiates and establishes a data transmission channel with the network adapter through the USB interface and UMS protocol.
[0010] The request data is sent to the network adapter through the virtual network interface, so that the network adapter uploads the request data to the target network;
[0011] The virtual network interface receives the response data from the target network returned by the network adapter.
[0012] Furthermore, in one embodiment of the present invention, the network data transmission method further includes the following steps:
[0013] When the virtual network interface loses communication with the network adapter, the network interruption alarm sent by the network adapter is received through the USB interface.
[0014] The data transmission channel is re-negotiated with the network adapter through the virtual network interface based on the USB interface and the USM protocol to establish the data transmission channel.
[0015] Furthermore, in one embodiment of the present invention, the network data transmission method further includes the following steps:
[0016] The network status indication information of the target network sent by the network adapter is received through the virtual network interface;
[0017] The network configuration is adjusted based on the network status indication information, thereby adjusting the data transmission frequency of the virtual network interface.
[0018] On the other hand, embodiments of the present invention provide a network data transmission method based on the UMS protocol, applied to a network adapter. A terminal device is connected to the network adapter via a USB interface. The network adapter is communicatively connected to a target network. The network data transmission method includes the following steps:
[0019] In response to the access request from the terminal device, the network configuration driver and network configuration file stored in the virtual storage device are returned to the terminal device via the UMS protocol, so that the terminal device can install the network configuration driver and perform network configuration according to the network configuration file, thereby creating a virtual network interface;
[0020] A data transmission channel is established by negotiating with the virtual network interface through the USB interface and the UMS protocol.
[0021] Receive request data sent by the virtual network interface and upload the request data to the target network;
[0022] Receive response data sent by the target network and return the response data to the virtual network interface.
[0023] Furthermore, in one embodiment of the present invention, the network data transmission method further includes the following steps:
[0024] When communication with the virtual network interface is interrupted, a network interruption alarm is sent to the terminal device through the USB interface;
[0025] The data transmission channel is re-negotiated with the virtual network interface using the USB interface and UMS protocol to establish the data transmission channel.
[0026] Furthermore, in one embodiment of the present invention, the network data transmission method further includes the following steps:
[0027] Monitor the network status of the target network and generate network status indication information;
[0028] The network status indication information is sent to the virtual network interface, so that the terminal device adjusts the network configuration according to the network status indication information, and then adjusts the data transmission frequency of the virtual network interface.
[0029] On the other hand, embodiments of the present invention provide a network data transmission system based on the UMS protocol, applied to a terminal device. The terminal device is connected to a network adapter via a USB interface, and the network adapter is communicatively connected to a target network. The network data transmission system includes:
[0030] The configuration data request module is used to access the virtual storage device of the network adapter via the UMS protocol and obtain the network configuration driver and network configuration file stored in the virtual storage device.
[0031] The network interface creation module is used to install the network configuration driver and configure the network according to the network configuration file, thereby creating a virtual network interface, which enables the virtual network interface to negotiate and establish a data transmission channel with the network adapter through the USB interface and UMS protocol.
[0032] A data sending module is used to send request data to the network adapter through the virtual network interface, so that the network adapter uploads the request data to the target network.
[0033] The data receiving module is used to receive response data from the target network returned by the network adapter through the virtual network interface.
[0034] On the other hand, embodiments of the present invention provide a network data transmission system based on the UMS protocol, applied to a network adapter. A terminal device is connected to the network adapter via a USB interface. The network adapter is communicatively connected to a target network. The network data transmission system includes:
[0035] The configuration data return module is used to respond to the access request of the terminal device and return the network configuration driver and network configuration file stored in the virtual storage device to the terminal device through the UMS protocol, so that the terminal device can install the network configuration driver and perform network configuration according to the network configuration file, thereby creating a virtual network interface;
[0036] A transmission channel establishment module is used to negotiate and establish a data transmission channel with the virtual network interface through the USB interface and the UMS protocol.
[0037] The first data forwarding module is used to receive request data sent by the virtual network interface and upload the request data to the target network;
[0038] The second data forwarding module is used to receive response data sent by the target network and return the response data to the virtual network interface.
[0039] On the other hand, embodiments of the present invention provide an electronic device, which includes a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for implementing communication between the processor and the memory. When the program is executed by the processor, it implements the network data transmission method based on the UMS protocol as described above.
[0040] On the other hand, embodiments of the present invention also provide a storage medium, which is a computer-readable storage medium for computer-readable storage. The storage medium stores one or more programs, which can be executed by one or more processors to implement the network data transmission method based on the UMS protocol as described above.
[0041] The advantages and beneficial effects of the present invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention:
[0042] In this embodiment of the invention, the terminal device connects to a network adapter via a USB interface. The network adapter is communicatively connected to the target network. The terminal device accesses the virtual storage device of the network adapter via the UMS protocol and obtains the network configuration driver and network configuration file stored in the virtual storage device. The terminal device installs the network configuration driver and configures the network according to the network configuration file, thereby creating a virtual network interface. This virtual network interface negotiates and establishes a data transmission channel with the network adapter via the USB interface and the UMS protocol. The terminal device sends request data to the network adapter through the virtual network interface, causing the network adapter to upload the request data to the target network. The terminal device receives the response data from the target network returned by the network adapter through the virtual network interface. This embodiment of the invention connects the terminal device to the target network via a USB interface and realizes data transmission between the terminal device and the target network via the UMS protocol. It eliminates the need for the terminal device to have an Ethernet interface or wireless communication module, thus improving the convenience of network connection and data transmission. Attached Figure Description
[0043] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the embodiments of the present invention are described below. It should be understood that the drawings described below are only for the convenience of clearly describing some embodiments of the technical solutions of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0044] Figure 1 A flowchart illustrating the steps of a network data transmission method based on the UMS protocol provided in an embodiment of the present invention;
[0045] Figure 2 Another flowchart of the network data transmission method based on the UMS protocol provided in this embodiment of the invention;
[0046] Figure 3 Another flowchart of the network data transmission method based on the UMS protocol provided in this embodiment of the invention;
[0047] Figure 4 Another flowchart of the network data transmission method based on the UMS protocol provided in this embodiment of the invention;
[0048] Figure 5 Another flowchart of the network data transmission method based on the UMS protocol provided in this embodiment of the invention;
[0049] Figure 6 Another flowchart of the network data transmission method based on the UMS protocol provided in this embodiment of the invention;
[0050] Figure 7 A schematic diagram of a network data transmission system based on the UMS protocol provided in an embodiment of the present invention;
[0051] Figure 8 This is a schematic diagram of another structure of a network data transmission system based on the UMS protocol provided in an embodiment of the present invention;
[0052] Figure 9 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention;
[0053] Figure 10 This is a schematic diagram of the structure of the storage medium provided in an embodiment of the present invention. Detailed Implementation
[0054] The embodiments of the present invention are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application. It should be noted that although functional modules are divided in the system schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the system schematic diagram or the order in the flowchart. The step numbers in the following embodiments are only set for ease of explanation and do not limit the order between steps. The execution order of each step in the embodiments can be adaptively adjusted according to the understanding of those skilled in the art.
[0055] In the description of this invention, "multiple" means two or more. The use of "first" and "second" is for distinguishing technical features only and should not be construed as indicating or implying relative importance, the number of indicated technical features, or the order of the indicated technical features. Furthermore, unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0056] The network data transmission method based on the UMS protocol provided in this application can be applied to a terminal, a server, or software running on either a terminal or a server. In some embodiments, the terminal can be a smartphone, tablet, laptop, desktop computer, set-top box, etc.; the server can be configured as an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the network data transmission method based on the UMS protocol, but is not limited to the above forms.
[0057] This application can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics devices, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.
[0058] It should be noted that in all specific embodiments of this application, when processing data related to user identity or characteristics, such as user information, user behavior data, user historical data, and user location information, user permission or consent is obtained first. Furthermore, the collection, use, and processing of this data comply with relevant laws, regulations, and standards of the relevant countries and regions. In addition, when embodiments of this application require access to sensitive personal information of users, separate permission or consent from the user is obtained through pop-ups or redirects to confirmation pages. Only after obtaining the user's separate permission or consent is the necessary user-related data for the proper functioning of the embodiments of this application obtained.
[0059] like Figure 1 The diagram shows a flowchart of a network data transmission method based on the UMS protocol provided in an embodiment of the present invention. (Refer to...) Figure 1This invention provides a network data transmission method based on the UMS protocol, applied to a terminal device. The terminal device is connected to a network adapter via a USB interface, and the network adapter is communicatively connected to a target network. The network data transmission method includes the following steps:
[0060] S101. Access the virtual storage device of the network adapter via the UMS protocol and obtain the network configuration driver and network configuration file stored in the virtual storage device;
[0061] S102. Install the network configuration driver and configure the network according to the network configuration file, thereby creating a virtual network interface, which then negotiates with the network adapter to establish a data transmission channel through the USB interface and UMS protocol.
[0062] S103. Send the request data to the network adapter through the virtual network interface, so that the network adapter uploads the request data to the target network;
[0063] S104. Receive the response data from the target network returned by the network adapter through the virtual network interface.
[0064] Specifically, in this embodiment of the invention, the terminal device is connected to the target network via a USB interface, and data transmission between the terminal device and the target network is achieved through the UMS protocol. The specific process is as follows:
[0065] 1) Device connection: Connect the terminal device that needs to access the Internet to the network adapter via the USB interface. The network adapter is simultaneously connected to the router or the Internet via the network port.
[0066] 2) Protocol Configuration: Configure the network adapter with the USB UMS protocol so that terminal devices can recognize and connect to the network adapter.
[0067] 3) Virtual storage device creation: Creates a virtual storage device on the network adapter, which contains drivers and configuration files for network configuration.
[0068] 4) Driver installation: The terminal device accesses the virtual storage device via the USB UMS protocol and installs the necessary drivers.
[0069] 5) Network Interface Creation: After the driver installation is complete, a virtual network interface is created on the terminal device, which communicates with the network adapter via USB.
[0070] 6) Data transmission: The network adapter transmits the network requests from the terminal device to the router or the Internet, and sends the response data back to the terminal device.
[0071] It can be recognized that the embodiments of the present invention connect the terminal device to the target network through the USB interface and realize the data transmission between the terminal device and the target network through the UMS protocol. The terminal device does not need to have an Ethernet interface or wireless communication module to realize network connection and data transmission, thus improving the convenience of network connection and data transmission.
[0072] like Figure 2 The diagram shown is another step flowchart of the network data transmission method based on the UMS protocol provided in this embodiment of the invention. (Refer to...) Figure 2 As an optional implementation, the network data transmission method further includes the following steps:
[0073] S201. When communication between the virtual network interface and the network adapter is interrupted, receive the network interruption alarm sent by the network adapter through the USB interface.
[0074] S202. Re-negotiate and establish a data transmission channel with the network adapter through the virtual network interface based on the USB interface and the USM protocol.
[0075] Specifically, the network adapter monitors the communication connection status with the virtual network interface in real time, and sends a network interruption alarm to the terminal device via the USB interface when communication is interrupted; the virtual network interface of the terminal device re-negotiates and establishes a data transmission channel with the network adapter via the USB interface and the USM protocol.
[0076] like Figure 3 The diagram shown is another step flowchart of the network data transmission method based on the UMS protocol provided in this embodiment of the invention. (Refer to...) Figure 3 As an optional implementation, the network data transmission method further includes the following steps:
[0077] S301. Receive network status indication information of the target network sent by the network adapter through the virtual network interface;
[0078] S302. Adjust the network configuration according to the network status indication information, and then adjust the data transmission frequency of the virtual network interface.
[0079] Specifically, the network adapter monitors the network status of the target network (router or Internet) in real time, generates network status indication information, and sends it to the virtual network interface of the terminal device. The terminal device adjusts the network configuration according to the network status indication information, and then adjusts the data transmission frequency of the virtual network interface to adapt to the network status of the target network.
[0080] like Figure 4 The diagram shown is another step flowchart of the network data transmission method based on the UMS protocol provided in this embodiment of the invention. (Refer to...) Figure 4This invention provides a network data transmission method based on the UMS protocol, applied to a network adapter. A terminal device connects to the network adapter via a USB interface, and the network adapter establishes a communication connection with the target network. The network data transmission method includes the following steps:
[0081] S401. In response to the access request from the terminal device, the network configuration driver and network configuration file stored in the virtual storage device are returned to the terminal device through the UMS protocol, so that the terminal device can install the network configuration driver and perform network configuration according to the network configuration file, thereby creating a virtual network interface.
[0082] S402. Negotiate and establish a data transmission channel with the virtual network interface via USB interface and UMS protocol;
[0083] S403: Receive request data sent by the virtual network interface and upload the request data to the target network;
[0084] S404. Receive response data sent by the target network and return the response data to the virtual network interface.
[0085] Specifically, the terminal device is connected to the network adapter via a USB data cable, ensuring that the network adapter can recognize the device; the USB UMS protocol is enabled on the network adapter, and a virtual storage device containing drivers and configuration files is created; the terminal device accesses the virtual storage device via the USB connection and installs the driver; after the driver installation is complete, a virtual network interface is created on the terminal device; the network adapter transmits the terminal device's network requests to the router or the Internet and sends the response data back to the terminal device; the network adapter monitors the network connection status in real time to ensure the stability and security of the connection.
[0086] It can be recognized that the embodiments of the present invention connect the terminal device to the target network through the USB interface and realize the data transmission between the terminal device and the target network through the UMS protocol. The terminal device does not need to have an Ethernet interface or wireless communication module to realize network connection and data transmission, thus improving the convenience of network connection and data transmission.
[0087] like Figure 5 The diagram shown is another step flowchart of the network data transmission method based on the UMS protocol provided in this embodiment of the invention. (Refer to...) Figure 5 As an optional implementation, the network data transmission method further includes the following steps:
[0088] S501. When communication with the virtual network interface is interrupted, a network interruption alarm is sent to the terminal device via the USB interface.
[0089] S502, re-negotiate and establish a data transmission channel with the virtual network interface via USB interface and UMS protocol.
[0090] Specifically, the network adapter monitors the communication connection status with the virtual network interface in real time, and sends a network interruption alarm to the terminal device via the USB interface when communication is interrupted; the virtual network interface of the terminal device re-negotiates and establishes a data transmission channel with the network adapter via the USB interface and the USM protocol.
[0091] like Figure 6 The diagram shown is another step flowchart of the network data transmission method based on the UMS protocol provided in this embodiment of the invention. (Refer to...) Figure 6 As an optional implementation, the network data transmission method further includes the following steps:
[0092] S601. Monitor the network status of the target network and generate network status indication information;
[0093] S602. Send network status indication information to the virtual network interface so that the terminal device can adjust the network configuration according to the network status indication information, and thus adjust the data transmission frequency of the virtual network interface.
[0094] Specifically, the network adapter monitors the network status of the target network (router or Internet) in real time, generates network status indication information, and sends it to the virtual network interface of the terminal device. The terminal device adjusts the network configuration according to the network status indication information, and then adjusts the data transmission frequency of the virtual network interface to adapt to the network status of the target network.
[0095] The method steps of the embodiments of the present invention have been described above. Compared with the prior art, the embodiments of the present invention also have the following advantages:
[0096] 1) Wide device applicability: This invention is applicable to a variety of terminal devices, including embedded devices, industrial devices and special purpose devices, which often lack standard network interfaces.
[0097] 2) Simplified network configuration: Terminal devices only need to connect to the network adapter via USB and install a simple driver to establish a network connection, greatly simplifying the network configuration process. Users do not need professional network knowledge to complete the network access for their devices.
[0098] 3) Highly efficient and stable network connection: Data transmission is achieved via a USB interface and the UMS protocol, offering high data transfer rates and stability to meet general network access needs. Especially in industrial environments, a stable network connection is crucial for the normal operation of equipment, and this invention offers a significant advantage in this regard.
[0099] 4) Cost-effectiveness: Compared with traditional network adapters, this invention does not require additional hardware modifications or complex equipment upgrades. Only a network adapter that supports USB interface and UMS protocol is needed to enable the device to access the Internet, which has high cost-effectiveness.
[0100] like Figure 7 The diagram shown is a structural schematic of a network data transmission system based on the UMS protocol provided in an embodiment of the present invention. (Refer to...) Figure 7 This invention provides a network data transmission system based on the UMS protocol, applied to a terminal device. The terminal device is connected to a network adapter via a USB interface, and the network adapter is communicatively connected to a target network. The network data transmission system includes:
[0101] The configuration data request module is used to access the virtual storage device of the network adapter via the UMS protocol and obtain the network configuration driver and network configuration file stored in the virtual storage device;
[0102] The network interface creation module is used to install network configuration drivers and configure the network according to the network configuration file, thereby creating a virtual network interface. This virtual network interface then negotiates and establishes a data transmission channel with the network adapter through the USB interface and UMS protocol.
[0103] The data sending module is used to send request data to the network adapter through a virtual network interface, so that the network adapter uploads the request data to the target network.
[0104] The data receiving module is used to receive response data from the target network returned by the network adapter through the virtual network interface.
[0105] The content of the above method embodiments is applicable to this system embodiment. The specific functions implemented in this system embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.
[0106] like Figure 8 The diagram shown is another structural schematic of a network data transmission system based on the UMS protocol provided in an embodiment of the present invention. (Refer to...) Figure 8 This invention provides a network data transmission system based on the UMS protocol, applied to a network adapter. A terminal device connects to the network adapter via a USB interface. The network adapter communicates with the target network. The network data transmission system includes:
[0107] The configuration data return module is used to respond to the access request of the terminal device. It returns the network configuration driver and network configuration file stored in the virtual storage device to the terminal device through the UMS protocol, so that the terminal device can install the network configuration driver and perform network configuration according to the network configuration file, thereby creating a virtual network interface.
[0108] The transmission channel establishment module is used to negotiate and establish a data transmission channel with the virtual network interface via the USB interface and UMS protocol.
[0109] The first data forwarding module is used to receive request data sent by the virtual network interface and upload the request data to the target network;
[0110] The second data forwarding module is used to receive response data sent by the target network and return the response data to the virtual network interface.
[0111] The content of the above method embodiments is applicable to this system embodiment. The specific functions implemented in this system embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.
[0112] This invention also provides an electronic device, comprising: a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for communication between the processor and the memory. When the program is executed by the processor, it implements the aforementioned network data transmission method based on the UMS protocol. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.
[0113] like Figure 9 The diagram shown is a hardware structure schematic of an electronic device provided in an embodiment of the present invention. (Refer to...) Figure 9 This invention provides an electronic device, comprising:
[0114] The processor 901 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present invention.
[0115] The memory 902 can be implemented as a read-only memory (ROM), static storage device, dynamic storage device, or random access memory (RAM). The memory 902 can store the operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 902 and is called and executed by the processor 901 to execute the network data transmission method based on the UMS protocol of the embodiments of this invention.
[0116] The input / output interface 903 is used to implement information input and output;
[0117] The communication interface 904 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0118] Bus 905 transmits information between various components of the device (e.g., processor 901, memory 902, input / output interface 903, and communication interface 904);
[0119] The processor 901, memory 902, input / output interface 903, and communication interface 904 are connected to each other within the device via bus 905.
[0120] like Figure 10 The diagram shown is a structural schematic of the storage medium provided in an embodiment of the present invention. (Refer to...) Figure 10 The present invention also provides a storage medium, which is a computer-readable storage medium for computer-readable storage. The storage medium stores one or more programs 1001, which can be executed by one or more processors to implement the above-described network data transmission method based on the UMS protocol.
[0121] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0122] This invention also discloses a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device can read the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to perform... Figure 1 Or the method shown in 4.
[0123] In some alternative embodiments, the functions / operations mentioned in the block diagrams may not occur in the order shown in the operation diagrams. For example, depending on the functions / operations involved, two consecutively shown blocks may actually be executed substantially simultaneously, or the aforementioned blocks may sometimes be executed in reverse order. Furthermore, the embodiments presented and described in the flowcharts of this invention are provided by way of example to provide a more comprehensive understanding of the technology. The disclosed methods are not limited to the operations and logic flows presented herein. Alternative embodiments are contemplated in which the order of various operations is changed and sub-operations described as part of a larger operation are executed independently.
[0124] Furthermore, although the invention has been described in the context of functional modules, it should be understood that, unless otherwise stated, one or more of the aforementioned functions and / or features may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the invention. Rather, given the properties, functions, and internal relationships of the various functional modules in the apparatus disclosed herein, the actual implementation of the module will be understood within the scope of conventional skill of an engineer. Therefore, those skilled in the art can implement the invention as set forth in the claims using ordinary techniques without excessive experimentation. It is also understood that the specific concepts disclosed are merely illustrative and not intended to limit the scope of the invention, which is determined by the full scope of the appended claims and their equivalents.
[0125] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0126] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device.
[0127] More specific examples of computer-readable media (a non-exhaustive list) include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which the aforementioned program can be printed, because the aforementioned program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or, if necessary, processing in other suitable ways, and then stored in computer memory.
[0128] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0129] In the foregoing description of this specification, references to terms such as "one embodiment," "another embodiment," or "some embodiments" indicate that a specific feature, structure, material, or characteristic described in connection with an embodiment or example is included in at least one embodiment or example of the present invention. In this specification, illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0130] Although embodiments of the invention have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
[0131] The above is a detailed description of the preferred embodiments of the present invention. However, the present invention is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.
Claims
1. A network data transmission method based on UMS protocol, characterized in that, The network data transmission method is applied to a terminal device connected to a network adapter through a USB interface, and the network adapter is in communication connection with a target network. Access a virtual storage device of the network adapter through a UMS protocol, and obtain a network configuration driver and a network configuration file stored in the virtual storage device; Install the network configuration driver, and perform network configuration according to the network configuration file, and then create a virtual network interface, so that the virtual network interface negotiates with the network adapter through the USB interface and the UMS protocol to establish a data transmission channel; Send request data to the network adapter through the virtual network interface, so that the network adapter uploads the request data to the target network; Receive response data of the target network returned by the network adapter through the virtual network interface; The network data transmission method further comprises the following steps: When the communication between the virtual network interface and the network adapter is interrupted, receive a network interruption alarm sent by the network adapter through the USB interface; Re-negotiate with the network adapter through the USB interface and the UMS protocol to establish the data transmission channel based on the virtual network interface.
2. The network data transmission method based on UMS protocol according to claim 1, characterized in that, The network data transmission method further comprises the following steps: Receive network state indication information of the target network sent by the network adapter through the virtual network interface; Adjust network configuration according to the network state indication information, and then adjust the data transmission frequency of the virtual network interface.
3. A network data transmission method based on UMS protocol, characterized in that, The network data transmission method is applied to a network adapter, and a terminal device is connected to the network adapter through a USB interface, and the network adapter is in communication connection with a target network. In response to an access request of the terminal device, return a network configuration driver and a network configuration file stored in a virtual storage device to the terminal device through a UMS protocol, so that the terminal device installs the network configuration driver, and performs network configuration according to the network configuration file, and then creates a virtual network interface; Negotiate with the virtual network interface through the USB interface and the UMS protocol to establish a data transmission channel; Receive request data sent by the virtual network interface, and upload the request data to the target network; Receive response data issued by the target network, and return the response data to the virtual network interface; The network data transmission method further comprises the following steps: When the communication with the virtual network interface is interrupted, send a network interruption alarm to the terminal device through the USB interface; Re-negotiate with the virtual network interface through the USB interface and the UMS protocol to establish the data transmission channel.
4. The network data transmission method based on UMS protocol according to claim 3, characterized in that, The network data transmission method further comprises the following steps: Monitor the network state of the target network, and generate network state indication information; Send the network state indication information to the virtual network interface, so that the terminal device adjusts network configuration according to the network state indication information, and then adjusts the data transmission frequency of the virtual network interface.
5. A network data transmission system based on UMS protocol, characterized in that, The application is applied to a terminal device connected to a network adapter through a USB interface, the network adapter is in communication connection with a target network, and the network data transmission system is used to realize the network data transmission method based on the UMS protocol in claims 1 or 2, and comprises: A configuration data request module is configured to access a virtual storage device of the network adapter through the UMS protocol and acquire a network configuration driver and a network configuration file stored in the virtual storage device; A network interface creation module is configured to install the network configuration driver, perform network configuration according to the network configuration file, and create a virtual network interface, so that the virtual network interface negotiates with the network adapter through the USB interface and the UMS protocol to establish a data transmission channel; A data sending module is configured to send request data to the network adapter through the virtual network interface, so that the network adapter uploads the request data to the target network; A data receiving module is configured to receive response data of the target network returned by the network adapter through the virtual network interface.
6. A network data transmission system based on UMS protocol, characterized in that, The application is applied to a network adapter, a terminal device is connected to the network adapter through a USB interface, the network adapter is in communication connection with a target network, and the network data transmission system is used to realize the network data transmission method based on the UMS protocol in claims 3 or 4, and comprises: A configuration data return module is configured to return a network configuration driver and a network configuration file stored in a virtual storage device to the terminal device through the UMS protocol in response to an access request of the terminal device, so that the terminal device installs the network configuration driver and performs network configuration according to the network configuration file, and further creates a virtual network interface; A transmission channel establishment module is configured to negotiate with the virtual network interface through the USB interface and the UMS protocol to establish a data transmission channel; A first data forwarding module is configured to receive request data sent by the virtual network interface and upload the request data to the target network; A second data forwarding module is configured to receive response data issued by the target network and return the response data to the virtual network interface.
7. An electronic device, comprising: The electronic device comprises a memory, a processor, a program stored in the memory and executable on the processor, and a data bus used to realize connection communication between the processor and the memory, and the program is executed by the processor to realize the steps of the network data transmission method based on the UMS protocol in any one of claims 1 to 4.
8. A storage medium, the storage medium being a computer-readable storage medium for computer-readable storage, characterized in that, The storage medium stores one or more programs, and the one or more programs are executable by one or more processors to realize the steps of the network data transmission method based on the UMS protocol in any one of claims 1 to 4.
Citation Information
Patent Citations
Method and device for remote storing data
CN1696914A