CN113721946A - OTA (over the air) upgrading method, OTA upgrading system, readable storage medium and vehicle - Google Patents

OTA (over the air) upgrading method, OTA upgrading system, readable storage medium and vehicle Download PDF

Info

Publication number
CN113721946A
CN113721946A CN202110796868.7A CN202110796868A CN113721946A CN 113721946 A CN113721946 A CN 113721946A CN 202110796868 A CN202110796868 A CN 202110796868A CN 113721946 A CN113721946 A CN 113721946A
Authority
CN
China
Prior art keywords
module
vehicle
upgraded
wake
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110796868.7A
Other languages
Chinese (zh)
Inventor
辜云
龚振凯
陈江波
谢颖茹
刘婷
涂将辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangling Motors Corp Ltd
Original Assignee
Jiangling Motors Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangling Motors Corp Ltd filed Critical Jiangling Motors Corp Ltd
Priority to CN202110796868.7A priority Critical patent/CN113721946A/en
Publication of CN113721946A publication Critical patent/CN113721946A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4416Network booting; Remote initial program loading [RIPL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides an OTA upgrading method, a system, a readable storage medium and a vehicle, wherein the method comprises the following steps: acquiring a wake-up request sent by a vehicle-mounted communication module, and enabling the vehicle-mounted communication module to be in a wake-up state according to the wake-up request; requesting the vehicle-mounted communication module to send upgrading data of a module to be upgraded; when the upgrading data of the module to be upgraded are received, the CAN network where the module to be upgraded is located is awakened according to the upgrading data of the module to be upgraded, and the upgrading data are sent to the CAN network which is awakened currently. According to the OTA upgrading method provided by the invention, the CAN network where the module to be upgraded is located is awakened in a targeted manner, so that the whole vehicle network is effectively prevented from being awakened, the load rate on the bus is greatly reduced, the OTA upgrading speed is favorably improved, and the whole vehicle cost is reduced.

Description

OTA (over the air) upgrading method, OTA upgrading system, readable storage medium and vehicle
Technical Field
The invention relates to the technical field of vehicle OTA upgrading, in particular to an OTA upgrading method, a system, a readable storage medium and a vehicle.
Background
Along with the continuous development of the electromotion, the intellectualization, the networking and the sharing in the automobile field, the function of the automobile ECU is more and more powerful, in the intelligent processing of the automobile, the information processing is generally carried out through the matching of a cloud end and the automobile, if in the upgrading process of the automobile ECU, an upgrading package needs to be obtained, and then the automobile is subjected to the updating processing according to the upgrading package.
In The prior art, a vehicle generally implements online update and upgrade of system software through an advanced Over The Air technology (OTA for short), so as to implement functions of uploading, downloading, code updating and The like of software and hardware for data transmission on The vehicle.
However, when the OTA upgrade is performed on the vehicle, the network of the entire vehicle is woken up, so that all modules continuously send signals, the load rate on the bus is high, and the purpose of efficiently saving the cost cannot be achieved.
Disclosure of Invention
Based on the above, the invention aims to provide an OTA upgrading method to solve the problem that the bus load rate is high due to the fact that the whole vehicle network is awakened when the OTA is upgraded in the prior art.
The OTA upgrading method provided by the invention is applied to a gateway of a vehicle, and comprises the following steps:
acquiring a wake-up request sent by a vehicle-mounted communication module, and enabling the vehicle-mounted communication module to be in a wake-up state according to the wake-up request, wherein the wake-up request is sent by the vehicle-mounted communication module when an external OTA (over the air) upgrading request is received;
requesting the vehicle-mounted communication module to send upgrading data of a module to be upgraded;
when receiving the upgrading data of the module to be upgraded, awakening the CAN network where the module to be upgraded is located according to the upgrading data of the module to be upgraded, and sending the upgrading data to the currently awakened CAN network, so that the module to be upgraded obtains the upgrading data and performs OTA upgrading according to the upgrading data.
According to the OTA upgrading method, the CAN network where the module to be upgraded is located is wakened in a targeted mode, so that the whole vehicle network is effectively prevented from being wakened, the load rate on a bus is greatly reduced, and the OTA upgrading speed is improved. Specifically, when an external OTA upgrade request is detected, a wake-up request sent by the vehicle-mounted communication module is sent to the gateway, the gateway confirms whether the gateway needs to wake up according to the wake-up request, the gateway acquires upgrade data sent by the vehicle-mounted communication module after wake-up, and wakes up the CAN network where the module to be upgraded, which receives the upgrade data, is located according to the upgrade data, so that other CAN networks are effectively prevented from being woken up, the upgrade data is sent to the currently woken-up CAN network to complete OTA upgrade, the problem that the whole vehicle network is woken up to cause higher bus load rate only if the OTA upgrade request exists outside in the prior art is solved, and the whole vehicle cost is reduced.
Further, the step of enabling the mobile terminal to be in the wake-up state according to the wake-up request comprises:
acquiring a preset message sent by the vehicle-mounted communication module in a normal period to enter a conventional operation mode, and starting a first timer;
resetting the first timer to restart timing after receiving a preset message sent by the vehicle-mounted communication module every time;
and when the value of the first timer is detected to be greater than or equal to a first preset time, releasing the CAN network where the module to be upgraded is located to enter a sleep mode.
Further, the 0 th byte of the preset message is a control byte, and the control byte comprises a repeat message request bit and an active wakeup state bit;
the step of waking up the CAN network where the module to be upgraded is located according to the upgrade data of the module to be upgraded comprises the following steps:
and judging whether the CAN network where the module to be upgraded is located needs to be awakened or not according to the active awakening state bit in the preset message.
Further, the step of entering the normal operation mode in the working state further includes:
the CAN network communication of the module to be upgraded is kept;
detecting whether the current state is in a normal operation mode or a sleep mode in real time;
and if the current state is still detected to be the conventional operation mode, forbidding sending the network management message with the sleep indication bit.
Further, the step after releasing the CAN network to enter the sleep mode further includes:
acquiring a network dormancy instruction;
detecting whether the whole vehicle network has a wake-up request within a second preset time according to the network dormancy instruction;
and if the wake-up request does not exist within the second preset time, switching to a sleep mode, and forbidding sending of the upgrade data.
Further, the step of judging whether to wake up the CAN network according to the active wake-up status bit includes:
when the active awakening state position is detected to be 1, awakening the CAN network where the module to be upgraded is located;
and when the active awakening state position is detected to be 0, controlling the mobile terminal to enter a sleep mode.
Further, the upgrade data is an application packet, the range of the first preset time is 1800-2200ms, the range of the second preset time is 3-5s, and the range of the normal period is 80-120 ms.
The invention also provides an OTA upgrading system, which is applied to a gateway of a vehicle, and the OTA upgrading system comprises:
the active wake-up control module: the system comprises a vehicle-mounted communication module, a wake-up request and a power supply module, wherein the wake-up request is used for acquiring the wake-up request sent by the vehicle-mounted communication module and enabling the vehicle-mounted communication module to be in a wake-up state according to the wake-up request, and the wake-up request is sent by the vehicle-mounted communication module when an external OTA (over the air) upgrading request is received;
an upgrade request module: the system comprises a vehicle-mounted communication module, a module to be upgraded and a module to be upgraded, wherein the vehicle-mounted communication module is used for requesting the vehicle-mounted communication module to send upgrading data of the module to be upgraded;
the passive wake-up control module: and when receiving the upgrade data of the module to be upgraded, waking up the CAN network where the module to be upgraded is located according to the upgrade data of the module to be upgraded, and sending the upgrade data to the currently woken CAN network, so that the module to be upgraded obtains the upgrade data and performs OTA upgrade according to the upgrade data.
In another aspect, the present invention further provides a readable storage medium, on which one or more programs are stored, which when executed by a processor implement the OTA upgrade method as described above.
Another aspect of the present invention also provides a vehicle comprising a memory and a processor, wherein:
a memory: for storing a computer program;
a processor: the method for flashing the automobile ECU program is realized when the computer program stored in the memory is executed.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
Fig. 1 is a flowchart of an OTA upgrading method according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a gateway, a vehicle-mounted communication module, and a CAN network according to a first embodiment of the present invention;
fig. 3 is a flowchart of an OTA upgrading method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of an OTA upgrading system according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of the passive wake-up control module in fig. 4.
The following detailed description will further illustrate the invention in conjunction with the above-described figures.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Several embodiments of the invention are presented in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The terms "vertical," "horizontal," "left," "right," and the like as used herein are for illustrative purposes only.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The first embodiment:
referring to fig. 1, a flowchart of an OTA upgrading method in a first embodiment of the present invention is shown, which is applied to a gateway of a vehicle, and the OTA upgrading method includes steps S01 to S03.
S01: acquiring a wake-up request sent by a vehicle-mounted communication module, and enabling the vehicle-mounted communication module to be in a wake-up state according to the wake-up request, wherein the wake-up request is sent by the vehicle-mounted communication module when an external OTA (over the air) upgrading request is received;
the vehicle-mounted communication module is specifically a vehicle-mounted T-BOX, namely a vehicle-mounted internet terminal, which is equivalent to a host control system on an automobile and can be connected in a network manner through a network and various terminals so as to control electronic equipment in the automobile.
It should be noted that the wake-up request is embodied as: when the vehicle-mounted communication module receives an external OTA upgrading request, the vehicle-mounted communication module is triggered to enter a repeated sending state, at the moment, the vehicle-mounted communication module sends preset messages with preset quantity to the gateway in a fast period, the second timer is started, and the gateway awakens the vehicle-mounted communication module according to the sending period of the preset messages.
Further, after the vehicle-mounted communication module successfully sends the preset message to the gateway once, the preset number is correspondingly reduced by 1, and when the preset number is detected to be reduced to 0 or the value of the second timer is detected to be greater than or equal to the preset threshold value, the vehicle-mounted communication module enters a conventional operation mode at the moment.
Specifically, the time optimal range of the rapid cycle is 18-22ms, the optimal range of the preset number is 8-12 times, and the time optimal range of the preset threshold value is 30-80 ms.
It should be noted that the OTA upgrade request may be a reserved upgrade task or a silent upgrade task, that is, as long as the vehicle-mounted T-BOX detects and receives an external upgrade task request, it will automatically trigger itself to send a wake-up request to the gateway.
S02: requesting the vehicle-mounted communication module to send upgrading data of a module to be upgraded;
it can be understood that, when the gateway successfully wakes up itself according to the received wake-up request, a request instruction is sent to the vehicle-mounted T-BOX to receive the upgrade data required by the module to be upgraded related to the OTA upgrade task.
It should be noted that the upgrade data includes, but is not limited to, an application message used by the module to be upgraded, where the application message is a data unit exchanged and transmitted in the network, i.e., a data block to be sent by the vehicle-mounted T-BOX at a time. The application message contains complete data information to be transmitted, and the length of the application message is not consistent and is unlimited and variable.
S03: when receiving the upgrading data of the module to be upgraded, awakening the CAN network where the module to be upgraded is located according to the upgrading data of the module to be upgraded, and sending the upgrading data to the currently awakened CAN network, so that the module to be upgraded obtains the upgrading data and performs OTA upgrading according to the upgrading data.
It CAN be understood that when the gateway receives the upgrade data required by the module to be upgraded, the gateway wakes up the CAN network where the module to be upgraded is located in a targeted manner, and sends the received upgrade data to the CAN network where the module to be upgraded is located after the gateway successfully wakes up, so that the module to be upgraded completes the OTA upgrade task.
For example, but not by way of limitation, referring to fig. 2, when an externally received upgrade task is to upgrade the ECU1, the module to be upgraded is the ECU1 at this time, the gateway wakes up the CAN1 network where the ECU1 is located in a targeted manner according to the received upgrade data, but other CAN networks, such as the CAN2 network and the CAN3 network, cannot be woken up, and after waking up the CAN1 network, the gateway sends the upgrade data to the ECU1 to complete the upgrade task.
In summary, according to the OTA upgrading method in this embodiment, when an external OTA upgrading request is detected, a wake-up request sent by the vehicle-mounted communication module is sent to the gateway, the gateway determines whether the gateway needs to wake up itself according to the wake-up request, the gateway acquires the upgrade data sent by the vehicle-mounted communication module after wake-up, and wakes up the CAN network where the module to be upgraded, which receives the upgrade data, is located according to the upgrade data, so as to effectively avoid other CAN networks from being woken up, and then sends the upgrade data to the currently woken-up CAN network to complete OTA upgrading.
Second embodiment:
referring to fig. 3, an OTA upgrading method in a second embodiment of the present invention is applied to a gateway of a vehicle, and the OTA upgrading method includes steps S11 to S21:
s11: acquiring a wake-up request sent by a vehicle-mounted communication module, and enabling the vehicle-mounted communication module to be in a wake-up state according to the wake-up request, wherein the wake-up request is sent by the vehicle-mounted communication module when an external OTA (over the air) upgrading request is received;
s12: acquiring a preset message sent by the vehicle-mounted communication module in a normal period to enter a conventional operation mode, and starting a first timer;
it can be understood that, in the gateway wake-up process, when the vehicle-mounted communication module detects that the preset number is reduced to 0 or the second timer is overtime, the vehicle-mounted communication module enters the conventional operation mode at this time, and sends the message to the gateway in the normal cycle, and the gateway also enters the conventional operation mode according to the cycle of the preset message.
S13: resetting the first timer to restart timing after receiving a preset message sent by the vehicle-mounted communication module every time;
it CAN be understood that the gateway continuously receives the preset message to keep the gateway in the wake-up state all the time, and the vehicle-mounted communication module continuously sends the preset message to the gateway is determined by the fact that the OTA upgrade task exists, so that after the vehicle-mounted communication module obtains the OTA upgrade result, the vehicle-mounted communication module stops sending the preset message, in order to further reduce the bus load rate, the first timer is set to detect the sending period of the preset message, and therefore the gateway is very necessary to judge whether the CAN network where the module to be upgraded is located needs to be released according to the result, so that the whole vehicle network is ensured to be closed at the first time after the OTA upgrade task is completed, and the whole vehicle cost is saved.
S14: when the value of the first timer is detected to be greater than or equal to a first preset time, releasing the CAN network where the module to be upgraded is located to enter a sleep mode;
specifically, the time range of the normal period is 80-120ms, and the range of the first preset time is 120-200ms, it can be understood that, since the first timer is used for calculating the frequency of obtaining the preset message, the setting value of the normal period is usually smaller than the first preset time value, so as to avoid interruption of the upgrading process due to the timing error objectively existing in the timer.
S15: requesting the vehicle-mounted communication module to send upgrading data of a module to be upgraded;
it can be understood that the upgrade data includes, but is not limited to, a preset message and an application message, and when it is detected that the value of the first timer is less than the first preset time, it is obviously indicated that the OTA upgrade process is not completed at this time, and the gateway is already in the awake state at this time, in order to complete the subsequent upgrade, the gateway sends a request instruction to the vehicle-mounted communication module, so that the vehicle-mounted communication module sends the upgrade data of the module to be upgraded.
S16: and judging whether the CAN network where the module to be upgraded is located needs to be awakened or not according to the active awakening state bit in the preset message.
It is understood that the predetermined message is a special network management message, the predetermined message is arranged in a Motorola MSB format, the predetermined message includes 8 bytes, wherein the 0 th byte is a control byte, the other bytes are filled with 0x55, the control byte is defined as table 1, and the control byte is used to represent a predetermined message status, and the control byte mainly includes a repeat message request bit and an active wakeup status bit.
TABLE 1
Figure RE-GDA0003238173040000081
Further, when the vehicle-mounted communication module sends the preset message in a fast cycle, the repeated message requests the position 1, namely, the vehicle-mounted communication module enters a repeated sending state, so that the vehicle-mounted communication module continuously sends the preset message, and the gateway starts to detect the content of the active awakening state bit in the preset message after receiving the upgrade data sent by the vehicle-mounted communication module.
S17: when the gateway detects that the active awakening state position is 1, awakening the CAN network where the module to be upgraded is located;
it CAN be understood that when the gateway detects that the active request bit in the preset message is 1, it determines that the operation of waking up the CAN network needs to be performed, and at this time, the gateway confirms the module to be upgraded according to the application message in the upgrade data, and then wakes up the CAN network where the module to be upgraded is located, thereby preventing other CAN networks from being woken up at the same time, and achieving the purpose of reducing the bus load rate.
S18: the CAN network communication of the module to be upgraded is kept, and whether the current state is in a conventional operation mode or a sleep mode is detected in real time;
it CAN be understood that, after the gateway wakes up the CAN network where the module to be upgraded is located, the application message in the upgrade data needs to be sent to the currently wakened CAN network, at this time, the CAN network communication where the module to be upgraded is located needs to be maintained, so as to complete the OTA upgrade task, meanwhile, in order to facilitate the gateway to accurately manage the CAN network, the gateway determines whether the CAN network communication where the module to be upgraded is located needs to be maintained through detecting the current state of the gateway in real time, so as to timely release the wakened CAN network, thereby further saving energy consumption and reducing the cost of the whole vehicle.
S19: and if the current state is still detected to be the conventional operation mode, forbidding sending the network management message with the sleep indication bit.
It can be understood that when the gateway detects that it is still in the normal operation mode, it is not allowed to send the OSEK network management message of the sleep indication bit (sleep.
S20: and when the gateway detects that the active awakening state position is 0, controlling the gateway to enter a sleep mode.
It CAN be understood that, when the vehicle-mounted communication module obtains the OTA upgrade result and judges that the scheduled upgrade or silent upgrade task is completed according to the OTA upgrade result, the active wakeup state position 0 in the preset message sent to the gateway by the vehicle-mounted communication module at this time, and when the gateway detects that the received active wakeup state position is 0, the gateway CAN judge that the OTA upgrade task is completed at this time, and then control the gateway to enter the sleep mode and release the network to disconnect the CAN network which was wakened up.
S21: acquiring a network dormancy instruction; detecting whether the whole vehicle network has a wake-up request within a second preset time according to the network dormancy instruction; and if the wake-up request does not exist within the second preset time, switching to a sleep mode, and forbidding sending of the upgrade data.
It can be understood that, after the gateway controls itself to enter the sleep mode, the third timer is started, and by detecting whether there is a wake-up request in the second preset time, that is, whether there is a reserved upgrade or a silent upgrade task outside, preferably, the second preset time is 3-5s, if there is no wake-up request in the second preset time, it indicates that there is no OTA upgrade task in the external short time, and at this time, the gateway controls itself to switch to the sleep mode, and in the sleep mode, the bus load rate is almost 0.
In summary, according to the OTA upgrading method in this embodiment, by waking up the CAN network where the module to be upgraded is located in a targeted manner, the entire network is effectively prevented from being woken up, the load rate on the bus is greatly reduced, and the OTA upgrading rate is improved. Specifically, when an external OTA upgrade request is detected, a wake-up request sent by the vehicle-mounted communication module is sent to the gateway, the gateway confirms whether the gateway needs to wake up according to the wake-up request, the gateway acquires upgrade data sent by the vehicle-mounted communication module after wake-up, and wakes up the CAN network where the module to be upgraded, which receives the upgrade data, according to the upgrade data, so that other CAN networks are effectively prevented from being woken up, the upgrade data is sent to the currently woken-up CAN network to complete OTA upgrade, the wakened CAN network CAN be timely disconnected after the OTA upgrade is completed, and the gateway is in a sleep mode, so that the load rate on a bus is greatly reduced, and the cost of the whole vehicle is favorably reduced.
The third embodiment:
in another aspect, the present invention further provides an OTA upgrading system, referring to fig. 4, the OTA upgrading system includes:
the active wake-up control module 10: the system comprises a vehicle-mounted communication module, a wake-up request and a power supply module, wherein the wake-up request is used for acquiring the wake-up request sent by the vehicle-mounted communication module and enabling the vehicle-mounted communication module to be in a wake-up state according to the wake-up request, and the wake-up request is sent by the vehicle-mounted communication module when an external OTA (over the air) upgrading request is received;
the acquisition module 11: the system comprises a first timer, a second timer and a control module, wherein the first timer is used for acquiring a preset message sent by the vehicle-mounted communication module in a normal cycle to enter a conventional operation mode and starting the first timer;
the timing resetting module 12: the first timer is reset to restart timing after the preset message sent by the vehicle-mounted communication module is received once;
the sleep module 13: the CAN network is used for releasing the CAN network where the module to be upgraded is located to enter a sleep mode when the value of the first timer is detected to be greater than or equal to a first preset time;
the upgrade request module 14: the system comprises a vehicle-mounted communication module, a module to be upgraded and a module to be upgraded, wherein the vehicle-mounted communication module is used for requesting the vehicle-mounted communication module to send upgrading data of the module to be upgraded;
passive wake-up control module 15: and when receiving the upgrade data of the module to be upgraded, waking up the CAN network where the module to be upgraded is located according to the upgrade data of the module to be upgraded, and sending the upgrade data to the currently woken CAN network, so that the module to be upgraded obtains the upgrade data and performs OTA upgrade according to the upgrade data.
Further, referring to fig. 5, the passive wake-up control module 15 further includes:
wake-up detection unit 151: the CAN network is used for judging whether the CAN network where the module to be upgraded is located needs to be awakened or not according to the active awakening state bit in the preset message;
the wakeup execution unit 152: when the gateway detects that the active awakening state position is 1, awakening the CAN network where the module to be upgraded is located;
state detection unit 153: the CAN network communication module is used for maintaining CAN network communication of the module to be upgraded and detecting whether the current state is in a conventional operation mode or a sleep mode in real time;
inhibit sleep unit 154: and the network management module is used for prohibiting sending the network management message with the sleep indication bit when detecting that the current state is still in the normal operation mode.
The sleep execution unit 155: the gateway is used for controlling the gateway to enter a sleep mode when detecting that the active awakening state position is 0;
sleep execution unit 156: the network sleep instruction is used for acquiring a network sleep instruction; detecting whether the whole vehicle network has a wake-up request within a second preset time according to the network dormancy instruction; and if the wake-up request does not exist within the second preset time, switching to a sleep mode, and forbidding sending of the upgrade data.
In summary, according to the OTA upgrading system of this embodiment, when an external OTA upgrading request is detected, a wake-up request sent by the vehicle-mounted communication module is sent to the gateway, the gateway determines whether the gateway needs to wake up itself according to the wake-up request, the gateway acquires the upgrading data sent by the vehicle-mounted communication module after wake-up, and wakes up the CAN network where the module to be upgraded, which receives the upgrading data, is located according to the upgrading data, thereby effectively avoiding other CAN networks from being woken up, and then sends the upgrading data to the currently woken-up CAN network to complete OTA upgrading.
In another aspect, the present invention also provides a computer readable storage medium, on which one or more programs are stored, which when executed by a processor implement the OTA upgrade method described above.
In another aspect, the present invention further provides a vehicle including a memory for storing a computer program and a processor for executing the computer program stored in the memory to implement the OTA upgrading method.
Those of skill in the art will understand that the logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be viewed as implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An OTA upgrading method, which is applied to a gateway of a vehicle, the method comprises the following steps:
acquiring a wake-up request sent by a vehicle-mounted communication module, and enabling the vehicle-mounted communication module to be in a wake-up state according to the wake-up request, wherein the wake-up request is sent by the vehicle-mounted communication module when an external OTA (over the air) upgrading request is received;
requesting the vehicle-mounted communication module to send upgrading data of a module to be upgraded;
when receiving the upgrading data of the module to be upgraded, awakening the CAN network where the module to be upgraded is located according to the upgrading data of the module to be upgraded, and sending the upgrading data to the currently awakened CAN network, so that the module to be upgraded obtains the upgrading data and performs OTA upgrading according to the upgrading data.
2. The OTA upgrade method of claim 1, wherein the step of placing itself in the wake state according to the wake request comprises:
acquiring a preset message sent by the vehicle-mounted communication module in a normal period to enter a conventional operation mode, and starting a first timer;
resetting the first timer to restart timing after receiving a preset message sent by the vehicle-mounted communication module every time;
and when the value of the first timer is detected to be greater than or equal to a first preset time, releasing the CAN network where the module to be upgraded is located to enter a sleep mode.
3. The OTA upgrading method according to claim 2, wherein the 0 th byte of the preset packet is a control byte, and the control byte comprises a repeat packet request bit and an active wakeup status bit;
the step of waking up the CAN network where the module to be upgraded is located according to the upgrade data of the module to be upgraded comprises the following steps:
and judging whether the CAN network where the module to be upgraded is located needs to be awakened or not according to the active awakening state bit in the preset message.
4. The OTA upgrade method of claim 2, wherein the step of entering the normal operating mode in the active state is followed by the step of:
the CAN network communication of the module to be upgraded is kept;
detecting whether the current state is in a normal operation mode or a sleep mode in real time;
and if the current state is still detected to be the conventional operation mode, forbidding sending the network management message with the sleep indication bit.
5. The OTA upgrade method of claim 4 wherein the step after releasing the CAN network to enter the sleep mode further comprises:
acquiring a network dormancy instruction;
detecting whether the whole vehicle network has a wake-up request within a second preset time according to the network dormancy instruction;
and if the wake-up request does not exist within the second preset time, switching to a sleep mode, and forbidding sending of the upgrade data.
6. The OTA upgrade method of claim 3 wherein the step of determining whether to wake up the CAN network based on the active wake up status bit comprises:
when the active awakening state position is detected to be 1, awakening the CAN network where the module to be upgraded is located;
and when the active awakening state position is detected to be 0, controlling the mobile terminal to enter a sleep mode.
7. The OTA upgrading method according to claim 5, wherein the upgrade data is an application packet, the first preset time is within a range of 120-200ms, the second preset time is within a range of 3-5s, and the normal period is within a range of 80-120 ms.
8. An OTA upgrade system applied to a gateway of a vehicle, comprising:
the active wake-up control module: the system comprises a vehicle-mounted communication module, a wake-up request and a power supply module, wherein the wake-up request is used for acquiring the wake-up request sent by the vehicle-mounted communication module and enabling the vehicle-mounted communication module to be in a wake-up state according to the wake-up request, and the wake-up request is sent by the vehicle-mounted communication module when an external OTA (over the air) upgrading request is received;
an upgrade request module: the system comprises a vehicle-mounted communication module, a module to be upgraded and a module to be upgraded, wherein the vehicle-mounted communication module is used for requesting the vehicle-mounted communication module to send upgrading data of the module to be upgraded;
the passive wake-up control module: and when receiving the upgrade data of the module to be upgraded, waking up the CAN network where the module to be upgraded is located according to the upgrade data of the module to be upgraded, and sending the upgrade data to the currently woken CAN network, so that the module to be upgraded obtains the upgrade data and performs OTA upgrade according to the upgrade data.
9. A readable storage medium, comprising: the computer readable storage medium stores one or more programs which when executed by a processor implement the OTA upgrade method as claimed in any of the claims 1 to 7.
10. A vehicle, comprising a memory and a processor, wherein:
a memory: for storing a computer program;
a processor: for implementing an OTA upgrade method as claimed in any of claims 1 to 7 when executing a computer program stored in a memory.
CN202110796868.7A 2021-07-14 2021-07-14 OTA (over the air) upgrading method, OTA upgrading system, readable storage medium and vehicle Pending CN113721946A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110796868.7A CN113721946A (en) 2021-07-14 2021-07-14 OTA (over the air) upgrading method, OTA upgrading system, readable storage medium and vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110796868.7A CN113721946A (en) 2021-07-14 2021-07-14 OTA (over the air) upgrading method, OTA upgrading system, readable storage medium and vehicle

Publications (1)

Publication Number Publication Date
CN113721946A true CN113721946A (en) 2021-11-30

Family

ID=78673300

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110796868.7A Pending CN113721946A (en) 2021-07-14 2021-07-14 OTA (over the air) upgrading method, OTA upgrading system, readable storage medium and vehicle

Country Status (1)

Country Link
CN (1) CN113721946A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115842689A (en) * 2022-12-02 2023-03-24 广州导远电子科技有限公司 Awakening method, electronic control unit and terminal equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108282389A (en) * 2017-01-05 2018-07-13 厦门雅迅网络股份有限公司 A method of the vehicle-mounted OTA upgradings based on CAN bus load monitoring
CN109144029A (en) * 2018-08-24 2019-01-04 安徽江淮汽车集团股份有限公司 A kind of method and system that the local sleep of CAN bus wakes up
CN109327372A (en) * 2018-12-14 2019-02-12 安徽江淮汽车集团股份有限公司 A kind of local sleep awakening method of CAN bus Star Network management framework scheme
US20190191372A1 (en) * 2017-12-18 2019-06-20 Redpine Signals, Inc. Hierarchical Wakeup Apparatus and Method
CN110474961A (en) * 2019-07-14 2019-11-19 江苏开沃汽车有限公司 Pure electricity passenger car is based on CAN bus and realizes multi-channel long OTA upgrade method
US20200125355A1 (en) * 2017-07-04 2020-04-23 Nec Communication Systems, Ltd. Software update device
CN111190633A (en) * 2020-01-03 2020-05-22 东风汽车集团有限公司 OTA (over the air) upgrading system and method for whole electric control unit
CN112052017A (en) * 2020-08-21 2020-12-08 东风汽车集团有限公司 OTA (over the air) upgrading system and method for automobile CAN (controller area network) controller

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108282389A (en) * 2017-01-05 2018-07-13 厦门雅迅网络股份有限公司 A method of the vehicle-mounted OTA upgradings based on CAN bus load monitoring
US20200125355A1 (en) * 2017-07-04 2020-04-23 Nec Communication Systems, Ltd. Software update device
US20190191372A1 (en) * 2017-12-18 2019-06-20 Redpine Signals, Inc. Hierarchical Wakeup Apparatus and Method
CN109144029A (en) * 2018-08-24 2019-01-04 安徽江淮汽车集团股份有限公司 A kind of method and system that the local sleep of CAN bus wakes up
CN109327372A (en) * 2018-12-14 2019-02-12 安徽江淮汽车集团股份有限公司 A kind of local sleep awakening method of CAN bus Star Network management framework scheme
CN110474961A (en) * 2019-07-14 2019-11-19 江苏开沃汽车有限公司 Pure electricity passenger car is based on CAN bus and realizes multi-channel long OTA upgrade method
CN111190633A (en) * 2020-01-03 2020-05-22 东风汽车集团有限公司 OTA (over the air) upgrading system and method for whole electric control unit
CN112052017A (en) * 2020-08-21 2020-12-08 东风汽车集团有限公司 OTA (over the air) upgrading system and method for automobile CAN (controller area network) controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115842689A (en) * 2022-12-02 2023-03-24 广州导远电子科技有限公司 Awakening method, electronic control unit and terminal equipment

Similar Documents

Publication Publication Date Title
CN110830267A (en) State control method and device of network node and gateway
KR101799418B1 (en) Application heartbeat period adjusting method and apparatus, and terminal
CN112104702B (en) Power management method for vehicle TBOX, vehicle TBOX and medium
US20170120768A1 (en) Electric quantity monitoring device, navigation system and vehicle
CN110557263B (en) Standby control method, system, terminal equipment and relay equipment
CN105373713B (en) Car-mounted terminal awakening method, car-mounted terminal and vehicle
CN105824659A (en) Application program updating method and terminal equipment
CN111404819B (en) Network control method and system based on routing function
CN112087355A (en) State control method and device, electronic module and CAN network system
CN114056134A (en) Vehicle wake-up method, device and storage medium
CN113721946A (en) OTA (over the air) upgrading method, OTA upgrading system, readable storage medium and vehicle
CN112752332A (en) Dormancy control method of Internet of things system based on NB-IoT communication protocol stack
CN111629358A (en) Vehicle OTA (over the air) upgrading method and system based on ringing awakening
CN114684046A (en) Power management system for abnormal state of vehicle and using method
CN110475321B (en) Power-saving optimization method and device for wireless local area network (AP)
CN113964418A (en) Battery heating control method and system and working machine
CN113393595A (en) Vehicle monitoring method, vehicle-mounted terminal and computer-readable storage medium
CN110928586B (en) APP background keep-alive method and device
CN114670762B (en) Vehicle-mounted equipment awakening control method and device and electric automobile
CN115328098A (en) Method and device for collecting vehicle state information
CN111935803A (en) Equipment awakening method and device based on ZigBee communication protocol
CN113923695A (en) Awakening fault detection method and device and message sending method and device
CN112491673A (en) Bus network management method, system, vehicle and storage medium
CN114228642B (en) Control method, control device, storage medium and electronic device for vehicle controller
CN109413725B (en) Method, device and equipment for prolonging service life of battery of low-power-consumption Internet of things equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination