An upgrading method of a vehicle-mounted OTG-HUB device

CN122816668APending Publication Date: 2026-09-25LINGYANGCHENG CORE SCI&TECH CHENGDU CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611309030.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-27
Publication Date
2026-09-25

AI Technical Summary

Technical Problem

[0007]本发明要提供一种车载OTG-HUB 设备的升级方法,解决现有技术中不能使用ISP烧录和上行口 OTA 烧录对仅仅有几个USB端口露在外的OTG-HUB 设备进行升级的问题

Benefits of technology

[0017]相比于现有技术,本发明具有如下有益效果:车机实景中,没得TX和RX引脚实现ISP 烧录,没得特定的烧录软件来实现 OTA 烧录,因此无法通过ISP 烧录OTA 烧录对OTG-HUB 设备进行升级。针对只有几个USB端口露在外的OTG-HUB 设备,本申请中打破传统使用ISP 烧录和 OTA 烧录的思路,在OTG-HUB 设备中设计一个插拔式升级判断模块,所述插拔式升级判断模块识别是否进行插拔式升级启动操作,建立自身的升级触发机制,实现当按照指定升级顺序在OTG-HUB 设备中USB端口上插拔USB设备后,才能触发插拔式升级启动操作,也能保证OTG-HUB 设备中USB端口实现原本的在Host模式下的通信功能。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122816668A_ABST
    Figure CN122816668A_ABST
Patent Text Reader

Abstract

The application discloses an upgrading method of a vehicle-mounted OTG-HUB device, which comprises the following steps: S1, preparing an upgrading host; S2, using a USB device to perform plugging and unplugging operation on a USB port in the OTG-HUB device; the OTG-HUB device uses a plug-in upgrading judgment module to identify whether to perform plug-in upgrading start operation according to the plugging and unplugging operation; if it is judged that the plug-in upgrading start operation is performed, step S3 is performed; if it is judged that the plug-in upgrading start operation is not performed, step S3 is not performed; S3, communicatively connecting the upgrading host and a USB port in the OTG-HUB device; S4, the upgrading host and the OTG-HUB device jointly realize upgrading. The upgrading method of the vehicle-mounted OTG-HUB device solves the problem that the OTG-HUB device with only a few USB ports exposed outside cannot be upgraded by using ISP burning and uplink port OTA burning in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle systems, and more specifically to an upgrade method for a vehicle-mounted OTG-HUB device. Background Technology

[0002] In the infotainment systems of new energy vehicles, there is an OTG-HUB device. OTG-HUB stands for On-The-Go Hub. The OTG-HUB device is integrated into the infotainment system and is packaged together with the entire system. Only a few USB ports of the OTG-HUB device are visible to the outside.

[0003] Currently, the commonly used upgrade methods include ISP programming (ISP programming involves soldering the chip onto the PCB board without moving it, directly connecting the wires to program the upgrade program, and only a few communication pins need to be brought out on the board) and uplink port OTA programming (uplink port OTA programming involves setting up one USB uplink port through the host of the HUB, and directly performing the upgrade program through the set USB uplink port. Uplink port OTA programming must have built-in programming software).

[0004] ISP programming requires the use of UART (i.e., bringing out the TX and RX pins).

[0005] Uplink OTA flashing requires the cooperation of the vehicle's SoC system connected via the uplink port. However, this method requires flashing software, but the vehicle's SoC does not allow the integration of flashing software, so this type of uplink OTA flashing cannot be performed.

[0006] In practical applications, the TX and RX pins required for ISP programming cannot be brought out, and there is no programming software when using uplink OTA programming, so it is impossible to upgrade the OTG-HUB device. Summary of the Invention

[0007] This invention provides an upgrade method for vehicle-mounted OTG-HUB devices, solving the problem in the prior art that OTG-HUB devices with only a few exposed USB ports cannot be upgraded using ISP programming and uplink OTA programming.

[0008] To achieve the above objectives, the present invention adopts the following technical solution: The present invention discloses an upgrade method for an in-vehicle OTG-HUB device, comprising the following steps: S1, preparing an upgrade host; S2, using a USB device to plug and unplug the USB port in the OTG-HUB device; the OTG-HUB device uses a plug-and-play upgrade judgment module to identify whether a plug-and-play upgrade startup operation is being performed based on the plug-and-play operation; if it is determined that a plug-and-play upgrade startup operation is being performed, then proceed to step S3; if it is determined that a plug-and-play upgrade startup operation is not being performed, then step S3 is not performed; S3, establishing a communication connection between the upgrade host and a USB port in the OTG-HUB device; S4, the upgrade host and the OTG-HUB device jointly perform the upgrade.

[0009] Preferably, step S2 includes the following steps: S21, Preparation: In the OTG-HUB device, at least two USB ports are left without USB devices; S22, According to the set upgrade order, manually plug and unplug USB devices into the USB ports of the OTG-HUB device; S23, The OTG-HUB device determines whether the plugging and unplugging operation in step S22 is performed according to the upgrade order. If yes, it is determined to be a plug-and-play upgrade startup operation; if no, it is determined not to be a plug-and-play upgrade startup operation.

[0010] Preferably, the plug-in upgrade judgment module in the OTG-HUB device includes a trigger module and an upgrade execution judgment module. The trigger module is used to detect whether there is a trigger action that triggers the upgrade execution judgment module to work in the operation of step S22, and the upgrade execution judgment module is used to determine whether the operation of step S22 is to perform a plug-in upgrade startup operation.

[0011] Preferably, the judgment steps in step S23 are as follows: S231, the trigger module inside the OTG-HUB device detects whether there is a trigger action that triggers the upgrade execution judgment module to work in the operation of step S22. If so, proceed to step S232; otherwise, do not proceed to step S232. S232, the upgrade execution judgment module inside the OTG-HUB device detects whether there is an upgrade startup action that performs a plug-in upgrade startup operation in the operation of step S22. If so, it is determined to be a plug-in upgrade startup operation; otherwise, it is determined not to be a plug-in upgrade startup operation.

[0012] Preferably, the pluggable upgrade judgment module in the OTG-HUB device further includes an upgrade port identification module, which is used to identify which USB port the upgrade host is connected to in step S3.

[0013] Preferably, step S3 includes the following steps: S31, plugging and unplugging the USB connector of the upgrade host to a USB port in the OTG-HUB device once, the USB port to which the USB connector of the upgrade host is plugged and unplugged is the upgrade connection port; S32, inserting the USB connector of the upgrade host into the upgrade connection port.

[0014] Preferably, the upgrade port identification module performs the upgrade port identification operation after step S3 is executed and before step S4 is executed.

[0015] Preferably, step S4 includes the following steps: S41, the upgrade host sends the upgrade file; S42, the OTG-HUB device receives the upgrade file through the USB port connected to the upgrade host; S43, the OTG-HUB device performs the upgrade according to the upgrade file.

[0016] Preferably, before step S41 is executed, the following steps are also performed: the upgrade host identifies the upgrade connection port of the communication connection, and at the same time, the OTG-HUB device switches the upgrade connection port from Host mode to device mode.

[0017] Compared to existing technologies, this invention offers the following advantages: In real-world vehicle infotainment systems, there are no TX and RX pins for ISP programming, and no specific programming software for OTA programming, making it impossible to upgrade OTG-HUB devices via ISP or OTA programming. For OTG-HUB devices with only a few exposed USB ports, this application breaks with the traditional approach of using ISP and OTA programming. It designs a plug-and-play upgrade judgment module within the OTG-HUB device. This module identifies whether a plug-and-play upgrade startup operation is initiated, establishing its own upgrade trigger mechanism. This ensures that the plug-and-play upgrade startup operation is triggered only after the USB device is plugged and unplugged from the USB port in the OTG-HUB device according to a specified upgrade sequence, while also guaranteeing that the USB ports in the OTG-HUB device maintain their original communication functions in Host mode.

[0018] Other advantages, objectives and features of the present invention will become apparent in part from the following description, and in part from those skilled in the art through study and practice of the invention. Attached Figure Description

[0019] Figure 1 This is a diagram illustrating the connection between the upgrade host and the OTG-HUB device in the upgrade method for vehicle-mounted OTG-HUB devices.

[0020] Figure 2 A flowchart illustrating the upgrade method for in-vehicle OTG-HUB devices.

[0021] Figure 3 This is a flowchart of step S2 in the upgrade method for an in-vehicle OTG-HUB device. Detailed Implementation

[0022] To make the technical means, creative features, objectives and effects of this invention clearer and easier to understand, the invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0023] like Figures 1 to 3 As shown, this invention discloses an upgrade method for an in-vehicle OTG-HUB device, comprising the following steps: S1, preparing an upgrade host; S2, using a USB device to plug and unplug the USB port in the OTG-HUB device; the OTG-HUB device uses a plug-and-play upgrade judgment module to identify whether a plug-and-play upgrade startup operation is being performed based on the plug-and-play operation; if it is determined that a plug-and-play upgrade startup operation is being performed, then proceed to step S3; if it is determined that a plug-and-play upgrade startup operation is not being performed, then step S3 is not performed; S3, establishing a communication connection between the upgrade host and a USB port in the OTG-HUB device; S4, the upgrade host and the OTG-HUB device jointly perform the upgrade.

[0024] Optionally, the plugging and unplugging operation is specifically step S22.

[0025] To trigger the plug-and-play upgrade boot operation, step S2 includes the following steps: S21, Preparation: In the OTG-HUB device, at least two USB ports are reserved without USB devices (preparing at least two USB ports without USB devices ensures that the subsequent upgrade sequence is recognized; if there are too few USB ports without USB devices, the upgrade sequence will be simple, and the plug-and-play upgrade boot operation may be triggered simply by plugging and unplugging USB devices into the USB ports); S22, According to the set upgrade sequence, manually plug and unplug USB devices into the USB ports of the OTG-HUB device (the upgrade sequence is specific, and only plugging and unplugging USB devices into the USB ports under this upgrade sequence meets the conditions for the subsequent plug-and-play upgrade boot operation); S23, Simultaneously determine whether the plugging and unplugging operation in step S22 is performed according to the upgrade sequence. If yes, it is determined to be a plug-and-play upgrade boot operation; if no, it is determined not to be a plug-and-play upgrade boot operation.

[0026] The plug-and-play upgrade judgment module within the OTG-HUB device includes a trigger module and an upgrade execution judgment module. The trigger module detects whether there is a trigger action in step S22 that would activate the upgrade execution judgment module. The upgrade execution judgment module determines whether step S22 initiates a plug-and-play upgrade. The trigger module is designed to initiate the upgrade execution judgment module. Because the upgrade execution judgment module is relatively complex, a simpler trigger module is used to indicate whether to activate the subsequent upgrade execution judgment module.

[0027] To execute step S23 in cooperation with the trigger module and the upgrade execution judgment module, the following steps are taken: The judgment steps of step S23 are as follows: S231, the trigger module in the OTG-HUB device detects whether there is a trigger action that triggers the upgrade execution judgment module to work in the operation of step S22. If so, proceed to step S232; otherwise, do not proceed to step S232. S232, the upgrade execution judgment module in the OTG-HUB device detects whether there is an upgrade start action that performs a plug-in upgrade start operation in the operation of step S22. If so, it is determined to be a plug-in upgrade start operation; otherwise, it is determined not to be a plug-in upgrade start operation.

[0028] The actions of plugging and unplugging the USB port in the OTG-HUB device in the upgrade order in step S22 include: triggering action and upgrade startup action.

[0029] The trigger action includes the following steps: Select two USB ports from all USB ports of the OTG-HUB device as the first group of USB ports, and simultaneously plug and unplug the first group of USB ports once. Step S231, detecting the trigger action, is to detect whether two USB ports are simultaneously plugged and unplugged once.

[0030] Upgrade startup procedure: Select two USB ports from all USB ports of the OTG-HUB device as the second group of USB ports (USB ports in the first group of USB ports can be the same as those in the second group of USB ports). Let one USB port in the second group of USB ports be port B, and the other USB port in the second group of USB ports be port C. Insert and remove ports B and C in the specified order as follows: Insert and remove port B 6 times, insert and remove port C 3 times, insert and remove port B 3 times, and insert and remove port C 6 times.

[0031] To ensure that the OTG-HUB device knows which USB port is connected to the upgrade host, the pluggable upgrade judgment module in the OTG-HUB device also includes an upgrade port identification module, which is used to identify which USB port the upgrade host is connected to in step S3.

[0032] Step S3 includes the following steps: S31, plug and unplug the USB connector of the upgrade host to a USB port in the OTG-HUB device. The USB port to which the USB connector of the upgrade host is plugged and unplugged is the upgrade connection port; S32, insert the USB connector of the upgrade host into the upgrade connection port. Step S32 is completed within 3 minutes after step S31 is executed.

[0033] The upgrade port identification module performs the upgrade port identification operation after step S3 and before step S4. The upgrade port identification module determines which USB port is the upgrade connection port by checking whether steps S31 and S32 are performed. The upgrade connection port can also be the same as a USB port in the first group of USB ports or a USB port in the second group of USB ports.

[0034] Step S4 includes the following steps: S41, the upgrade host sends the upgrade file; S42, the OTG-HUB device receives the upgrade file through the USB port connected to the upgrade host; S43, the OTG-HUB device performs the upgrade according to the upgrade file. In step S43, the OTG-HUB device burns the upgrade file to the SPI Flash and restarts the OTG-HUB device.

[0035] Before step S41 is executed, the following steps are also performed: the upgrade host identifies the upgrade connection port of the communication connection, and at the same time, the OTG-HUB device switches the upgrade connection port from Host mode to device mode. In Host mode, the OTG-HUB device is responsible for detecting device insertion, performing USB enumeration, allocating addresses, and initiating all data read and write functions. In device mode, the USB port is managed by the host of the OTG-HUB device, passively responding to the host commands of the OTG-HUB device, and can achieve communication under the host control of the OTG-HUB device.

[0036] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.

Claims

1. A method for upgrading a vehicle-mounted OTG-HUB device, characterized in that, Includes the following steps: S1. Prepare the upgrade host; S2. Use a USB device to plug and unplug the USB port in the OTG-HUB device; the OTG-HUB device uses a plug-and-play upgrade judgment module to identify whether a plug-and-play upgrade startup operation is being performed based on the plug-and-play operation. If it is determined that a plug-and-play upgrade startup operation is being performed, proceed to step S3. If it is determined that a plug-in upgrade startup operation is not being performed, then step S3 is skipped; S3. Connect the upgrade host to a USB port on the OTG-HUB device for communication. S4, the upgrade host and OTG-HUB device work together to achieve the upgrade.

2. The upgrade method for a vehicle-mounted OTG-HUB device according to claim 1, characterized in that, Step S2 includes the following steps: S21. Preparation: In the OTG-HUB device, at least two USB ports should be free of USB devices. S22. Following the set upgrade sequence, manually plug and unplug the USB device from the USB port in the OTG-HUB device; S23. The OTG-HUB device determines whether the plugging and unplugging operation in step S22 is performed in the upgrade sequence. If yes, it is determined to be a plug-and-unplug upgrade startup operation; otherwise, it is determined not to be a plug-and-unplug upgrade startup operation.

3. The upgrade method for a vehicle-mounted OTG-HUB device according to claim 2, characterized in that, The plug-in upgrade judgment module in the OTG-HUB device includes a trigger module and an upgrade execution judgment module. The trigger module is used to detect whether there is a trigger action that triggers the upgrade execution judgment module to work in the operation of step S22. The upgrade execution judgment module is used to determine whether the operation of step S22 is to perform a plug-in upgrade startup operation.

4. The upgrade method for a vehicle-mounted OTG-HUB device according to claim 3, characterized in that, The judgment steps in step S23 are as follows: S231. In the operation of step S22 of the trigger module detection step in the OTG-HUB device, is there a trigger action to trigger the upgrade execution judgment module to work? If so, proceed to step S232; otherwise, do not proceed to step S232. S232, the OTG-HUB device upgrade execution judgment module detects whether there is an upgrade startup action in step S22 of the operation of plug-in upgrade startup operation. If so, it is judged to be a plug-in upgrade startup operation; if not, it is judged not to be a plug-in upgrade startup operation.

5. The upgrade method for a vehicle-mounted OTG-HUB device according to claim 4, characterized in that, The pluggable upgrade detection module within the OTG-HUB device also includes an upgrade port identification module, which is used to identify which USB port the upgrade host is connected to in step S3.

6. The upgrade method for a vehicle-mounted OTG-HUB device according to claim 5, characterized in that, Step S3 includes the following steps: S31. Connect the USB connector of the upgrade host to a USB port in the OTG-HUB device and unplug it once. The USB port that is connected to the USB connector in the upgrade host is the upgrade connection port. S32. Insert the USB connector of the upgrade host into the upgrade connection port.

7. The upgrade method for a vehicle-mounted OTG-HUB device according to claim 6, characterized in that, The upgrade port identification module performs the upgrade port identification operation after step S3 is executed and before step S4 is executed.

8. The upgrade method for a vehicle-mounted OTG-HUB device according to claim 1, characterized in that, Step S4 includes the following steps: S41. The upgrade host sends the upgrade file; The S42 and OTG-HUB devices receive upgrade files via a USB port that is connected to the upgrade host. The S43 and OTG-HUB devices should be upgraded according to the upgrade documentation.

9. The upgrade method for a vehicle-mounted OTG-HUB device according to claim 8, characterized in that, Before step S41 is executed, the following steps are also performed: the upgrade host identifies the upgrade connection port of the communication connection, and at the same time, the OTG-HUB device switches the upgrade connection port from Host mode to device mode.