Upgrading method and device, vehicle-mounted equipment, terminal equipment and storage medium

Through the OBD interface packet interaction between the vehicle-mounted equipment and the terminal equipment, the communication capabilities of the vehicle-mounted equipment are detected and determined, and the software upgrade is realized without disassembling, which solves the problem of cumbersome upgrade methods in the existing technology and improves efficiency and user experience.

CN119806581APending Publication Date: 2025-04-11PATEO CONNECT (NANJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411869950.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

The upgrade method of existing on-board equipment software is cumbersome, requiring dismantling the car, which consumes manpower and time, and the owner has complaints, which affects after-sales maintenance.

Method used

The message interaction between the vehicle-mounted equipment and the terminal equipment is carried out through the OBD interface, the communication capabilities of the vehicle-mounted equipment are detected, the response messages are generated, and the appropriate upgrade method is determined, so as to realize the software upgrade of the vehicle-mounted equipment without disassembly.

Benefits of technology

It simplifies the software upgrade method of on-board equipment, reduces manpower and time consumption, reduces car owner complaints, and improves after-sales maintenance efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119806581A_ABST
    Figure CN119806581A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an upgrading method and device, vehicle-mounted equipment, terminal equipment and a storage medium, and relates to the technical field of data processing. The method comprises the steps that a detection message from terminal equipment is received through an OBD interface of the vehicle-mounted equipment, the communication capacity of the vehicle-mounted equipment is detected, a response message is generated according to the communication capacity of the vehicle-mounted equipment and sent to the terminal equipment, and the response message is used for the terminal equipment to determine the upgrading mode of the vehicle-mounted equipment. And receiving an upgrading message from the terminal equipment through the OBD interface, and upgrading the vehicle-mounted equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to, but is not limited to, the technical field of software upgrades for vehicle-mounted equipment, and in particular to an upgrade method, apparatus, vehicle-mounted equipment, terminal equipment, and storage medium. Background Art

[0002] At present, when an unrecoverable software failure occurs on a vehicle's on-board central control, such as a black screen, the system cannot be turned on, or the system firmware upgrade fails, since the on-board central control is installed inside the vehicle, repairing the system failure generally requires going to a car sales service, spare parts, after-sales service and information feedback (Sale Survey Service Sparepart, 4S) store or factory to dismantle the vehicle and remove the central control hardware to perform a software upgrade and recovery on the on-board central control.

[0003] However, this method of dismantling the car for upgrading is labor-intensive and time-consuming, and car owners also have complaints about the method of dismantling the car. This method is not conducive to after-sales maintenance. It can be seen that the existing upgrading method is cumbersome. Summary of the invention

[0004] An embodiment of the present application provides an upgrade method, apparatus, vehicle-mounted device, terminal device and storage medium, wherein messages are exchanged between the vehicle-mounted device and the terminal device through the OBD interface, the vehicle-mounted device can know the communication capability of the vehicle-mounted device through detection, generate a response message and send it to the terminal device, so that the terminal device knows the communication capability of the vehicle-mounted device, thereby determining an upgrade method suitable for the communication capability for the vehicle-mounted device, and then realizing the upgrade of the software of the vehicle-mounted device without disassembling the device, thereby simplifying the software upgrade method of the vehicle-mounted device.

[0005] An embodiment of the present application provides an upgrade method, apparatus, vehicle-mounted device, terminal device and storage medium, wherein a response message is generated by the vehicle-mounted device according to whether the MCU and the MPU have communication capabilities, or the vehicle-mounted device generates a response message according to whether the wireless network module of the vehicle-mounted device has communication capabilities, so that the response message can be used to indicate whether the MCU and the MPU have communication capabilities or whether the wireless network module has communication capabilities, thereby providing data for determining the upgrade method.

[0006] An embodiment of the present application provides an upgrade method, apparatus, vehicle-mounted device, terminal device and storage medium, wherein the vehicle-mounted device further generates a response message according to whether the wireless network module of the vehicle-mounted device has communication capability, so that the response message can be used to indicate whether the wireless network module has communication capability, thereby providing data for determining the upgrade method.

[0007] An embodiment of the present application provides an upgrade method, apparatus, vehicle-mounted device, terminal device and storage medium, wherein the steps for performing software upgrades through the vehicle-mounted device for different upgrade methods are different, so that the interaction between the vehicle-mounted device and the terminal device can achieve OTA upgrades, U disk upgrades or forced line flashing.

[0008] An embodiment of the present application provides an upgrade method, apparatus, vehicle-mounted device, terminal device and storage medium, wherein an OTA upgrade package is received through a wireless network module, and an MPU triggers an OTA upgrade program, so that the vehicle-mounted device realizes OTA upgrade through interaction with the terminal device.

[0009] An embodiment of the present application provides an upgrade method, device, vehicle-mounted device, terminal device and storage medium, wherein the vehicle-mounted device enters the USB disk mode and uses the USB interface to obtain the USB disk upgrade package to implement the USB disk upgrade.

[0010] An embodiment of the present application provides an upgrade method, apparatus, vehicle-mounted device, terminal device and storage medium, wherein an upgrade message is received through the MCU, the MPU is forced to enter a upgrade mode by controlling the MPU hardware, and the vehicle-mounted device receives a forced line flash instruction through the USB, thereby enabling the vehicle-mounted device to achieve a forced line flash upgrade through interaction with the terminal device.

[0011] An embodiment of the present application provides an upgrade method, apparatus, vehicle-mounted device, terminal device and storage medium, wherein, by exchanging messages between the terminal device and the vehicle-mounted device through the OBD interface, the terminal device can know the communication capability of the vehicle-mounted device, thereby determining an upgrade method suitable for the communication capability for the vehicle-mounted device, and then realizing the upgrade of the software of the vehicle-mounted device without disassembling the device, thereby simplifying the software upgrade method of the vehicle-mounted device.

[0012] An embodiment of the present application provides an upgrade method, apparatus, vehicle-mounted device, terminal device and storage medium, wherein a response message is sent by the vehicle-mounted device to determine the upgrade method of the vehicle-mounted device, so that after receiving the response message, the terminal device can determine the upgrade method of the vehicle-mounted device according to the content indicated by the response message, thereby determining an upgrade method suitable for the vehicle-mounted device's own communication capability, so as to facilitate the vehicle-mounted device to complete the software upgrade.

[0013] An embodiment of the present application provides an upgrade method, apparatus, vehicle-mounted device, terminal device and storage medium, wherein, when the MCU and the MPU cannot communicate, the terminal device determines that the upgrade method of the vehicle-mounted device is USB forced wire flash, so that the vehicle-mounted device can be upgraded using the USB forced wire flash when the MCU and the MPU cannot communicate, thereby achieving a smooth upgrade of the vehicle-mounted device.

[0014] An embodiment of the present application provides an upgrade method, apparatus, vehicle-mounted equipment, terminal equipment and storage medium, wherein, when the MCU and the MPU are able to communicate, the terminal equipment determines the optional upgrade method of the vehicle-mounted equipment according to the communication capability of the wireless network module, and then determines the upgrade method of the vehicle-mounted equipment through the user's operation, so that the vehicle-mounted equipment can be smoothly upgraded according to the user's needs.

[0015] An embodiment of the present application provides an upgrade method, apparatus, vehicle-mounted equipment, terminal equipment and storage medium, wherein, by enabling the wireless network module to communicate with external devices, the user can select an upgrade method from the OTA upgrade method and the USB flash drive upgrade method to upgrade the software of the vehicle-mounted equipment, and an optional upgrade method is provided for the user to select.

[0016] An embodiment of the present application provides an upgrade method, apparatus, vehicle-mounted device, terminal device and storage medium, wherein, when the wireless network module does not have the ability to communicate with external devices, the user can choose an upgrade method from the USB flash drive upgrade method and the USB forced wire flash upgrade method to upgrade the software of the vehicle-mounted device, providing the user with an optional upgrade method for the user to choose.

[0017] An embodiment of the present application provides an upgrade method, device, vehicle-mounted device, terminal device and storage medium, wherein an OTA upgrade package is received through a wireless network module, and the MPU triggers the OTA upgrade program, so that the vehicle-mounted device realizes OTA upgrade through interaction with the terminal device; the vehicle-mounted device enters the U disk mode and uses the USB interface to obtain the U disk upgrade package for U disk upgrade; the upgrade message is received through the MCU, and the MPU is forced to enter the upgrade mode by controlling the MPU hardware, and the vehicle-mounted device receives the forced line brush instruction through the USB, so that the vehicle-mounted device realizes forced line brush upgrade through interaction with the terminal device. In this way, the steps for software upgrade according to different upgrade methods are different. Here, OTA upgrade, U disk upgrade or forced line brush can be realized through the interaction between the terminal device and the vehicle-mounted device.

[0018] To achieve at least one of the above-mentioned purposes, in a first aspect, an embodiment of the present application provides an upgrade method, which is applied to a vehicle-mounted device, comprising: receiving a detection message from a terminal device through the OBD interface of the vehicle-mounted device to detect the communication capability of the vehicle-mounted device; generating a response message according to the communication capability of the vehicle-mounted device, and sending it to the terminal device; wherein the response message is used by the terminal device to determine the upgrade method of the vehicle-mounted device; and receiving an upgrade message from the terminal device through the OBD interface to upgrade the vehicle-mounted device.

[0019] In the second aspect, an embodiment of the present application provides an upgrade method, which is applied to a terminal device, including: sending a detection message to the vehicle-mounted device through the OBD interface of the vehicle-mounted device; wherein the detection message is used by the vehicle-mounted device to detect the communication capability of the vehicle-mounted device to generate a response message; receiving the response message from the vehicle-mounted device; determining an upgrade method of the vehicle-mounted device based on the response message; generating an upgrade message based on the upgrade method, and sending it to the vehicle-mounted device, so that the vehicle-mounted device upgrades the vehicle-mounted device according to the upgrade method of the vehicle-mounted device.

[0020] In the third aspect, an embodiment of the present application provides an upgrading device, which is arranged on a vehicle-mounted device, including: a detection module, used to receive a detection message from a terminal device through the OBD interface of the vehicle-mounted device, and detect the communication capability of the vehicle-mounted device; a generation module, used to generate a response message according to the communication capability of the vehicle-mounted device, and send it to the terminal device; wherein the response message is used by the terminal device to determine the upgrading method of the vehicle-mounted device; an upgrading module, used to receive the upgrade message from the terminal device through the OBD interface, and upgrade the vehicle-mounted device.

[0021] In a fourth aspect, an embodiment of the present application provides an upgrade device, which is arranged in a terminal device, and includes: a first sending module, used to send a detection message to the vehicle-mounted device through the OBD interface of the vehicle-mounted device; wherein the detection message is used by the vehicle-mounted device to detect the communication capability of the vehicle-mounted device to generate a response message; a receiving module, used to receive the response message from the vehicle-mounted device; a determination module, used to determine the upgrade method of the vehicle-mounted device according to the response message; a second sending module, used to generate an upgrade message according to the upgrade method, and send it to the vehicle-mounted device, so that the vehicle-mounted device upgrades the vehicle-mounted device according to the upgrade method of the vehicle-mounted device.

[0022] In a fifth aspect, an embodiment of the present application provides a vehicle-mounted device, including a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the program, the steps in the method described in one or more of the above embodiments are implemented.

[0023] In a sixth aspect, an embodiment of the present application provides a device, including a memory and a processor, wherein the memory stores a computer program executable on the processor, and when the processor executes the program, the steps in the method described in one or more of the above embodiments are implemented.

[0024] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in one or more of the above embodiments.

[0025] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0027] Figure 1 A schematic diagram of the structure of an optional upgrade system provided in an embodiment of the present application;

[0028] Figure 2 A schematic diagram of an optional upgrade method provided in an embodiment of the present application;

[0029] Figure 3 A schematic diagram of the structure of an example of an optional upgrade system provided in an embodiment of the present application;

[0030] Figure 4 A flowchart of an example of an optional upgrade method provided in an embodiment of the present application;

[0031] Figure 5 A schematic diagram of an optional message format provided in an embodiment of the present application;

[0032] Figure 6 A schematic diagram of an optional upgrade method provided in an embodiment of the present application Figure 1 ;

[0033] Figure 7 A schematic diagram of an optional upgrade method provided in an embodiment of the present application Figure 2 ;

[0034] Figure 8 A schematic diagram of an optional upgrade device provided in an embodiment of the present application Figure 1 ;

[0035] Fig. 9 A schematic diagram of an optional upgrade device provided in an embodiment of the present application Figure 2 ;

[0036] Fig.10 A schematic diagram of the structure of an optional vehicle-mounted device provided in an embodiment of the present application;

[0037] Fig.11 A schematic diagram of the structure of an optional terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0039] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict. The terms "first / second / third" involved are merely used to distinguish similar objects and do not represent a specific order for the objects. It is understood that "first / second / third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0040] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing this application and are not intended to limit this application.

[0041] At present, when the infotainment system and / or instrument system of a vehicle's on-board equipment has an unrecoverable software failure such as a black screen, the system cannot be turned on, or the system firmware upgrade fails, since the infotainment system and / or instrument system of the on-board equipment is installed inside the vehicle, repairing the system failure generally requires going to a 4S shop or factory to dismantle the vehicle and remove the infotainment system and / or instrument system to perform a software upgrade and recovery on the infotainment system and / or instrument system of the on-board equipment.

[0042] However, the method of dismantling the car for upgrading consumes manpower and time. Car owners also have complaints about the method of dismantling the car, and this method is not conducive to after-sales maintenance.

[0043] In order to simplify the software upgrade method in the vehicle-mounted device, the embodiment of the present application provides an upgrade system. Figure 1 A schematic diagram of an optional upgrade system provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the upgrade system 100 may include: an in-vehicle device 11 and a terminal device 12; wherein,

[0044] The vehicle-mounted device 11 is a device including an infotainment system and / or an instrument system. The vehicle-mounted device 11 is provided with an on-board diagnostic system (OBD) interface and a USB interface for connecting to external devices. The terminal device 12 can establish a connection with the vehicle-mounted device 11 through the OBD interface to achieve communication.

[0045] The terminal device 12 is installed with a diagnostic tool for diagnosing the communication capability of the vehicle-mounted device 11. The terminal device 12 may be a personal computer, a tablet computer or a smart phone, and this embodiment of the present application does not specifically limit this.

[0046] Based on the above Figure 1 The upgrade system provided, the embodiment of the present application provides an upgrade method, Figure 2 A schematic diagram of an optional upgrade method provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the upgrade method may include:

[0047] S201: The terminal device sends a detection message to the vehicle-mounted device through the OBD interface of the vehicle-mounted device;

[0048] In order to simplify the software upgrade method of the vehicle-mounted device, in an embodiment of the present application, when an irrecoverable software failure such as a black screen, the system cannot be turned on, or the system firmware upgrade fails occurs in the software system of the vehicle-mounted device, the terminal device is connected through the OBD interface of the vehicle-mounted device to establish a communication connection between the vehicle-mounted device and the terminal device.

[0049] Diagnostic tool software is installed on the terminal device, so that the terminal device can send a detection message to the vehicle-mounted device through the OBD interface of the vehicle-mounted device. The detection message can be a message using the Controller Area Network (CAN) protocol, wherein the detection message is used by the vehicle-mounted device to detect the communication capability of the vehicle-mounted device to generate a response message.

[0050] S202: After receiving the detection message, the vehicle-mounted device detects the communication capability of the vehicle-mounted device;

[0051] In S202, the vehicle-mounted device receives a detection message from the terminal device, triggering detection of the communication capability of the vehicle-mounted device.

[0052] The communication capability may include whether a microcontroller unit (MCU) of the vehicle-mounted device and a microprocessor unit (MPU) of the vehicle-mounted device have communication capability, and may also include whether a wireless network module of the vehicle-mounted device has communication capability.

[0053] S203: The vehicle-mounted device generates a response message according to the communication capability of the vehicle-mounted device, and sends it to the terminal device;

[0054] Through the above S202, the vehicle-mounted device detects its own communication capability, thereby knowing its own communication capability. In S203, the vehicle-mounted device generates a response message according to the communication capability of the vehicle-mounted device. In this way, the response message can indicate whether the MCU of the vehicle-mounted device and the MPU of the vehicle-mounted device have communication capabilities and whether the wireless network module of the vehicle-mounted device has communication capabilities.

[0055] The vehicle-mounted device sends the generated response message to the terminal device, so that the terminal device knows whether the MCU of the vehicle-mounted device has the communication capability with the MPU of the vehicle-mounted device and whether the wireless network module of the vehicle-mounted device has the communication capability.

[0056] S204: The terminal device determines an upgrade method of the vehicle-mounted device according to the response message;

[0057] The response message is generated through the above S203. In S204, after receiving the response message, the terminal device determines the upgrade method of the vehicle-mounted device according to the response message.

[0058] That is to say, the terminal device knows through the response message whether the MCU of the vehicle-mounted device and the MPU of the vehicle-mounted device have communication capabilities and whether the wireless network module of the vehicle-mounted device has communication capabilities, so as to determine the upgrade method that matches the communication capabilities of the vehicle-mounted device.

[0059] Among them, the above-mentioned upgrade methods may include: an upgrade method using Over The Air (OTA) technology, an upgrade method using a USB flash drive, and an upgrade method using a USB forced flash line.

[0060] S205: The terminal device generates an upgrade message according to the upgrade method and sends it to the vehicle-mounted device;

[0061] S206: After receiving the upgrade message, the vehicle-mounted device upgrades the vehicle-mounted device.

[0062] In S205, after determining the upgrade method, the terminal device generates an upgrade message according to the upgrade method, and then sends the upgrade message to the vehicle-mounted device. In S206, after receiving the upgrade message, the vehicle-mounted device upgrades the software on the vehicle-mounted device.

[0063] Here, the way in which the vehicle-mounted device obtains the upgrade package is different for different upgrade methods, and the terminal device cooperates differently for different upgrade methods.

[0064] In this way, through the exchange of messages between the terminal device and the vehicle-mounted device through the OBD interface, the terminal device can know the communication capability of the vehicle-mounted device, thereby determining an upgrade method suitable for the communication capability for the vehicle-mounted device, and then realizing the upgrade of the vehicle-mounted device software without disassembling the device, thereby simplifying the software upgrade method of the vehicle-mounted device.

[0065] After detecting the communication capability of the vehicle-mounted device, in order to generate a response message according to the communication capability of the vehicle-mounted device, in an optional embodiment, S203 may include:

[0066] When the communication capability of the vehicle-mounted device indicates that the MCU of the vehicle-mounted device and the MPU of the vehicle-mounted device have communication capability, the vehicle-mounted device generates a response message according to the communication capability of the wireless network module of the vehicle-mounted device in the communication capability of the vehicle-mounted device;

[0067] When the communication capability of the vehicle-mounted device indicates that the MCU and the MPU do not have the communication capability, the vehicle-mounted device generates a response message for indicating that the MCU and the MPU do not have the communication capability.

[0068] It can be understood that after obtaining the communication capability of the vehicle-mounted device, when the communication capability of the vehicle-mounted device indicates that the MCU and the MPU have communication capability, that is, the MCU and the MPU of the vehicle-mounted device can communicate normally, it is necessary to further check the communication capability of the wireless network module of the vehicle-mounted device in the communication capability of the vehicle-mounted device, and then generate a response message according to the communication capability of the wireless network module of the vehicle-mounted device.

[0069] In addition, when the communication capability of the vehicle-mounted device indicates that the MCU and the MPU do not have the communication capability, that is, the MCU and the MPU of the vehicle-mounted device cannot communicate normally, the generated response message is used to indicate that the MCU and the MPU do not have the communication capability.

[0070] In this way, a response message is generated based on whether the MCU and MPU have communication capabilities, or a response message is generated based on whether the wireless network module of the vehicle-mounted equipment has communication capabilities, so that the response message can be used to indicate whether the MCU and MPU have communication capabilities or whether the wireless network module has communication capabilities, thereby providing data for determining the upgrade method.

[0071] In order to realize the generation of a response message according to the communication capability of the wireless network module of the vehicle-mounted device, in an optional embodiment, when the communication capability of the vehicle-mounted device indicates that the MCU and the MPU have the communication capability, the vehicle-mounted device generates a response message according to the communication capability of the wireless network module of the vehicle-mounted device in the communication capability of the vehicle-mounted device, which may include:

[0072] When the communication capability of the vehicle-mounted device indicates that the MCU and the MPU have the communication capability, and the wireless network module has the communication capability with the external device, the vehicle-mounted device generates a response message for indicating that the wireless network module has the communication capability with the external device;

[0073] When the communication capability of the vehicle-mounted device indicates that the MCU and the MPU have the communication capability and the wireless network module does not have the communication capability with the external device, the vehicle-mounted device generates a response message indicating that the wireless network module does not have the communication capability with the external device.

[0074] It can be understood that after further checking, the wireless network module of the vehicle-mounted device has the ability to communicate with external devices, that is, the vehicle-mounted device can communicate with external devices through its own wireless network module, so at this time, the response message generated by the vehicle-mounted device indicates that the wireless network module has the ability to communicate with external devices. In addition, the wireless network module of the vehicle-mounted device does not have the ability to communicate with external devices, that is, the vehicle-mounted device cannot communicate with external devices through its own wireless network module, so at this time, the response message generated by the vehicle-mounted device indicates that the wireless network module does not have the ability to communicate with external devices.

[0075] In this way, a response message is further generated according to whether the wireless network module of the vehicle-mounted device has the communication capability, so that the response message can be used to indicate whether the wireless network module has the communication capability, thereby providing data for determining the upgrade method.

[0076] After receiving the response message, in order to determine the upgrade mode, in an optional embodiment, S204 may include:

[0077] The terminal device determines the upgrade mode of the vehicle-mounted device according to the communication capability of the vehicle-mounted device indicated in the response message.

[0078] It can be understood that after receiving the response message, the terminal device determines the upgrade method of the vehicle-mounted equipment according to the content indicated by the response message. Here, it should be noted that the upgrade method that can be selected is different due to the different communication capabilities of the vehicle-mounted equipment, so it is necessary to determine the upgrade method of the vehicle-mounted equipment based on the communication capabilities of the vehicle-mounted equipment.

[0079] In this way, after receiving the response message, the terminal device can determine the upgrade method of the vehicle-mounted device according to the content indicated by the response message, thereby determining an upgrade method suitable for the vehicle-mounted device's own communication capabilities, so that the vehicle-mounted device can complete the software upgrade.

[0080] Furthermore, in order to determine the upgrade mode of the vehicle-mounted device, in an optional embodiment, the terminal device determines the upgrade mode of the vehicle-mounted device according to the communication capability of the vehicle-mounted device indicated in the response message, which may include:

[0081] When the response message indicates that the MCU of the vehicle-mounted device and the MPU of the vehicle-mounted device do not have the communication capability, the terminal device determines that the upgrade mode of the vehicle-mounted device is the USB forced line flash upgrade mode.

[0082] It can be understood that when the response message indicates that the MCU and MPU do not have the ability to communicate, it means that the MCU and MPU cannot communicate with each other, so the vehicle-mounted device cannot choose the OTA upgrade method and the USB flash drive upgrade method. Therefore, the terminal device determines that the upgrade method of the vehicle-mounted device is the USB forced line flash upgrade method.

[0083] In this way, when the MCU and MPU cannot communicate, the terminal device determines that the upgrade method of the vehicle-mounted device is USB forced wire flash, so that the vehicle-mounted device can be upgraded using USB forced wire flash when the MCU and MPU cannot communicate, thereby realizing the smooth upgrade of the vehicle-mounted device.

[0084] In addition, in order to determine the upgrade mode of the vehicle-mounted device, in an optional embodiment, the terminal device determines the upgrade mode of the vehicle-mounted device according to the response message, which may include:

[0085] When the response message indicates that the MCU of the vehicle-mounted device has the communication capability with the MPU of the vehicle-mounted device, the terminal device determines the optional upgrade mode of the vehicle-mounted device according to the communication capability of the wireless network module of the vehicle-mounted device;

[0086] The terminal device determines an upgrade mode of the in-vehicle device from the optional upgrade modes in response to an operation on the optional upgrade modes of the in-vehicle device.

[0087] It can be understood that when the response message indicates that the MCU and MPU have the ability to communicate, the terminal device needs to further determine the optional upgrade method of the vehicle-mounted device based on the communication capability of the wireless network module of the vehicle-mounted device. In this way, the user can operate the optional upgrade method of the vehicle-mounted device, so that the terminal device responds to the operation of the optional upgrade method of the vehicle-mounted device and determines the upgrade method of the vehicle-mounted device from the optional upgrade methods.

[0088] That is, after the terminal device determines the optional upgrade methods, the terminal device can determine the upgrade method of the vehicle-mounted device from the optional upgrade methods through the user's operation.

[0089] In this way, when the MCU and MPU are able to communicate, the terminal device determines the optional upgrade method of the vehicle-mounted equipment based on the communication capability of the wireless network module, and then determines the upgrade method of the vehicle-mounted equipment through the user's operation, so that the vehicle-mounted equipment can be smoothly upgraded according to the user's needs.

[0090] In order to determine the optional upgrade mode of the vehicle-mounted device, in an optional embodiment, the terminal device determines the optional upgrade mode of the vehicle-mounted device according to the communication capability of the wireless network module of the vehicle-mounted device, which may include:

[0091] When the response message indicates that the wireless network module has the ability to communicate with the external device, the terminal device determines that the optional upgrade methods of the vehicle-mounted device are: an OTA upgrade method and a USB flash drive upgrade method.

[0092] It can be understood that the response message indicates that the wireless network module has the ability to communicate with external devices, that is, the vehicle-mounted device can communicate with external devices through its own wireless network module. The terminal device determines that the optional upgrade methods of the vehicle-mounted device can be OTA upgrade method and U disk upgrade method, that is, the OTA upgrade package can be downloaded through the wireless network module, or the U disk upgrade package can be obtained from the U disk by utilizing the interaction between the MCU and the MPU, thereby realizing software upgrade.

[0093] In this way, when the wireless network module has the ability to communicate with external devices, the user can choose an upgrade method from the OTA upgrade method and the USB flash drive upgrade method to upgrade the software of the vehicle-mounted device, providing the user with an optional upgrade method for the user to choose.

[0094] In addition, in order to determine the optional upgrade mode of the vehicle-mounted device, in an optional embodiment, the terminal device determines the optional upgrade mode of the vehicle-mounted device according to the communication capability of the wireless network module of the vehicle-mounted device, which may include:

[0095] When the response message indicates that the wireless network module does not have the ability to communicate with the external device, the terminal device determines that the optional upgrade methods of the vehicle-mounted device are: a USB flash drive upgrade method and a USB forced line flash upgrade method.

[0096] It can be understood that the response message indicates that the wireless network module does not have the ability to communicate with external devices, that is, the vehicle-mounted device cannot communicate with external devices through its own wireless network module, but can realize communication between the MCU and the MPU. The terminal device determines that the optional upgrade method of the vehicle-mounted device can be an upgrade method using a USB flash drive and an upgrade method using a USB forced line flash. That is, the USB flash drive upgrade package can be obtained from the USB flash drive through the interaction between the MCU and the MPU, and the terminal device can also obtain the forced line flash instruction through the USB interface, thereby realizing software upgrade.

[0097] In this way, when the wireless network module does not have the ability to communicate with external devices, the user can choose an upgrade method from the USB flash drive upgrade method and the USB forced wire flash upgrade method to upgrade the software of the vehicle-mounted device, providing the user with optional upgrade methods for the user to choose.

[0098] In order to upgrade the vehicle-mounted device according to the determined upgrade method, in an optional embodiment, S205 may include:

[0099] When the upgrade mode is OTA, the terminal device generates an upgrade message according to the upgrade mode and sends it to the vehicle-mounted device. The OTA upgrade package is sent to the vehicle-mounted device through the wireless network module of the vehicle-mounted device. The vehicle-mounted device receives the OTA upgrade package through the wireless network module of the vehicle-mounted device, and the vehicle-mounted device is OTA upgraded using the OTA upgrade package.

[0100] In the case where the upgrade method is a U disk upgrade method, the terminal device generates an upgrade message according to the upgrade method and sends it to the vehicle-mounted device. The vehicle-mounted device enters the U disk upgrade mode, sends a first prompt message to the terminal device, connects the U disk through the USB interface of the vehicle-mounted device to obtain a U disk upgrade package, and uses the U disk upgrade package to perform a U disk upgrade on the vehicle-mounted device;

[0101] When the upgrade method is USB forced wire flash, the terminal device generates an upgrade message according to the upgrade method and sends it to the vehicle-mounted device. The vehicle-mounted device enters the forced upgrade mode and sends a second prompt message to the terminal device. The terminal device sends a forced wire flash instruction to the vehicle-mounted device through the USB interface of the vehicle-mounted device. The vehicle-mounted device receives the forced wire flash instruction from the terminal device to perform a forced upgrade.

[0102] It can be understood that when the terminal device determines to adopt the OTA upgrade method, it generates an upgrade message and sends it to the vehicle-mounted device. In addition, the terminal device sends the OTA upgrade package to the vehicle-mounted device through the wireless network module of the vehicle-mounted device, so that the vehicle-mounted device uses the OTA upgrade package to perform OTA upgrade on the software system of the vehicle-mounted device.

[0103] When the terminal device determines to adopt the U disk upgrade method, it generates an upgrade message and sends it to the vehicle-mounted device. After receiving the upgrade message, the vehicle-mounted device enters the U disk upgrade mode and sends a first prompt message to the terminal device, wherein the first prompt message is used to prompt the user to insert the U disk. After receiving the first prompt message, the terminal device connects the U disk through the USB interface of the vehicle-mounted device, obtains the U disk upgrade package from the U disk, and then uses the U disk upgrade package to perform the U disk upgrade.

[0104] When the terminal device determines to adopt the upgrade method of USB forced line flash, it generates an upgrade message and sends it to the vehicle-mounted device. After receiving the upgrade message, the vehicle-mounted device enters the forced upgrade mode and sends a second prompt message to the terminal device, wherein the second prompt message is used to indicate that the vehicle-mounted device has entered the forced upgrade mode. After receiving the second prompt message, the terminal device sends a forced line flash instruction to the vehicle-mounted device through its own USB interface, so that the vehicle-mounted device is forced to upgrade according to the forced line flash instruction.

[0105] In this way, the steps for software upgrade of the vehicle-mounted device are different for different upgrade methods. Here, OTA upgrade, USB flash drive upgrade or forced line flash can be achieved through the interaction between the vehicle-mounted device and the terminal device.

[0106] With respect to the above OTA upgrade, in an optional embodiment, the vehicle-mounted device receives the OTA upgrade package through the wireless network module of the vehicle-mounted device, and performs OTA upgrade on the vehicle-mounted device using the OTA upgrade package, which may include:

[0107] The vehicle-mounted device receives the OTA upgrade package through the wireless network module and sends it to the MPU of the vehicle-mounted device;

[0108] After receiving the OTA upgrade package, the vehicle-mounted device triggers the OTA upgrade program through the MPU to upgrade the vehicle-mounted device.

[0109] It can be understood that the vehicle-mounted device receives the OTA upgrade package through the wireless network module. Since the wireless network module is connected to the MPU, after the wireless network module receives the OTA upgrade package, it sends it to the MPU. After the MPU receives the OTA upgrade package, it triggers the OTA upgrade program to upgrade the vehicle-mounted device.

[0110] In this way, the OTA upgrade package is received through the wireless network module, and the MPU triggers the OTA upgrade program, so that the vehicle-mounted device realizes OTA upgrade through interaction with the terminal device.

[0111] Furthermore, in order to implement the forced wire-flash upgrade, in an optional embodiment, the vehicle-mounted device enters the forced upgrade mode, receives the forced wire-flash instruction from the terminal device, and performs the forced wire-flash upgrade on the vehicle-mounted device, which may include:

[0112] After receiving the upgrade message, the vehicle-mounted device controls the MPU hardware of the vehicle-mounted device through the MCU of the vehicle-mounted device to make the MPU enter the forced upgrade mode, and sends the second prompt information to the terminal device;

[0113] The vehicle-mounted device receives a forced wire-flash instruction from the terminal device to perform a forced upgrade, which may include: the vehicle-mounted device receives a forced wire-flash instruction from the terminal device through a USB interface to perform a forced wire-flash upgrade.

[0114] It can be understood that after receiving the upgrade message, the MCU of the vehicle-mounted device controls the MPU hardware of the vehicle-mounted device to make the MPU enter the forced upgrade mode, and sends a second prompt message to the terminal device to prompt the terminal device that the vehicle-mounted device has entered the forced upgrade mode.

[0115] In addition, the vehicle-mounted device receives a forced wire flash command from the terminal device through the USB interface, and performs a forced wire flash upgrade according to the forced wire flash command.

[0116] In this way, the upgrade message is received by the MCU, and the MPU is forced to enter the upgrade mode by controlling the MPU hardware. The vehicle-mounted device receives the forced line flash command through the USB, so that the vehicle-mounted device can realize the forced line flash upgrade through interaction with the terminal device.

[0117] The following examples are used to illustrate the upgrade method described in one or more of the above embodiments.

[0118] This example uses the vehicle's OBD universal hardware interface and custom CAN message messages. When an unrecoverable software failure such as a black screen, system startup failure, or system firmware upgrade failure occurs in the central control system of the vehicle-mounted device, the diagnostic tool software on the personal computer (PC) sends a custom CAN message message to the vehicle's OBD interface to implement software upgrade and recovery of the central control system of the vehicle-mounted device. This can avoid dismantling the vehicle or the central control hardware to achieve upgrade and repair, improve the efficiency of after-sales maintenance, and reduce customer complaints.

[0119] At present, all intelligent network cars are equipped with a central control of intelligent network-connected vehicle equipment. The central control provides an operation interface for users through the connected display screen. During normal use, the central control may have the following abnormal situations:

[0120] 1. The display software is abnormal and causes a black screen

[0121] 2. The system cannot boot

[0122] 3. System firmware upgrade failed

[0123] 4. The touch screen cannot be touched

[0124] Among them, the above-mentioned abnormalities may not be restored by restarting the central control system and can only be restored by reflashing the central control system software.

[0125] This example is applicable to the above scenario. After an unrecoverable software exception occurs, a customized CAN message can be sent through the vehicle's OBD interface to upgrade the central control software and repair the exception.

[0126] Figure 3 A schematic diagram of an example of an optional upgrade system provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the upgrade system 300 may include: a vehicle-mounted central control 31; wherein the vehicle-mounted central control 31 may include: an MPU 311, an MCU 312 and a 4G module 313; the vehicle-mounted central control 31 is also provided with a USB interface 314, a CAN interface 315, a vehicle CAN line 316 and an OBD interface 317.

[0127] Among them, the vehicle-mounted central control 31 hardware includes two main control chips, MPU311 and MCU312. MPU311 and MCU312 communicate data through a universal asynchronous receiver / transmitter (UART) serial port connection. MCU312 is connected to the vehicle's CAN line 316 network through a CAN interface 315, and the vehicle's OBD interface 317 is also connected to the vehicle's CAN line 316 network.

[0128] CAN messages are sent to the vehicle CAN line 316 network through the OBD interface 317, and the message messages on the vehicle CAN line 316 network can be received by all controllers connected to the vehicle CAN line 316; similarly, the message messages sent by the on-board central control 31 to the vehicle CAN line 316 network can also be received by all devices connected to the vehicle CAN line 316.

[0129] The vehicle-mounted central control 31 provides a USB interface 314 and has networking function, and can perform local U disk system upgrades via USB, and can also perform OTA online upgrades via the network.

[0130] Figure 4 A flowchart of an example of an optional upgrade method provided in an embodiment of the present application is shown as follows: Figure 4 As shown, the upgrade method may include:

[0131] Example 1: When the vehicle has an unrecoverable black screen or cannot be started, connect the PC to the vehicle's OBD interface and the vehicle's central control performs the following steps:

[0132] S401: receiving a vehicle CAN network message;

[0133] S402: Determine whether it is a CAN message upgrade? If yes, execute S403; if no, execute S404;

[0134] S403: Determine whether it is an upgrade detection message? If yes, execute S405; if no, execute S406;

[0135] S404: The MPU processes other messages.

[0136] S405: MCU receives the message and executes S407;

[0137] S406: Determine whether it is a USB flash drive upgrade message? If yes, execute S408; if no, execute S409;

[0138] S407: Determine whether the heartbeat communication between MCU and MPU is normal? If yes, execute S410; if no, execute S411;

[0139] S408: The MPU triggers the central control system to enter the USB flash drive upgrade mode, and executes S412;

[0140] S409: Determine whether it is a hardware mandatory upgrade message? If yes, execute S413; if no, execute S414;

[0141] S410: Is the MPU checking the vehicle network normal? If yes, execute S415; if no, execute S416;

[0142] S411: MCU responds with a message that "USB forced line flash" needs to be executed.

[0143] S412: MCU replies with a message "the system enters the USB flash drive upgrade mode" and executes S417;

[0144] S413: MCU triggers the MPU to enter the hardware forced upgrade mode and executes S418;

[0145] S414: Determine whether it is an OTA upgrade message? Execute S419;

[0146] S415: The MPU replies with a message "MPU network is normal".

[0147] S416: The MPU replies with an "MPU network abnormality" message.

[0148] S417: Is the upgrade USB disk inserted? If yes, execute S420; if no, execute S417;

[0149] S418: The MCU replies with a message "the system enters the forced upgrade mode" and executes S421;

[0150] S419: The MPU enters the OTA upgrade mode and executes S422;

[0151] S420: Perform USB flash drive upgrade and execute S423;

[0152] S421: Determine whether to insert the USB cable for burning? If yes, execute S424; if no, execute S421;

[0153] S422: The MCU replies with a message "the system enters OTA upgrade mode" and executes S423.

[0154] S423: Determine whether the upgrade is completed? If yes, execute S425; if no, execute S423;

[0155] S424: Perform strong upgrade and burn-in, and execute S423;

[0156] S425: The MPU replies with an "upgrade completed" message.

[0157] That is to say, first, send an upgrade detection message to the vehicle's CAN network through the standard CAN diagnostic tool on the PC to detect the current status of the vehicle's central control software, and get the following:

[0158] If the central control system MCU and MPU can communicate normally: after receiving the CAN message, the central control MPU software first detects whether the system network is normal. If the network is normal, it replies the normal CAN message of the MPU network to the diagnostic tool, and the user chooses whether to perform OTA upgrade system or USB flash drive upgrade system to restore the vehicle computer; if the user chooses OTA recovery, the OTA upgrade message is sent to the central control through the diagnostic tool; after receiving the OTA upgrade message, the central control MPU triggers the MPU's OTA upgrade program for upgrade and recovery.

[0159] If the central control system MCU and MPU can communicate normally: After receiving the CAN message, the central control MPU software detects the system network abnormality, and replies the CAN message of the MPU network abnormality to the diagnostic tool. The user chooses whether to perform U disk upgrade recovery or USB forced line flash recovery. The following two situations can be obtained:

[0160] If the user sends a USB flash drive upgrade message through the diagnostic tool: After receiving the message, the central control MPU triggers the system to enter recovery (recovery) to execute the USB flash drive upgrade, and replies to the PC diagnostic tool with a message that the system enters the USB flash drive upgrade mode to prompt the user to insert the USB flash drive for automatic upgrade.

[0161] If the user sends a USB forced upgrade message through the diagnostic tool: After receiving the message, the central control MCU directly puts the MPU into hardware forced upgrade mode by pulling the MPU hardware. The MCU replies to the PC diagnostic tool with a message that the system has entered forced upgrade mode. The user connects the USB cable of the vehicle central control to the PC for forced line flashing.

[0162] If the central control system does not work: the MCU receives the diagnostic message and determines that the communication with the central control MPU is abnormal. The MCU replies with a USB forced line flash message to the diagnostic tool. The user sends a USB forced upgrade message through the diagnostic tool. After receiving the message, the central control MCU directly pulls the MPU hardware to make the MPU enter the hardware forced upgrade mode. The MCU replies with a message that the system has entered the forced upgrade mode to the PC diagnostic tool. The user connects the USB cable of the vehicle-mounted central control to the PC for forced line flash.

[0163] After the central control upgrade and recovery is completed, an upgrade success message is sent to the diagnostic tool.

[0164] Example 2:

[0165] The steps in Example 1 above are also applicable to system software upgrades when the vehicle's central control is completely normal, and can provide another way to trigger the upgrade process for 4S stores or factories.

[0166] Figure 5 A schematic diagram of an optional message format provided in an embodiment of the present application, such as Figure 5 As shown, the message message defined in this example is generated based on the standard CAN protocol. The message uses a group of messages consisting of 8 bytes. The message format includes:

[0167] Message code 1 and message code 2: define the type of message;

[0168] Data length: refers to the length of the valid data sent;

[0169] Data: Data consists of 3 bytes;

[0170] Check digit: The check digit is obtained by performing a specific calculation on the data bits;

[0171] Data end bit: The data end bit is represented by a specific character.

[0172] In this example, when an abnormality occurs in the vehicle's central control, the vehicle's central control upgrade can be triggered through the OBD interface to avoid dismantling the vehicle for repair; the optional upgrade mode of the vehicle computer can be detected through the OBD interface.

[0173] Through the above examples, the difficulty of system recovery and repair in the event of an abnormality in the vehicle central control is reduced; a method is provided to facilitate car manufacturers or 4S stores to upgrade the vehicle central control after sales.

[0174] An embodiment of the present application provides an upgrade method, in which messages are exchanged between a vehicle-mounted device and a terminal device through an OBD interface. The vehicle-mounted device can know the communication capability of the vehicle-mounted device through detection, and generates a response message to send to the terminal device, so that the terminal device knows the communication capability of the vehicle-mounted device, thereby determining an upgrade method suitable for the communication capability for the vehicle-mounted device, and then realizing the upgrade of the software of the vehicle-mounted device without disassembling the device, thereby simplifying the software upgrade method of the vehicle-mounted device.

[0175] The above upgrade method will be described below from the perspective of upgrading each device deployed in the system.

[0176] First, the upgrade method is described from the vehicle-mounted device side.

[0177] The present application embodiment provides an upgrade method, which is applied to a vehicle-mounted device. Figure 6 A schematic diagram of an optional upgrade method provided in an embodiment of the present application Figure 1 ,like Figure 6 As shown, the upgrade method may include:

[0178] S601: receiving a detection message from a terminal device through an OBD interface of the vehicle-mounted device to detect the communication capability of the vehicle-mounted device;

[0179] S602: Generate a response message according to the communication capability of the vehicle-mounted device and send it to the terminal device;

[0180] The response message is used by the terminal device to determine the upgrade mode of the vehicle-mounted device;

[0181] S603: Receive an upgrade message from the terminal device through the OBD interface to upgrade the vehicle-mounted device.

[0182] In an optional embodiment, S602 may include: when the communication capability of the vehicle-mounted device indicates that the MCU of the vehicle-mounted device and the MPU of the vehicle-mounted device have the communication capability, generating a response message according to the communication capability of the wireless network module of the vehicle-mounted device in the communication capability of the vehicle-mounted device; when the communication capability of the vehicle-mounted device indicates that the MCU and the MPU do not have the communication capability, generating a response message for indicating that the MCU and the MPU do not have the communication capability.

[0183] In an optional embodiment, when the communication capability of the vehicle-mounted device indicates that the MCU and the MPU have the communication capability, a response message is generated according to the communication capability of the wireless network module of the vehicle-mounted device in the communication capability of the vehicle-mounted device, including: when the communication capability of the vehicle-mounted device indicates that the MCU and the MPU have the communication capability, and the wireless network module has the communication capability with an external device, a response message is generated to indicate that the wireless network module has the communication capability with an external device; when the communication capability of the vehicle-mounted device indicates that the MCU and the MPU have the communication capability, and the wireless network module does not have the communication capability with an external device, a response message is generated to indicate that the wireless network module does not have the communication capability with an external device.

[0184] In an optional embodiment, the vehicle-mounted device is upgraded by receiving an upgrade message from a terminal device through an OBD interface, including: when the upgrade method is an OTA upgrade method, receiving an OTA upgrade package through a wireless network module of the vehicle-mounted device, and performing an OTA upgrade on the vehicle-mounted device using the OTA upgrade package; when the upgrade method is a USB flash drive upgrade method, entering a USB flash drive upgrade mode, and connecting a USB flash drive through a USB interface of the vehicle-mounted device to obtain a USB flash drive upgrade package, and performing a USB flash drive upgrade on the vehicle-mounted device using the USB flash drive upgrade package; when the upgrade method is a USB forced wire flash upgrade method, entering a forced upgrade mode, receiving a forced wire flash instruction from the terminal device, and performing a forced upgrade on the vehicle-mounted device.

[0185] In an optional embodiment, an OTA upgrade package is received through a wireless network module of the vehicle-mounted device, and the vehicle-mounted device is OTA upgraded using the OTA upgrade package, including: receiving the OTA upgrade package through the wireless network module and sending it to the MPU of the vehicle-mounted device; triggering the OTA upgrade program through the MPU after receiving the OTA upgrade package to upgrade the vehicle-mounted device.

[0186] In an optional embodiment, a U disk upgrade mode is entered, and a U disk is connected through the USB interface of the vehicle-mounted device to obtain a U disk upgrade package, and the U disk upgrade package is used to perform a U disk upgrade on the vehicle-mounted device, including: entering a U disk upgrade mode, sending a first prompt message to the terminal device; wherein the first prompt message is used to prompt the user to insert the U disk; connecting the U disk through the USB interface of the vehicle-mounted device to obtain a U disk upgrade package, and using the U disk upgrade package to perform a U disk upgrade on the vehicle-mounted device.

[0187] In an optional embodiment, a forced upgrade mode is entered, and a forced wire flash instruction from a terminal device is received to perform a forced wire flash upgrade on the vehicle-mounted device, including: after receiving the upgrade message, the MCU of the vehicle-mounted device controls the MPU hardware of the vehicle-mounted device to make the MPU enter the forced upgrade mode, and sends a second prompt message to the terminal device; wherein the second prompt message is used to indicate that the vehicle-mounted device has entered the forced upgrade mode; and a forced wire flash instruction is received from the terminal device through a USB interface to perform a forced wire flash upgrade on the vehicle-mounted device.

[0188] Secondly, the above upgrade method is described from the terminal device side.

[0189] The present application embodiment provides an upgrade method, which is applied to a terminal device. Figure 7 A schematic diagram of an optional upgrade method provided in an embodiment of the present application Figure 2 ,like Figure 7 As shown, the upgrade method may include:

[0190] S701: Sending a detection message to the vehicle-mounted device through the OBD interface of the vehicle-mounted device;

[0191] Among them, the detection message is used by the vehicle-mounted device to detect the communication capability of the vehicle-mounted device to generate a response message;

[0192] S702: receiving a response message from the vehicle-mounted device;

[0193] S703: Determine an upgrade method for the vehicle-mounted device according to the response message;

[0194] S704: Generate an upgrade message according to the upgrade method, and send it to the vehicle-mounted device, so that the vehicle-mounted device upgrades the vehicle-mounted device according to the upgrade method of the vehicle-mounted device.

[0195] In an optional embodiment, S703 may include: determining an upgrade method of the vehicle-mounted device according to the communication capability of the vehicle-mounted device indicated in the response message.

[0196] In an optional embodiment, the upgrade method of the vehicle-mounted device is determined according to the communication capability of the vehicle-mounted device indicated in the response message, including: when the response message indicates that the MCU of the vehicle-mounted device and the MPU of the vehicle-mounted device do not have communication capability, determining that the upgrade method of the vehicle-mounted device is a USB forced line flash upgrade method.

[0197] In an optional embodiment, S703 may include: when the response message indicates that the MCU of the vehicle-mounted device has the communication capability with the MPU of the vehicle-mounted device, determining the optional upgrade method of the vehicle-mounted device according to the communication capability of the wireless network module of the vehicle-mounted device; in response to the operation of the optional upgrade method of the vehicle-mounted device, determining the upgrade method of the vehicle-mounted device from the optional upgrade methods.

[0198] In an optional embodiment, an optional upgrade method for the vehicle-mounted device is determined based on the communication capability of the wireless network module of the vehicle-mounted device, including: when the response message indicates that the wireless network module has the ability to communicate with an external device, determining the optional upgrade method for the vehicle-mounted device as: OTA upgrade method and U disk upgrade method.

[0199] In an optional embodiment, an optional upgrade method for the vehicle-mounted device is determined based on the communication capability of the wireless network module of the vehicle-mounted device, including: when the response message indicates that the wireless network module does not have the ability to communicate with an external device, determining the optional upgrade methods for the vehicle-mounted device as: a U disk upgrade method and a USB forced line flash upgrade method.

[0200] In an optional embodiment, S704 may include: when the upgrade method is OTA, generating an upgrade message according to the upgrade method and sending it to the vehicle-mounted device, sending the OTA upgrade package to the vehicle-mounted device through the wireless network module of the vehicle-mounted device, so that the vehicle-mounted device uses the OTA upgrade package to perform OTA upgrade on the vehicle-mounted device; when the upgrade method is USB flash drive upgrade, generating an upgrade message according to the upgrade method and sending it to the vehicle-mounted device, receiving a first prompt message from the vehicle-mounted device, so that the vehicle-mounted device uses the USB flash drive upgrade package to perform USB flash upgrade on the vehicle-mounted device; wherein the first prompt message is used to prompt the user to insert the USB flash drive; when the upgrade method is USB forced wire flash upgrade, after receiving the second prompt message, sending a forced wire flash instruction to the vehicle-mounted device through the USB interface of the vehicle-mounted device, so that the vehicle-mounted device performs a forced wire flash upgrade on the vehicle-mounted device according to the forced wire flash instruction; wherein the second prompt message is used to indicate that the vehicle-mounted device has entered the forced upgrade mode.

[0201] Based on the foregoing embodiments, an embodiment of the present application provides an upgrading device, which includes the units included and the modules included in the units, which can be implemented by a processor in a computer device; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.

[0202] The present application also provides an upgrade device, which is arranged in a vehicle-mounted device. Figure 8 A schematic diagram of the structure of an upgrade device provided in an embodiment of the present application Figure 1 ,like Figure 8 As shown, the device 800 includes: a detection module 81, a generation module 82 and an upgrade module 83, wherein:

[0203] The detection module 81 is used to receive the detection message from the terminal device through the OBD interface of the vehicle-mounted device and detect the communication capability of the vehicle-mounted device;

[0204] The generating module 82 is used to generate a response message according to the communication capability of the vehicle-mounted device and send it to the terminal device; wherein the response message is used by the terminal device to determine the upgrade mode of the vehicle-mounted device;

[0205] The upgrade module 83 is used to receive the upgrade message from the terminal device through the OBD interface to upgrade the vehicle-mounted device.

[0206] In an optional embodiment, the generation module 82 is specifically used to: when the communication capability of the vehicle-mounted device indicates that the MCU of the vehicle-mounted device and the MPU of the vehicle-mounted device have the communication capability, generate a response message according to the communication capability of the wireless network module of the vehicle-mounted device in the communication capability of the vehicle-mounted device; when the communication capability of the vehicle-mounted device indicates that the MCU and the MPU do not have the communication capability, generate a response message for indicating that the MCU and the MPU do not have the communication capability.

[0207] In an optional embodiment, when the communication capability of the vehicle-mounted device indicates that the MCU and the MPU have the communication capability, the generation module 82 generates a response message according to the communication capability of the wireless network module of the vehicle-mounted device in the communication capability of the vehicle-mounted device, including: when the communication capability of the vehicle-mounted device indicates that the MCU and the MPU have the communication capability, and the wireless network module has the communication capability with an external device, generating a response message for indicating that the wireless network module has the communication capability with an external device; when the communication capability of the vehicle-mounted device indicates that the MCU and the MPU have the communication capability, and the wireless network module does not have the communication capability with an external device, generating a response message for indicating that the wireless network module does not have the communication capability with an external device.

[0208] In an optional embodiment, the upgrade module 83 is specifically used for: when the upgrade method is OTA, receiving the OTA upgrade package through the wireless network module of the vehicle-mounted device, and using the OTA upgrade package to perform OTA upgrade on the vehicle-mounted device; when the upgrade method is USB upgrade, entering USB upgrade mode, and connecting the USB flash drive through the USB interface of the vehicle-mounted device to obtain the USB flash drive upgrade package, and using the USB flash drive upgrade package to perform USB upgrade on the vehicle-mounted device; when the upgrade method is USB forced wire flash upgrade, entering forced upgrade mode, receiving forced wire flash instructions from the terminal device, so as to force upgrade the vehicle-mounted device.

[0209] In an optional embodiment, the upgrade module 83 receives the OTA upgrade package through the wireless network module of the vehicle-mounted device, and uses the OTA upgrade package to perform OTA upgrade on the vehicle-mounted device, including: receiving the OTA upgrade package through the wireless network module and sending it to the MPU of the vehicle-mounted device; triggering the OTA upgrade program through the MPU after receiving the OTA upgrade package to upgrade the vehicle-mounted device.

[0210] In an optional embodiment, the upgrade module 83 enters the U disk upgrade mode, and connects the U disk through the USB interface of the vehicle-mounted device to obtain the U disk upgrade package, and uses the U disk upgrade package to perform a U disk upgrade on the vehicle-mounted device, including: entering the U disk upgrade mode, sending a first prompt message to the terminal device; wherein the first prompt message is used to prompt the user to insert the U disk; connecting the U disk through the USB interface of the vehicle-mounted device to obtain the U disk upgrade package, and using the U disk upgrade package to perform a U disk upgrade on the vehicle-mounted device.

[0211] In an optional embodiment, the upgrade module 83 enters a forced upgrade mode and receives a forced wire flash instruction from a terminal device to perform a forced wire flash upgrade on the vehicle-mounted device, including: after receiving the upgrade message, the MCU of the vehicle-mounted device controls the MPU hardware of the vehicle-mounted device to make the MPU enter the forced upgrade mode, and sends a second prompt message to the terminal device; wherein the second prompt message is used to indicate that the vehicle-mounted device has entered the forced upgrade mode; and receiving a forced wire flash instruction from the terminal device through a USB interface to perform a forced wire flash upgrade on the vehicle-mounted device.

[0212] The present application also provides an upgrade device, which is arranged in a terminal device. Fig. 9 A schematic diagram of an optional upgrade device provided in an embodiment of the present application Figure 2 ,like Fig. 9 As shown, the upgrade device 900 includes: a first sending module 91, a receiving module 92, a determining module 93 and a second sending module 94, wherein:

[0213] The first sending module 91 is used to send a detection message to the vehicle-mounted device through the OBD interface of the vehicle-mounted device; wherein the detection message is used by the vehicle-mounted device to detect the communication capability of the vehicle-mounted device to generate a response message;

[0214] A receiving module 92, used for receiving a response message from the vehicle-mounted device;

[0215] A determination module 93, used to determine an upgrade mode of the vehicle-mounted device according to the response message;

[0216] The second sending module 94 is used to generate an upgrade message according to the upgrade method and send it to the vehicle-mounted device, so that the vehicle-mounted device upgrades the vehicle-mounted device according to the upgrade method of the vehicle-mounted device.

[0217] In an optional embodiment, the determination module 93 is specifically used to determine the upgrade method of the vehicle-mounted device according to the communication capability of the vehicle-mounted device indicated in the response message.

[0218] In an optional embodiment, the determination module 93 determines the upgrade method of the vehicle-mounted device according to the communication capability of the vehicle-mounted device indicated in the response message, including: when the response message indicates that the MCU of the vehicle-mounted device and the MPU of the vehicle-mounted device do not have the communication capability, determining that the upgrade method of the vehicle-mounted device is a USB forced line flash upgrade method.

[0219] In an optional embodiment, the determination module 93 is specifically used to: when the response message indicates that the MCU of the vehicle-mounted device and the MPU of the vehicle-mounted device have communication capabilities, determine the optional upgrade method of the vehicle-mounted device according to the communication capability of the wireless network module of the vehicle-mounted device; in response to the operation of the optional upgrade method of the vehicle-mounted device, determine the upgrade method of the vehicle-mounted device from the optional upgrade methods.

[0220] In an optional embodiment, the determination module 93 determines the optional upgrade methods of the vehicle-mounted device according to the communication capability of the wireless network module of the vehicle-mounted device, including: when the response message indicates that the wireless network module has the ability to communicate with an external device, determining that the optional upgrade methods of the vehicle-mounted device are: OTA upgrade method and U disk upgrade method.

[0221] In an optional embodiment, the determination module 93 determines the optional upgrade methods of the vehicle-mounted device according to the communication capability of the wireless network module of the vehicle-mounted device, including: when the response message indicates that the wireless network module does not have the ability to communicate with an external device, determining that the optional upgrade methods of the vehicle-mounted device are: a U disk upgrade method and a USB forced line flash upgrade method.

[0222] In an optional embodiment, the second sending module 94 is specifically used for: when the upgrade method is OTA, generating an upgrade message according to the upgrade method and sending it to the vehicle-mounted device, sending the OTA upgrade package to the vehicle-mounted device through the wireless network module of the vehicle-mounted device, so that the vehicle-mounted device uses the OTA upgrade package to perform OTA upgrade on the vehicle-mounted device; when the upgrade method is USB flash drive upgrade, generating an upgrade message according to the upgrade method and sending it to the vehicle-mounted device, receiving the first prompt information from the vehicle-mounted device, so that the vehicle-mounted device uses the USB flash drive upgrade package to perform USB flash upgrade on the vehicle-mounted device; wherein the first prompt information is used to prompt the user to insert the USB flash drive; when the upgrade method is USB forced wire flash upgrade, after receiving the second prompt information, sending a forced wire flash instruction to the vehicle-mounted device through the USB interface of the vehicle-mounted device, so that the vehicle-mounted device performs forced wire flash upgrade on the vehicle-mounted device according to the forced wire flash instruction; wherein the second prompt information is used to indicate that the vehicle-mounted device has entered forced upgrade mode.

[0223] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. In some embodiments, the functions or modules included in the device provided in the embodiment of the present application can be used to execute the method described in the above method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0224] It should be noted that in the embodiment of the present application, if the above-mentioned voice control method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific hardware, software or firmware, or any combination of hardware, software, and firmware.

[0225] An embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, some or all of the steps in the above method are implemented.

[0226] The embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, some or all of the steps in the above method are implemented. The computer-readable storage medium can be transient or non-transient.

[0227] An embodiment of the present application provides a computer program, including a computer-readable code. When the computer-readable code is run in a computer device, a processor in the computer device executes some or all of the steps for implementing the above method.

[0228] The embodiment of the present application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is read and executed by a computer, some or all of the steps in the above method are implemented. The computer program product can be implemented specifically by hardware, software or a combination thereof. In some embodiments, the computer program product is specifically embodied as a computer storage medium, and in other embodiments, the computer program product is specifically embodied as a software product, such as a software development kit (SDK) and the like.

[0229] It should be noted here that the description of the various embodiments above tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. The description of the above device, storage medium, computer program and computer program product embodiments is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the embodiments of the device, storage medium, computer program and computer program product of this application, please refer to the description of the method embodiment of this application for understanding.

[0230] Fig.10 A schematic diagram of the structure of a vehicle-mounted device provided in an embodiment of the present application is shown in FIG. Fig.10 As shown, the hardware entity of the vehicle-mounted device 1000 includes: a processor 101 and a memory 102, wherein the memory 102 stores a computer program that can be run on the processor 101, and the processor 101 implements the steps in the method of any of the above embodiments when executing the program.

[0231] The memory 102 stores computer programs that can be run on the processor. The memory 1002 is configured to store instructions and applications executable by the processor 101. It can also cache data to be processed or processed by the processor 101 and various modules in the vehicle-mounted device 1000 (for example, image data, audio data, voice communication data, and video communication data). This can be achieved through flash memory (FLASH) or random access memory (Random Access Memory, RAM).

[0232] When the processor 101 executes the program, the steps of any of the above-mentioned upgrade methods are implemented. The processor 101 generally controls the overall operation of the in-vehicle device 1000.

[0233] Fig.11 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application is shown in FIG. Fig.11 As shown, the hardware entity of the vehicle-mounted device 1100 includes: a processor 111 and a memory 112, wherein the memory 1102 stores a computer program that can be run on the processor 111, and the processor 111 implements the steps in the method of any of the above embodiments when executing the program.

[0234] The memory 112 stores computer programs that can be run on the processor. The memory 112 is configured to store instructions and applications executable by the processor 111. It can also cache data to be processed or processed by the processor 111 and various modules in the vehicle-mounted device 1100 (for example, image data, audio data, voice communication data, and video communication data). This can be achieved through flash memory (FLASH) or random access memory (Random Access Memory, RAM).

[0235] When the processor 111 executes the program, the steps of any of the above-mentioned upgrade methods are implemented. The processor 111 generally controls the overall operation of the vehicle-mounted device 1100.

[0236] An embodiment of the present application provides a computer storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps of the upgrade method of any of the above embodiments.

[0237] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0238] The processor may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It is understandable that the electronic device that implements the functions of the processor may also be other, and the embodiments of the present application are not specifically limited.

[0239] The above-mentioned computer storage medium / memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM) and the like; it can also be various terminals including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.

[0240] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the serial number of each step / process mentioned above does not mean the order of execution, and the execution order of each step / process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The serial numbers of the embodiments of the present application mentioned above are for description only and do not represent the advantages and disadvantages of the embodiments.

[0241] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0242] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0243] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0244] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0245] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0246] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0247] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. An upgrading method, characterized in that: Applied in vehicle-mounted equipment, including: Receiving a detection message from a terminal device through the OBD interface of the vehicle-mounted device to detect the communication capability of the vehicle-mounted device; Generate a response message according to the communication capability of the vehicle-mounted device and send it to the terminal device; wherein the response message is used by the terminal device to determine the upgrade mode of the vehicle-mounted device; The upgrade message from the terminal device is received through the OBD interface to upgrade the vehicle-mounted device.

2. The method according to claim 1, characterized in that The generating a response message according to the communication capability of the vehicle-mounted device and sending the response message to the terminal device includes: When the communication capability of the vehicle-mounted device indicates that the MCU of the vehicle-mounted device and the MPU of the vehicle-mounted device have communication capability, generating the response message according to the communication capability of the wireless network module of the vehicle-mounted device in the communication capability of the vehicle-mounted device; When the communication capability of the vehicle-mounted device indicates that the MCU and the MPU do not have the communication capability, a response message is generated to indicate that the MCU and the MPU do not have the communication capability.

3. The method according to claim 2, characterized in that When the communication capability of the vehicle-mounted device indicates that the MCU and the MPU have communication capability, generating the response message according to the communication capability of the wireless network module of the vehicle-mounted device in the communication capability of the vehicle-mounted device includes: When the communication capability of the vehicle-mounted device indicates that the MCU has the communication capability with the MPU, and the wireless network module has the communication capability with the external device, generating a response message for indicating that the wireless network module has the communication capability with the external device; When the communication capability of the vehicle-mounted device indicates that the MCU has communication capability with the MPU, and the wireless network module does not have communication capability with an external device, a response message is generated to indicate that the wireless network module does not have communication capability with an external device.

4. The method according to claim 1, characterized in that: The step of receiving the upgrade message from the terminal device through the OBD interface to upgrade the vehicle-mounted device includes: In the case where the upgrade method is an OTA upgrade method, receiving an OTA upgrade package through the wireless network module of the vehicle-mounted device, and performing OTA upgrade on the vehicle-mounted device using the OTA upgrade package; In the case where the upgrade mode is a U disk upgrade mode, entering a U disk upgrade mode, and connecting a U disk through the USB interface of the vehicle-mounted device to obtain a U disk upgrade package, and using the U disk upgrade package to perform a U disk upgrade on the vehicle-mounted device; In the case where the upgrade mode is a USB forced wire-flash upgrade mode, a forced upgrade mode is entered to receive a forced wire-flash instruction from the terminal device to forcefully upgrade the vehicle-mounted device.

5. The method according to claim 4, characterized in that The receiving an OTA upgrade package through the wireless network module of the vehicle-mounted device and performing OTA upgrade on the vehicle-mounted device using the OTA upgrade package includes: Receive the OTA upgrade package through the wireless network module and send it to the MPU of the vehicle-mounted device; After receiving the OTA upgrade package, the MPU triggers the OTA upgrade program to upgrade the vehicle-mounted device.

6. The method according to claim 4, characterized in that The entering the U disk upgrade mode, connecting the U disk through the USB interface of the vehicle-mounted device to obtain a U disk upgrade package, and using the U disk upgrade package to perform a U disk upgrade on the vehicle-mounted device, includes: Entering the U disk upgrade mode, sending a first prompt message to the terminal device; wherein the first prompt message is used to prompt the user to insert the U disk; A U disk is connected to the vehicle-mounted device via the USB interface to obtain a U disk upgrade package, and the U disk upgrade package is used to perform a U disk upgrade on the vehicle-mounted device.

7. The method according to claim 4, characterized in that: The step of entering the forced upgrade mode and receiving a forced wire-flash instruction from the terminal device to force a wire-flash upgrade on the vehicle-mounted device includes: After receiving the upgrade message, the MCU of the vehicle-mounted device controls the MPU hardware of the vehicle-mounted device so that the MPU enters the forced upgrade mode, and sends a second prompt message to the terminal device; wherein the second prompt message is used to indicate that the vehicle-mounted device has entered the forced upgrade mode; A forced wire-flash instruction is received from the terminal device through the USB interface to force a wire-flash upgrade on the vehicle-mounted device.

8. An upgrading method, characterized in that: Applied in terminal equipment, including: Sending a detection message to the vehicle-mounted device through the OBD interface of the vehicle-mounted device; wherein the detection message is used by the vehicle-mounted device to detect the communication capability of the vehicle-mounted device to generate a response message; Receiving the response message from the vehicle-mounted device; Determining an upgrade method of the vehicle-mounted device according to the response message; An upgrade message is generated according to the upgrade method and sent to the vehicle-mounted device, so that the vehicle-mounted device upgrades the vehicle-mounted device according to the upgrade method of the vehicle-mounted device.

9. The method according to claim 8, characterized in that The step of determining an upgrade mode of the vehicle-mounted device according to the response message includes: An upgrade mode of the vehicle-mounted device is determined according to the communication capability of the vehicle-mounted device indicated in the response message.

10. The method according to claim 9, characterized in that The step of determining the upgrade mode of the vehicle-mounted device according to the communication capability of the vehicle-mounted device indicated in the response message includes: When the response message indicates that the MCU of the vehicle-mounted device and the MPU of the vehicle-mounted device do not have communication capability, it is determined that the upgrade mode of the vehicle-mounted device is a USB forced line flash upgrade mode.

11. The method according to claim 9, characterized in that The step of determining an upgrade mode of the vehicle-mounted device according to the response message includes: In the case where the response message indicates that the MCU of the vehicle-mounted device has communication capability with the MPU of the vehicle-mounted device, determining an optional upgrade mode of the vehicle-mounted device according to the communication capability of the wireless network module of the vehicle-mounted device; In response to an operation on the optional upgrade modes of the in-vehicle device, an upgrade mode of the in-vehicle device is determined from the optional upgrade modes.

12. The method according to claim 11, characterized in that The determining, according to the communication capability of the wireless network module of the vehicle-mounted device, an optional upgrade mode of the vehicle-mounted device includes: When the response message indicates that the wireless network module has the ability to communicate with the external device, the optional upgrade methods of the vehicle-mounted device are determined to be: an OTA upgrade method and a USB flash drive upgrade method.

13. The method according to claim 11, characterized in that The determining, according to the communication capability of the wireless network module of the vehicle-mounted device, an optional upgrade mode of the vehicle-mounted device includes: When the response message indicates that the wireless network module does not have the ability to communicate with the external device, the optional upgrade methods of the vehicle-mounted device are determined to be: a USB flash drive upgrade method and a USB forced line flash upgrade method.

14. The method according to claim 8, characterized in that Generating an upgrade message according to the upgrade method and sending it to the vehicle-mounted device, so that the vehicle-mounted device upgrades the vehicle-mounted device according to the upgrade method of the vehicle-mounted device, includes: In the case where the upgrade method is an OTA upgrade method, generating an upgrade message according to the upgrade method and sending it to the vehicle-mounted device, and sending an OTA upgrade package to the vehicle-mounted device through the wireless network module of the vehicle-mounted device, so that the vehicle-mounted device uses the OTA upgrade package to perform OTA upgrade on the vehicle-mounted device; In the case where the upgrade mode is a USB flash drive upgrade mode, an upgrade message is generated according to the upgrade mode and sent to the vehicle-mounted device, and a first prompt message is received from the vehicle-mounted device, so that the vehicle-mounted device uses the USB flash drive upgrade package to perform a USB flash drive upgrade on the vehicle-mounted device; wherein the first prompt message is used to prompt the user to insert the USB flash drive; In the case where the upgrade method is a USB forced wire-flash upgrade method, after receiving the second prompt information, a forced wire-flash instruction is sent to the vehicle-mounted device through the USB interface of the vehicle-mounted device, so that the vehicle-mounted device performs a forced wire-flash upgrade on the vehicle-mounted device according to the forced wire-flash instruction; wherein the second prompt information is used to indicate that the vehicle-mounted device has entered the forced upgrade mode.

15. An upgrading device, characterized in that: Set in the vehicle-mounted equipment, including: A detection module, used to receive a detection message from a terminal device through the OBD interface of the vehicle-mounted device, and detect the communication capability of the vehicle-mounted device; A generating module, used to generate a response message according to the communication capability of the vehicle-mounted device, and send it to the terminal device; wherein the response message is used by the terminal device to determine the upgrade mode of the vehicle-mounted device; The upgrade module is used to receive the upgrade message from the terminal device through the OBD interface to upgrade the vehicle-mounted device.

16. An upgrading device, characterized in that: Set in the terminal device, including: A first sending module, configured to send a detection message to the vehicle-mounted device through the OBD interface of the vehicle-mounted device; wherein the detection message is used by the vehicle-mounted device to detect the communication capability of the vehicle-mounted device to generate a response message; A receiving module, used for receiving the response message from the vehicle-mounted device; A determination module, used to determine an upgrade mode of the vehicle-mounted device according to the response message; The second sending module is used to generate an upgrade message according to the upgrade method and send it to the vehicle-mounted device, so that the vehicle-mounted device upgrades the vehicle-mounted device according to the upgrade method of the vehicle-mounted device.

17. A vehicle-mounted device, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the program, the steps in the method according to any one of claims 1 to 7 are implemented.

18. A terminal device, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the program, the steps in the method according to any one of claims 8 to 14 are implemented.

19. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computer program implements the steps of the method described in any one of claims 1 to 7, or implements the steps of the method described in any one of claims 8 to 14.