Vehicle gateway upgrade method, device, vehicle and storage medium

By setting up a dual gateway system in the vehicle and using the second gateway to forward signals during the first gateway upgrade, the problem of the vehicle not being able to be used normally during the gateway upgrade process is solved, and the user experience is improved.

CN116633780BActive Publication Date: 2025-08-12GREAT WALL MOTOR CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310608904.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-26
Publication Date
2025-08-12
Estimated Expiration
2043-05-26

AI Technical Summary

Technical Problem

In the prior art, the gateway function cannot be provided during the vehicle gateway upgrade process, resulting in a poor user experience.

Method used

By sending an upgrade command to the first gateway when the first gateway meets the preset upgrade conditions and using the second gateway for routing, the signal forwarding of the gateway during the upgrade process is realized to ensure that the vehicle can still be used normally during the upgrade process.

Benefits of technology

It improves the user experience, solves the problem that the vehicle cannot be used normally during gateway upgrade, and achieves sensorless upgrade.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116633780B_ABST
    Figure CN116633780B_ABST
Patent Text Reader

Abstract

The present invention relates to a vehicle gateway upgrade method, device, vehicle, and storage medium. The vehicle includes a first gateway and a second gateway. The method includes: when the first gateway meets preset upgrade conditions, it sends a first gateway upgrade instruction to the first gateway, and sends the first gateway upgrade instruction and a signal indicating the first gateway is in a pending upgrade state to the second gateway. Upon receiving a network switching preparation signal and a network switching duration signal sent by the second gateway based on the first gateway upgrade instruction and the first gateway's pending upgrade state signal, it sends a first network switching start request to the first and second gateways. After receiving a routing status signal and a network status signal sent by the first and second gateways based on the first network switching start request, it sends a start upgrade instruction to the first gateway, so that when the first gateway is upgraded, the signals of each network segment of the first gateway are routed through the second gateway. This solves the problem of the vehicle not being able to be used normally during the gateway upgrade, and improves the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle electronic technology, and in particular to a vehicle gateway upgrade method, device, vehicle, and storage medium. Background Art

[0002] With the development of Internet technology and the great enrichment of various hardware and application software, the frequency of vehicle software upgrades is getting higher and higher, and the software update function of each vehicle controller has gradually become a necessary function.

[0003] In related technologies, the upgrade process of the vehicle service gateway controller is generally as follows: verify the signature of the upgrade program in the boot program, set the application validity flag after the signature verification is passed, then perform a software reset, judge the application validity flag at startup, and jump to application running if the application is valid.

[0004] However, this method takes a long time to upgrade and cannot provide gateway functions during the upgrade process, which affects the user's normal use of the vehicle and leads to a poor user experience, which needs to be solved urgently. Summary of the Invention

[0005] In view of this, the present invention aims to propose a vehicle gateway upgrade method, which can solve the problem that the vehicle cannot be used normally during the gateway upgrade, resulting in a poor user experience, thereby improving the user experience.

[0006] To achieve the above object, the technical solution of the present invention is achieved as follows:

[0007] A method for upgrading a gateway of a vehicle, wherein the vehicle includes a first gateway and a second gateway, and the method includes the following steps:

[0008] Determining whether the first gateway meets preset upgrade conditions;

[0009] If the first gateway meets the preset upgrade condition, sending a first gateway upgrade instruction to the first gateway, and sending the first gateway upgrade instruction and the first gateway's upgrade status signal to the second gateway, and determining whether a network switching preparation signal and a network switching duration sent by the second gateway based on the first gateway upgrade instruction and the first gateway's upgrade status signal are received; and

[0010] If a network switching preparation signal and a network switching duration are received from the second gateway based on the first gateway upgrade instruction and the to-be-upgraded status signal of the first gateway, a first network switching start request is sent to the first gateway and the second gateway. After receiving a routing status signal and a network status signal sent by the first gateway and the second gateway based on the first network switching start request, an upgrade start instruction is sent to the first gateway, so that signals of each network segment of the first gateway are routed through the second gateway when the first gateway is upgraded.

[0011] Furthermore, after sending the start upgrade instruction to the first gateway, the method further includes:

[0012] Determining whether the first gateway meets the upgrade completion condition;

[0013] If the first gateway meets the upgrade completion condition, an upgrade completion instruction and a second start network switching request are sent to the first gateway and the second gateway, so that after the first gateway and the second gateway complete network switching based on the second start network switching request, the first gateway routes the signals of each network segment of the first gateway through the first gateway, and the second gateway routes the signals of each network segment of the second gateway through the second gateway.

[0014] Furthermore, before sending the first gateway upgrade instruction and the to-be-upgraded status signal of the first gateway to the second gateway, the method further includes:

[0015] determining whether a signal indicating a status of the first gateway to be upgraded, generated by the first gateway based on the first gateway upgrade instruction, is received;

[0016] If the upgrade status signal of the first gateway is received, the first gateway upgrade instruction and the upgrade status signal of the first gateway are sent to the second gateway; otherwise, the first gateway upgrade instruction is resent to the first gateway until the upgrade status signal of the first gateway is received.

[0017] Furthermore, after resending the first gateway upgrade instruction to the first gateway, the method further includes:

[0018] Obtaining a cumulative number of times the first gateway upgrade instruction is resent to the first gateway;

[0019] If the cumulative number of transmissions is greater than a preset number, an upgrade failure message is generated and sent to a preset mobile terminal and / or displayed on the vehicle.

[0020] Furthermore, after sending the first start network switching request to the first gateway and the second gateway, the method further includes:

[0021] Stop routing signals of each network segment of the first gateway, and enable the routing function of the network between the second gateway and the first gateway.

[0022] Compared with the prior art, the vehicle gateway upgrade method of the present invention has the following advantages:

[0023] The vehicle gateway upgrade method of the present invention involves sending a first gateway upgrade instruction to the first gateway when the first gateway meets preset upgrade conditions, and also sending the first gateway upgrade instruction and a pending upgrade status signal of the first gateway to the second gateway. Upon receiving a network switching preparation signal and a network switching duration signal from the second gateway based on the first gateway upgrade instruction and the pending upgrade status signal, the method then sends a first network switching start request to the first and second gateways. Furthermore, upon receiving routing status signals and network status signals from the first and second gateways based on the first network switching start request, the method then sends a start upgrade instruction to the first gateway. This allows the first gateway to route signals from each network segment of the first gateway through the second gateway during the upgrade. This method solves the problem of a vehicle being unable to operate normally during a gateway upgrade, resulting in a poor user experience, thereby improving the user experience.

[0024] Another object of the present invention is to provide a vehicle gateway upgrade device, which can solve the problem that the vehicle cannot be used normally during the gateway upgrade, resulting in a poor user experience, thereby improving the user experience.

[0025] To achieve the above object, the technical solution of the present invention is achieved as follows:

[0026] A gateway upgrade device for a vehicle, the vehicle comprising a first gateway and a second gateway, the device comprising:

[0027] A determination module, configured to determine whether the first gateway meets a preset upgrade condition;

[0028] a sending module, configured to send a first gateway upgrade instruction to the first gateway when the first gateway meets the preset upgrade condition, and send the first gateway upgrade instruction and a signal indicating a pending upgrade state of the first gateway to the second gateway, and determine whether a network switching preparation signal and a network switching duration signal sent by the second gateway based on the first gateway upgrade instruction and the signal indicating a pending upgrade state of the first gateway are received; and

[0029] a processing module, configured to, upon receiving a network switching preparation signal and a network switching duration signal sent by the second gateway based on the first gateway upgrade instruction and the first gateway's upgrade status signal, send a first network switching start request to the first gateway and the second gateway; and, upon receiving a routing status signal and a network status signal sent by the first gateway and the second gateway based on the first network switching start request, send an upgrade start instruction to the first gateway, so that signals of each network segment of the first gateway are routed through the second gateway when the first gateway is upgraded.

[0030] Furthermore, after sending the start upgrade instruction to the first gateway, the processing module is further configured to:

[0031] Determining whether the first gateway meets the upgrade completion condition;

[0032] If the first gateway meets the upgrade completion condition, an upgrade completion instruction and a second start network switching request are sent to the first gateway and the second gateway, so that after the first gateway and the second gateway complete network switching based on the second start network switching request, the first gateway routes the signals of each network segment of the first gateway through the first gateway, and the second gateway routes the signals of each network segment of the second gateway through the second gateway.

[0033] Furthermore, before sending the first gateway upgrade instruction and the upgrade status signal of the first gateway to the second gateway, the sending module is further configured to:

[0034] determining whether a signal indicating a status of the first gateway to be upgraded, generated by the first gateway based on the first gateway upgrade instruction, is received;

[0035] If the upgrade status signal of the first gateway is received, the first gateway upgrade instruction and the upgrade status signal of the first gateway are sent to the second gateway; otherwise, the first gateway upgrade instruction is resent to the first gateway until the upgrade status signal of the first gateway is received.

[0036] Furthermore, after resending the first gateway upgrade instruction to the first gateway, the sending module is further configured to:

[0037] Obtaining a cumulative number of times the first gateway upgrade instruction is resent to the first gateway;

[0038] If the cumulative number of transmissions is greater than a preset number, an upgrade failure message is generated and sent to a preset mobile terminal and / or displayed on the vehicle.

[0039] Furthermore, after sending the first start network switching request to the first gateway and the second gateway, the processing module is further configured to:

[0040] Stop routing signals of each network segment of the first gateway, and enable the routing function of the network between the second gateway and the first gateway.

[0041] The advantages of the vehicle gateway upgrade device and the vehicle gateway upgrade method described above over the prior art are the same and will not be described in detail here.

[0042] Another object of the present invention is to provide a vehicle that can solve the problem of the vehicle being unable to be used normally during gateway upgrades, resulting in a poor user experience, thereby improving the user experience.

[0043] To achieve the above object, the technical solution of the present invention is achieved as follows:

[0044] A vehicle includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the vehicle gateway upgrade method as described in the above embodiment.

[0045] The advantages of the vehicle described above and the gateway upgrade method of the vehicle described above over the prior art are the same and will not be repeated here.

[0046] Another object of the present invention is to provide a computer-readable storage medium that can improve the user experience by resolving the problem that a vehicle cannot be used normally when a gateway is upgraded, resulting in a poor user experience.

[0047] To achieve the above object, the technical solution of the present invention is achieved as follows:

[0048] A computer-readable storage medium stores a computer program, which is executed by a processor to implement the vehicle gateway upgrade method as described in the above embodiment.

[0049] The computer-readable storage medium has the same advantages as the above-mentioned vehicle gateway upgrade method over the prior art, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The accompanying drawings, which constitute part of the present invention, are provided to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are provided to explain the present invention and do not constitute an undue limitation of the present invention. In the accompanying drawings:

[0051] Figure 1 This is a flow chart of a vehicle gateway upgrade method according to an embodiment of the present invention;

[0052] Figure 2 A schematic diagram of the hardware structure of a method for implementing a vehicle gateway upgrade according to an embodiment of the present invention;

[0053] Figure 3 Schematic diagram of a block diagram of a gateway upgrade device for a vehicle according to an embodiment of the present invention;

[0054] Figure 4 Schematic diagram of the structure of a vehicle according to an embodiment of the present invention.

[0055] Explanation of reference numerals: 10 - gateway upgrade device for a vehicle, 100 - determination module, 200 - sending module, 300 - processing module, 401 - memory, 402 - processor, 403 - communication interface. DETAILED DESCRIPTION

[0056] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.

[0057] The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0058] Figure 1 4 is a flow chart of a vehicle gateway upgrading method according to an embodiment of the present invention.

[0059] Before introducing the vehicle gateway upgrade method according to an embodiment of the present invention, the hardware structure for implementing the vehicle gateway upgrade method is first introduced. In this embodiment, Figure 2 As shown, the vehicle needs to be equipped with two gateways at the same time, such as a left area gateway and a right area gateway, wherein both the left area gateway and the right area gateway are connected to the main controller through the network 5.

[0060] Specifically, a dual network connection is required between the left regional gateway and the right regional gateway. For example, the right regional gateway is connected to the left regional gateway through network 1, and the left regional gateway is connected to the right regional gateway through network 2. The left regional gateway performs gateway routing for multiple controllers ECU (Electronic Control Unit), such as ECU4, ECU5, ECU6, ..., ECUn, through network 3, and the right regional gateway performs gateway routing for multiple controllers, such as ECU1, ECU2 and ECU3, through network 4; when the left regional gateway needs to be upgraded, the right regional gateway can realize gateway routing for multiple controllers of the left regional gateway through network 1, and when the right regional gateway needs to be upgraded, the left regional gateway can realize gateway routing for multiple controllers of the right regional gateway through network 2.

[0061] Furthermore, the vehicle gateway upgrade method of the embodiment of the present invention includes the following steps:

[0062] Step S101: determining whether the first gateway meets a preset upgrade condition.

[0063] It should be understood that the preset upgrade conditions can be conditions pre-set by those skilled in the art. For example, when a certain software is improved and needs to be upgraded, it can be determined whether the preset upgrade conditions are met. Whether the first gateway meets the preset upgrade conditions can be determined by Figure 2 The master shown makes the decision.

[0064] It should be noted that the first gateway can be Figure 2 The left regional gateway shown can also be Figure 2 As for the right regional gateway shown, which gateway is specifically used as the first gateway can be set by those skilled in the art according to actual conditions and is not specifically limited here.

[0065] In step S102, if the first gateway meets the preset upgrade conditions, a first gateway upgrade instruction is sent to the first gateway, and the first gateway upgrade instruction and a signal indicating that the first gateway is in an upgrade-to-be-upgraded state are sent to the second gateway. A determination is then made as to whether a network switching preparation signal and a network switching duration signal sent by the second gateway based on the first gateway upgrade instruction and the signal indicating that the first gateway is in an upgrade-to-be-upgraded state are received.

[0066] Specifically, combined Figure 2 As shown, assuming the first gateway is the left-region gateway and the second gateway is the right-region gateway, when the first gateway meets the preset upgrade conditions, the first gateway can receive an upgrade command from the master control to upgrade the first gateway, update its upgrade status signal to "to be upgraded," and send this signal to Network 5. Simultaneously, the master control sends the first gateway upgrade instruction and the first gateway's "to be upgraded" status signal to the second gateway. After confirming that Network 1 is fault-free, the second gateway can send a "ready to switch network" signal based on the first gateway upgrade instruction and the first gateway's "to be upgraded" status signal, and send the network switching duration to each network segment. The second gateway sets the "ready to switch network" signal content to "ready to switch network" signal to "network 1."

[0067] Furthermore, in some embodiments, before sending the first gateway upgrade instruction and the first gateway's upgrade status signal to the second gateway, the method further includes: determining whether the first gateway's upgrade status signal generated by the first gateway based on the first gateway upgrade instruction is received; if the first gateway's upgrade status signal is received, sending the first gateway upgrade instruction and the first gateway's upgrade status signal to the second gateway; otherwise, resending the first gateway upgrade instruction to the first gateway until the first gateway's upgrade status signal is received.

[0068] It can be understood that, in the embodiment of the present invention, the to-be-upgraded status signal of the first gateway is generated by the first gateway based on the first gateway upgrade instruction. Only when the to-be-upgraded status signal of the first gateway is received can the first gateway upgrade instruction and the to-be-upgraded status signal of the first gateway be sent to the second gateway. Otherwise, the master control needs to cyclically resend the first gateway upgrade instruction to the first gateway until the to-be-upgraded status signal of the first gateway generated by the first gateway based on the first gateway upgrade instruction is received.

[0069] Furthermore, in some embodiments, after resending the first gateway upgrade instruction to the first gateway, it also includes: obtaining the cumulative number of times the first gateway upgrade instruction is resent to the first gateway; if the cumulative number of times is greater than a preset number, generating an upgrade failure message, and sending the upgrade failure message to a preset mobile terminal and / or displaying the upgrade failure message on the vehicle.

[0070] The preset number of times may be a number pre-set by a person skilled in the art, a number obtained through a limited number of experiments, or a number obtained through a limited number of computer simulations, and is not specifically limited here.

[0071] Specifically, in this embodiment, the number of times the first gateway upgrade instruction can be resent is not infinite. After the first gateway upgrade instruction is resent to the first gateway, it can be determined whether the upgrade can continue by comparing the cumulative number of times the first gateway upgrade instruction is resent to the first gateway with a preset number of times. That is, if the cumulative number of times the first gateway upgrade instruction is resent to the first gateway is greater than the preset number of times, it indicates that the first gateway upgrade has failed. At the same time, an upgrade failure message is generated and sent to a preset mobile terminal (such as a mobile phone), or the upgrade failure message is displayed on the vehicle, or the upgrade failure message is displayed on the vehicle at the same time as the upgrade failure message is sent to the preset mobile terminal.

[0072] Step S103: If a signal indicating a network switch preparation and a network switch duration is received from the second gateway based on the upgrade instruction of the first gateway and the upgrade status signal of the first gateway, a first network switch start request is sent to the first gateway and the second gateway. After receiving the routing status signal and the network status signal sent by the first gateway and the second gateway based on the first network switch start request, a start upgrade instruction is sent to the first gateway, so that when the first gateway is upgraded, the signals of each network segment of the first gateway are routed through the second gateway.

[0073] Specifically, if the second gateway sends a signal to prepare for network switching and a network switching duration based on the first gateway upgrade instruction and the upgrade status signal of the first gateway, the master controller sends a first start network switching request to the first and second gateways. The first and second gateways can send a routing status signal and a network status signal to the master controller based on the first start network switching request. After the master controller receives the routing status signal and the network status signal through the network 5, it can send a start upgrade instruction to the first gateway through the network 5. Therefore, when the first gateway is upgraded, the signals of each network segment of the first gateway can still be routed through the second gateway.

[0074] Furthermore, in some embodiments, after sending the start upgrade instruction to the first gateway, it also includes: determining whether the first gateway meets the upgrade completion condition; if the first gateway meets the upgrade completion condition, sending the upgrade end instruction and the second start network switching request to the first gateway and the second gateway, so that after the first gateway and the second gateway complete the network switching based on the second start network switching request, the first gateway routes the signals of each network segment of the first gateway, and the second gateway routes the signals of each network segment of the second gateway through the second gateway.

[0075] Specifically, after the master receives the routing status and network status of the first and second gateways respectively, it can send a start upgrade instruction to the first gateway, and the first gateway starts to upgrade itself. At the same time, the master can feedback the upgrade status signal of the first gateway to the second gateway and determine whether the first gateway meets the upgrade completion conditions. If the first gateway meets the upgrade completion conditions, it indicates that the upgrade of the first gateway is completed. The master will send an upgrade end instruction and a second start network switching request to the first gateway and the second gateway. At the same time, the first gateway can close the routing relationship of network 5 according to the status in network 1. After the first and second gateways complete the network switching based on the second start network switching request, they can resume normal functions, that is, the first gateway routes the signals of each network segment of the first gateway through the first gateway, and the second gateway routes the signals of each network segment of the second gateway through the second gateway.

[0076] Furthermore, in some embodiments, after sending the first start network switching request to the first gateway and the second gateway, the method further includes: stopping the routing signals of each network segment of the first gateway, and enabling the routing function of the network between the second gateway and the first gateway.

[0077] Specifically, after the master sends the first start network switching request to the first and second gateways, the first and second gateways can route the first start network switching request to network 3 and network 4 respectively, and then the first gateway stops routing of network 5, and at the same time sends a signal to network 3 and network 5 to stop routing of each network segment of the first gateway. After the second gateway receives the signal to stop routing of each network segment of the first gateway, it will stop routing the first gateway signal from network 5 and turn on the routing function of network 1 (that is, turn on the routing function of the network between the second gateway and the first gateway), and after network 1 is successfully turned on, it sends a status signal to each network segment that the routing function of network 1 has been turned on.

[0078] It should be noted that this embodiment only provides a detailed explanation of the upgrade of the left-region gateway. The specific implementation method of the upgrade of the right-region gateway is similar to that of the left-region gateway. In order to reduce redundancy, it will not be described here. In addition, in the embodiment of the present invention, the master needs to pay attention to the network switching status before sending the upgrade instruction; the network switching status signal has a higher priority than other application messages; each ECU can temporarily stop monitoring related signal messages according to the network switching time; the non-upgraded gateway needs to monitor the upgrade request status of the other gateway and perform network status verification. By changing the network architecture, the impact of the gateway upgrade on other ECUs can be resolved, thereby achieving a senseless upgrade.

[0079] According to an embodiment of the present invention, a vehicle gateway upgrade method is proposed. When the first gateway meets preset upgrade conditions, the method sends a first gateway upgrade instruction to the first gateway, and also sends the first gateway upgrade instruction and a pending upgrade status signal of the first gateway to the second gateway. Upon receiving a network switching preparation signal and a network switching duration signal from the second gateway based on the first gateway upgrade instruction and the pending upgrade status signal, the method sends a first network switching start request to the first and second gateways. Furthermore, upon receiving a routing status signal and a network status signal from the first and second gateways based on the first network switching start request, the method sends a start upgrade instruction to the first gateway. This allows the first gateway to route signals from each network segment of the first gateway through the second gateway during the upgrade. This method solves the problem of a vehicle being unable to operate normally during a gateway upgrade, resulting in a poor user experience, thereby improving the user experience.

[0080] Secondly, if Figure 3 As shown, an embodiment of the present invention further discloses a vehicle gateway upgrade device 10 , which includes: a judgment module 100 , a sending module 200 and a processing module 300 .

[0081] Specifically, the determination module 100 is configured to determine whether the first gateway meets preset upgrade conditions. The sending module 200 is configured to, when the first gateway meets the preset upgrade conditions, send a first gateway upgrade instruction to the first gateway, and send the first gateway upgrade instruction and a pending upgrade status signal of the first gateway to the second gateway, and determine whether a network switching preparation signal and a network switching duration signal sent by the second gateway based on the first gateway upgrade instruction and the pending upgrade status signal of the first gateway have been received. The processing module 300 is configured to, upon receiving the network switching preparation signal and the network switching duration signal sent by the second gateway based on the first gateway upgrade instruction and the pending upgrade status signal of the first gateway, send a first network switching start request to the first and second gateways, and after receiving the routing status signal and network status signal sent by the first and second gateways based on the first network switching start request, send a start upgrade instruction to the first gateway, so that signals from each network segment of the first gateway are routed through the second gateway during the first gateway upgrade.

[0082] Furthermore, in some embodiments, after sending the upgrade start instruction to the first gateway, the processing module 300 is further configured to:

[0083] Determining whether the first gateway meets the upgrade completion conditions;

[0084] If the first gateway meets the upgrade completion conditions, an upgrade completion instruction and a second start network switching request are sent to the first gateway and the second gateway, so that after the first gateway and the second gateway complete the network switching based on the second start network switching request, the signals of each network segment of the first gateway are routed through the first gateway, and the signals of each network segment of the second gateway are routed through the second gateway.

[0085] Furthermore, in some embodiments, before sending the first gateway upgrade instruction and the upgrade status signal of the first gateway to the second gateway, the sending module 200 is further configured to:

[0086] Determining whether a first gateway upgrade status signal generated by the first gateway based on the first gateway upgrade instruction is received;

[0087] If the upgrade status signal of the first gateway is received, the first gateway upgrade instruction and the upgrade status signal of the first gateway are sent to the second gateway; otherwise, the first gateway upgrade instruction is resent to the first gateway until the upgrade status signal of the first gateway is received.

[0088] Furthermore, in some embodiments, after resending the first gateway upgrade instruction to the first gateway, the sending module 200 is further configured to:

[0089] Obtaining the cumulative number of times the first gateway upgrade instruction is resent to the first gateway;

[0090] If the cumulative number of transmissions is greater than the preset number, an upgrade failure message is generated and sent to a preset mobile terminal and / or displayed on the vehicle.

[0091] Furthermore, in some embodiments, after sending the first start network switching request to the first gateway and the second gateway, the processing module 300 is further configured to:

[0092] Stop routing signals for each network segment of the first gateway, and enable the routing function of the network between the second gateway and the first gateway.

[0093] It should be noted that the specific implementation of the vehicle gateway upgrade device in the embodiment of the present invention is similar to the specific implementation of the vehicle gateway upgrade method. In order to reduce redundancy, they are not described here.

[0094] According to an embodiment of the present invention, a vehicle gateway upgrade device sends a first gateway upgrade instruction to the first gateway when the first gateway meets preset upgrade conditions, and also sends the first gateway upgrade instruction and a pending upgrade status signal of the first gateway to the second gateway. Upon receiving a network switching preparation signal and a network switching duration signal from the second gateway based on the first gateway upgrade instruction and the pending upgrade status signal, the device sends a first network switching start request to the first and second gateways. Furthermore, upon receiving a routing status signal and a network status signal from the first and second gateways based on the first network switching start request, the device sends a start upgrade instruction to the first gateway. This allows the first gateway to route the signals of each network segment of the first gateway through the second gateway during the upgrade. This solves the problem of a vehicle being unable to operate normally during a gateway upgrade, resulting in a poor user experience, thereby improving the user experience.

[0095] Furthermore, an embodiment of the present invention discloses a vehicle, Figure 4 A schematic diagram of the structure of a vehicle provided in an embodiment of the present invention. The vehicle may include:

[0096] Memory 401 , processor 402 , and computer programs stored in the memory 401 and executable on the processor 402 .

[0097] When the processor 402 executes the program, the vehicle gateway upgrade method provided in the above embodiment is implemented.

[0098] Additionally, the vehicle includes:

[0099] The communication interface 403 is used for communication between the memory 401 and the processor 402 .

[0100] The memory 401 is used to store computer programs that can be run on the processor 402 .

[0101] The memory 401 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.

[0102] If the memory 401, the processor 402, and the communication interface 403 are implemented independently, the communication interface 403, the memory 401, and the processor 402 can be connected to each other via a bus and communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.

[0103] Optionally, in a specific implementation, if the memory 401, the processor 402 and the communication interface 403 are integrated on a chip, the memory 401, the processor 402 and the communication interface 403 can communicate with each other through an internal interface.

[0104] The processor 402 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.

[0105] In addition, an embodiment of the present invention further discloses a computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned vehicle gateway upgrade method when executed by a processor.

[0106] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A vehicle gateway upgrade method, characterized in that: The vehicle comprises a first gateway and a second gateway, wherein the method comprises the following steps: Determining whether the first gateway meets preset upgrade conditions; If the first gateway meets the preset upgrade condition, sending a first gateway upgrade instruction to the first gateway, and sending the first gateway upgrade instruction and the first gateway's upgrade status signal to the second gateway, and determining whether a network switching preparation signal and a network switching duration sent by the second gateway based on the first gateway upgrade instruction and the first gateway's upgrade status signal are received; and If a network switching preparation signal and a network switching duration are received from the second gateway based on the first gateway upgrade instruction and the to-be-upgraded status signal of the first gateway, a first network switching start request is sent to the first gateway and the second gateway. After receiving a routing status signal and a network status signal sent by the first gateway and the second gateway based on the first network switching start request, an upgrade start instruction is sent to the first gateway, so that signals of each network segment of the first gateway are routed through the second gateway when the first gateway is upgraded.

2. The method according to claim 1, characterized in that After sending the upgrade start instruction to the first gateway, the method further includes: Determining whether the first gateway meets the upgrade completion condition; If the first gateway meets the upgrade completion condition, an upgrade completion instruction and a second start network switching request are sent to the first gateway and the second gateway, so that after the first gateway and the second gateway complete network switching based on the second start network switching request, the first gateway routes the signals of each network segment of the first gateway through the first gateway, and the second gateway routes the signals of each network segment of the second gateway through the second gateway.

3. The method according to claim 1, characterized in that Before sending the first gateway upgrade instruction and the upgrade status signal of the first gateway to the second gateway, the method further includes: determining whether a signal indicating a status of the first gateway to be upgraded, generated by the first gateway based on the first gateway upgrade instruction, is received; If the upgrade status signal of the first gateway is received, the first gateway upgrade instruction and the upgrade status signal of the first gateway are sent to the second gateway; otherwise, the first gateway upgrade instruction is resent to the first gateway until the upgrade status signal of the first gateway is received.

4. The method according to claim 3, characterized in that After resending the first gateway upgrade instruction to the first gateway, the method further includes: Obtaining a cumulative number of times the first gateway upgrade instruction is resent to the first gateway; If the cumulative number of transmissions is greater than a preset number, an upgrade failure message is generated and sent to a preset mobile terminal and / or displayed on the vehicle.

5. The method according to claim 1, wherein After sending the first start network switching request to the first gateway and the second gateway, the method further includes: Stop routing signals of each network segment of the first gateway, and enable the routing function of the network between the second gateway and the first gateway.

6. A vehicle gateway upgrade device, characterized in that: The vehicle includes a first gateway and a second gateway, wherein the apparatus includes: A determination module, configured to determine whether the first gateway meets a preset upgrade condition; a sending module, configured to send a first gateway upgrade instruction to the first gateway when the first gateway meets the preset upgrade condition, and send the first gateway upgrade instruction and a signal indicating a pending upgrade state of the first gateway to the second gateway, and determine whether a network switching preparation signal and a network switching duration signal sent by the second gateway based on the first gateway upgrade instruction and the signal indicating a pending upgrade state of the first gateway are received; and a processing module, configured to, upon receiving a network switching preparation signal and a network switching duration signal sent by the second gateway based on the first gateway upgrade instruction and the first gateway's upgrade status signal, send a first network switching start request to the first gateway and the second gateway; and, upon receiving a routing status signal and a network status signal sent by the first gateway and the second gateway based on the first network switching start request, send an upgrade start instruction to the first gateway, so that signals of each network segment of the first gateway are routed through the second gateway when the first gateway is upgraded.

7. The device according to claim 6, characterized in that After sending the upgrade start instruction to the first gateway, the processing module is further configured to: Determining whether the first gateway meets the upgrade completion condition; If the first gateway meets the upgrade completion condition, an upgrade completion instruction and a second start network switching request are sent to the first gateway and the second gateway, so that after the first gateway and the second gateway complete network switching based on the second start network switching request, the first gateway routes the signals of each network segment of the first gateway through the first gateway, and the second gateway routes the signals of each network segment of the second gateway through the second gateway.

8. The device according to claim 6, characterized in that Before sending the first gateway upgrade instruction and the to-be-upgraded status signal of the first gateway to the second gateway, the sending module is further configured to: determining whether a signal indicating a status of the first gateway to be upgraded, generated by the first gateway based on the first gateway upgrade instruction, is received; If the upgrade status signal of the first gateway is received, the first gateway upgrade instruction and the upgrade status signal of the first gateway are sent to the second gateway; otherwise, the first gateway upgrade instruction is resent to the first gateway until the upgrade status signal of the first gateway is received.

9. A vehicle, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the vehicle gateway upgrade method according to any one of claims 1 to 5.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the vehicle gateway upgrade method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Upgrading method and device

    CN113094062A

  • Handshake authentication method and device, readable storage medium and vehicle

    CN113727299A