Software upgrading method, electronic equipment and vehicle

By directly reading the upgrade package file from the mobile storage device and transmitting it to the on-board wireless terminal, the upgrade process of the on-board wireless terminal software is simplified, the problems of slow and low efficiency of OTA upgrades are solved, and the upgrade success rate and user operation convenience are improved. .

CN119095027APending Publication Date: 2024-12-06GREAT WALL MOTOR CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411041717.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

When the existing automotive wireless terminal software passes OTA upgrade technology, the upgrade speed is slow and the efficiency is low, and each upgrade requires secondary packaging production, resulting in cumbersome process and high upgrade failure rate, which is especially not suitable for experimental testing scenarios with frequent upgrades.

Method used

By directly reading the upgrade package file from the mobile storage device, sending upgrade requests to the on-board wireless terminal, establishing a file transfer connection, and transmitting the upgrade package file, simplifying the upgrade process, reducing production costs, and improving success rate.

Benefits of technology

It realizes rapid upgrade of vehicle wireless terminal software, reduces failure rate, simplifies user operations, is suitable for frequent upgrade scenarios, and improves the efficiency of vehicle testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119095027A_ABST
    Figure CN119095027A_ABST
Patent Text Reader

Abstract

The invention provides a software upgrading method, electronic equipment and a vehicle, relates to the field of vehicle processing, and sends an upgrading request to a vehicle-mounted wireless terminal in response to an upgrading package file of vehicle-mounted wireless terminal software read from mobile storage equipment connected with a vehicle terminal. Receiving a feedback result which is sent by the vehicle-mounted wireless terminal and indicates that the upgrade package file is allowed to be sent, and establishing file transmission connection with the vehicle-mounted wireless terminal; a target transmission port sent by the vehicle-mounted wireless terminal is received, and the upgrade package file is sent through the target transmission port, so that the vehicle-mounted wireless terminal receives the upgrade package file and carries out software upgrade on the vehicle-mounted wireless terminal; and receiving and displaying an upgrading result sent by the vehicle-mounted wireless terminal. According to the scheme, secondary manufacturing of the upgrade package file is not needed, and the manufacturing cost is reduced. Meanwhile, user operation is facilitated, and the success rate of software upgrading of the vehicle-mounted terminal is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of vehicle processing, and in particular to a software upgrading method, an electronic device and a vehicle. Background Art

[0002] As vehicle performance is optimized, the vehicle-mounted wireless terminal software also needs to be upgraded accordingly. Since most vehicles support remote over-the-air (OTA) upgrade technology, when the vehicle-mounted wireless terminal software is upgraded, it is usually upgraded remotely online through OTA upgrade technology.

[0003] When upgrading via OTA, it is necessary to perform secondary packaging based on the original upgrade software package of the vehicle-mounted wireless terminal before the upgrade task can be issued through the OTA upgrade server. As a result, each upgrade of the vehicle-mounted wireless terminal software involves the production of software upgrade packages, which is a cumbersome process, and thus makes the upgrade speed of the vehicle-mounted wireless terminal software slow and the upgrade efficiency low. Summary of the invention

[0004] In view of this, the purpose of the present disclosure is to propose a software upgrade method, an electronic device and a vehicle, so as to solve the problem of slow upgrade speed and low upgrade efficiency when upgrading the software of a vehicle wireless terminal through OTA upgrade technology.

[0005] Based on the above purpose, the first aspect of the present disclosure provides a software upgrade method, which is applied to a vehicle terminal, and the method includes:

[0006] In response to reading an upgrade package file of the vehicle-mounted wireless terminal software from a mobile storage device connected to the vehicle machine end, sending an upgrade request to the vehicle-mounted wireless terminal;

[0007] Receiving a feedback result from the vehicle-mounted wireless terminal indicating that the upgrade package file can be sent, and establishing a file transfer connection with the vehicle-mounted wireless terminal;

[0008] Receiving a target transmission port sent by the vehicle-mounted wireless terminal, and sending the upgrade package file through the target transmission port, so that the vehicle-mounted wireless terminal receives the upgrade package file and performs a vehicle-mounted wireless terminal software upgrade;

[0009] Receive and display the upgrade results sent by the vehicle-mounted wireless terminal.

[0010] Based on the same inventive concept, the second aspect of the present disclosure proposes a software upgrade method, which is applied to a vehicle-mounted wireless terminal, comprising:

[0011] In response to receiving an upgrade request sent by the vehicle computer, obtaining vehicle information;

[0012] Generate a feedback result according to the vehicle information, send the feedback result to the vehicle computer, and establish a file transfer connection with the vehicle computer;

[0013] In response to receiving the upgrade package file sent by the vehicle computer, verifying the upgrade package file;

[0014] Determine that the verification is passed, upgrade the vehicle-mounted wireless terminal software according to the upgrade package file, and obtain an upgrade result;

[0015] The upgrade result is sent to the vehicle computer so that the vehicle computer displays the upgrade result.

[0016] Based on the same inventive concept, the third aspect of the present disclosure proposes a vehicle terminal, including a memory, a processor, and a computer program stored in the memory and executable by the processor, and the processor implements the software upgrade method as described above when executing the computer program.

[0017] Based on the same inventive concept, the fourth aspect of the present disclosure proposes a vehicle-mounted wireless terminal, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the software upgrade method as described above when executing the computer program.

[0018] Based on the same inventive concept, the fifth aspect of the present disclosure proposes an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the software upgrade method as described above when executing the computer program.

[0019] Based on the same inventive concept, the sixth aspect of the present disclosure proposes a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute the software upgrade method as described above.

[0020] Based on the same inventive concept, the seventh aspect of the present disclosure provides a vehicle, including the vehicle terminal of the third aspect or the vehicle-mounted wireless terminal of the fourth aspect or the electronic device of the fifth aspect or the storage medium of the sixth aspect.

[0021] As can be seen from the above, the present disclosure proposes a software upgrade method, an electronic device and a vehicle. When the upgrade package file of the vehicle-mounted wireless terminal software is read from the mobile storage device connected to the vehicle machine end, it indicates that the vehicle-mounted wireless terminal software needs to be upgraded, and an upgrade request is sent to the vehicle-mounted wireless terminal at this time. Because the upgrade package file is directly read from the mobile storage device, there is no need to re-encapsulate and encrypt the upgrade package file through other manufacturers, and the software can be upgraded through remote OTA after secondary production, which reduces the production cost. At the same time, the mobile storage device is directly connected to obtain the upgrade package file stored therein, which is convenient for user operation and improves the success rate of vehicle terminal software upgrade. When the feedback result sent by the vehicle-mounted wireless terminal is received, and the feedback result is that the upgrade package file is allowed to be sent, a file transfer connection is established with the vehicle-mounted wireless terminal at this time, so that the upgrade package file can be subsequently transmitted to the vehicle-mounted wireless terminal. The target transmission port sent by the vehicle-mounted wireless terminal is received, and the upgrade package file is sent through the target transmission port. The vehicle-mounted wireless terminal receives the upgrade package file and performs the vehicle-mounted wireless terminal software upgrade. The upgrade result sent by the vehicle-mounted wireless terminal is received, and the upgrade result is displayed on the vehicle computer end to facilitate the user to view the upgrade result. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the present disclosure or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 A flowchart of a software upgrade method according to an embodiment of the present disclosure;

[0024] Figure 2 is a flowchart of another software upgrade method according to an embodiment of the present disclosure;

[0025] Figure 3 An interactive flow chart of a software upgrade method according to an embodiment of the present disclosure;

[0026] Figure 4 A structural block diagram of a software upgrade device according to an embodiment of the present disclosure;

[0027] Figure 5 is a structural block diagram of another software upgrading device according to an embodiment of the present disclosure;

[0028] Figure 6 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0030] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0031] The terms used in this disclosure are explained as follows:

[0032] HUT: In-vehicle entertainment information system (HUT), an intelligent multimedia device integrated into the car's center console.

[0033] USB flash drive: mobile storage device.

[0034] TBOX: Vehicle-mounted wireless terminal, a device that provides cellular 4G / 5G mobile communications.

[0035] FTP protocol: File Transfer Protocol (FTP) is a standard network protocol for transferring files on a computer network. It is based on a client-server model that enables users to transfer files between computers that may be on the same network or in networks located in different geographical locations.

[0036] TCP: TCP protocol, Transmission Control Protocol (TCP) is a connection-oriented, reliable, byte stream-based communication protocol.

[0037] SOME / IP: SOME / IP, the full name of which is Scalable service-Oriented MiddlewarE over IP, is a service-oriented scalable protocol used for automotive middleware solutions for control messages.

[0038] OTA: Over The Air (OTA) upgrade is a wireless upgrade method. For mobile phones, mobile phone users can upgrade mobile phones that support OTA upgrades through wireless download. OTA upgrades have changed the previous upgrade mode of mobile phone users going to after-sales service centers to download upgrade software, allowing mobile phone users to upgrade their mobile phones through wireless downloads, and the upgrade is simple and convenient. At the same time, OTA upgrades also include obtaining network operators' remote mobile phone upgrade data packets through over-the-air download technology (OTA) to optimize or update the mobile terminal system (firmware, parameters, etc.) and complete system upgrades, thereby improving user experience and enhancing mobile phone security. For mobile phones with OTA upgrade functions, users only need to connect to the Internet to perform online detection, download upgrade installation packages, and complete system upgrades.

[0039] RSA: RSA algorithm is an asymmetric encryption algorithm. Unlike the symmetric encryption algorithm, the RSA algorithm has two different keys, one is the public key and the other is the private key.

[0040] AES: AES is the commercial and government data encryption standard adopted by the U.S. federal government. AES provides 128-bit keys.

[0041] National Secret SM2: SM2 is a public key cryptographic algorithm based on elliptic curves, including SM2-1 for digital signatures, SM2-2 for key exchange, and SM2-3 for public key cryptography.

[0042] TEE: Trusted Execution Environment (TEE) is an isolated area of ​​memory and CPU, isolated from the rest of the CPU using encryption technology. Any data in the TEE cannot be read or tampered with by any code outside the environment. Data can be manipulated in the TEE by properly authorized code.

[0043] SHA256: SHA-256 is a cryptographic hash algorithm developed by the United States National Security Agency as part of the SHA2 family. It generates a 256-bit (32-byte) hash value that represents the fingerprint of any data input.

[0044] Most smart connected cars support remote OTA upgrade technology, which enables remote online software upgrades via the on-board wireless terminal (TBOX).

[0045] Since OTA upgrades require secondary packaging based on TBOX's original upgrade software package before the upgrade task can be issued through the OTA upgrade server, each upgrade activity of TBOX involves a cumbersome software upgrade package production process, slow upgrade speed, low efficiency, high upgrade failure rate, and the need to pay upgrade authorization fees for each upgrade activity. It is not suitable for frequent upgrade scenarios of TBOX during the vehicle testing phase.

[0046] Based on the above description, this embodiment proposes a software upgrade method, such as Figure 1 As shown, applied to the vehicle terminal, the method includes:

[0047] Step 101, in response to reading an upgrade package file of the vehicle-mounted wireless terminal software from a mobile storage device connected to the vehicle machine, sending an upgrade request to the vehicle-mounted wireless terminal.

[0048] In specific implementation, the vehicle computer is connected to a mobile storage device with an upgrade package file of the vehicle wireless terminal software, and the connection mode includes plug-in connection, wired connection or wireless connection. The vehicle computer is connected to a USB interface, which is set in the vehicle, and the USB interface is used to realize data interaction between the mobile storage device and the vehicle computer.

[0049] In this embodiment, the mobile storage device is preferably a USB flash drive, that is, the USB flash drive storing the upgrade package file of the vehicle-mounted wireless terminal software is inserted into the USB interface of the vehicle-mounted computer end, and the vehicle-mounted computer end enters the engineering mode for subsequent upgrade of the vehicle-mounted wireless terminal software.

[0050] In this embodiment, the upgrade package file of the vehicle-mounted wireless terminal software is named t-boxusbupdate, and the file format is a compressed package format, such as .zip. The upgrade package file is stored in the root directory of the USB flash drive (FAT32). At the same time, the upgrade package file is a pre-encrypted file, that is, the upgrade package file stored in the mobile storage device is an encrypted file. When making a digital signature corresponding to the upgrade package file, the digest algorithm used is SHA256 or other higher-level algorithms.

[0051] Specifically, there is no limitation on the encryption method, and encryption can be performed using an asymmetric encryption algorithm or a symmetric encryption algorithm. In this embodiment, an asymmetric encryption algorithm is preferably used for encryption, such as the national secret SM2, AES, RSA and other cryptographic algorithms, wherein the length of AES is not less than 512 bits, and the length of RSA is not less than 2048 bits. The generation of the key should ensure randomness, and the private key needs to be securely stored in hardware, such as TEE.

[0052] When the upgrade package file of the vehicle wireless terminal software is read from the mobile storage device connected to the vehicle machine, an upgrade request is sent to the vehicle wireless terminal, so that the vehicle wireless terminal can determine whether it meets the conditions for upgrading the vehicle wireless terminal software after receiving the upgrade request.

[0053] Step 102: receiving a feedback result from the vehicle-mounted wireless terminal indicating that the upgrade package file can be sent, and establishing a file transfer connection with the vehicle-mounted wireless terminal.

[0054] In specific implementation, after the vehicle computer sends the upgrade request to the vehicle wireless terminal, the vehicle wireless terminal receives the feedback result sent by the vehicle wireless terminal for the upgrade request. When the received feedback result is that the upgrade package file is allowed to be sent, it means that the vehicle wireless terminal allows the vehicle computer to transmit the upgrade package file.

[0055] At this time, the vehicle terminal sends a file transfer connection establishment request to the vehicle wireless terminal, requesting to connect to the connection port of the vehicle wireless terminal. After the vehicle wireless terminal responds to the file transfer connection establishment request, it sends the target transmission port to the vehicle terminal, and the vehicle terminal and the vehicle wireless terminal establish a file transfer connection.

[0056] Specifically, the vehicle computer sends a file transfer connection request to the vehicle wireless terminal. The connection port corresponding to the file transfer connection (FTP connection) is port 21, that is, at this time, the vehicle computer requests the vehicle wireless terminal to connect to port 21. After the vehicle wireless terminal responds to the connection request, it informs the vehicle computer to use port 20 for data transmission, where port 20 is the target transmission port. After receiving the target transmission interface, the vehicle computer transmits the upgrade package file to the vehicle wireless terminal through port 20.

[0057] Step 103, receiving the target transmission port sent by the vehicle-mounted wireless terminal, and sending the upgrade package file through the target transmission port, so that the vehicle-mounted wireless terminal receives the upgrade package file and performs vehicle-mounted wireless terminal software upgrade.

[0058] During the specific implementation, both the vehicle computer and the vehicle wireless terminal follow the standard FTP service interaction process, and the vehicle computer uses an account and password authentication method to log in to the vehicle wireless terminal.

[0059] After the vehicle computer receives the target transmission port sent by the vehicle-mounted wireless terminal, the vehicle computer and the vehicle-mounted wireless terminal establish a file transfer connection. The vehicle computer transmits the upgrade package file to the vehicle-mounted wireless terminal through the target transmission port. After the vehicle-mounted wireless terminal receives the upgrade package file, it can upgrade the vehicle-mounted wireless terminal software according to the upgrade package file.

[0060] Step 104: receiving and displaying the upgrade result sent by the vehicle-mounted wireless terminal.

[0061] In a specific implementation, the vehicle machine receives the upgrade result sent by the vehicle-mounted wireless terminal, wherein the upgrade result is a result indicating whether the vehicle-mounted wireless terminal software is successfully upgraded according to the upgrade package file.

[0062] Accordingly, the upgrade result includes upgrade success and upgrade failure. Upgrade success means that the vehicle-mounted wireless terminal software is successfully upgraded according to the upgrade package file, and upgrade failure means that the vehicle-mounted wireless terminal software is not successfully upgraded according to the upgrade package file.

[0063] Through the above scheme, when the upgrade package file of the vehicle-mounted wireless terminal software is read from the mobile storage device connected to the vehicle machine, it means that the vehicle-mounted wireless terminal software needs to be upgraded, and an upgrade request is sent to the vehicle-mounted wireless terminal. At present, the upgrade task is issued through the remote OTA upgrade server, and the upgrade package file needs to be packaged and encrypted by other manufacturers first. At the same time, the vehicle also needs to be equipped with a corresponding decryption installation program. Especially for the experimental test phase that requires frequent upgrades, the upgrade cost is high. In this application, the upgrade package file is directly read from the mobile storage device, and there is no need to re-package and encrypt the upgrade package file through other manufacturers. Only after secondary production can the software be upgraded through remote OTA, which reduces the production cost. At the same time, it is convenient for users to operate and improves the success rate of vehicle-mounted terminal software upgrade. When the feedback result sent by the vehicle-mounted wireless terminal is received, and the feedback result is to allow the upgrade package file to be sent, a file transfer connection is established with the vehicle-mounted wireless terminal at this time, so that the upgrade package file can be subsequently transmitted to the vehicle-mounted wireless terminal. Receive the target transmission port sent by the vehicle-mounted wireless terminal, send the upgrade package file through the target transmission port, and the vehicle-mounted wireless terminal receives the upgrade package file and performs the vehicle-mounted wireless terminal software upgrade. The upgrade result sent by the vehicle-mounted wireless terminal is received, and the upgrade result is displayed on the vehicle computer end to facilitate the user to view the upgrade result.

[0064] In some embodiments, after step 101, the method further includes:

[0065] Step 10A: determining whether a feedback result sent by the vehicle-mounted wireless terminal is received within a first preset time period.

[0066] Step 10B: in response to not receiving the feedback result, generating and displaying first prompt information, wherein the first prompt information is information for prompting that the upgrade request response of the vehicle-mounted wireless terminal has timed out.

[0067] In specific implementation, after the vehicle computer sends an upgrade request to the vehicle wireless terminal, it starts timing, and the timing duration is a first preset duration. It is determined whether a feedback result sent by the vehicle wireless terminal is received within the first preset duration.

[0068] If the feedback result sent by the vehicle-mounted wireless terminal is not received within the first preset time, it means that the vehicle-mounted wireless terminal has not responded to the upgrade request in time. The vehicle-mounted computer generates and displays a first prompt message to prompt the user that the vehicle-mounted wireless terminal upgrade request response has timed out.

[0069] The prompting method of the first prompting information includes at least one of the following: text prompting, voice prompting, prompting light display, etc. The content form of the first prompting information includes at least one of the following: text, picture, rich text, etc.

[0070] For example, the first preset time is 30 seconds, and the content of the first prompt information is in the form of text. If the vehicle computer does not receive the feedback result sent by the vehicle wireless terminal within 30 seconds after sending the upgrade request to the vehicle wireless terminal, the first prompt information with the text "Upgrade timeout failure (precondition response timeout), please upgrade again after 900 seconds" is displayed on the vehicle computer display interface.

[0071] Through the above scheme, the vehicle computer determines whether feedback information is received within a period of time after sending the upgrade request. If no feedback information is received, the first prompt information is output in time to inform the user that the upgrade failed due to the timeout of the response to the upgrade request of the vehicle wireless terminal, so that the user can be informed of the abnormal situation in time and handle it in time to ensure the smooth upgrade of the vehicle wireless terminal software.

[0072] In some embodiments, after step 10A, the method further includes:

[0073] Step 10C: in response to receiving the feedback result and the prohibition reason of prohibiting the sending of the upgrade package file sent by the vehicle-mounted wireless terminal, displaying the feedback result and the prohibition reason of prohibiting the sending of the upgrade package file.

[0074] In specific implementation, after the vehicle terminal sends the upgrade request to the vehicle wireless terminal, the vehicle wireless terminal receives the feedback result sent by the vehicle wireless terminal for the upgrade request. When the received feedback result is statically sending the upgrade package file, it means that the vehicle wireless terminal is statically transmitting the upgrade package file to the vehicle terminal.

[0075] When the vehicle-mounted wireless terminal sends the feedback result of prohibiting the sending of the upgrade package file to the vehicle-mounted terminal, the prohibition reason will be sent together with the feedback result of prohibiting the sending of the upgrade package file. Therefore, when the vehicle-mounted terminal receives the feedback result of prohibiting the sending of the upgrade package file, it will also receive the prohibition reason at the same time. The vehicle-mounted terminal displays the feedback result and the prohibition reason together on the vehicle-mounted terminal display interface.

[0076] Exemplarily, the vehicle computer receives the feedback result of prohibiting the sending of the upgrade package file and the prohibition reason of "the vehicle battery is low and the upgrade is not allowed" sent by the vehicle-mounted wireless terminal, and displays "the vehicle battery is low and the upgrade is not allowed" on the vehicle computer display interface.

[0077] Through the above scheme, when the vehicle computer receives the feedback result and the reason for prohibiting the sending of the upgrade package file, the feedback information and the reason for prohibition are displayed on the vehicle computer display interface, so that the user can accurately know the reason why the upgrade package file is not allowed to be transmitted, which is convenient for subsequent users to carry out targeted processing and improves processing efficiency.

[0078] In some embodiments, after receiving the feedback result of allowing the upgrade package file to be sent from the vehicle-mounted wireless terminal in step 102, the method further includes:

[0079] Step 10a, display the initial upgrade progress.

[0080] Step 10b: receiving the upgrade progress sent by the vehicle-mounted wireless terminal according to a preset frequency, replacing the initial upgrade progress with the upgrade progress, and displaying the upgrade progress.

[0081] In specific implementation, when receiving the feedback result of the vehicle-mounted wireless terminal allowing the upgrade package file to be sent, the initial upgrade progress is displayed on the vehicle display interface. It can be understood that the display method of the initial upgrade progress can be to display the progress number alone, or to display it in the form of a progress bar, or to display them in combination. The selection of the specific display method can be made by the user and is not limited here.

[0082] The initial upgrade progress can be set by the user in advance. For example, the initial upgrade progress can be 0, which means that a feedback result of allowing the upgrade package file to be sent from the vehicle-mounted wireless terminal is received, indicating that the vehicle-mounted wireless terminal software upgrade has started.

[0083] In another example, the initial upgrade progress can also be set to a value other than 0, such as 10%, which means that when the feedback result of allowing the upgrade package file to be sent from the vehicle-mounted wireless terminal is received, 10% of the total upgrade process of the vehicle-mounted wireless terminal software has been completed.

[0084] The upgrade progress sent by the vehicle-mounted wireless terminal is received according to the preset frequency, that is, the vehicle-mounted wireless terminal sends the upgrade progress to the vehicle-mounted terminal according to the preset frequency. The vehicle-mounted terminal replaces the initial upgrade progress with the upgrade progress and displays the upgrade progress, thereby realizing the synchronization of the actual upgrade progress between the vehicle-mounted terminal and the vehicle-mounted wireless terminal.

[0085] Exemplarily, the preset frequency is once every 3 seconds, that is, the vehicle machine receives the upgrade progress sent by the vehicle-mounted wireless terminal once every 3 seconds and replaces the upgrade progress obtained last time.

[0086] Through the above solution, by receiving the upgrade progress sent by the vehicle-mounted wireless terminal, the upgrade progress is visualized, which makes it easier for users to know the upgrade progress.

[0087] In some embodiments, after step 10a, the method further includes:

[0088] Step 10c: in response to not receiving the upgrade progress sent by the vehicle-mounted wireless terminal within the second preset time period, generate and display second prompt information, wherein the second prompt information is information for prompting the vehicle-mounted wireless terminal that the upgrade progress response has timed out.

[0089] In specific implementation, after the vehicle terminal displays the initial upgrade progress, a second preset time is preset. If the upgrade progress sent by the vehicle wireless terminal is not received within the second preset time, it means that the vehicle wireless terminal returns to a state of no upgrade progress, and a second prompt message is generated.

[0090] The second prompt information is displayed on the vehicle computer display interface to prompt the user that the vehicle-mounted wireless terminal upgrade progress response has timed out.

[0091] The prompting method of the second prompting information includes at least one of the following: text prompting, voice prompting, prompting light display, etc. The content form of the second prompting information includes at least one of the following: text, picture, rich text, etc.

[0092] For example, the second preset time is 30 seconds, and the content of the second prompt information is in the form of text. If the vehicle computer displays the initial upgrade progress, but does not receive the upgrade progress sent by the vehicle wireless terminal within 30 seconds, the second prompt information with the text "Upgrade timeout failure (upgrade progress response timeout), please upgrade again after 900 seconds" is displayed on the vehicle computer display interface.

[0093] Through the above scheme, when the vehicle computer continues to fail to receive the updated upgrade progress sent by the vehicle-mounted wireless terminal, a second prompt message is sent to the user to prompt the user that the upgrade progress response of the vehicle-mounted wireless terminal has timed out, so that the user can be informed of the abnormal situation in time and handle it in time to ensure the smooth upgrade of the vehicle-mounted wireless terminal software.

[0094] In some embodiments, after step 101 sends an upgrade request to the vehicle-mounted wireless terminal, the step further includes:

[0095] Step A: in response to not receiving the upgrade result sent by the vehicle-mounted wireless terminal within a third preset time period, generate and display a third prompt message, wherein the third prompt message is information for prompting the vehicle-mounted wireless terminal that the software upgrade response has timed out.

[0096] In specific implementation, the timing starts after the vehicle computer sends an upgrade request to the vehicle wireless terminal, and the timing duration is the third preset duration. If the upgrade result sent by the vehicle wireless terminal has not been received within the third preset duration, there may be problems such as upgrade jamming. It is understandable that the third preset duration should be greater than the duration for the vehicle wireless terminal to normally complete the upgrade (or return the upgrade result).

[0097] At this time, a third prompt message is generated and displayed, wherein the third prompt message is used to prompt the user that the vehicle-mounted wireless terminal software upgrade response has timed out.

[0098] The prompting method of the third prompting information includes at least one of the following: text prompting, voice prompting, prompting light display, etc. The content form of the third prompting information includes at least one of the following: text, picture, rich text, etc.

[0099] For example, the third preset time is 900s, and the content of the third prompt information is in the form of text. If the vehicle computer sends an upgrade request to the vehicle wireless terminal, but does not receive the upgrade result sent by the vehicle wireless terminal within 900s, the third prompt information with the text "Upgrade timeout failure (software flash timeout), please upgrade again after 900s" is displayed on the vehicle computer display interface.

[0100] Through the above scheme, when the vehicle computer continues to fail to receive the upgrade result sent by the vehicle-mounted wireless terminal, a third prompt message is sent to the user to prompt the user that the vehicle-mounted wireless terminal software upgrade response has timed out, so that the user can be informed of the abnormal situation in time and handle it in time to ensure the smooth upgrade of the vehicle-mounted wireless terminal software.

[0101] In some embodiments, after the step 101 responds to reading the upgrade package file of the vehicle-mounted wireless terminal software from the mobile storage device connected to the vehicle terminal, the step further includes:

[0102] Step a: sending a communication connection request to the vehicle-mounted wireless terminal at preset time intervals until a communication connection is established with the vehicle-mounted wireless terminal.

[0103] Step b: in response to failure to establish a communication connection with the vehicle-mounted wireless terminal after a fourth preset time, generating and displaying fourth prompt information, wherein the fourth prompt information is information for prompting a timeout of the software connection with the vehicle-mounted wireless terminal.

[0104] In specific implementation, after the vehicle computer reads the upgrade package file, it sends a communication connection request to the vehicle wireless terminal at a preset time interval to request to establish a communication connection with the vehicle wireless terminal. In this embodiment, the communication connection is a communication connection based on the transmission control protocol.

[0105] Repeatedly send the communication connection request until the communication connection is established with the vehicle-mounted wireless terminal, and stop sending the communication connection request.

[0106] Specifically, the time is counted from the first sending of the communication connection request. If the communication connection is not successfully established after the fourth preset time, it indicates that the connection with the vehicle-mounted wireless terminal software has timed out. A fourth prompt message is generated and displayed.

[0107] The prompting method of the fourth prompting information includes at least one of the following: text prompting, voice prompting, prompting light display, etc. The content form of the fourth prompting information includes at least one of the following: text, picture, rich text, etc.

[0108] For example, the fourth preset time length is 900s, the content of the fourth prompt information is in the form of text, and the preset time interval is 2s. The vehicle computer sends a communication connection request to the vehicle wireless terminal every 2s. If a communication connection is not established with the vehicle wireless terminal within 900s, the fourth prompt information with the text "Upgrade timeout failure (connection timeout), please upgrade again after 900s" is displayed on the vehicle computer display interface.

[0109] In this embodiment, it is necessary to ensure that the vehicle-mounted terminal and the vehicle-mounted wireless terminal maintain a successful connection state of the communication connection based on the transmission control protocol (i.e., TCP connection) at all times. If the TCP connection is disconnected during the software upgrade process, the vehicle-mounted terminal immediately outputs a prompt message to prompt the user that the TCP connection is disconnected. At the same time, the vehicle-mounted terminal requests to reconnect with the vehicle-mounted wireless terminal at a preset time interval, and the duration of the request for reconnection is the preset duration. If the reconnection is still not successful after the preset duration, the software update is stopped, an abnormal prompt message is output, and a rollback prompt message is sent to the vehicle-mounted wireless terminal, wherein the rollback prompt message is used to prompt the vehicle-mounted wireless terminal to roll back the vehicle-mounted wireless terminal software version to the version before the upgrade.

[0110] For example, the preset time interval is 3s, and the preset duration is 600s. If TCP disconnection occurs during the software upgrade, the vehicle terminal displays a prompt message "Disconnected from TBOX, retrying", and the vehicle terminal sends a communication connection request to the vehicle wireless terminal every 3s. If the TCP connection is still not successfully restored after 600s, the vehicle terminal outputs a prompt message "Failed to connect to TBOX", and the vehicle terminal sends a rollback prompt message to the vehicle wireless terminal, and the vehicle wireless terminal controls the vehicle wireless terminal software to roll back to the version before the upgrade to avoid other functions of the vehicle wireless terminal being unusable.

[0111] Through the above scheme, when implementing this scheme, it is necessary to ensure that the vehicle computer end and the vehicle-mounted wireless terminal maintain a communication connection state. Therefore, when the vehicle computer end reads the upgrade package file, it sends a communication connection request to the vehicle-mounted wireless terminal to achieve communication connection. If the communication connection has not been successfully established, the fourth prompt information is output to inform the user that the communication connection cannot be established, so that the user can be informed of the abnormal situation in time and handle it in time to ensure the smooth upgrade of the vehicle-mounted wireless terminal software.

[0112] Based on the same inventive concept, another embodiment of the present disclosure provides a software upgrade method, such as Figure 2 As shown, applied to a vehicle-mounted wireless terminal, the method includes:

[0113] Step 201, in response to receiving an upgrade request sent by the vehicle terminal, obtaining vehicle information.

[0114] In specific implementation, after receiving the upgrade request sent by the vehicle computer, the vehicle-mounted wireless terminal obtains the current vehicle information, wherein the vehicle information includes vehicle power mode, engine status, vehicle gear, vehicle speed, vehicle power, vehicle call function status and data synchronization status of the vehicle-mounted wireless terminal.

[0115] Step 202: Generate a feedback result based on the vehicle information, send the feedback result to the vehicle terminal, and establish a file transfer connection with the vehicle terminal.

[0116] In specific implementation, the vehicle-mounted wireless terminal generates corresponding feedback results according to the vehicle information, and the feedback results include allowing the vehicle-mounted wireless terminal to send the upgrade package file of the vehicle-mounted wireless terminal software or prohibiting the vehicle-mounted wireless terminal from sending the upgrade package file of the vehicle-mounted wireless terminal software. The feedback results are sent to the vehicle-mounted wireless terminal, and a file transfer connection is established with the vehicle-mounted wireless terminal.

[0117] The specific process of establishing a file transfer connection with the vehicle terminal is as follows:

[0118] The vehicle computer sends a file transfer connection establishment request to the vehicle wireless terminal, requesting to connect to the connection port of the vehicle wireless terminal. After the vehicle wireless terminal responds to the file transfer connection establishment request, it sends the target transmission port to the vehicle computer, so that the vehicle computer and the vehicle wireless terminal establish a file transfer connection.

[0119] Specifically, the vehicle computer sends a file transfer connection request to the vehicle wireless terminal. The connection port corresponding to the file transfer connection (FTP connection) is port 21, that is, at this time, the vehicle computer requests the vehicle wireless terminal to connect to port 21. After the vehicle wireless terminal responds to the connection request, it informs the vehicle computer to use port 20 for data transmission, where port 20 is the target transmission port. After receiving the target transmission interface, the vehicle computer transmits the upgrade package file to the vehicle wireless terminal through port 20.

[0120] Step 203, in response to receiving the upgrade package file sent by the vehicle terminal, verifying the upgrade package file.

[0121] In specific implementation, when the upgrade package file sent by the vehicle computer is received, the security and integrity of the upgrade package file are verified to prevent the upgrade package from being illegally tampered with, cracked, or implanted with malicious programs.

[0122] Step 204, determine whether the verification is passed, and upgrade the vehicle-mounted wireless terminal software according to the upgrade package file to obtain an upgrade result.

[0123] In specific implementation, when the upgrade package file passes the verification, it means that the upgrade package file is a complete and safe file. The upgrade package file is used to upgrade the vehicle-mounted wireless terminal software to obtain an upgrade result, wherein the upgrade result indicates whether the vehicle-mounted wireless terminal software is successfully upgraded according to the upgrade package file.

[0124] Accordingly, the upgrade result includes upgrade success and upgrade failure. Upgrade success means that the vehicle-mounted wireless terminal software is successfully upgraded according to the upgrade package file, and upgrade failure means that the vehicle-mounted wireless terminal software is not successfully upgraded according to the upgrade package file.

[0125] Step 205, sending the upgrade result to the vehicle terminal, so that the vehicle terminal can display the upgrade result.

[0126] During specific implementation, the upgrade result is sent to the vehicle computer end, and the upgrade result is displayed on the vehicle computer display interface of the vehicle computer end for the user to view.

[0127] Through the above scheme, after receiving the upgrade request sent by the vehicle computer, the vehicle-mounted wireless terminal first determines whether the current vehicle can upgrade the vehicle-mounted wireless terminal software, generates feedback results, avoids problems with the normal use of the vehicle due to software upgrades, and ensures the safety of the entire vehicle. At the same time, after receiving the upgrade package file sent by the vehicle computer, the vehicle-mounted wireless terminal first verifies the authenticity, integrity, and security of the upgrade package file to avoid the upgrade package from an untrusted source, upgrade incompatibility, and prevents the upgrade package from being illegally tampered with, cracked, or implanted with malicious programs. Finally, the upgrade result is sent to the vehicle computer, so that the vehicle computer can display the upgrade result, making it convenient for users to view the upgrade result.

[0128] In some embodiments, step 202 specifically includes:

[0129] Step 2021, in response to the vehicle information satisfying a preset upgrade condition, generating a feedback result of allowing the upgrade package file to be sent, wherein the preset upgrade condition is a condition for safely performing a vehicle-mounted wireless terminal software upgrade.

[0130] or,

[0131] Step 2022: In response to the vehicle information not satisfying a preset upgrade condition, a feedback result prohibiting sending the upgrade package file is generated.

[0132] In a specific implementation, it is determined whether the acquired vehicle information satisfies a preset upgrade condition, wherein the preset upgrade condition is a condition under which the vehicle-mounted wireless terminal software can be upgraded safely.

[0133] Specifically, the preset upgrade conditions are: if the vehicle model is a fuel vehicle model or a hybrid vehicle model, the vehicle power mode is in the ON state and the engine is in the off state; if the vehicle model is a pure electric vehicle model, the vehicle power mode is in the upper high voltage state, the vehicle gear is the parking gear (P gear), the vehicle speed is 0, the vehicle power is greater than 60% (or when the vehicle model is a new energy vehicle, there is no low voltage alarm for the vehicle power battery), the vehicle call function state is the non-call state (non-X-CALL state), and the data synchronization state of the vehicle-mounted wireless terminal is the non-partition data synchronization state (non-AB partition data synchronization state).

[0134] When the vehicle information meets the preset upgrade conditions, the software upgrade will not affect the normal use of the vehicle and will not cause safety issues, and a feedback result is generated allowing the upgrade package file to be sent.

[0135] When the vehicle information does not meet the preset upgrade conditions, the software upgrade may affect the normal use of the vehicle and may easily cause safety issues, generating a feedback result prohibiting the sending of the upgrade package file.

[0136] Through the above scheme, by judging whether the vehicle information meets the preset upgrade conditions, that is, determining whether the current vehicle can perform the vehicle-mounted wireless terminal software upgrade, generating feedback results, avoiding problems in the normal use of the vehicle due to software upgrades, and ensuring the safety of the entire vehicle.

[0137] In some embodiments, determining that the verification is passed in step 204 specifically includes:

[0138] Step 2041, decrypt the upgrade package file to obtain a decrypted upgrade package file.

[0139] Step 2042, obtaining preset file information, and in response to the decrypted file information corresponding to the decrypted upgrade package file being consistent with the preset file information, determining that the verification is passed.

[0140] In the specific implementation, since the upgrade package file is an encrypted file, after the vehicle-mounted wireless terminal receives the upgrade package file, the upgrade package file is first decrypted to obtain a decrypted upgrade package file. Specifically, the decryption algorithm corresponds to the aforementioned encryption algorithm one by one to achieve successful decryption of the upgrade package file, and the decryption algorithm is not specifically limited.

[0141] Obtain preset file information, wherein the preset file information includes upgrade package file name, vehicle model project code, software version information, digital signature information, etc. Compare the decrypted file information corresponding to the decrypted upgrade package file with the preset file information, and if the decrypted file information corresponding to the decrypted upgrade package file is consistent with the preset file information, determine that the verification is passed.

[0142] In some embodiments, step 205 specifically includes:

[0143] Step 2051: flash and upgrade the vehicle-mounted wireless terminal software according to the upgrade package file to obtain a flash result.

[0144] Step 2052, in response to the flashing result being a successful flashing, controlling the vehicle-mounted wireless terminal software to restart, and after the restart is successful, generating and sending an upgrade result indicating a successful upgrade to the vehicle terminal.

[0145] or,

[0146] Step 2053, in response to the flashing result being a flashing failure, controlling the vehicle-mounted wireless terminal software to roll back to a version before the upgrade, and generating and sending an upgrade result indicating an upgrade failure to the vehicle terminal.

[0147] In specific implementation, after the upgrade package file is verified and passes the verification, the vehicle-mounted wireless terminal software can be flashed and upgraded according to the upgrade package file to obtain a flashing result.

[0148] If the flash writing result is a successful flash writing, that is, the upgrade progress is 100%, the vehicle-mounted wireless terminal software is controlled to restart, and after the restart is successful, an upgrade result of a successful upgrade is generated, and the upgrade result of a successful upgrade is sent to the vehicle terminal.

[0149] If the flashing result is a flashing failure, the vehicle-mounted wireless terminal software is controlled to roll back to the version before the upgrade to prevent other functions of the vehicle-mounted wireless terminal from being unusable. An upgrade result indicating an upgrade failure is generated and sent to the vehicle terminal.

[0150] In some embodiments, after step 202, the method further includes:

[0151] Step 20A, in response to receiving the upgrade package file sent by the vehicle terminal, starting the countdown to the target duration;

[0152] Step 20B: in response to the countdown ending, closing the file transfer connection.

[0153] In specific implementation, the vehicle-mounted wireless terminal starts timing after receiving the upgrade package file, and the timing duration is the target duration. After the target duration, the file transfer connection is automatically closed to avoid abnormal situations. At the same time, the file transfer connection is closed to prevent other illegal devices from sending files to the vehicle-mounted wireless terminal through the file transfer connection, thereby ensuring the security of the vehicle-mounted wireless terminal. In this embodiment, the target duration is preferably 600s.

[0154] Based on the same inventive concept, another embodiment of the present disclosure discloses a software upgrade method, which involves a mobile storage device, a vehicle terminal and a vehicle-mounted wireless terminal, and the method includes:

[0155] Step A, the vehicle terminal sends an upgrade request to the vehicle wireless terminal in response to reading an upgrade package file of the vehicle wireless terminal software from a mobile storage device connected to the vehicle terminal;

[0156] Step B, the vehicle-mounted wireless terminal obtains vehicle information in response to receiving an upgrade request sent by the vehicle computer;

[0157] Step C, the vehicle-mounted wireless terminal generates a feedback result according to the vehicle information, sends the feedback result to the vehicle computer end, and establishes a file transfer connection with the vehicle computer end;

[0158] Step D, the vehicle computer receives the feedback result sent by the vehicle wireless terminal that the upgrade package file is allowed to be sent, and establishes a file transfer connection with the vehicle wireless terminal;

[0159] Step E, the vehicle terminal receives the target transmission port sent by the vehicle-mounted wireless terminal, and sends the upgrade package file through the target transmission port, so that the vehicle-mounted wireless terminal receives the upgrade package file and performs the vehicle-mounted wireless terminal software upgrade;

[0160] Step F, the vehicle-mounted wireless terminal verifies the upgrade package file in response to receiving the upgrade package file sent by the vehicle computer;

[0161] Step G, the vehicle-mounted wireless terminal determines that the verification is passed, and upgrades the vehicle-mounted wireless terminal software according to the upgrade package file to obtain an upgrade result;

[0162] Step H, the vehicle-mounted wireless terminal sends the upgrade result to the vehicle computer end, so that the vehicle computer end displays the upgrade result;

[0163] Step I: The vehicle computer receives and displays the upgrade result sent by the vehicle wireless terminal.

[0164] The specific implementation process of the above steps and the specific implementation process of the aforementioned embodiments will not be repeated here.

[0165] Based on the same inventive concept, the disclosed embodiment also discloses an interactive process of software upgrade, involving a mobile storage device (U disk), a head unit (HUT) and a vehicle-mounted wireless terminal (TBOX), such as Figure 3 As shown, the interaction process specifically includes:

[0166] In this embodiment, HUT initiates FTP request as FTP client, and TBOX responds to FTP request as FTP server. The folder name of TBOX upgrade package is fixed as t-boxusbupdate, the upgrade package file format is a compressed package (e.g. .zip), and the TBOX upgrade package file is encrypted (preferably encrypted using an asymmetric encryption algorithm) and stored in the root directory of the USB disk (FAT32).

[0167] Step 301: insert a USB disk with a TBOX software upgrade file into the HUT, enter the HUT engineering mode, and manually click the TBOX upgrade button, so that the HUT initiates a TBOX upgrade request.

[0168] Specifically, before the HUT initiates an upgrade request, the HUT uses polling to request to establish a TCP connection with the TBOX. The polling interval is 2s. If the TCP connection is not successfully established within 900s, the polling is stopped and the vehicle interface displays "Upgrade timeout failed (connection timeout), please upgrade again after 900s".

[0169] The HUT (host) USB interface is plugged into a USB flash drive, and the TBOX original software upgrade package is transmitted through the FTP protocol as an alternative to OTA upgrade. Compared with the OTA online upgrade solution, this solution does not require secondary production of upgrade packages, does not involve upgrade costs, and is simple and quick for testers to operate, with a higher software upgrade success rate.

[0170] Step 302, TBOX determines whether all the prerequisites for enabling the upgrade function are met, and enters the next process if all are met; if any condition is not met, the corresponding upgrade failure result and reason are returned to HUT, and HUT displays the upgrade failure result and reason, and the process ends.

[0171] Specifically, after HUT initiates the upgrade request Request, if TBOX does not respond with NotAllow or Allow within 30 seconds, the vehicle interface should display "Upgrade timeout failure (precondition response timeout), please upgrade again after 900 seconds". By setting the upgrade precondition judgment logic (see Figure 1 Preconditions description) to ensure the safety of the entire vehicle.

[0172] Step 303, TBOX starts the FTP default control port service (21) and the data transmission port service (20). The upgrade package file is transmitted through the standard FTP service. After the upgrade package file is transmitted, TBOX needs to close the FTP service.

[0173] Specifically, HUT and TBOX follow the standard FTP service interaction process, and HUT logs in to TBOX using account and password authentication.

[0174] Under normal circumstances, after receiving the upgrade package file transfer completion UpgradeComplete from HUT, TBOX needs to close the FTP service; in case of abnormal situations, TBOX needs to automatically close the FTP service after 600s from the time it receives the HUT upgrade request Request.

[0175] Step 304, the TBOX executes the reprogramming logic flow internally, synchronizes once every 3 seconds, and informs the HUT of the upgrade progress status. When the upgrade progress is 100%, the TBOX restarts and informs the HUT of the upgrade result after the restart.

[0176] Specifically, the TBOX upgrade package file needs to be encrypted and saved in the root directory of the USB flash drive. TBOX performs signature verification, decryption and installation, and firmware upgrades and updates. The digest algorithm used for digital signature of the upgrade package file is SHA256 or other higher-level algorithms. The encryption algorithm for the upgrade package file should adopt the national secret SM2, AES, RSA and other cryptographic algorithms, among which the AES length is not less than 512 bits and the RSA length is not less than 2048 bits. The generation of the key should ensure randomness, and the private key needs to be securely stored in hardware, such as TEE.

[0177] TBOX verifies the authenticity, integrity, and security of the upgrade package file, including the upgrade package file name, vehicle model project code, software version information, and digital signature information, to prevent the upgrade package from coming from an untrusted source, upgrade incompatibility, and prevent the upgrade package from being illegally tampered with, cracked, or implanted with malicious programs.

[0178] TBOX synchronizes the upgrade progress status to HUT in the form of 0%-100%, and the Ethernet status signal is transmitted through the SOMEIP protocol. The SOMEIP protocol is the core communication protocol for the current automotive industry to implement SOA architecture. The SOME / IP protocol manages vehicle information in units of services. Services can include various callable methods (Method) and event notification groups (EventGroup). Information is transmitted and shared through the Service Interface, and services are allocated on demand. SOME / IP is located at layers 5-7 of the OSI seven-layer model and needs to run on the TCP / IP protocol stack, that is, all SOME / IP messages are IP messages and TCP / UDP messages.

[0179] If the upgrade progress exceeds 30s from 0% to 100%, TBOX returns the UpgradeProcess status without upgrade progress, and the vehicle interface needs to display "Upgrade timeout failure (upgrade progress response timeout), please upgrade again after 900s".

[0180] If the time from when the HUT triggers the upgrade request Request to when the TBOX returns the upgrade result UpgradeResult exceeds 900s, the TBOX returns no upgrade result UpgradeResult, and the vehicle interface displays "Upgrade timeout failure (software flash timeout), please try again after 900s".

[0181] If TBOX fails to return UpgradeResponse or UpgradeProcess to HUT (vehicle computer) within the agreed time, HUT (vehicle computer) will ignore the response results returned by TBOX.

[0182] Table 1 defines the transmission data involved in the interaction process of the above embodiment, as shown in Table 1:

[0183] Table 1

[0184]

[0185]

[0186]

[0187] It should be noted that the method of the embodiment of the present disclosure can be performed by a single device, such as a computer or a server. The method of the present embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the described method.

[0188] It should be noted that some embodiments of the present disclosure are described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0189] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides a software upgrade device, which is arranged on the vehicle side.

[0190] refer to Figure 4 , Figure 4 The software upgrade device of the embodiment includes:

[0191] The request sending module 401 is configured to send an upgrade request to the vehicle-mounted wireless terminal in response to reading an upgrade package file of the vehicle-mounted wireless terminal software from a mobile storage device connected to the vehicle-mounted terminal;

[0192] The connection establishment module 402 is configured to receive a feedback result from the vehicle-mounted wireless terminal indicating that the upgrade package file can be sent, and establish a file transfer connection with the vehicle-mounted wireless terminal;

[0193] The file transmission module 403 is configured to receive a target transmission port sent by the vehicle-mounted wireless terminal, and send the upgrade package file through the target transmission port, so that the vehicle-mounted wireless terminal receives the upgrade package file and performs the vehicle-mounted wireless terminal software upgrade;

[0194] The result receiving module 404 is configured to receive and display the upgrade result sent by the vehicle-mounted wireless terminal.

[0195] In some embodiments, the device further includes a first prompt module, wherein the first prompt module is configured to:

[0196] Determining whether a feedback result sent by the vehicle-mounted wireless terminal is received within a first preset time period;

[0197] In response to not receiving the feedback result, first prompt information is generated and displayed, wherein the first prompt information is information for prompting the vehicle-mounted wireless terminal that the upgrade request response has timed out.

[0198] In some embodiments, the first prompt module is further configured to:

[0199] In response to receiving the feedback result and the prohibition reason of prohibiting the sending of the upgrade package file sent by the vehicle-mounted wireless terminal, the feedback result and the prohibition reason of prohibiting the sending of the upgrade package file are displayed.

[0200] In some embodiments, the device further includes a progress display module, and the progress display module includes:

[0201] An initial upgrade progress display unit, configured to display the initial upgrade progress;

[0202] The updating unit is configured to receive the upgrading progress sent by the vehicle-mounted wireless terminal according to a preset frequency, replace the initial upgrading progress with the upgrading progress, and display the upgrading progress.

[0203] In some embodiments, the progress display module further includes a second prompt unit, and the second prompt unit is configured to:

[0204] In response to not receiving the upgrade progress sent by the vehicle-mounted wireless terminal within the second preset time period, second prompt information is generated and displayed, wherein the second prompt information is information for prompting the vehicle-mounted wireless terminal that the upgrade progress response has timed out.

[0205] In some embodiments, the device further includes a third prompt module, and the third prompt module is configured to:

[0206] In response to not receiving the upgrade result sent by the vehicle-mounted wireless terminal within the third preset time period, third prompt information is generated and displayed, wherein the third prompt information is information for prompting the vehicle-mounted wireless terminal software upgrade response timeout.

[0207] In some embodiments, the device further includes a fourth prompt module, and the fourth prompt module is configured to:

[0208] Sending a communication connection request to the vehicle-mounted wireless terminal at preset time intervals until a communication connection is established with the vehicle-mounted wireless terminal;

[0209] In response to failure to establish a communication connection with the vehicle-mounted wireless terminal after a fourth preset time period, fourth prompt information is generated and displayed, wherein the fourth prompt information is information for prompting a timeout of the software connection with the vehicle-mounted wireless terminal.

[0210] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present disclosure further provides a software upgrade device, which is arranged in a vehicle-mounted wireless terminal.

[0211] refer to Figure 5 , Figure 5 The software upgrade device of the embodiment includes:

[0212] The information acquisition module 501 is configured to acquire vehicle information in response to receiving an upgrade request sent by the vehicle terminal;

[0213] A feedback result sending module 502 is configured to generate a feedback result according to the vehicle information, send the feedback result to the vehicle terminal, and establish a file transfer connection with the vehicle terminal;

[0214] The verification module 503 is configured to verify the upgrade package file in response to receiving the upgrade package file sent by the vehicle terminal;

[0215] The upgrade module 504 is configured to determine if the verification is passed, upgrade the vehicle-mounted wireless terminal software according to the upgrade package file, and obtain an upgrade result;

[0216] The upgrade result sending module 505 is configured to send the upgrade result to the vehicle terminal so that the vehicle terminal can display the upgrade result.

[0217] In some embodiments, the feedback result sending module 502 is specifically configured to:

[0218] In response to the vehicle information satisfying a preset upgrade condition, generating a feedback result allowing the upgrade package file to be sent, wherein the preset upgrade condition is a condition for safely performing a vehicle-mounted wireless terminal software upgrade; or,

[0219] In response to the vehicle information not satisfying a preset upgrade condition, a feedback result prohibiting sending the upgrade package file is generated.

[0220] In some embodiments, the verification module 503 is specifically configured to:

[0221] Decrypting the upgrade package file to obtain a decrypted upgrade package file;

[0222] Acquire preset file information, and in response to the decrypted file information corresponding to the decrypted upgrade package file being consistent with the preset file information, determine that the verification is passed.

[0223] In some embodiments, the upgrade module 504 is specifically configured to:

[0224] Flashing and upgrading the vehicle-mounted wireless terminal software according to the upgrade package file to obtain a flashing result;

[0225] In response to the flash writing result being a successful flash writing, controlling the vehicle-mounted wireless terminal software to restart, and after the restart is successful, generating and sending an upgrade result indicating a successful upgrade to the vehicle terminal; or,

[0226] In response to the flashing result being a flashing failure, the vehicle-mounted wireless terminal software is controlled to roll back to a version before the upgrade, and an upgrade result indicating an upgrade failure is generated and sent to the vehicle machine end.

[0227] For the convenience of description, the above device is described by dividing it into various modules according to its functions. Of course, when implementing the present disclosure, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0228] The device of the above embodiment is used to implement the corresponding method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0229] Based on the same inventive concept, corresponding to any of the above embodiments and methods, the present disclosure further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the software upgrade method described in any of the above embodiments when executing the program. The electronic device may be a vehicle terminal and / or a vehicle-mounted wireless terminal.

[0230] Figure 6 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.

[0231] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0232] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.

[0233] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0234] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0235] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).

[0236] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0237] The electronic device of the above embodiment is used to implement the corresponding method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0238] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present disclosure also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method described in any of the above embodiments.

[0239] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0240] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0241] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides a vehicle, including the vehicle four-wheel drive mode switching device in the above-mentioned embodiment, the electronic device in the above-mentioned embodiment, and the computer-readable storage medium in the above-mentioned embodiment, and the vehicle equipment implements the method described in any of the above embodiments.

[0242] The vehicle of the above-mentioned embodiment is used to implement the method described in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be described in detail here.

[0243] It is understandable that before using the technical solutions of each embodiment of the present disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved will be informed to the user in an appropriate manner, and the user's authorization will be obtained.

[0244] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0245] As an optional but non-limiting implementation, in response to receiving the user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0246] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0247] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples. Based on the concept of the present disclosure, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present disclosure as described above, which are not provided in detail for the sake of simplicity.

[0248] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present disclosure difficult to understand, the known power / ground connections to the integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present disclosure difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present disclosure will be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present disclosure, it is apparent to those skilled in the art that the embodiments of the present disclosure can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0249] Although the present disclosure has been described in conjunction with specific embodiments of the present disclosure, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0250] The embodiments of the present disclosure are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present disclosure should be included in the scope of protection of the present disclosure.

Claims

1. A software upgrade method, characterized in that: Applied to the vehicle side, including: In response to reading an upgrade package file of the vehicle-mounted wireless terminal software from a mobile storage device connected to the vehicle machine end, sending an upgrade request to the vehicle-mounted wireless terminal; Receiving a feedback result from the vehicle-mounted wireless terminal indicating that the upgrade package file can be sent, and establishing a file transfer connection with the vehicle-mounted wireless terminal; Receiving a target transmission port sent by the vehicle-mounted wireless terminal, and sending the upgrade package file through the target transmission port, so that the vehicle-mounted wireless terminal receives the upgrade package file and performs a vehicle-mounted wireless terminal software upgrade; Receive and display the upgrade results sent by the vehicle-mounted wireless terminal.

2. The method according to claim 1, characterized in that After sending the upgrade request to the vehicle-mounted wireless terminal, it also includes: Determining whether a feedback result sent by the vehicle-mounted wireless terminal is received within a first preset time period; In response to not receiving the feedback result, first prompt information is generated and displayed, wherein the first prompt information is information for prompting the vehicle-mounted wireless terminal that the upgrade request response has timed out.

3. The method according to claim 1, characterized in that After receiving the feedback result of allowing the upgrade package file to be sent from the vehicle-mounted wireless terminal, the method further includes: Display initial upgrade progress; The upgrade progress sent by the vehicle-mounted wireless terminal is received according to a preset frequency, the initial upgrade progress is replaced by the upgrade progress, and the upgrade progress is displayed.

4. The method according to claim 3, characterized in that After the initial upgrade progress is shown, it also includes: In response to not receiving the upgrade progress sent by the vehicle-mounted wireless terminal within the second preset time period, second prompt information is generated and displayed, wherein the second prompt information is information for prompting the vehicle-mounted wireless terminal that the upgrade progress response has timed out.

5. A software upgrade method, characterized in that: Applied to vehicle-mounted wireless terminals, including: In response to receiving an upgrade request sent by the vehicle computer, obtaining vehicle information; Generate a feedback result according to the vehicle information, send the feedback result to the vehicle computer, and establish a file transfer connection with the vehicle computer; In response to receiving the upgrade package file sent by the vehicle computer, verifying the upgrade package file; Determine that the verification is passed, upgrade the vehicle-mounted wireless terminal software according to the upgrade package file, and obtain an upgrade result; The upgrade result is sent to the vehicle computer so that the vehicle computer displays the upgrade result.

6. The method according to claim 5, characterized in that The generating of the feedback result according to the vehicle information comprises: In response to the vehicle information satisfying a preset upgrade condition, generating a feedback result allowing the upgrade package file to be sent, wherein the preset upgrade condition is a condition for safely performing a vehicle-mounted wireless terminal software upgrade; or, In response to the vehicle information not satisfying a preset upgrade condition, a feedback result prohibiting sending the upgrade package file is generated.

7. The method according to claim 5, characterized in that The determining that the verification is passed includes: Decrypting the upgrade package file to obtain a decrypted upgrade package file; Acquire preset file information, and in response to the decrypted file information corresponding to the decrypted upgrade package file being consistent with the preset file information, determine that the verification is passed.

8. The method according to claim 5, characterized in that The step of upgrading the vehicle-mounted wireless terminal software according to the upgrade package file to obtain an upgrade result includes: Flashing and upgrading the vehicle-mounted wireless terminal software according to the upgrade package file to obtain a flashing result; In response to the flash writing result being a successful flash writing, controlling the vehicle-mounted wireless terminal software to restart, and after the restart is successful, generating and sending an upgrade result indicating a successful upgrade to the vehicle terminal; or, In response to the flashing result being a flashing failure, the vehicle-mounted wireless terminal software is controlled to roll back to a version before the upgrade, and an upgrade result indicating an upgrade failure is generated and sent to the vehicle machine end.

9. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the method according to any one of claims 1 to 8 when executing the program.

10. A vehicle, characterized in that: An electronic device comprising the electronic device described in claim 9.

Citation Information

Cited By

  • Intelligent verification method and system for network security of power monitoring system

    CN122496330A

  • Network security intelligent checking method and system for power monitoring system

    CN122496330B