CN110708359A - Instrument information transmission device and method based on USB communication - Google Patents
Instrument information transmission device and method based on USB communication Download PDFInfo
- Publication number
- CN110708359A CN110708359A CN201910873928.3A CN201910873928A CN110708359A CN 110708359 A CN110708359 A CN 110708359A CN 201910873928 A CN201910873928 A CN 201910873928A CN 110708359 A CN110708359 A CN 110708359A
- Authority
- CN
- China
- Prior art keywords
- usb
- driver
- instrument
- central control
- control screen
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60R—VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
- B60R16/00—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
- B60R16/02—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
- B60R16/023—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for transmission of signals between vehicle parts or subsystems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Mechanical Engineering (AREA)
- Small-Scale Networks (AREA)
Abstract
A device and a method for transmitting instrument information based on USB communication relate to the communication field of automobile instruments. The invention aims to solve the problem that the information interaction mode of the traditional automobile instrument and the central control screen has limitation. The USB driving program of the USB module in the full liquid crystal instrument and the vehicle-mounted central control screen is changed into the Ethernet driving program, so that the USB port is simulated as the Ethernet port; taking the instrument as a client and the central control screen as a server; the client initiates a request to the server, so that the client and the server are connected through a TCP/IP network protocol, and a built-in function exchanges data between the USB bottom layer and the virtual network. The invention is suitable for interaction of navigation information and entertainment information of the automobile full liquid crystal instrument and the central control screen.
Description
Technical Field
The invention belongs to the field of communication of automobile instruments.
Background
At present, there are two main ways for navigation and entertainment information interaction of automobile instruments and central control screens in the market. One is to perform information interaction through a CAN bus, but due to the limitation of the transmission rate of the CAN bus, the method CAN only transmit basic indicative information and cannot transmit image information. The other is to select a high-speed information interaction chip which can transmit information such as image, audio and the like, and the defect is that the chip price is high.
The USB module is arranged in the processor of the existing full liquid crystal instrument and the central control screen, only a simple peripheral circuit is needed, and the cost of the product is not increased; and the rate of the currently used USB2.0 is 480Mbps, so that the transmission requirements of images and audio can be met.
However, in the information interaction of the full liquid crystal instrument and the central control screen, the USB transmission mode has not been used as the communication bus, which is mainly because the USB bus is a master-slave type structure, and a master-slave type communication mode is usually adopted. The disadvantage of the master-slave communication method is that the slave device can only passively respond to the request from the master device, but can not actively initiate the request, so that the interaction is limited.
Disclosure of Invention
The invention provides a device and a method for transmitting instrument information based on USB communication, aiming at solving the problem that the existing information interaction mode of an automobile instrument and a central control screen has limitation.
A meter information transmission device based on USB communication comprises the following units:
a unit for changing the USB driver of the instrument and the central control screen into an Ethernet driver, so that the transmission port of the USB module is simulated as an Ethernet port;
the unit is used for taking the instrument as a client and taking the central control screen as a server;
and the unit is used for initiating a connection request to the server by using the client so as to enable the client and the server to realize connection through a TCP/IP network protocol.
The unit for changing the USB drivers of the instrument and the central control screen into the ethernet drivers so that the USB port is simulated as the ethernet port includes the following functional modules:
a module for writing an API interface function in the USB driver,
a module for establishing a virtual network driver through the API interface function,
the API function is used for registering a network device driver, binding a network device MAC address, allocating memory, setting parameters and realizing data exchange between the USB bottom layer and the virtual network.
The application layer of the USB module adopts an HTTP protocol, the transmission layer adopts a TCP protocol, and the network layer adopts an IP protocol.
A meter information transmission method based on USB communication comprises the following steps:
a step for changing the USB driving program of the instrument and the central control screen into an Ethernet driving program to enable the transmission port of the USB module to be simulated as an Ethernet port;
the step of using the instrument as a client and using the central control screen as a server;
the method comprises the steps of initiating a request to a server by a client, and enabling the client and the server to be connected through a TCP/IP network protocol.
The step for changing the USB drivers of the meter and the central control screen into the ethernet drivers so that the USB port is simulated as the ethernet port includes the following substeps:
a substep for programming API interface functions in the USB driver,
a substep of establishing a virtual network driver through the API interface function,
the API function is used for registering a network device driver, binding a network device MAC address, allocating memory, setting parameters and realizing data exchange between the USB bottom layer and the virtual network.
The application layer of the USB module adopts an HTTP protocol, the transmission layer adopts a TCP protocol, and the network layer adopts an IP protocol.
The instrument information transmission device and method based on USB communication simulate the USB bus into virtual Ethernet by changing the bottom drive of the USB bus and then carry out communication through a TCP/IP network protocol, avoid the defect that the USB bus cannot carry out multi-master communication as a master-slave structure, realize the interaction of image and audio information and realize the design requirement of high-speed communication with a low-cost scheme. The invention is suitable for interaction of navigation information and entertainment information of the automobile full liquid crystal instrument and the central control screen.
Drawings
Fig. 1 is a schematic structural diagram of a meter information transmission device based on USB communication according to a first embodiment;
FIG. 2 is a schematic diagram of an internal layer structure of the USB module.
Detailed Description
The first embodiment is as follows: specifically, this embodiment is described with reference to fig. 1 and 2, and the instrument information transmission device based on USB communication according to this embodiment includes the following units:
first, the first layer unit is used for integrating the internet access drive, and specifically comprises: the device comprises a unit for changing a USB drive program of a USB module in a full liquid crystal instrument and a vehicle-mounted central control screen into an Ethernet drive program, so that a transmission port of the USB module is simulated as an Ethernet port, namely a virtual network port is generated;
the above units specifically include: the module is used for writing an API interface function in the USB driver, and the module is used for establishing a virtual network driver through the API interface function, wherein the API interface function is used for registering a network device driver, binding a network device MAC address, allocating a memory, setting parameters and realizing data exchange between a USB bottom layer and a virtual network.
The unit is used for taking the instrument as a client and taking the central control screen as a server;
and the unit is used for initiating a connection request to the server by using the client so as to enable the client and the server to realize connection through a TCP/IP network protocol.
The specific working principle is as follows: when data is sent, the data of the USB is sent into the sending buffer area through the API interface function, and the virtual network equipment reads the data from the sending buffer area. When receiving data, the virtual network device sends the data into the receiving buffer area, and the USB controller reads the data from the receiving buffer area through the API interface function.
The application layer of the USB module embedded in the instrument and the central control screen adopts an HTTP protocol, the transmission layer adopts a TCP protocol, and the network layer adopts an IP protocol.
The second embodiment is as follows: the instrument information transmission method based on the USB communication in the embodiment comprises the following steps:
changing a USB drive program of a USB module in the full liquid crystal instrument and the vehicle-mounted central control screen into an Ethernet drive program, so that a USB port is simulated as an Ethernet port;
the method comprises the steps of writing an API interface function on a USB driver, establishing a virtual network driver through the API interface function, registering a network device driver, binding an MAC address of the network device, allocating a memory and setting related parameters.
Taking the instrument as a client and the central control screen as a server;
the client initiates a request to the server, so that the client and the server are connected through a TCP/IP network protocol, and a built-in function exchanges data between the USB bottom layer and the virtual network.
Because the bottom layer simulates a network port, an IP network protocol is used at the network layer, a TCP protocol is used at the transmission layer, and an HTTP protocol is used at the application layer.
The working principle is as follows: when data is sent, the data of the USB module is sent into the sending buffer area through the API interface function, and the virtual network equipment reads the data from the sending buffer area. When receiving data, the virtual network device sends the data into the receiving buffer area, and the USB controller reads the data from the receiving buffer area through the API interface function.
The invention modifies the bottom layer drive of the USB, integrates the bottom layer drive of the Ethernet into the bottom layer of the USB, and simulates the USB port into the Ethernet port to realize a multi-master communication mode, wherein the instrument end is used as a client end, and the vehicle-mounted central control screen is used as a server end, so that the communication between the two USB uses a TCP/IP network protocol (transmission control protocol/internet protocol). When connection is established for the first time, the instrument end (client) needs to be actively connected with the vehicle-mounted central control screen (server), the vehicle-mounted central control screen is connected with the instrument through a network after receiving the instrument end connection request, after the connection is established, the instrument and the central control screen can realize a multi-master communication mode, two devices can normally carry out information interaction, master-slave limitation is avoided, the physical level of the USB is unchanged, and the communication rate is unchanged and is not changed.
Claims (6)
1. A meter information transmission device based on USB communication is characterized by comprising the following units:
a unit for changing the USB driver of the instrument and the central control screen into an Ethernet driver, so that the transmission port of the USB module is simulated as an Ethernet port;
the unit is used for taking the instrument as a client and taking the central control screen as a server;
and the unit is used for initiating a connection request to the server by using the client so as to enable the client and the server to realize connection through a TCP/IP network protocol.
2. The instrument information transmission device based on USB communication according to claim 1, wherein the unit for changing the USB driver of the instrument and the central control screen into the Ethernet driver, so that the USB port is simulated as the Ethernet port comprises the following functional modules:
a module for writing an API interface function in the USB driver,
a module for establishing a virtual network driver through the API interface function,
the API function is used for registering a network device driver, binding a network device MAC address, allocating memory, setting parameters and realizing data exchange between the USB bottom layer and the virtual network.
3. The meter information transmission apparatus based on USB communication according to claim 1,
the application layer of the USB module adopts an HTTP protocol, the transmission layer adopts a TCP protocol, and the network layer adopts an IP protocol.
4. A meter information transmission method based on USB communication is characterized by comprising the following steps:
a step for changing the USB driving program of the instrument and the central control screen into an Ethernet driving program to enable the transmission port of the USB module to be simulated as an Ethernet port;
the step of using the instrument as a client and using the central control screen as a server;
the method comprises the steps of initiating a request to a server by a client, and enabling the client and the server to be connected through a TCP/IP network protocol.
5. The meter information transmission method based on USB communication according to claim 4, wherein the step for changing the USB driver of the meter and the central control screen to the Ethernet driver so that the USB port is simulated as the Ethernet port comprises the sub-steps of:
a substep for programming API interface functions in the USB driver,
a substep of establishing a virtual network driver through the API interface function,
the API function is used for registering a network device driver, binding a network device MAC address, allocating memory, setting parameters and realizing data exchange between the USB bottom layer and the virtual network.
6. The meter information transmission method based on USB communication according to claim 4,
the application layer of the USB module adopts an HTTP protocol, the transmission layer adopts a TCP protocol, and the network layer adopts an IP protocol.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910873928.3A CN110708359A (en) | 2019-09-17 | 2019-09-17 | Instrument information transmission device and method based on USB communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910873928.3A CN110708359A (en) | 2019-09-17 | 2019-09-17 | Instrument information transmission device and method based on USB communication |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110708359A true CN110708359A (en) | 2020-01-17 |
Family
ID=69195527
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910873928.3A Pending CN110708359A (en) | 2019-09-17 | 2019-09-17 | Instrument information transmission device and method based on USB communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110708359A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114756321A (en) * | 2022-04-28 | 2022-07-15 | 重庆长安汽车股份有限公司 | System and method for realizing and displaying instrument interactive interface based on vehicle machine |
CN114979215A (en) * | 2022-05-25 | 2022-08-30 | 重庆长安汽车股份有限公司 | SOA-based central control and inter-instrument information transmission method and system and vehicle |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1859112A (en) * | 2006-01-19 | 2006-11-08 | 华为技术有限公司 | Data transfer device and data transfer method of virtual ether net device |
CN1862508A (en) * | 2005-05-13 | 2006-11-15 | 中兴通讯股份有限公司 | Automatic testing system of person digital aid cell phone function and method thereof |
CN101094386A (en) * | 2006-06-22 | 2007-12-26 | 厦门瑞科技术发展有限公司 | A network video server |
US20110283006A1 (en) * | 2007-05-31 | 2011-11-17 | American Megatrends, Inc. | Communicating with an in-band management application through an out-of-band communications channel |
CN106713411A (en) * | 2016-10-28 | 2017-05-24 | 深圳市华茂欧特科技有限公司 | Communication apparatus and method based on Ethernet virtual serial port technology and LTE wireless network |
-
2019
- 2019-09-17 CN CN201910873928.3A patent/CN110708359A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1862508A (en) * | 2005-05-13 | 2006-11-15 | 中兴通讯股份有限公司 | Automatic testing system of person digital aid cell phone function and method thereof |
CN1859112A (en) * | 2006-01-19 | 2006-11-08 | 华为技术有限公司 | Data transfer device and data transfer method of virtual ether net device |
CN101094386A (en) * | 2006-06-22 | 2007-12-26 | 厦门瑞科技术发展有限公司 | A network video server |
US20110283006A1 (en) * | 2007-05-31 | 2011-11-17 | American Megatrends, Inc. | Communicating with an in-band management application through an out-of-band communications channel |
CN106713411A (en) * | 2016-10-28 | 2017-05-24 | 深圳市华茂欧特科技有限公司 | Communication apparatus and method based on Ethernet virtual serial port technology and LTE wireless network |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114756321A (en) * | 2022-04-28 | 2022-07-15 | 重庆长安汽车股份有限公司 | System and method for realizing and displaying instrument interactive interface based on vehicle machine |
CN114756321B (en) * | 2022-04-28 | 2024-02-06 | 重庆长安汽车股份有限公司 | System and method for realizing instrument interaction interface and displaying based on vehicle-mounted device |
CN114979215A (en) * | 2022-05-25 | 2022-08-30 | 重庆长安汽车股份有限公司 | SOA-based central control and inter-instrument information transmission method and system and vehicle |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9594536B2 (en) | Method and apparatus for electronic device communication | |
EP3125126B1 (en) | Data processing system and data processing method | |
CN106874128B (en) | Data transmission method and device | |
US8832328B2 (en) | Data redirection for universal serial bus devices | |
CN204595844U (en) | USB multi-computer switcher | |
CN103856547B (en) | The mapping method of multi-dummy machine, system and client device | |
KR100943574B1 (en) | System, method, and computer program product for communicating sub-device state information | |
KR101705596B1 (en) | Server device connecting usb device and device sharing method | |
US9563582B2 (en) | Modular device, system, and method for reconfigurable data distribution | |
CN110708359A (en) | Instrument information transmission device and method based on USB communication | |
WO2012149767A1 (en) | Method and system for accessing storage device | |
CN107368219B (en) | Touch response method, chip and intelligent device | |
TWI528786B (en) | Device for transmitting information | |
WO2019200914A1 (en) | Terminal and screen projection system | |
CN103744478A (en) | Bluetooth wireless display and control method thereof | |
CN116594951B (en) | FPGA-based data transmission system and method | |
CN116366928B (en) | USB camera bridging method and cloud terminal | |
TWM504272U (en) | Universal serial bus (USB) KVM extender | |
CN115107514A (en) | Vehicle instrument interaction method and system, electronic device and readable storage medium | |
CN111586627B (en) | Carplay synchronous connection method and device and vehicle-mounted system | |
CN103108174B (en) | Information carrying means | |
CN101976230A (en) | Transaction translator of universal serial bus and input request isochronous transaction method | |
CN106655975B (en) | Take into account the control device of electric motor of the data communication of low delay and high-throughput | |
CN109165000A (en) | A kind of method, system and the associated component of data transmission | |
CN111294624A (en) | Electronic device and control method of electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200117 |
|
RJ01 | Rejection of invention patent application after publication |