CN114153663A - USB communication line switching device and vehicle-mounted TBOX - Google Patents

USB communication line switching device and vehicle-mounted TBOX Download PDF

Info

Publication number
CN114153663A
CN114153663A CN202210117601.5A CN202210117601A CN114153663A CN 114153663 A CN114153663 A CN 114153663A CN 202210117601 A CN202210117601 A CN 202210117601A CN 114153663 A CN114153663 A CN 114153663A
Authority
CN
China
Prior art keywords
usb
switch
gate
signal
switch chip
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.)
Granted
Application number
CN202210117601.5A
Other languages
Chinese (zh)
Other versions
CN114153663B (en
Inventor
薛贤海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningbo Joynext Technology Corp
Original Assignee
Ningbo Joynext Technology Corp
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 Ningbo Joynext Technology Corp filed Critical Ningbo Joynext Technology Corp
Priority to CN202210117601.5A priority Critical patent/CN114153663B/en
Publication of CN114153663A publication Critical patent/CN114153663A/en
Application granted granted Critical
Publication of CN114153663B publication Critical patent/CN114153663B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/202Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
    • G06F11/2023Failover techniques
    • G06F11/2033Failover techniques switching over of hardware resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40169Flexible bus arrangements
    • H04L12/40176Flexible bus arrangements involving redundancy
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Information Transfer Systems (AREA)

Abstract

The application relates to a USB communication line switching device which is respectively connected with an external USB interface and a communication module of a vehicle-mounted TBOX, and comprises a first switch chip, a second switch chip and a line switching control end; the first switch chip and the second switch chip respectively comprise an S end, a fixed end and a first movable end; the fixed end of the first switch chip is used for connecting an external USB interface, and the fixed end of the second switch chip is used for connecting a communication module; the first movable end of the first switch chip is used for being connected with the first movable end of the second switch chip; the S end of the first switch chip and the S end of the second switch chip are used for connecting a circuit switching control end so as to receive a circuit switching signal through the circuit switching control end. By adopting the USB communication line switching device, switching of the USB communication line can be realized through the two switch chips, and the device can be compatible with vehicle-mounted TBOX with different hardware configurations.

Description

USB communication line switching device and vehicle-mounted TBOX
Technical Field
The application relates to the technical field of circuit design, in particular to a USB communication line switching device and a vehicle-mounted TBOX.
Background
With the rapid development of the automobile field, existing intelligent automobiles are generally provided with a TBOX (telematics box), which refers to a vehicle-mounted remote communication terminal and is also called a vehicle networking terminal. Currently, there are two methods for system download of TBOX devices: the method is that system downloading is realized by an external debugging board (debug board), but the method needs to map a USB port into one or more program downloading ports which are arranged separately from a normal communication port, the program downloading ports are generally arranged on the debugging board, hardware cost is inevitably increased or downloading can be realized only by disassembling a shell; in the second method, system downloading is realized by means of an AB dual system, and can be realized by a line brush or an Over-the-Air Technology (OTA), although the method is favorable for still realizing effective data export and system repair under the condition that one system is damaged, the defects of extra storage space occupation, slow starting speed and the like exist, and when two systems fail, the system cannot be normally started.
Disclosure of Invention
In view of the above, it is necessary to provide a USB communication line switching device, which can switch USB communication lines through two switch chips, and is compatible with vehicle-mounted TBOX in different hardware configurations.
In order to achieve the above object, the present invention provides a USB communication line switching device, applied to a vehicle-mounted TBOX, where the vehicle-mounted TBOX refers to a vehicle-mounted remote communication terminal, and the device is respectively connected to an external USB interface and a communication module of the vehicle-mounted TBOX, and the device includes a first switch chip, a second switch chip, and a line switching control end; the first switch chip and the second switch chip respectively comprise an S end, a fixed end and a first movable end;
the fixed end of the first switch chip is used for connecting an external USB interface, and the fixed end of the second switch chip is used for connecting a communication module;
the first movable end of the first switch chip is used for being connected with the first movable end of the second switch chip;
the S end of the first switch chip and the S end of the second switch chip are used for connecting a circuit switching control end so as to receive a circuit switching signal through the circuit switching control end;
the circuit switching signal comprises a first signal, and the first signal is used for triggering the first switch chip and the second switch chip to close the first movable end, so that the communication module is communicated with the external USB interface.
In some embodiments, when the application processor is included in the vehicle TBOX, the apparatus is further connected to a first USB interface and a second USB interface of the application processor; wherein,
the first switch chip and the second switch chip respectively comprise a second movable end, the second movable end of the first switch chip is used for connecting a first USB interface of the application processor, and the second movable end of the second switch chip is used for connecting a second USB interface of the application processor;
the line switching signal further comprises a second signal, and the second signal is used for triggering the first switch chip and the second switch chip to close the second movable end, so that the external USB interface is communicated with the first USB interface of the application processor, and the communication module is communicated with the second USB interface of the application processor.
In some embodiments, the apparatus further comprises a first and gate and a jumper device, both the jumper device and the application processor being provided with channel selection terminals; the circuit switching control end is connected with the output end of the first AND gate; the first input end of the first AND gate is used for connecting the channel selection end of the application processor, and the second input end of the first AND gate is used for connecting the channel selection end of the jumper device.
In some embodiments, the device further comprises a controller, a nand gate and a nor gate, wherein the controller, the application processor and the jumper device are all provided with mode setting ends, and the communication module is provided with a mode switching control end;
the two input ends of the NOR gate are respectively used for connecting a mode setting end of the application processor and a mode setting end of the controller, the output end of the NOR gate is connected with a first input end of the NAND gate, a second input end of the NAND gate is used for connecting a mode setting end of the jumper device, and the output end of the NAND gate is connected with a mode switching control end of the communication module so as to send a mode switching signal to the communication module;
the mode switching signal comprises a third signal and a fourth signal, wherein the third signal is used for indicating the communication module to enter a downloading mode, and the fourth signal is used for indicating the communication module to enter an operating mode.
In some embodiments, the apparatus further comprises a first not gate, a second not gate, a third not gate, a second and gate, and a third switch, the third switch having a control terminal; wherein,
the first switch chip and the second switch chip both further comprise enabling ends, and the enabling ends of the first switch chip are used for being connected with USB insertion detection ends of an external USB interface;
the USB insertion detection end of the external USB interface is connected with the first input end of the second AND gate after being inverted by the second NOT gate;
the output end of the first AND gate is connected with the second input end of the second AND gate through the first NOT gate and the third NOT gate in sequence, the output end of the second AND gate is used for being connected with the control end of the third switch so as to send a third switch control signal to the control end of the third switch, and the third switch control signal is used for triggering the third switch to be opened or closed;
the third switch is arranged between the power supply and the VBUS terminal of the first USB interface of the application processor, when the third switch is closed, the VBUS terminal of the first USB interface of the application processor is communicated with the power supply, and when the third switch is opened, the VBUS terminal of the first USB interface of the application processor is not communicated with the power supply.
In some embodiments, the apparatus further comprises a fourth not gate;
the input end of the fourth NOT gate is connected with a VBUS signal conversion end of the external USB interface, the output end of the fourth NOT gate is connected with a USB insertion detection end of the external USB interface, the USB insertion detection end of the external USB interface is connected with the controller, and the controller is used for judging whether the external USB interface is connected with the USB data line according to signals received by the USB insertion detection end.
In some embodiments, the device further comprises an or gate, a fifth not gate and a fourth switch, the controller and the application processor are both provided with a communication module USB switch end, and the fourth switch is provided with a control end; the first input end of the OR gate is used for being connected with a communication module USB switch end of the controller, the second input end of the OR gate is used for being connected with a communication module USB switch end of the application processor, the output end of the OR gate is connected with the input end of a fifth NOT gate, and the output end of the fifth NOT gate is connected with the enabling end of the second switch chip;
the output end of the OR gate is also connected with the control end of the fourth switch so as to send a fourth switch control signal to the control end of the fourth switch, and the fourth switch control signal is used for triggering the fourth switch to be opened or closed;
the fourth switch is arranged between the power supply and the VBUS terminal of the USB interface of the communication module, when the fourth switch is closed, the VBUS terminal of the USB interface of the communication module is communicated with the power supply, and when the fourth switch is opened, the VBUS terminal of the USB interface of the communication module is not communicated with the power supply.
In some embodiments, the controller includes a first reset terminal and a second reset terminal; wherein,
the first reset terminal of the controller is used for being connected with the application processor so as to send a first reset signal to the application processor, and the first reset signal is used for indicating the application processor to restart;
and the second reset terminal of the controller is used for connecting the communication module so as to send a second reset signal to the communication module, and the second reset signal is used for indicating the restart of the communication module.
In some embodiments, the controller further includes a version detection terminal, and the controller determines the version of the vehicle-mounted TBOX where the USB communication line switching device is located according to a signal received by the version detection terminal.
In some embodiments, the first switch chip and the second switch chip are both two-way single pole double throw switch chips.
In a second aspect, the present application provides a vehicle TBOX including therein a USB communication line switching device as in the above embodiments.
In some embodiments, the onboard TBOX includes therein a USB communication line switching device, a controller, a communication module, an external USB interface, and an application processor as in the above embodiments.
In other embodiments, the vehicle-mounted TBOX comprises the USB communication line switching device, the controller, the communication module and the external USB interface as in the above embodiments.
In a third aspect, the present application also provides a control method of any one of the above vehicle-mounted TBOXs, the method including:
when the hardware condition of the vehicle-mounted TBOX allows, leading out a jumper device to an external connector terminal to open or short the jumper device to the ground, so that a jumper channel selection signal (JP _ USB _ CH _ SEL) and a jumper mode setting signal (JP _ USB _ FORCE) output by the jumper device are in a high level or a low level, the jumper channel selection signal (JP _ USB _ CH _ SEL) is used for controlling the line switching control signal (USB _ CH _ SEL) to change, and the jumper mode setting signal (JP _ USB _ FORCE) is used for controlling the mode switching signal (USB _ FORCE) to change, so that the TBOX is controlled by the line switching control signal (USB _ CH _ SEL) and the mode switching signal (USB _ FORCE);
or when the jumper device is not provided with a connector terminal led out to the outside, the jumper channel selection signal (JP _ USB _ CH _ SEL) and the jumper mode setting signal (JP _ USB _ FORCE) are both high level, and a first control instruction is sent to the external USB interface and is used for instructing an application processor or a controller to change the line switching control signal (USB _ CH _ SEL) and the mode switching signal (USB _ FORCE) so as to control the vehicle-mounted TBOX;
or sending a second control instruction to the controller through the CAN/UART interface of the controller, wherein the second control instruction is used for instructing the application processor or the controller to change the line switching control signal (USB _ CH _ SEL) and the mode switching signal (USB _ FORCE) so as to control the vehicle-mounted TBOX.
Compared with the prior art, the USB communication line switching device is connected with an external USB interface and a communication module of a vehicle-mounted TBOX respectively, and comprises a first switch chip, a second switch chip and a line switching control end; the first switch chip and the second switch chip respectively comprise an S end, a fixed end and a first movable end; the fixed end of the first switch chip is used for connecting an external USB interface, and the fixed end of the second switch chip is used for connecting a communication module; the first movable end of the first switch chip is used for being connected with the first movable end of the second switch chip; the S end of the first switch chip and the S end of the second switch chip are used for connecting a circuit switching control end so as to receive a circuit switching signal through the circuit switching control end. The device can control two switch chips through the line switching signal, realizes being connected between communication module and the external USB interface to the realization is to the quick switch-over of USB communication line, can compatible different hardware configuration's on-vehicle TBOX.
Drawings
FIG. 1 is a diagram illustrating an exemplary embodiment of a USB communication line switching device;
FIG. 2 is a diagram illustrating an exemplary structure of a USB communication line switching device according to some embodiments;
FIG. 3 is a block circuit diagram of a USB communication line switching device in some embodiments;
FIG. 4 is a block diagram of control circuitry for a first USB interface of an application processor in some embodiments;
FIG. 5 is a block diagram of a USB plug-in detector in some embodiments;
FIG. 6 is a block diagram of control circuitry for a USB interface of a communication module in some embodiments;
FIG. 7 is a block diagram of an on-board TBOX in further embodiments;
FIG. 8 is a table listing application scenarios for on-board TBOX in further embodiments;
FIG. 9 is a schematic diagram of an application scenario transition of a vehicle-mounted TBOX in other embodiments;
FIG. 10 is a block diagram of an on-board TBOX in accordance with still further embodiments;
FIG. 11 is a listing of application scenarios for an on-board TBOX in further embodiments;
fig. 12 is a schematic diagram illustrating an application scenario transition of an on-board TBOX in further embodiments.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments of the present application are described in detail below with reference to the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Example one
Currently, In the design process of the Vehicle TBOX, please refer to fig. 1, the Vehicle TBOX usually includes a communication Module (Module) having a USB interface (M _ USB), and some Vehicle TBOXs further include an External USB interface (EXT _ USB, abbreviated as EXT _ USB In fig. 1) directly open to the user for connecting to a computer device (such as a PC In fig. 1) or a Vehicle Infotainment system (In-Vehicle Infotainment, abbreviated as IVI In fig. 1). The vehicle-mounted TBOX refers to the above-mentioned TBOX generally installed in smart vehicles, that is, the above-mentioned vehicle-mounted remote communication terminal, which is also referred to as an internet of vehicles terminal.
Meanwhile, different vehicle-mounted tboxes are classified into high and low versions, and the main difference of the high and low versions of the vehicle-mounted TBOX lies in whether an Application Processor (AP) related circuit exists, the AP may adopt a currently commonly used System On Chip (SOC), and at least two USB interfaces (a first USB interface and a second USB interface, such as AP _ USB1 and AP _ USB2 shown in fig. 1) are provided on the AP. For a high-version vehicle-mounted TBOX, normal communication between IVI and AP and normal communication between AP and Module are required to be realized; for the low-version vehicle-mounted TBOX, normal communication between the IVI and the Module needs to be realized; and in both high and low versions, the program downloading of the AP and/or the Module is required to be realized, namely the program downloading of the PC/IVI is downloaded to the AP and/or the Module of the vehicle-mounted TBOX.
As shown in fig. 2, in the embodiment of the present application, a USB communication line switching device is provided, which may be applied in an application environment of the vehicle-mounted TBOX shown in fig. 1, and the device is respectively connected to an external USB interface of the vehicle-mounted TBOX and a communication module. The vehicle-mounted TBOX applied by the device can be various types or versions of TBOX and can have various communication functions including a V2X function; for example, the TBOX may be V2X-BOX, 4G-TBOX, 5G-TBOX, or the like.
The device comprises a first switch chip, a second switch chip and a line switching control end; the first switch chip and the second switch chip respectively comprise an S end, a fixed end and a first movable end; the S end is a control end of the switch chip, and the switch chip can close the first movable end when triggered by a signal received by the S end.
The fixed end of the first switch chip is used for connecting an external USB interface (EXT _ USB), and the fixed end of the second switch chip is used for connecting a communication Module (Module); the first movable end of the first switch chip is connected with the first movable end of the second switch chip; the S end of the first switch chip and the S end of the second switch chip are used for connecting a circuit switching control end so as to receive a circuit switching signal through the circuit switching control end; the line switching signal comprises a first signal, and the first signal is used for triggering the first switch chip and the second switch chip to close the first movable end, so that the communication Module (Module) is communicated with an external USB interface (EXT _ USB).
The embodiment provides a switching device for a USB communication line, which is respectively connected with an external USB interface and a communication module of a vehicle-mounted TBOX, and can realize communication connection between the communication module and the external USB interface through two switch chips, and can also control the two switch chips through a line switching signal, thereby realizing the USB communication line between the communication module and the external USB interface.
In some embodiments, the vehicle-mounted TBOX comprises an application processor, and at this time, the USB communication line switching device is also connected with a first USB interface and a second USB interface of the application processor; the first switch chip and the second switch chip both further comprise a second movable end, the second movable end of the first switch chip is used for being connected with a first USB interface (AP _ USB 1) of the Application Processor (AP), and the second movable end of the second switch chip is used for being connected with a second USB interface (AP _ USB 2) of the Application Processor (AP).
The line switching signal further comprises a second signal, and the second signal is used for triggering the first switch chip and the second switch chip to close the second movable end, so that the external USB interface (EXT _ USB) is communicated with the first USB interface (AP _ USB 1) of the Application Processor (AP), and the communication Module (Module) is communicated with the second USB interface (AP _ USB 2) of the Application Processor (AP).
In FIG. 2, AP _ USB1_ DP, AP _ USB1_ DN are the D +, D-signals of AP _ USB1, respectively; AP _ USB2_ DP, AP _ USB2_ DN are D +, D-signals of AP _ USB 2; m _ USB _ DP and M _ USB _ DN are D + and D-signals of the USB interface of the Module, namely the immobile end of the second switch chip is used for connecting the USB interface (M _ USB) of the communication Module (Module); EXT _ USB _ DP, EXT _ USB _ DN are the D +, D-signals of EXT _ USB.
In the above embodiment, the vehicle-mounted TBOX includes the application processor, and the USB communication line switching device may control the first switch chip and the second switch chip according to the received line switching signal, so as to implement fast switching between two communication lines, i.e., "communication module to external USB interface" and "communication module to application processor, and external USB interface to application processor", so as to be compatible with vehicle-mounted TBOXs with different hardware configurations.
In some embodiments, to facilitate control of the switch chips in the above apparatus, the first switch chip and the second switch chip each include an enable terminal, and the enable terminal may receive an enable signal for controlling whether the switch chip outputs.
In some embodiments, the line switching control terminal may be controlled by an Application Processor (AP), for example, the line switching control terminal may receive a signal sent by the Application Processor (AP), so as to control the first switch chip and the second switch chip according to the received signal.
Specifically, if the version of the vehicle-mounted TBOX is a high version, the vehicle-mounted TBOX includes an Application Processor (AP), and when the Application Processor (AP) sends a high-level signal to the line switching control terminal, the S terminals of the first switch chip and the second switch chip both receive the high-level signal, and the high-level signal may trigger the first switch chip and the second switch chip to close the second moving terminal; when the Application Processor (AP) sends a low-level signal to the line switching control end, the low-level signal can trigger the first switch chip and the second switch chip to close the first movable end.
If the version of the vehicle-mounted TBOX is a low version, an Application Processor (AP) is not contained in the vehicle-mounted TBOX, so that the S ends of the first switch chip and the second switch chip can only receive a low-level signal, and the low-level signal triggers the first switch chip and the second switch chip to close the first movable end.
In the above embodiment, when the device is applied to a high-version vehicle-mounted TBOX, a user can control the switching of the internal communication lines of the vehicle-mounted TBOX through the application processor, and when the device is applied to a low-version vehicle-mounted TBOX, the application processor is not included therein, so that only low-level signals can be received by the two switch chips, so that the first switch chip and the second switch chip close the first movable terminal, and only a communication channel between an external USB interface (EXT _ USB) and a communication Module (Module) included in the low-version vehicle-mounted TBOX is realized.
In some embodiments, the apparatus further comprises a first and gate and a Jumper device (Jumper), both the Jumper device (Jumper) and the Application Processor (AP) being provided with a channel selection terminal; the circuit switching control end is connected with the output end of the first AND gate; the first input end of the first AND gate is used for connecting the channel selection end of the application processor, and the second input end of the first AND gate is used for connecting the channel selection end of the jumper device.
The two input ends of the first and gate are respectively used for receiving an AP channel selection signal AP _ USB _ CH _ SEL sent by a channel selection end of the application processor and a jumper channel selection signal JP _ USB _ CH _ SEL sent by a channel selection end of the jumper device, and as can be seen, the line switching signal USB _ CH _ SEL is an output signal obtained by passing the AP channel selection signal AP _ USB _ CH _ SEL and the jumper channel selection signal JP _ USB _ CH _ SEL through the first and gate as input signals.
In a specific implementation, as shown in fig. 3, a user may set the jumper channel selection signal JP _ USB _ CH _ SEL sent by the jumper device as a high level signal by default, and then, when the AP channel selection signal AP _ USB _ CH _ SEL output by the Application Processor (AP) is a high level signal, the line switching signal USB _ CH _ SEL output by the first and gate is a high level, that is, USB _ CH _ SEL =1, the S terminals of the first switch chip and the second switch chip receive the USB _ CH _ SEL signal, so that the USB communication path at this time is EXT _ USB connected to AP _ USB1, AP _ USB2 connected to M _ USB, and EXT _ USB for connecting to PC/IVI; due to the existence of the AP, the vehicle-mounted TBOX is a high version at the moment, on one hand, the PC/IVI can realize program downloading to the AP through the EXT _ USB and the AP _ USB1, and meanwhile, the IVI can also realize normal USB communication with the AP; on the other hand, the PC/IVI can realize program downloading to the Module through the AP _ USB1, the AP _ USB2 and the M _ USB, and meanwhile, the AP can also realize normal USB communication with the Module.
When the AP channel selection signal AP _ USB _ CH _ SEL output by the Application Processor (AP) is a low level signal, the line switching signal USB _ CH _ SEL output by the first and gate is low level, i.e. USB _ CH _ SEL =0, so that the USB communication path is EXT _ USB for connecting M _ USB, EXT _ USB for connecting PC/IVI at this time. At this time, under the condition that the vehicle-mounted TBOX is in a high version, the PC/IVI can download a program to a communication Module (Module) through EXT _ USB and M _ USB; under the condition that the vehicle-mounted TBOX is in a low version, the PC/IVI can download the Module program through the EXT _ USB and the M _ USB, and meanwhile, the IVI can also realize normal USB communication with the Module.
In the above embodiment, the user can send a signal to the line switching control terminal through the jumper device or the application processor, respectively, to control which terminal the two switch chips are closed, so as to conveniently realize the fast switching of the USB communication line; in addition, in the specific implementation process, the built-in bootloader of the AP and/or Module chip can be used for realizing the conversion between the normal operation and the downloading state of the program, and the method is more stable, reliable, rapid and effective than the traditional dual-system technology.
The embodiment provides a USB communication line switching device, which is respectively connected with an external USB interface and a communication module of a vehicle-mounted TBOX, and comprises a first switch chip, a second switch chip and a line switching control end; the first switch chip and the second switch chip respectively comprise an S end, a fixed end and a first movable end; the fixed end of the first switch chip is used for connecting an external USB interface, and the fixed end of the second switch chip is used for connecting a communication module; the first movable end of the first switch chip is used for being connected with the first movable end of the second switch chip; the S end of the first switch chip and the S end of the second switch chip are used for connecting a circuit switching control end so as to receive a circuit switching signal through the circuit switching control end; further, when the vehicle-mounted TBOX includes an application processor, the USB communication line switching device is further connected to a first USB interface and a second USB interface of the application processor, the first switch chip and the second switch chip each further include a second movable end, the second movable end of the first switch chip is used for connecting the first USB interface of the application processor, and the second movable end of the second switch chip is used for connecting the second USB interface of the application processor.
The USB communication line switching device can control the closed positions of the two switch chips through line switching signals so as to realize the connection among the communication module, the external USB interface and the application processor, realize the quick switching of the USB communication line, and can be compatible with vehicle-mounted TBOX with different hardware configurations.
Example two
Based on the first embodiment, a specific circuit structure of the USB communication line switching device provided in this embodiment is shown in fig. 3.
The device also comprises a controller (MCU), a NAND gate and a NOR gate, wherein the controller, the application processor and the jumper device are all provided with mode setting ends, and the communication Module (Module) is provided with a mode switching control end; the two input ends of the NOR gate are respectively used for connecting a mode setting end of the application processor and a mode setting end of the controller and respectively used for receiving an AP mode setting signal AP _ USB _ FORCE output by the application processor and a controller mode setting signal MCU _ USB _ FORCE of the controller; the output end of the NOR gate is connected with the first input end of the NAND gate, so that the first input end of the NAND gate receives the output signal of the NOR gate; the second input end of the nand gate is used for connecting the mode setting end of the jumper device to receive the jumper mode setting signal JP _ USB _ FORCE output by the jumper device, and the output end of the nand gate is connected with the mode switching control end of the communication module to send the mode switching signal USB _ FORCE to the communication module.
The mode switching signal USB _ FORCE includes a third signal and a fourth signal, where the third signal is used to instruct the communication module to enter a download mode, and the fourth signal is used to instruct the communication module to enter an operating mode.
Specifically, the third signal may be set to a high level and the fourth signal may be set to a low level in advance. The communication module enters a download mode when the mode switching signal USB _ FORCE is at a high level, and enters a normal operating mode when the mode switching signal USB _ FORCE is at a low level.
In a specific implementation process, the mode switching signal USB _ FORCE is an output signal of the nand gate obtained by taking the AP mode setting signal AP _ USB _ FORCE, the controller mode setting signal MCU _ USB _ FORCE as input signals and passing through the nor gate, and the jumper mode setting signal JP _ USB _ FORCE as two input signals of the nand gate.
In the above embodiment, a user may control the communication module to enter the download mode/the working mode through multiple ways, such as the controller, the application processor, and the jumper device, so as to facilitate the mode conversion of the communication module. For example, the AP mode setting signal AP _ USB _ FORCE output from the active high or low application processor causes the communication module to enter the normal mode/download mode, or the jumper mode setting signal JP _ USB _ FORCE is set using a jumper device to cause the communication module to enter the normal mode/download mode, or the communication module is caused to enter the normal mode/download mode by the MCU being actively high or low. In specific implementation, the jumper mode setting signal JP _ USB _ FORCE may be set as a high level signal by default, and the mode switching signal USB _ FORCE is mainly controlled by signals output by the controller and the application processor.
In some embodiments, as shown in fig. 4, the apparatus further comprises a first not gate, a second not gate, a third not gate, a second and gate, and a third switch, the third switch having a control terminal; the first switch chip and the second switch chip each further include an enable terminal, where the enable terminal of the first switch chip may receive an enable signal OE1, and the enable terminal of the second switch chip may receive an enable signal OE 2. When both OE1 and OE2 are low, the output is enabled; when both OE1 and OE2 are high, the output is inhibited from assuming a high impedance state.
The enabling end of the first switch chip is used for being connected with a USB insertion detection end of an external USB interface. The USB insertion detection terminal is configured to receive a USB insertion detection signal EXT _ USB _ DET, and the output enable signal OE1 received by the enable terminal of the first switch chip from the USB insertion detection terminal is equal to the USB insertion detection signal EXT _ USB _ DET, and when OE1 is low, the output enable signal OE is output. In the above embodiment, the output enable signal OE1 is controlled by the USB insertion detection signal EXT _ USB _ DET, so as to ensure that the USB data channel is opened only when a USB data line is inserted at the external USB interface no matter what the version of the vehicle-mounted TBOX is.
The USB insertion detection end of the external USB interface is connected with the first input end of the second AND gate after being inverted by the second NOT gate; the output end of the first AND gate is connected with the second input end of the second AND gate through the first NOT gate and the third NOT gate in sequence, the output end of the second AND gate is used for being connected with the control end of the third switch so as to send a third switch control signal to the control end of the third switch, and the third switch control signal is used for triggering the third switch to be opened or closed; the third switch is arranged between the power supply and the VBUS terminal of the first USB interface of the application processor, when the third switch is closed, the VBUS terminal of the first USB interface of the application processor is communicated with the power supply, and when the third switch is opened, the VBUS terminal of the first USB interface of the application processor is not communicated with the power supply.
When the third switch is closed, the power supply enables the VBUS terminal of the AP _ USB1 to become high level, and the AP _ USB1 starts to work; the power supply may be a conventional USB power supply, such as a +5V power supply.
Specifically, in the case that the vehicle-mounted TBOX is in the high version, when the USB data line is inserted into the external USB interface (EXT _ USB _ DET = 0), and the AP is normally started, the line switching signal USB _ CH _ SEL may be set to be high (USB _ CH _ SEL = 1) by the AP channel selection signal AP _ USB _ CH _ SEL, that is, the logical not signal of the line switching signal USB _ CH _ SEL is set to be low, so that the VBUS terminal AP _ USB1_ VBUS =5V of the AP _ USB1 starts the normal communication transmission of the AP _ USB 1. In specific implementation, the AP supports downloading of the update program only at the initial stage of startup, and can implement a general USB communication function after startup.
When the vehicle TBOX is in the low version, the vehicle TBOX does not include the AP, and the AP channel selection signal AP _ USB _ CH _ SEL =0, the line switching signal USB _ CH _ SEL =0, so that the power supply signal AP _ USB1_ VBUS =0 of the AP _ USB 1.
In the above embodiment, when there is an application processor in the vehicle-mounted TBOX, if there is a USB data line inserted into the external USB interface, the USB communication line switching device may control the third switch to supply power to the first USB interface of the application processor, so as to implement normal communication transmission of AP _ USB 1; and under the condition that no application processor exists in the vehicle-mounted TBOX, the USB communication line switching device controls the third switch to be switched off, and power supply to the first USB interface of the nonexistent application processor is not needed, so that the USB communication line switching device has good compatibility and can be suitable for the vehicle-mounted TBOX of a low version or a high version.
In some embodiments, as shown in fig. 5, in order to facilitate determining whether the external USB interface is connected to the USB data line, the apparatus further includes a fourth not gate; the input end of the fourth NOT gate is connected with a VBUS signal conversion end of the external USB interface, the output end of the fourth NOT gate is connected with a USB insertion detection end of the external USB interface, the USB insertion detection end of the external USB interface is connected with the controller, and the controller is used for judging whether the external USB interface is connected with the USB data line according to a signal received by the USB insertion detection end so as to serve as a starting condition for communicating the external USB interface with the USB interface of the communication module under the condition that the vehicle-mounted TBOX is a low version.
When a USB data line is inserted into the external USB interface, the PC/IVI can enable EXT _ USB _ VBUS to be changed into a high level, the EXT _ USB _ VBUS is converted and then input into a fourth NOT gate, and the fourth NOT gate outputs a USB insertion detection signal EXT _ USB _ DET which is of a low level; when no USB data line is inserted into the external USB interface, the EXT _ USB _ VBUS is changed into a low level, the EXT _ USB _ VBUS is converted and then input into the fourth NOT gate, and the USB insertion detection signal EXT _ USB _ DET output by the fourth NOT gate is in a high level.
In some embodiments, as shown in fig. 6, the apparatus further includes an or gate, a fifth not gate, and a fourth switch, where the controller and the application processor are both provided with a USB switch terminal of the communication module, and the fourth switch is provided with a control terminal; the first input end of the OR gate is used for being connected with a communication module USB switch end of the controller, the second input end of the OR gate is used for being connected with a communication module USB switch end of the application processor, the output end of the OR gate is connected with the input end of the fifth NOT gate, and the output end of the fifth NOT gate is connected with the enabling end of the second switch chip.
The enable terminal of the second switch chip is configured to receive an output enable signal OE2 from the fifth not gate, the fifth not gate obtains an input signal from the output terminal of the or gate, and the two input signals of the or gate are the first communication module USB switch signal MCU _ USB2_ VBUS _ EN output by the communication module USB switch terminal of the controller and the second communication module USB switch signal AP _ USB2_ VBUS _ EN output by the communication module USB switch terminal of the application processor, respectively. The output enable signal OE2 is controlled by the first communication module USB switch signal MCU _ USB2_ VBUS _ EN and the second communication module USB switch signal AP _ USB2_ VBUS _ EN, so that the second switch chip is turned on to open the USB data channel only when the TBOX system attempts to connect to the USB interface (M _ USB) of the communication module.
The output end of the OR gate is also connected with the control end of the fourth switch so as to send a fourth switch control signal to the control end of the fourth switch, and the fourth switch control signal is used for triggering the fourth switch to be opened or closed; the fourth switch is arranged between the power supply and the VBUS terminal of the USB interface of the communication module, when the fourth switch is closed, the VBUS terminal of the USB interface of the communication module is communicated with the power supply, and when the fourth switch is opened, the VBUS terminal of the USB interface of the communication module is not communicated with the power supply.
When the fourth switch control signal is at a high level, the fourth switch is turned on, the VBUS terminal M _ USB _ VBUS of the USB interface of the communication module receives the high level, and the USB interface (M _ USB) of the communication module starts to work; when the fourth switch control signal is at a low level, the fourth switch is turned off, and the USB interface (M _ USB) of the communication module does not work.
Specifically, when the vehicle-mounted TBOX is in the high version, the controller outputs a switching signal MCU _ USB2_ VBUS _ EN =0, the application processor outputs AP _ USB2_ VBUS _ EN =1, or a fourth switching control signal output by the gate is in the high level, the fourth switch is turned on, and M _ USB _ VBUS = 5V; when the vehicle-mounted TBOX is in a low version, the controller outputs MCU _ USB2_ VBUS _ EN =1, the application processor outputs AP _ USB2_ VBUS _ EN =0, a fourth switch control signal output by an OR gate is in a high level, a fourth switch is turned on, and M _ USB _ VBUS = 5V; only when the controller output MCU _ USB2_ VBUS _ EN =0 and the application processor output AP _ USB2_ VBUS _ EN =0, the fourth switch control signal output by the or gate is low, the fourth switch is turned off, and M _ USB _ VBUS = 0V.
In the above embodiment, the apparatus may control the fourth switch to be opened or closed by the fourth switch control signal, so as to supply power to the USB interface of the communication module, thereby controlling the USB interface of the communication module to operate.
In some embodiments, the controller includes a first reset terminal and a second reset terminal. Wherein the first Reset terminal of the controller is configured to connect to the application processor to send a first Reset signal (e.g., a Reset _ AP signal shown in fig. 3) to the application processor, and the first Reset signal is configured to instruct the application processor to restart. The second Reset terminal of the controller is configured to connect to the communication Module to send a second Reset signal (e.g., a Reset _ Module signal shown in fig. 3) to the communication Module, where the second Reset signal is used to indicate that the communication Module is restarted.
In the above embodiment, since the AP and the communication module can generally download the program only at the initial stage of system startup, the AP may be restarted by the first reset terminal of the controller, or the communication module may be restarted by the second reset terminal, so that the AP/communication module is in a state suitable for program downloading.
In some embodiments, the controller includes a version detection terminal, and the controller determines the version of the vehicle-mounted TBOX where the USB communication line switching device is located according to a signal received by the version detection terminal.
The version detection end of the controller is used for receiving the HW _ HVER signal and judging the version of the vehicle-mounted TBOX where the USB communication line switching device is located according to the HW _ HVER signal. The user can set the relationship of the HW _ HVER signal to the version of TBOX depending on the actual circuit configuration. For example: when the HW _ HVER signal is at a high level, the vehicle TBOX is a high version, and when the HW _ HVER signal is at a low level, the vehicle TBOX is a low version, or vice versa, where the relationship between the versions of the HW _ HVER signal and the TBOX is not limited. In the above embodiment, the version of the vehicle-mounted TBOX may be detected by the version detection terminal of the controller, so that the controller can control the USB communication line switching device according to the version of the vehicle-mounted TBOX.
EXAMPLE III
In the present embodiment, a high-version vehicle-mounted TBOX is provided, as shown in fig. 7, which includes the USB communication line switching device, the controller, the jumper device, the communication module, the external USB interface, and the application processor as described in the above embodiments.
Referring to fig. 8 and 9, the high-version vehicle-mounted TBOX generally has application scenarios of H1, H2, H31, H32, and the like, wherein a communication path corresponding to the H1 scenario is PC/IVI ↔ EXT _ USB ↔ AP _ USB1 ↔ AP, so as to implement a program downloading function of the AP; the communication path corresponding to the H2 scenario is IVI ↔ EXT _ USB ↔ AP _ USB1 ↔ AP and AP ↔ AP _ USB2 ↔ M _ USB ↔ Module, which respectively implement AP and IVI communication and AP and Module communication; the communication path corresponding to the H31 scene is a PC/IVI ↔ EXT _ USB ↔ AP _ USB1 ↔ AP ↔ AP _ USB2 ↔ M _ USB ↔ Module, and Module program downloading can be realized; the communication path corresponding to the H32 scene is a PC/IVI ↔ EXT _ USB ↔ M _ USB ↔ Module, and Module program downloading can also be realized.
The following describes the high-version vehicle-mounted TBOX combined application scene in detail:
in order to meet the actual application condition of the product, H2 can be specified as the initial state of the high-version vehicle-mounted TBOX. In this embodiment, JP _ USB _ CH _ SEL and JP _ USB _ FORCE may both default to high. For example, if the onboard TBOX hardware allows, a jumper may be led out to an external connector terminal, and the jumper may be opened or short-circuited systematically, and JP _ USB _ CH _ SEL and JP _ USB _ FORCE are high or low. It should be noted that changing the states of USB _ CH _ SEL and USB _ FORCE by means of jumpers is only one way, and the hardware circuit of the vehicle TBOX in this embodiment supports changing the states of USB _ CH _ SEL and USB _ FORCE by using an AP or an MCU.
State transition of H2 to H1
Depending on the jumper channel selection signal JP _ USB _ CH _ SEL and the AP channel selection signal AP _ USB _ CH _ SEL, the line switching signal USB _ CH _ SEL =1, if the EXT _ USB is connected with a USB data line, i.e. the USB insertion detection signal EXT _ USB _ DET =0, as shown in fig. 4, at this time, AP _ USB1_ VBUS =5V, and the appusb 1 starts to operate. The USB communication path PC/IVI ↔ EXT _ USB ↔ AP _ USB1 ↔ AP is established. Meanwhile, the PC/IVI can make a downloading program instruction to the AP only at the initial stage of starting the system by the AP, and the system enters an AP program downloading mode after the downloading instruction is made. An implementation method of the starting system may include that the MCU uses a first Reset terminal (such as a Reset _ AP pin shown in fig. 3) to restart the AP.
State transitions of H1 to H2
Depending on the jumper channel selection signal JP _ USB _ CH _ SEL and the AP channel selection signal AP _ USB _ CH _ SEL, the line switching signal USB _ CH _ SEL =1, if the EXT _ USB is connected with a USB data line, i.e. the USB insertion detection signal EXT _ USB _ DET =0, as shown in fig. 4, at this time, AP _ USB1_ VBUS =5V, and the appusb 1 starts to operate. Establishing a USB communication path: PC/IVI ↔ EXT _ USB ↔ AP _ USB1 ↔ AP. Meanwhile, the PC/IVI does not make a downloading program instruction on the AP in the initial stage of starting the system by the AP, and the normal USB communication functions of the AP and the IVI and the AP and the Module can be realized after the system is normally started. The implementation method for starting the system may include that the AP automatically restarts the system after completing downloading, and the AP notifies the MCU to apply a first Reset terminal (such as a Reset _ AP pin shown in fig. 3) to restart the AP after completing downloading.
State transition of H2 to H31
The line switching signal USB _ CH _ SEL =1 is caused to make AP _ USB2_ VBUS and M _ USB _ VBUS become high level depending on the jumper channel selection signal JP _ USB _ CH _ SEL and the AP channel selection signal AP _ USB _ CH _ SEL, AP _ USB2_ VBUS _ EN = 1. AP _ USB1 and EXT _ USB, AP _ USB2 and Module establish connection: PC/IVI ↔ EXT _ USB ↔ AP _ USB1 ↔ AP ↔ AP _ USB2 ↔ M _ USB ↔ Module. After the AP is normally started, a PC/IVI program downloading instruction is received to start a downloading thread, the program is stored in an auxiliary storage area of the AP, the AP _ USB2_ VBUS _ EN =1 is kept, the AP _ USB2_ VBUS and the M _ USB _ VBUS are both changed into high level, and the USB connection between the AP and the Module is not disconnected. The mode switch signal USB _ FORCE is asserted high depending on JP _ USB _ FORCE =0 or AP _ USB _ FORCE =1, the Module is restarted to enter the forced download mode, and the AP transfers the downloaded program to the Module. The implementation method of the starting system includes that the AP informs the MCU to apply a second Reset terminal (such as a Reset _ Module pin shown in fig. 3) to restart the Module.
State transitions from H31 to H2
After the downloading process is completed, let JP _ USB _ FORCE =1 and AP _ USB _ FORCE =0, MCU _ USB _ FORCE =0 sets the mode switch signal USB _ FORCE low, keeps the line switch signal USB _ CH _ SEL =1, and AP _ USB2_ VBUS _ EN =1 sets AP _ USB2_ VBUS and M _ USB _ VBUS high. And restarting the Module to enable the Module to exit the forced downloading mode. And returning to the H2 state after waiting for the Module to be started normally. The implementation method of the starting system includes that the Module automatically restarts the system after the downloading is completed, and the AP notifies the MCU to apply a second Reset terminal (such as a Reset _ Module pin shown in fig. 3) to restart the Module after the downloading is completed.
State transition from H2 to H32
One method is to directly make the line switching signal USB _ CH _ SEL =0 by setting the jumper channel selection signal JP _ USB _ CH _ SEL =0, another method is to set the initial line switching signal USB _ CH _ SEL in the state of H2 as high potential, and after the AP receives the PC/IVI program download instruction, make the line switching signal USB _ CH _ SEL =0 by the AP channel selection signal AP _ USB _ CH _ SEL =0, both cases finally establish the USB path: PC/IVI ↔ EXT _ USB ↔ M _ USB ↔ Module. Let AP _ USB2_ VBUS _ EN =1 bring AP _ USB2_ VBUS and M _ USB _ VBUS high. And the mode switching signal USB _ FORCE is set to be high depending on JP _ USB _ FORCE =0 or AP _ USB _ FORCE =1, the Module is restarted, the Module enters a forced downloading mode, and the PC/IVI can realize program downloading on the Module. The implementation method of the starting system includes that the MCU restarts the Module by applying a second Reset terminal (such as the Reset _ Module pin shown in fig. 3).
State transition from H32 to H2
After the downloading process is completed, let JP _ USB _ FORCE =1 and AP _ USB _ FORCE =0, MCU _ USB _ FORCE =0 set the mode switching signal USB _ FORCE low, let JP _ USB _ CH _ SEL and AP _ USB _ CH _ SEL command the line switching signal USB _ CH _ SEL =1, and keep AP _ USB2_ VBUS _ EN =1 to make AP _ USB2_ VBUS and M _ USB _ VBUS high. And restarting the Module to enable the Module to exit the forced downloading mode. And returning to the H2 state after waiting for the Module to be started normally. The implementation method of the starting system includes that the Module automatically restarts the system after the downloading is completed, and the Module informs the MCU to apply a second Reset terminal (such as a Reset _ Module pin shown in fig. 3) to restart the Module after the downloading is completed.
The embodiment provides a high-version vehicle-mounted TBOX, which comprises the USB communication line switching device, a controller, a jumper device, a communication module, an external USB interface and an application processor, and the high-version vehicle-mounted TBOX can conveniently and quickly realize the quick switching between the two communication lines of 'communication module to external USB interface' and 'communication module to application processor and external USB interface to application processor' through the USB communication line switching device.
Example four
In the present embodiment, a low version of the vehicle-mounted TBOX is provided, as shown in fig. 10, which includes the USB communication line switching device, the controller, the jumper device, the communication module, and the external USB interface as described in the above embodiments.
Referring to fig. 11 and 12, the low-version vehicle-mounted TBOX generally has two application scenarios, i.e., L1 and L2, wherein the communication path corresponding to the L1 scenario is PC/IVI ↔ EXT _ USB ↔ M _ USB ↔ Module, so as to implement Module program downloading function, the communication path corresponding to the L2 scenario is IVI ↔ EXT _ USB ↔ M _ USB ↔ Module, so as to implement normal USB communication functions between IVI and Module, and in order to meet actual application conditions of products, L2 may be defined as an initial state of the low-version vehicle-mounted TBOX. The following describes the low-version vehicle-mounted TBOX combined application scene in detail:
state transition of (L) 2 to (L) 1
In the present embodiment, since the in-vehicle TBOX is a low version, and no AP is mounted, the AP channel selection signal AP _ USB _ CH _ SEL =0, and the line switching signal USB _ CH _ SEL = 0. Establishing a USB channel inside the vehicle-mounted TBOX: PC/IVI ↔ EXT _ USB ↔ M _ USB ↔ Module.
Similarly, since the AP is not mounted, the AP _ USB2_ BUS _ EN, the AP _ USB1_ VBUS, the AP _ USB2_ VBUS, and the AP _ USB _ FORCE are all kept at a low level.
When the vehicle TBOX is low version and EXT _ USB _ DET =0, the MCU makes MCU _ USB2_ VBUS _ EN =1 so that M _ USB _ VBUS is high level. One method is to make the jumper mode setting signal JP _ USB _ FORCE =0, set the high mode switching signal USB _ FORCE; another method is to make the controller mode setting signal MCU _ USB _ FORCE =1 and set the mode switching signal USB _ FORCE high by commanding through the CAN or UART communication line of the MCU as shown in fig. 3.
And restarting the Module to enable the Module to enter a forced downloading mode, wherein the PC/IVI can realize program downloading to the Module. The implementation method of the starting system may include the MCU restarting the Module by applying a second Reset terminal (such as the Reset _ Module pin shown in fig. 3).
State transition of L1 to L2
After the program download is completed for the Module, the line switching signal USB _ CH _ SEL =0 is maintained, and the USB path: PC/IVI ↔ EXT _ USB ↔ M _ USB ↔ Module, let JP _ USB _ FORCE =1 and AP _ USB _ FORCE =0, MCU _ USB _ FORCE =0, put the mode switch signal USB _ FORCE low, hold MCU _ USB2_ VBUS _ EN =1 to put M _ USB _ VBUS high.
And restarting the Module through a signal Reset _ Module output by the MCU, so that the Module exits the forced download mode.
And returning to the L2 state after waiting for the Module to be started normally. The implementation method of the starting system includes that after downloading is completed, the Module self-restarting system and the MCU apply a second Reset terminal (such as a Reset _ Module pin shown in fig. 3) to restart the Module.
The embodiment provides a low-version vehicle-mounted TBOX, which comprises the USB communication line switching device, a controller, a jumper device, a communication module and an external USB interface, wherein the mode switching of the communication module can be conveniently and quickly realized by the low-version vehicle-mounted TBOX through the USB communication line switching device.
EXAMPLE five
In the present embodiment, a control method based on the vehicle-mounted TBOX in any one of the above embodiments is provided, and specifically, the following three methods may be included:
in some embodiments, control of an on-board TBOX can be achieved using a first method comprising the steps of: when the hardware condition of the vehicle-mounted TBOX allows, the jumper device is led out to an external connector terminal to open or short the jumper device to the ground, so that a jumper channel selection signal (JP _ USB _ CH _ SEL) and a jumper mode setting signal (JP _ USB _ FORCE) output by the jumper device are in a high level or a low level, the jumper channel selection signal (JP _ USB _ CH _ SEL) is used for controlling the line switching control signal (USB _ CH _ SEL) to change, and the jumper mode setting signal (JP _ USB _ FORCE) is used for controlling the mode switching signal (USB _ FORCE) to change, so that the TBOX is controlled through the line switching control signal (USB _ CH _ SEL) and the mode switching signal (USB _ FORCE).
Specifically, the line switching control signal (USB _ CH _ SEL) is set to a high level by the jumper channel select signal (JP _ USB _ CH _ SEL), and the mode switching signal (USB _ FORCE) is set to a high level by the jumper mode set signal (JP _ USB _ FORCE), the line switching control signal (USB _ CH _ SEL) is used to instruct the first switch chip and the second switch chip to close the second movable terminal, so that the external USB interface communicates with the first USB interface of the application processor and the communication Module communicates with the second USB interface of the application processor, and the mode switching signal (USB _ FORCE) is used to instruct the communication Module (Module) to enter the download mode.
In the above embodiment, a control method of a vehicle-mounted TBOX is provided, which can control switching of a USB communication line of the vehicle-mounted TBOX and switching of a mode of a communication module by a jumper device, and is simple and convenient to operate.
In other embodiments, the jumper device has no connector terminal led out to the outside, and the jumper channel select signal (JP _ USB _ CH _ SEL) and the jumper mode set signal (JP _ USB _ FORCE) are both set to a high level by default. In the above case, the vehicle TBOX may be controlled by a second method, which specifically includes the steps of: and sending a first control instruction to the external USB interface, wherein the first control instruction is used for instructing an application processor or a controller to change a line switching control signal (USB _ CH _ SEL) and a mode switching signal (USB _ FORCE) so as to control the vehicle-mounted TBOX.
In the foregoing embodiment, a control method of a vehicle-mounted TBOX is provided, where an external USB interface is used to send an instruction to an application processor or a controller, so as to implement control over the vehicle-mounted TBOX, and further implement USB communication line switching and mode switching of a communication module, so that a user can conveniently operate through the external USB interface.
In still other embodiments, in a case where the jumper device has no connector terminal led out to the outside, and the jumper channel select signal (JP _ USB _ CH _ SEL) and the jumper mode set signal (JP _ USB _ FORCE) are both high level, a third method may be further adopted to control the onboard TBOX, the method specifically including the steps of: and sending a second control instruction to the controller through the CAN/UART interface of the controller, wherein the second control instruction is used for instructing an application processor or the controller to change a line switching control signal (USB _ CH _ SEL) and a mode switching signal (USB _ FORCE) so as to control the vehicle-mounted TBOX.
In the above embodiment, a control method of a vehicle-mounted TBOX is provided, in which a line switching control signal and a mode switching signal can be directly changed by a controller, so as to implement control of the vehicle-mounted TBOX, and the method can be directly performed on the vehicle-mounted TBOX without using a jumper device and an external interface.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features. The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A USB communication line switching device is applied to a vehicle-mounted TBOX (tunnel boring machine), and the vehicle-mounted TBOX is a vehicle-mounted remote communication terminal, and is characterized in that the device is respectively connected with an external USB interface and a communication module of the vehicle-mounted TBOX, and comprises a first switch chip, a second switch chip and a line switching control end; wherein,
the first switch chip and the second switch chip respectively comprise an S end, a fixed end and a first movable end;
the immobile end of the first switch chip is used for connecting the external USB interface, and the immobile end of the second switch chip is used for connecting the communication module;
the first movable end of the first switch chip is used for being connected with the first movable end of the second switch chip;
the S end of the first switch chip and the S end of the second switch chip are used for being connected with the line switching control end so as to receive a line switching signal through the line switching control end;
the line switching signal comprises a first signal, and the first signal is used for triggering the first switch chip and the second switch chip to close the first movable end, so that the communication module is communicated with the external USB interface.
2. The USB communication line switching apparatus according to claim 1, wherein when an application processor is included in the in-vehicle TBOX, the apparatus further connects a first USB interface and a second USB interface of the application processor; wherein,
the first switch chip and the second switch chip both further comprise second movable ends, the second movable end of the first switch chip is used for connecting a first USB interface of the application processor, and the second movable end of the second switch chip is used for connecting a second USB interface of the application processor;
the line switching signal further comprises a second signal, and the second signal is used for triggering the first switch chip and the second switch chip to close the second movable end, so that the external USB interface is communicated with the first USB interface of the application processor, and the communication module is communicated with the second USB interface of the application processor.
3. The USB communication line switching apparatus according to claim 2, further comprising a first and gate and a jumper device, wherein the jumper device and the application processor are both provided with a channel selection terminal; the line switching control end is connected with the output end of the first AND gate; and the first input end of the first AND gate is used for connecting the channel selection end of the application processor, and the second input end of the first AND gate is used for connecting the channel selection end of the jumper device.
4. The USB communication line switching apparatus according to claim 3, further comprising a controller, a nand gate and a nor gate, wherein the controller, the application processor and the jumper device are each provided with a mode setting terminal, and the communication module is provided with a mode switching control terminal;
the two input ends of the nor gate are respectively used for connecting a mode setting end of the application processor and a mode setting end of the controller, the output end of the nor gate is connected with a first input end of the nand gate, a second input end of the nand gate is used for connecting a mode setting end of the jumper device, and the output end of the nand gate is connected with a mode switching control end of the communication module so as to send a mode switching signal to the communication module;
the mode switching signal comprises a third signal and a fourth signal, wherein the third signal is used for indicating the communication module to enter a downloading mode, and the fourth signal is used for indicating the communication module to enter an operating mode.
5. The USB communication line switching apparatus according to claim 4, further comprising a first not gate, a second not gate, a third not gate, a second and gate, and a third switch, wherein the third switch has a control terminal; wherein,
the first switch chip and the second switch chip both further comprise enabling ends, and the enabling ends of the first switch chip are used for being connected with USB insertion detection ends of the external USB interfaces;
the USB insertion detection end of the external USB interface is connected with the first input end of the second AND gate after being inverted by the second NOT gate;
the output end of the first AND gate is connected with the second input end of the second AND gate sequentially through the first NOT gate and the third NOT gate, the output end of the second AND gate is used for being connected with the control end of the third switch so as to send a third switch control signal to the control end of the third switch, and the third switch control signal is used for triggering the third switch to be opened or closed;
the third switch is arranged between the power supply and the VBUS terminal of the first USB interface of the application processor, wherein when the third switch is closed, the VBUS terminal of the first USB interface of the application processor is communicated with the power supply, and when the third switch is opened, the VBUS terminal of the first USB interface of the application processor is not communicated with the power supply.
6. The USB communication line switching apparatus according to claim 5, further comprising a fourth not gate;
the input end of the fourth NOT gate is connected with the VBUS signal conversion end of the external USB interface, the output end of the fourth NOT gate is connected with the USB insertion detection end of the external USB interface, the USB insertion detection end of the external USB interface is connected with the controller, and the controller is used for judging whether the external USB interface is connected with the USB data line or not according to the signal received by the USB insertion detection end.
7. The USB communication line switching device according to claim 6, further comprising an or gate, a fifth not gate, and a fourth switch, wherein the controller and the application processor are each provided with a communication module USB switch terminal, and the fourth switch is provided with a control terminal; a first input end of the or gate is used for being connected with a communication module USB switch end of the controller, a second input end of the or gate is used for being connected with the communication module USB switch end of the application processor, an output end of the or gate is connected with an input end of the fifth not gate, and an output end of the fifth not gate is connected with an enabling end of the second switch chip;
the output end of the or gate is further connected with the control end of the fourth switch to send a fourth switch control signal to the control end of the fourth switch, and the fourth switch control signal is used for triggering the fourth switch to be opened or closed;
the fourth switch is arranged between the power supply and the VBUS terminal of the USB interface of the communication module, when the fourth switch is closed, the VBUS terminal of the USB interface of the communication module is communicated with the power supply, and when the fourth switch is opened, the VBUS terminal of the USB interface of the communication module is not communicated with the power supply.
8. The USB communication line switching apparatus according to any one of claims 4 to 7, wherein the controller includes a first reset terminal and a second reset terminal; wherein,
the first reset terminal of the controller is used for connecting the application processor to send a first reset signal to the application processor, and the first reset signal is used for indicating the restart of the application processor;
and the second reset terminal of the controller is used for connecting the communication module so as to send a second reset signal to the communication module, and the second reset signal is used for indicating the restart of the communication module.
9. The USB communication line switching apparatus according to claim 8, wherein the controller further includes a version detection terminal, and the controller determines a version of the vehicle-mounted TBOX in which the USB communication line switching apparatus is located according to a signal received by the version detection terminal.
10. A vehicle TBOX, characterized in that it comprises a USB communication line switching device according to any one of claims 1 to 9.
CN202210117601.5A 2022-02-08 2022-02-08 USB communication line switching device and vehicle-mounted TBOX Active CN114153663B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210117601.5A CN114153663B (en) 2022-02-08 2022-02-08 USB communication line switching device and vehicle-mounted TBOX

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210117601.5A CN114153663B (en) 2022-02-08 2022-02-08 USB communication line switching device and vehicle-mounted TBOX

Publications (2)

Publication Number Publication Date
CN114153663A true CN114153663A (en) 2022-03-08
CN114153663B CN114153663B (en) 2022-06-17

Family

ID=80450247

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210117601.5A Active CN114153663B (en) 2022-02-08 2022-02-08 USB communication line switching device and vehicle-mounted TBOX

Country Status (1)

Country Link
CN (1) CN114153663B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150089092A1 (en) * 2013-09-26 2015-03-26 Unwired Technology Llc Flexible mobile device connectivity to automotive systems with usb hubs
CN204440378U (en) * 2015-02-10 2015-07-01 上海天奕达电子科技有限公司 Communication transfer switching device shifter and electronic system
WO2019157943A1 (en) * 2018-02-13 2019-08-22 西安中兴新软件有限责任公司 Vehicle-mounted data transmission method and device, and vehicle-mounted telematics box
US20190297476A1 (en) * 2016-11-07 2019-09-26 Huawei Technologies Co., Ltd. Method and apparatus for switching in-vehicle service by using external sim card
CN209441313U (en) * 2019-01-29 2019-09-27 上海挚极信息科技有限公司 The connection structure of vehicle device and T-box
CN211959262U (en) * 2020-05-28 2020-11-17 广州汽车集团股份有限公司 System for vehicle-mounted T-Box and vehicle-mounted equipment to access external network and automobile
CN113778055A (en) * 2021-09-13 2021-12-10 宁波均联智行科技股份有限公司 TBOX detection method and detection system
CN215376305U (en) * 2021-08-16 2021-12-31 广州汽车集团股份有限公司 USB interface switching circuit, vehicle-mounted sound equipment host and vehicle

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150089092A1 (en) * 2013-09-26 2015-03-26 Unwired Technology Llc Flexible mobile device connectivity to automotive systems with usb hubs
CN204440378U (en) * 2015-02-10 2015-07-01 上海天奕达电子科技有限公司 Communication transfer switching device shifter and electronic system
US20190297476A1 (en) * 2016-11-07 2019-09-26 Huawei Technologies Co., Ltd. Method and apparatus for switching in-vehicle service by using external sim card
WO2019157943A1 (en) * 2018-02-13 2019-08-22 西安中兴新软件有限责任公司 Vehicle-mounted data transmission method and device, and vehicle-mounted telematics box
CN209441313U (en) * 2019-01-29 2019-09-27 上海挚极信息科技有限公司 The connection structure of vehicle device and T-box
CN211959262U (en) * 2020-05-28 2020-11-17 广州汽车集团股份有限公司 System for vehicle-mounted T-Box and vehicle-mounted equipment to access external network and automobile
CN215376305U (en) * 2021-08-16 2021-12-31 广州汽车集团股份有限公司 USB interface switching circuit, vehicle-mounted sound equipment host and vehicle
CN113778055A (en) * 2021-09-13 2021-12-10 宁波均联智行科技股份有限公司 TBOX detection method and detection system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
T. NOBELS 等: "Design considerations for a plug-in hybrid car electrical motor", 《2009 INTERNATIONAL CONFERENCE ON CLEAN ELECTRICAL POWER》 *
李立安等: "OTA实现方案及汽车端设计分析", 《OTA实现方案及汽车端设计分析 *

Also Published As

Publication number Publication date
CN114153663B (en) 2022-06-17

Similar Documents

Publication Publication Date Title
CN104853142B (en) Controller for vehicle-mounted Ethernet and control method thereof
US20040111189A1 (en) Data access method and data access apparatus for accessing data at on-vehicle information device
US7856614B2 (en) Programmable system-on-chip apparatus and method for updating firmware
US8719611B2 (en) Checking functional module ID in connected extension device to power instead of existing corresponding functional module
CN115658160B (en) Multi-operating system upgrading method, device and system based on multi-core heterogeneous SOC
CN104881312B (en) The method and circuit of a kind of FPGA logical code iteration upgrading
CN111045930A (en) Method and system for downloading and debugging optical module code
CN201741410U (en) On-line burning system provided with plurality of EEPROMs
CN112214245A (en) Vehicle-mounted display system, vehicle-mounted display control method, system host and storage medium
CN109379110B (en) Relay device with multiple parameter configuration modes and parameter configuration method thereof
KR20020089374A (en) Variable-mode PC card and input/output control device of PC card
CN114153663B (en) USB communication line switching device and vehicle-mounted TBOX
CN109375941B (en) Novel master-slave flash boot loader software upgrading method applied to combination instrument
CN112995955A (en) Intelligent vehicle-mounted networking terminal, debugging method, networking compatibility method and device
CN116560688B (en) Software updating method for domain controller
CN116150064A (en) Hot plug method of NVME storage device, backboard and computing device
CN113535213B (en) Firmware updating method and system for programmable logic device
US20080222404A1 (en) In-system programming system and method for motherboard
CN214675128U (en) Intelligent vehicle-mounted internet terminal mainboard, intelligent vehicle-mounted internet terminal and vehicle
CN102955724A (en) BIOS (basic input output system) test fixture and method using same for BIOS test
CN116010326A (en) Signal control circuit and signal control method
CN111158710A (en) Program programming method and device and network equipment
CN215769714U (en) Program upgrading circuit
US6675224B1 (en) Information processing apparatus
JPH07153247A (en) On-vehicle audio equipment system, main unit and optional units

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
GR01 Patent grant
GR01 Patent grant