Vehicle software version upgrading method and system of portable hardware and medium

Through portable hardware, the OBD port is used to connect to the vehicle, combined with key operation and TF card storage configuration and application package, the problem of complex upgrade operation and network dependence of vehicle controller software version is solved, and a simple and efficient offline upgrade is achieved.

CN120010885APending Publication Date: 2025-05-16SAIC GM WULING AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510042328.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-10
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

In the prior art, the operation threshold for upgrading the vehicle controller software version is high, it requires networking, and the network stability requirements are strict, and it only supports PC, which is less convenient.

Method used

A portable hardware is designed to connect to the vehicle through an OBD port, and to upgrade the software version of the vehicle controller through configuration and application packages using several keys and interactive components. The configuration and application packages are generated based on vehicle information and stored in the TF card, supporting offline storage and upgrade operations.

Benefits of technology

It lowers the technical threshold for upgrading the vehicle controller software version, so that non-professional personnel can easily complete the upgrade operation, and can still effectively upgrade in unstable or unavailable environments, improving the efficiency and reliability of the upgrade.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120010885A_ABST
    Figure CN120010885A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle software version upgrading method and system of portable hardware and a medium. The method comprises the steps that the portable hardware is inserted into an OBD port of a target vehicle; wherein the portable hardware is composed of a plurality of keys and interaction components; by pressing a plurality of keys, the portable hardware is controlled to upgrade the software version of the vehicle controller in the target vehicle through the configuration and application package; wherein the configuration and application package is generated according to the vehicle information of the target vehicle, and is stored in the portable hardware through the TF card. According to the vehicle software version upgrading method and system of the portable hardware and the medium, the portable hardware which is compact and complete in function is formed by integrating the multiple keys and the interaction component, the upgrading process can be simply and effectively controlled by pressing the multiple keys on the portable hardware, the technical threshold is lowered, and the upgrading efficiency is improved. The problem that it is difficult to simply and efficiently upgrade the software version of the vehicle controller can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automobile technology, and in particular to a vehicle software version upgrade method, system and medium for portable hardware. Background Art

[0002] At present, car companies attach great importance to after-sales issues of automobiles. They will respond quickly after users raise questions, quickly iterate and update the controller software with problems on the vehicle, and finally upgrade the latest software to the vehicle controller synchronously; through software updates, car companies can optimize the performance of vehicle controllers, improve their operating efficiency, reduce resource consumption, and thus improve the overall performance of the vehicle. At present, the software version upgrade of the vehicle controller is mainly achieved through after-sales diagnostic software; the after-sales diagnostic software establishes communication with the vehicle controller by connecting to the vehicle's OBD interface, and uploads the latest software upgrade package to the vehicle controller. After confirming the correctness and completeness of the upgrade file, the after-sales diagnostic software starts the upgrade process, writes the new software to the vehicle controller, and completes the software version upgrade.

[0003] However, the threshold for software upgrade operation is high. Newcomers need to undergo a period of training before they can use it, and they cannot get started quickly. In addition, the current software upgrade operation requires an Internet connection and a stable network to be implemented, which has strict requirements on the use environment. In addition, the after-sales software currently only supports the PC side, which is less convenient. Summary of the invention

[0004] The present invention provides a vehicle software version upgrade method, system and medium of portable hardware to solve the problem that it is difficult to simply and efficiently upgrade the software version of a vehicle controller.

[0005] Inserting the portable hardware into the OBD port of the target vehicle; wherein the portable hardware is composed of a plurality of buttons and interactive components;

[0006] By pressing the several buttons, the portable hardware is controlled to upgrade the software version of the vehicle controller in the target vehicle through the configuration and application package; wherein the configuration and application package is generated according to the vehicle information of the target vehicle and stored in the portable hardware through the TF card.

[0007] The present invention controls the portable hardware to connect to the target vehicle through the OBD port. As a standard interface of the vehicle, the OBD port can ensure the compatibility between the hardware and the vehicle. The configuration and application package is generated according to the vehicle information of the target vehicle, which means that each upgrade package is configured for a specific model or vehicle. This customized upgrade method ensures the accuracy and effectiveness of the upgrade process. The configuration and application package is stored in the portable hardware through the TF card. This offline storage method can improve the efficiency and reliability of the upgrade process in an environment where the network is unstable or unavailable. The user controls the upgrade process by pressing several buttons on the portable hardware. This intuitive operation method reduces the technical requirements for the user, so that non-professionals can easily complete the upgrade operation.

[0008] Compared with the prior art, the present invention integrates several buttons and interactive components to form a compact and fully functional portable hardware. The upgrade process can be simply and effectively controlled by pressing several buttons on the portable hardware, which lowers the technical threshold and can solve the problem of difficulty in simply and efficiently upgrading the software version of the vehicle controller.

[0009] As a preferred solution, the portable hardware is composed of a number of buttons and interactive components, specifically:

[0010] The portable hardware is composed of the plurality of buttons, the plurality of OBD interfaces, the plurality of indicator lights and the TF card slot;

[0011] Among them, the several buttons are used to upgrade and restore the vehicle controller of the vehicle, the several OBD interfaces are used to draw power and monitor CAN messages, the several indicator lights are used to display the status of the portable hardware itself and the function execution status, and the TF card slot is used to place the TF card.

[0012] In this preferred solution, the design of multiple OBD interfaces enables the portable hardware to connect to multiple vehicle systems at the same time, draw power and monitor CAN messages, thereby improving the flexibility and applicability of the device. The addition of a TF card slot provides users with additional storage space, making it convenient for users to store and transfer data, while also providing the possibility for upgrading and expanding the device. Through several indicator lights, users can intuitively understand the status of the portable hardware itself and the execution of its functions, such as power status, upgrade progress, etc., which improves the usability of the device. The on and off and flashing modes of the indicator lights can be designed in an easy-to-understand manner, so that users can roughly understand the status of the device even without a detailed instruction manual.

[0013] As a preferred solution, by pressing the plurality of buttons, the portable hardware is controlled to upgrade the software version of the vehicle controller in the target vehicle through the configuration and application package, specifically:

[0014] By controlling the duration of pressing the plurality of buttons, the portable hardware is controlled to upgrade the software version of the vehicle controller in the target vehicle through the configuration and application package according to a preset scheme;

[0015] The preset schemes include non-log upgrade, log upgrade, portable hardware self-upgrade and portable hardware reset.

[0016] This preferred solution can achieve the upgrade and recovery of the vehicle controller through simple button operation without complicated steps or additional tools, which reduces the difficulty of operation. In addition, different operation modes are controlled by the length of time the button is pressed, which increases the flexibility of operation, allowing users to quickly select the required upgrade or recovery solution according to actual needs.

[0017] As a preferred solution, the upgrade without logging logs is specifically as follows:

[0018] By short pressing the first button among the plurality of buttons, the portable hardware recognizes the TF card, and if the TF card exists, identifies the file name of the TF card according to the configuration and application package; wherein the configuration and application package includes a configuration file and a controller application program;

[0019] If the file name of the TF card matches the preset name, the controller communication system of the target vehicle is upgraded according to the configuration and application package.

[0020] This preferred solution ensures that only files that meet the requirements can be used for the upgrade operation by reading the file name in the TF card and matching it with the preset name. The configuration and application package contains configuration files and controller applications. This separation design makes the upgrade process more flexible. Users can selectively update configuration files or controller applications as needed, or update both at the same time, which helps reduce the complexity and risk of the upgrade process.

[0021] As a preferred solution, the record LOG upgrade is specifically as follows:

[0022] By long pressing the first button among the plurality of buttons, the portable hardware recognizes the TF card, and if the TF card exists, identifies the file name of the TF card according to the configuration and application package;

[0023] If the file name of the TF card matches the preset name, the controller communication system of the target vehicle is upgraded according to the configuration and application package, and the communication content and time of the controller communication system during the upgrade are written into the TF card.

[0024] This preferred solution records the communication content of the controller communication system during the upgrade process in detail, providing valuable data support for subsequent troubleshooting, performance analysis and optimization. In addition to the communication content, this solution also records the time information during the upgrade process. The addition of timestamps makes the log data more complete, helping users to more accurately understand the time nodes and duration of the upgrade process.

[0025] As a preferred solution, the portable hardware self-upgrade is specifically as follows:

[0026] By long pressing a second button among the plurality of buttons, the portable hardware is enabled to identify the TF card, and if the TF card exists, the file name of the TF card is identified according to the configuration and application package;

[0027] If the file name of the TF card matches the preset name, the portable hardware is automatically upgraded.

[0028] This preferred solution only requires inserting a TF card containing the update file and long pressing the button, and the portable hardware can automatically complete the upgrade process. This greatly simplifies the maintenance and upgrade process and reduces the need for manual intervention. In addition, the self-upgrade function can be performed without affecting the normal use of the device, thereby reducing the downtime caused by the upgrade.

[0029] As a preferred solution, the portable hardware reset is specifically:

[0030] By short pressing a second button among the plurality of buttons, the portable hardware is soft reset.

[0031] This preferred solution can clear temporary faults or error states in portable hardware through soft reset, restore the portable hardware to a normal working state, and help avoid system crashes or instabilities caused by temporary faults.

[0032] The present application also provides a portable hardware vehicle software version upgrade system, including a plurality of button devices, a plurality of OBD interface devices, a plurality of indicator light devices and a TF card slot device;

[0033] The plurality of button devices are used to upgrade and restore the vehicle controller of the target vehicle according to the configuration and application package according to the preset scheme; wherein the preset scheme includes non-log upgrade, log upgrade, portable hardware self-upgrade and portable hardware reset;

[0034] The plurality of OBD interface devices are used for drawing power and monitoring CAN messages;

[0035] The plurality of indicator light devices are used to display the state of the portable hardware itself and the function execution status;

[0036] The TF card slot device is used to place a TF card.

[0037] As a preferred solution, the plurality of key devices include a generation unit and an upgrade unit;

[0038] The generating unit is used to enable the portable hardware to identify the TF card by short pressing the first button of the plurality of button devices, and to identify the file name of the TF card according to the configuration and application package when the TF card exists; wherein the configuration and application package includes a configuration file and a controller application program;

[0039] The upgrade unit is used to upgrade the controller communication system of the target vehicle according to the configuration and application package if the file name of the TF card conforms to the preset name.

[0040] As a preferred solution, the plurality of key devices include an identification unit and a recording unit;

[0041] The identification unit is used to enable the portable hardware to identify the TF card by long pressing the first button of the plurality of button devices, and to identify the file name of the TF card according to the configuration and application package when the TF card exists;

[0042] The recording unit is used to upgrade the controller communication system of the target vehicle according to the configuration and application package if the file name of the TF card conforms to the preset name, and write the communication content and time of the controller communication system during the upgrade into the TF card.

[0043] As a preferred solution, the plurality of key devices include a long-press unit and a self-upgrade unit;

[0044] The long-press unit is used to enable the portable hardware to identify the TF card by long-pressing the second button of the plurality of button devices, and to identify the file name of the TF card according to the configuration and application package when the TF card exists;

[0045] The self-upgrade unit is used to self-upgrade the portable hardware if the file name of the TF card matches the preset name.

[0046] As a preferred solution, the plurality of key devices include a soft reset unit;

[0047] Wherein, the soft reset unit is used to soft reset the portable hardware by short pressing the second button of the plurality of button devices.

[0048] The present application also provides a storage medium having a computer program stored thereon. The computer program is called and executed by a computer to implement the vehicle software version upgrade method of the portable hardware as described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is a flowchart of a vehicle software version upgrade method of a portable hardware provided in an embodiment of the present application;

[0050] Figure 2 is a front view of the portable hardware provided by an embodiment of the present application;

[0051] Figure 3 is a side view of the portable hardware provided by the embodiment of the present application;

[0052] Figure 4 It is a diagram of the upper computer interface provided in the embodiment of the present application;

[0053] Figure 5 This is a non-LOG upgrade flow chart provided in an embodiment of the present application;

[0054] Figure 6 This is a log upgrade flow chart provided in an embodiment of the present application;

[0055] Figure 7 is a portable hardware self-upgrade flow chart provided in an embodiment of the present application;

[0056] Figure 8 is a portable hardware reset flow chart provided by an embodiment of the present application;

[0057] Fig. 9 It is a main body display diagram involved in the vehicle software upgrade process provided by the embodiment of the present application;

[0058] Fig.10 It is a structural diagram of a portable hardware vehicle software version upgrade system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0059] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0060] In the description of this application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "several" means two or more.

[0061] A portable hardware vehicle software version upgrade method provided in an embodiment of the present application is mainly used in situations where the software version of a vehicle controller needs to be upgraded simply and efficiently without relying on network stability.

[0062] Embodiment 1:

[0063] See also Figure 1 The embodiment of the present application provides a vehicle software version upgrade method of portable hardware, including S1 to S2, and the specific implementation steps are as follows:

[0064] S1. Insert the portable hardware into the OBD port of the target vehicle; wherein the portable hardware is composed of a plurality of buttons and interactive components.

[0065] Step S1 of the embodiment of the present application includes S1.1 to S1.3, specifically:

[0066] S1.1. The portable hardware consists of 3 buttons, 2 OBD (On-Board Diagnostics) interfaces, 3 indicator lights and 1 TF card slot; the "TF card slot", also known as the Micro SD card slot, is an interface for inserting a TF card (TransFlash card, also known as a Micro SD card);

[0067] Among them, 3 buttons are used to upgrade and restore the vehicle controller of the vehicle.

[0068] Two OBD interfaces are used to draw power and monitor CAN messages, so that portable hardware does not need external power supply when working, and draws power through the OBD interface; in addition, during the process of upgrading the vehicle controller software, the CAN message can be monitored synchronously through the OBD interface, so that the problem can be analyzed and solved in time when the upgrade fails;

[0069] The TF card slot is used to place the TF card.

[0070] The three indicator lights are used to display the status of the portable hardware and the execution of its functions. The three indicator lights are red, green and blue, which can quickly feedback its status and current working status.

[0071] When the portable hardware is powered on, without other operations, the indicator lights indicate the status of the portable hardware itself: if the three indicator lights are off, it means that the portable hardware lacks application software and cannot be used normally; if the three indicator lights are on together, it means that the portable hardware can be used normally;

[0072] On the premise that the portable hardware can be used normally, after pressing the button, the indicator light indicates the function execution status: if only the blue light is on, it means that the function is being executed; if only the green light is on, it means that the function is executed successfully; if only the red light is on, it means that the function execution fails.

[0073] To apply the embodiments of this application, please refer to Figure 2-3 , Figure 2 is a front view of the portable hardware provided by the embodiment of the present application, Figure 3 is a side view of the portable hardware provided by the embodiment of the present application, Figure 2 and Figure 3 Respectively represent the front and side of the portable hardware;

[0074] like Figure 2-3 As shown, the portable hardware has 2 OBD interfaces, 3 buttons, 3 indicator lights and 1 TF card slot.

[0075] In the present embodiment S1.1, the design of multiple OBD interfaces enables the portable hardware to simultaneously connect to multiple vehicle systems, draw power and monitor CAN messages, thereby improving the flexibility and applicability of the device. The addition of a TF card slot provides users with additional storage space, making it convenient for users to store and transfer data, while also providing the possibility for upgrading and expanding the device. Through a number of indicator lights, users can intuitively understand the status of the portable hardware itself and the execution of its functions, such as power status, upgrade progress, etc., thereby improving the ease of use of the device. The on and off and flashing modes of the indicator lights can be designed in an easy-to-understand manner, so that users can roughly understand the status of the device even without a detailed instruction manual.

[0076] S1.2. In the target vehicle, the key information related to the CAN message in the CAN bus communication is extracted by the host computer to obtain the vehicle information;

[0077] In the upper computer interface where the configuration related to software upgrade has been set, click the corresponding generate configuration button to obtain the configuration and application package; the configuration and application package includes the format configuration file (file type is txt) and the controller application program (file type is s19 or hex);

[0078] Store the configuration and application package in a TF card and insert the TF card into the TF card slot of the portable hardware.

[0079] The vehicle information includes:

[0080] ① Physical address, functional address, and response address. Each address is the basis of communication and is used to know the object of communication.

[0081] ②Stmin. This parameter is the transmission interval during data transmission. Different ECUs (Electronic Control Units) have different data receiving capabilities. Users can manually set this parameter to adapt to the corresponding ECU.

[0082] ③ The order of different services and the specific content of the services. Users can manually adjust the order of services and the specific content of services to meet the refresh requirements of different ECUs.

[0083] To apply the embodiments of this application, please refer to Figure 4 , Figure 4 It is a diagram of the upper computer interface provided in the embodiment of the present application, representing the upper computer interface in the embodiment of the present application.

[0084] S1.3. Insert the portable hardware with the TF card into the OBD port of the target vehicle.

[0085] S2. By pressing a number of buttons, the portable hardware is controlled to upgrade the software version of the vehicle controller in the target vehicle through the configuration and application package; wherein the configuration and application package is generated according to the vehicle information of the target vehicle and stored in the portable hardware through the TF card.

[0086] Step S2 of the embodiment of the present application is specifically as follows:

[0087] By controlling the duration of pressing the three buttons, the portable hardware into which the TF card has been inserted is controlled to upgrade the software version of the vehicle controller in the target vehicle through the configuration and application package according to a preset scheme; wherein the configuration and application package is a file generated by step S1 according to the vehicle information of the target vehicle and stored in the portable hardware through the TF card;

[0088] The preset solutions include non-log upgrade, log upgrade, portable hardware self-upgrade and portable hardware reset.

[0089] ① No LOG upgrade is recorded, and the vehicle controller can be quickly upgraded, which is used to upgrade the vehicle controller in batches; specifically:

[0090] By short pressing the first button (button 1) among the three buttons, the portable hardware can recognize the TF card;

[0091] If the TF card exists, identify the file name of the TF card according to the configuration and application package; if the TF card does not exist, the upgrade is terminated;

[0092] If the file name of the TF card matches the preset name, that is, it is the correct name, the controller communication system of the target vehicle will continue to be upgraded according to the configuration and application package until the upgrade is completed; if the file name of the TF card is an incorrect name, the upgrade will be terminated.

[0093] To apply the embodiments of this application, please refer to Figure 5 , Figure 5 It is a flowchart of non-logging upgrade provided in an embodiment of the present application, which shows the general process of non-logging upgrade in an embodiment of the present application.

[0094] In the operation of upgrading without recording LOG in S2 of this embodiment, by reading the file name in the TF card and matching it with the preset name, it is ensured that only files that meet the requirements can be used for the upgrade operation. The configuration and application package contains configuration files and controller applications. This separation design makes the upgrade process more flexible. Users can selectively update configuration files or controller applications as needed, or update both at the same time, which helps reduce the complexity and risk of the upgrade process.

[0095] ② Record LOG upgrade, which can record the upgrade process in txt text for archiving or problem location after upgrade failure; specifically:

[0096] By long pressing the first button (button 1) among the three buttons, the portable hardware can recognize the TF card;

[0097] If the TF card exists, identify the file name of the TF card according to the configuration and application package; if the TF card does not exist, the upgrade is terminated;

[0098] If the file name of the TF card matches the preset name, that is, it is the correct name, the controller communication system of the target vehicle will be upgraded according to the configuration and application package until the upgrade is completed; and the communication content and time of the controller communication system during the upgrade will be written into the TF card; if the file name of the TF card is an incorrect name, the upgrade will be terminated.

[0099] To apply the embodiments of this application, please refer to Figure 6 , Figure 6 It is a flow chart of recording LOG upgrade provided in an embodiment of the present application, which shows the general process of recording LOG upgrade in an embodiment of the present application.

[0100] In the operation of recording LOG upgrade in S2 of this embodiment, the communication content of the controller communication system during the upgrade process is recorded in detail, providing valuable data support for subsequent troubleshooting, performance analysis and optimization. In addition to the communication content, this embodiment also records the time information during the upgrade process. The addition of timestamps makes the log data more complete, which helps users to more accurately understand the time nodes and duration of the upgrade process.

[0101] ③ Portable hardware self-upgrade is to complete the update of the device itself through key operation, which is convenient and fast with no operation threshold; specifically:

[0102] By long pressing the second button (button 3) among the three buttons, the portable hardware can recognize the TF card;

[0103] If the TF card exists, identify the file name of the TF card according to the configuration and application package; if the TF card does not exist, the upgrade is terminated;

[0104] If the file name of the TF card matches the preset name, that is, it is the correct name, the portable hardware will be automatically upgraded; if the file name of the TF card is an incorrect name, the upgrade will be terminated.

[0105] To apply the embodiments of this application, please refer to Figure 7 , Figure 7 It is a flowchart of portable hardware self-upgrade provided in an embodiment of the present application, which shows the general process of portable hardware self-upgrade in an embodiment of the present application.

[0106] In the operation of portable hardware self-upgrade in this embodiment S2, it is only necessary to insert the TF card containing the update file and long press the button, and the portable hardware can automatically complete the upgrade process. This greatly simplifies the maintenance and upgrade process and reduces the need for manual intervention. In addition, the self-upgrade function can be performed without affecting the normal use of the device, thereby reducing the downtime caused by the upgrade.

[0107] ④ Portable hardware reset, used for quick reset, to achieve the effect of physically plugging and unplugging the device; specifically:

[0108] By short pressing the second of the three buttons (button 3), the portable hardware is soft reset.

[0109] To apply the embodiments of this application, please refer to Figure 8 , Figure 8 It is a flowchart of portable hardware reset provided in an embodiment of the present application, which shows the general process of portable hardware reset in an embodiment of the present application.

[0110] To apply the embodiments of this application, please refer to Fig. 9 , Fig. 9 This is a diagram showing the entities involved in the vehicle software upgrade process provided in the embodiment of the present application, which shows the entities involved in the vehicle software upgrade process in the embodiment of the present application and the direction of data flow.

[0111] In the operation of resetting the portable hardware in S2 of this embodiment, a soft reset can clear temporary faults or error states in the portable hardware, restore the portable hardware to a normal working state, and help avoid system crashes or instability caused by temporary faults.

[0112] In this embodiment S2, the vehicle controller can be upgraded and restored by simple key operation without complicated steps or additional tools, which reduces the difficulty of operation. In addition, different operation modes are controlled by the length of time the key is pressed, which increases the flexibility of operation, so that the user can quickly select the required upgrade or restoration plan according to actual needs.

[0113] Overall, this embodiment has the following beneficial effects:

[0114] This application controls the portable hardware to connect to the target vehicle through the OBD port. As a standard interface of the vehicle, the OBD port can ensure the compatibility between the hardware and the vehicle. The configuration and application package are generated based on the vehicle information of the target vehicle, which means that each upgrade package is configured for a specific model or vehicle. This customized upgrade method ensures the accuracy and effectiveness of the upgrade process. The configuration and application package are stored in the portable hardware through a TF card. This offline storage method can improve the efficiency and reliability of the upgrade process in environments where the network is unstable or unavailable. The user controls the upgrade process by pressing several buttons on the portable hardware. This intuitive operation method reduces the technical requirements for the user, allowing non-professionals to easily complete the upgrade operation;

[0115] In summary, you only need to plug the portable hardware into the vehicle's OBD port and press a button to upgrade the vehicle controller, without the need for professional basic knowledge training for diagnostic refresh. Moreover, this application is implemented based on offline portable hardware and does not require networking, so it can be used anywhere there is an upgrade requirement. In addition, the portable hardware is small in size, easy to carry, and does not require computer control; the application program of the portable hardware can be updated through buttons and TF cards, and the functional expansion is strong.

[0116] Embodiment 2:

[0117] See also Fig.10 , the embodiment of the present application provides a portable hardware vehicle software version upgrade system, including a plurality of button devices 10, a plurality of OBD interface devices 20, a plurality of indicator light devices 30 and a TF card slot device 40;

[0118] Among them, a plurality of key devices 10 are used to upgrade and restore the vehicle controller of the target vehicle according to the configuration and application package according to the preset scheme; wherein the preset scheme includes non-log upgrade, log upgrade, portable hardware self-upgrade and portable hardware reset;

[0119] Several OBD interface devices 20, used for drawing power and monitoring CAN messages;

[0120] A number of indicator light devices 30 for displaying the status of the portable hardware itself and the function execution status;

[0121] The TF card slot device 40 is used to place a TF card.

[0122] In one embodiment, the vehicle software version upgrade system of portable hardware is composed of 3 buttons, 2 OBD (On-Board Diagnostics) interfaces, 3 indicator lights and 1 TF card slot; wherein the "TF card slot", also known as the Micro SD card slot, is an interface for inserting a TF card (TransFlash card, also known as a Micro SD card);

[0123] Among them, 3 buttons are used to upgrade and restore the vehicle controller of the vehicle.

[0124] Two OBD interfaces are used to draw power and monitor CAN messages, so that portable hardware does not need external power supply when working, and draws power through the OBD interface; in addition, during the process of upgrading the vehicle controller software, the CAN message can be monitored synchronously through the OBD interface, so that the problem can be analyzed and solved in time when the upgrade fails;

[0125] The TF card slot is used to place the TF card.

[0126] The three indicator lights are used to display the status of the portable hardware and the execution of its functions. The three indicator lights are red, green and blue, which can quickly feedback its status and current working status.

[0127] When the portable hardware is powered on, without other operations, the indicator lights indicate the status of the portable hardware itself: if the three indicator lights are off, it means that the portable hardware lacks application software and cannot be used normally; if the three indicator lights are on together, it means that the portable hardware can be used normally;

[0128] On the premise that the portable hardware can be used normally, after pressing the button, the indicator light indicates the function execution status: if only the blue light is on, it means that the function is being executed; if only the green light is on, it means that the function is executed successfully; if only the red light is on, it means that the function execution fails.

[0129] To apply the embodiments of this application, please refer to Figure 2-3 , Figure 2 is a front view of the portable hardware provided by the embodiment of the present application, Figure 3 is a side view of the portable hardware provided by the embodiment of the present application, Figure 2 and Figure 3 Respectively represent the front and side of the portable hardware;

[0130] like Figure 2-3 As shown, the portable hardware has 2 OBD interfaces, 3 buttons, 3 indicator lights and 1 TF card slot.

[0131] In this embodiment, the design of multiple OBD interfaces enables the portable hardware to connect to multiple vehicle systems at the same time, draw power and monitor CAN messages, thereby improving the flexibility and applicability of the device. The addition of a TF card slot provides users with additional storage space, making it convenient for users to store and transfer data, while also providing the possibility for upgrading and expanding the device. Through a number of indicator lights, users can intuitively understand the status of the portable hardware itself and the execution of its functions, such as power status, upgrade progress, etc., which improves the ease of use of the device. The on and off and flashing modes of the indicator lights can be designed in an easy-to-understand manner, so that users can roughly understand the status of the device even without a detailed instruction manual.

[0132] In one embodiment, the plurality of OBD interface devices 20 include a configuration unit and an assembly unit;

[0133] The configuration unit is used to extract key information related to CAN messages in CAN bus communication in the target vehicle through the host computer to obtain vehicle information;

[0134] The configuration unit is also used to obtain the configuration and application package by clicking the corresponding configuration generation button in the upper computer interface where the configuration related to the software upgrade has been set; wherein the configuration and application package includes a format configuration file (file type is txt) and a controller application program (file type is s19 or hex);

[0135] The configuration unit is also used to store the configuration and application package in the TF card, and insert the TF card into the TF card slot of the portable hardware.

[0136] The vehicle information includes:

[0137] ① Physical address, functional address, and response address. Each address is the basis of communication and is used to know the object of communication.

[0138] ②Stmin. This parameter is the transmission interval during data transmission. Different ECUs (Electronic Control Units) have different data receiving capabilities. Users can manually set this parameter to adapt to the corresponding ECU.

[0139] ③ The order of different services and the specific content of the services. Users can manually adjust the order of services and the specific content of services to meet the refresh requirements of different ECUs.

[0140] To apply the embodiments of this application, please refer to Figure 4 , Figure 4 It is a diagram of the upper computer interface provided in the embodiment of the present application, representing the upper computer interface in the embodiment of the present application.

[0141] An assembly unit is used to insert the portable hardware into the OBD port of the target vehicle.

[0142] In one embodiment, a plurality of button devices 10 are used to control the portable hardware to upgrade the software version of the vehicle controller in the target vehicle through the configuration and application package by pressing a plurality of buttons; wherein the configuration and application package is generated according to the vehicle information of the target vehicle and stored in the portable hardware through the TF card.

[0143] Specifically: by controlling the length of time of pressing the three buttons, the portable hardware that has been inserted into the TF card is controlled according to the preset plan to upgrade the software version of the vehicle controller in the target vehicle through the configuration and application package; wherein the preset schemes include non-log upgrade, log upgrade, portable hardware self-upgrade and portable hardware reset; wherein the configuration and application package is a file generated by the configuration unit according to the vehicle information of the target vehicle and stored in the portable hardware through the TF card.

[0144] Furthermore, the several key devices 10 specifically include a generation unit, an upgrade unit, an identification unit, a recording unit, a long press unit, a self-upgrade unit, and a soft reset unit;

[0145] The generating unit is used to enable the portable hardware to recognize the TF card by short pressing the first button (button 1) among the three buttons;

[0146] The generation unit is also used to identify the file name of the TF card according to the configuration and application package when the TF card exists; if the TF card does not exist, the upgrade is terminated;

[0147] The upgrade unit is used to continuously upgrade the controller communication system of the target vehicle according to the configuration and application package until the upgrade is completed if the file name of the TF card matches the preset name, that is, the correct name; if the file name of the TF card is an incorrect name, the upgrade is terminated.

[0148] To apply the embodiments of this application, please refer to Figure 5 , Figure 5 It is a flowchart of non-logging upgrade provided in an embodiment of the present application, which shows the general process of non-logging upgrade in an embodiment of the present application.

[0149] In this embodiment, the generation unit and the upgrade unit are related to the operation of not recording the LOG upgrade, which can quickly upgrade the vehicle controller and is used for batch upgrading of vehicle controllers;

[0150] In addition, by reading the file name in the TF card and matching it with the preset name, it ensures that only files that meet the requirements can be used for the upgrade operation. The configuration and application package contains configuration files and controller applications. This separation design makes the upgrade process more flexible. Users can selectively update configuration files or controller applications as needed, or update both at the same time, which helps reduce the complexity and risk of the upgrade process.

[0151] The identification unit is used to enable the portable hardware to identify the TF card by long pressing the first button (button 1) among the three buttons;

[0152] The identification unit is also used to identify the file name of the TF card according to the configuration and application package when the TF card exists; if the TF card does not exist, the upgrade is terminated;

[0153] The recording unit is used to upgrade the controller communication system of the target vehicle according to the configuration and application package if the file name of the TF card conforms to the preset name, that is, the correct name, until the upgrade is completed; and write the communication content and time of the controller communication system during the upgrade to the TF card; if the file name of the TF card is an incorrect name, the upgrade is terminated.

[0154] To apply the embodiments of this application, please refer to Figure 6 , Figure 6 It is a flow chart of recording LOG upgrade provided in an embodiment of the present application, which shows the general process of recording LOG upgrade in an embodiment of the present application.

[0155] In this embodiment, the identification unit and the recording unit record the operation of the LOG upgrade, and can record the upgrade process in a txt text for archiving or problem location after the upgrade fails;

[0156] In addition, the communication content of the controller communication system during the upgrade process is recorded in detail, providing valuable data support for subsequent troubleshooting, performance analysis and optimization. In addition to the communication content, this embodiment also records the time information during the upgrade process. The addition of timestamps makes the log data more complete, which helps users to more accurately understand the time nodes and duration of the upgrade process.

[0157] A long press unit, used to enable the portable hardware to recognize the TF card by long pressing the second button (button 3) among the three buttons;

[0158] Long press the unit to identify the file name of the TF card according to the configuration and application package if the TF card exists; if the TF card does not exist, the upgrade is terminated;

[0159] The self-upgrade unit is used to self-upgrade the portable hardware if the file name of the TF card conforms to the preset name, that is, the correct name; if the file name of the TF card is an incorrect name, the upgrade is terminated.

[0160] To apply the embodiments of this application, please refer to Figure 7 , Figure 7 It is a flowchart of portable hardware self-upgrade provided in an embodiment of the present application, which shows the general process of portable hardware self-upgrade in an embodiment of the present application.

[0161] In this embodiment, the operation of the long press unit and the self-upgrade unit related to the portable hardware self-upgrade is to complete the update of the device itself through key operation, which is convenient and fast and has no operation threshold;

[0162] Moreover, just insert the TF card containing the update file and long press the button, and the portable hardware can automatically complete the upgrade process. This greatly simplifies the maintenance and upgrade process and reduces the need for manual intervention. Moreover, the self-upgrade function can be performed without affecting the normal use of the device, thus reducing the downtime caused by the upgrade.

[0163] The soft reset unit is used to soft reset the portable hardware by short pressing the second button (button 3) among the three buttons.

[0164] To apply the embodiments of this application, please refer to Figure 8 , Figure 8 It is a flowchart of portable hardware reset provided in an embodiment of the present application, which shows the general process of portable hardware reset in an embodiment of the present application.

[0165] To apply the embodiments of this application, please refer to Fig. 9 , Fig. 9 This is a diagram showing the entities involved in the vehicle software upgrade process provided in the embodiment of the present application, which shows the entities involved in the vehicle software upgrade process in the embodiment of the present application and the direction of data flow.

[0166] In this embodiment, the soft reset unit is used for portable hardware reset operations, which is used for fast reset, so as to achieve the effect of physically plugging and unplugging the device;

[0167] Furthermore, through soft reset, temporary faults or error states in portable hardware can be cleared, restoring the portable hardware to a normal working state, which helps to avoid system crashes or instabilities caused by temporary faults.

[0168] The key device 10 of this embodiment can realize the upgrade and recovery of the vehicle controller by simple key operation without complicated steps or additional tools, which reduces the difficulty of operation. In addition, different operation modes are controlled by the length of time the key is pressed, which increases the flexibility of operation, so that the user can quickly select the required upgrade or recovery plan according to actual needs.

[0169] Overall, this embodiment has the following beneficial effects:

[0170] This application controls the portable hardware to connect to the target vehicle through the OBD port. As a standard interface of the vehicle, the OBD port can ensure the compatibility between the hardware and the vehicle. The configuration and application package are generated based on the vehicle information of the target vehicle, which means that each upgrade package is configured for a specific model or vehicle. This customized upgrade method ensures the accuracy and effectiveness of the upgrade process. The configuration and application package are stored in the portable hardware through a TF card. This offline storage method can improve the efficiency and reliability of the upgrade process in environments where the network is unstable or unavailable. The user controls the upgrade process by pressing several buttons on the portable hardware. This intuitive operation method reduces the technical requirements for the user, allowing non-professionals to easily complete the upgrade operation;

[0171] In summary, you only need to plug the portable hardware into the vehicle's OBD port and press a button to upgrade the vehicle controller, without the need for professional basic knowledge training for diagnostic refresh. Moreover, this application is implemented based on offline portable hardware and does not require networking, so it can be used anywhere there is an upgrade requirement. In addition, the portable hardware is small in size, easy to carry, and does not require computer control; the application program of the portable hardware can be updated through buttons and TF cards, and the functional expansion is strong.

[0172] Embodiment three:

[0173] An embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the vehicle software version upgrade method of a portable hardware;

[0174] Wherein, the vehicle software version upgrade method of a portable hardware, if implemented in the form of a software functional unit and used as an independent product, can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0175] The above are preferred embodiments of the present invention. It should be noted that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A vehicle software version upgrade method for portable hardware, characterized in that: include: Inserting the portable hardware into the OBD port of the target vehicle; wherein the portable hardware is composed of a plurality of buttons and interactive components; By pressing the several buttons, the portable hardware is controlled to upgrade the software version of the vehicle controller in the target vehicle through the configuration and application package; wherein the configuration and application package is generated according to the vehicle information of the target vehicle and stored in the portable hardware through the TF card.

2. A vehicle software version upgrade method for portable hardware as claimed in claim 1, characterized in that: The portable hardware is composed of several buttons and interactive components, specifically: The portable hardware is composed of the plurality of buttons, the plurality of OBD interfaces, the plurality of indicator lights and the TF card slot; Among them, the several buttons are used to upgrade and restore the vehicle controller of the vehicle, the several OBD interfaces are used to draw power and monitor CAN messages, the several indicator lights are used to display the status of the portable hardware itself and the function execution status, and the TF card slot is used to place the TF card.

3. The vehicle software version upgrade method of portable hardware as claimed in claim 1, characterized in that: By pressing the plurality of buttons, the portable hardware is controlled to upgrade the software version of the vehicle controller in the target vehicle through the configuration and application package, specifically: By controlling the duration of pressing the plurality of buttons, the portable hardware is controlled to upgrade the software version of the vehicle controller in the target vehicle through the configuration and application package according to a preset scheme; The preset schemes include non-log upgrade, log upgrade, portable hardware self-upgrade and portable hardware reset.

4. A vehicle software version upgrade method for portable hardware as claimed in claim 3, characterized in that: The upgrade without logging is as follows: By short pressing the first button among the plurality of buttons, the portable hardware recognizes the TF card, and if the TF card exists, identifies the file name of the TF card according to the configuration and application package; wherein the configuration and application package includes a configuration file and a controller application program; If the file name of the TF card matches the preset name, the controller communication system of the target vehicle is upgraded according to the configuration and application package.

5. The vehicle software version upgrade method of portable hardware as claimed in claim 3, characterized in that: The record LOG upgrade is specifically as follows: By long pressing the first button among the plurality of buttons, the portable hardware recognizes the TF card, and if the TF card exists, identifies the file name of the TF card according to the configuration and application package; If the file name of the TF card matches the preset name, the controller communication system of the target vehicle is upgraded according to the configuration and application package, and the communication content and time of the controller communication system during the upgrade are written into the TF card.

6. The vehicle software version upgrade method of portable hardware as claimed in claim 3, characterized in that: The portable hardware self-upgrade is specifically: By long pressing a second button among the plurality of buttons, the portable hardware is enabled to identify the TF card, and if the TF card exists, the file name of the TF card is identified according to the configuration and application package; If the file name of the TF card matches the preset name, the portable hardware is automatically upgraded.

7. A vehicle software version upgrade method for portable hardware as claimed in claim 3, characterized in that: The portable hardware reset is specifically: By short pressing a second button among the plurality of buttons, the portable hardware is soft reset.

8. A portable hardware vehicle software version upgrade system, characterized in that: It includes a plurality of button devices, a plurality of OBD interface devices, a plurality of indicator light devices and a TF card slot device; The plurality of button devices are used to upgrade and restore the vehicle controller of the target vehicle according to the configuration and application package according to a preset scheme; wherein the preset scheme includes non-log upgrade, log upgrade, portable hardware self-upgrade and portable hardware reset; The plurality of OBD interface devices are used for drawing power and monitoring CAN messages; The plurality of indicator light devices are used to display the state of the portable hardware itself and the function execution status; The TF card slot device is used to place a TF card.

9. A vehicle software version upgrade system of portable hardware as claimed in claim 8, characterized in that: The plurality of key devices include a generating unit and an upgrading unit; The generating unit is used to enable the portable hardware to identify the TF card by short pressing the first button of the plurality of button devices, and to identify the file name of the TF card according to the configuration and application package when the TF card exists; wherein the configuration and application package includes a configuration file and a controller application program; The upgrade unit is used to upgrade the controller communication system of the target vehicle according to the configuration and application package if the file name of the TF card conforms to the preset name.

10. The vehicle software version upgrade system of portable hardware as claimed in claim 8, characterized in that: The plurality of key devices include an identification unit and a recording unit; The identification unit is used to enable the portable hardware to identify the TF card by long pressing the first button of the plurality of button devices, and to identify the file name of the TF card according to the configuration and application package when the TF card exists; The recording unit is used to upgrade the controller communication system of the target vehicle according to the configuration and application package if the file name of the TF card conforms to the preset name, and write the communication content and time of the controller communication system during the upgrade into the TF card.

11. A vehicle software version upgrade system of portable hardware as claimed in claim 8, characterized in that: The plurality of key devices include a long-press unit and a self-upgrade unit; The long-press unit is used to enable the portable hardware to identify the TF card by long-pressing the second button of the plurality of button devices, and to identify the file name of the TF card according to the configuration and application package when the TF card exists; The self-upgrade unit is used to self-upgrade the portable hardware if the file name of the TF card matches the preset name.

12. The vehicle software version upgrade system of portable hardware as claimed in claim 8, characterized in that: The plurality of key devices include a soft reset unit; Wherein, the soft reset unit is used to soft reset the portable hardware by short pressing the second button of the plurality of button devices.

13. A storage medium, characterized in that: The storage medium stores a computer program, which is called and executed by a computer to implement a vehicle software version upgrade method for a portable hardware as described in any one of claims 1 to 7 above.