CN117519741A - OTA upgrading method and device - Google Patents

OTA upgrading method and device Download PDF

Info

Publication number
CN117519741A
CN117519741A CN202311338991.XA CN202311338991A CN117519741A CN 117519741 A CN117519741 A CN 117519741A CN 202311338991 A CN202311338991 A CN 202311338991A CN 117519741 A CN117519741 A CN 117519741A
Authority
CN
China
Prior art keywords
tbox
ota
request
duration
time
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
CN202311338991.XA
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.)
Lantu Automobile Technology Co Ltd
Original Assignee
Lantu Automobile Technology Co 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 Lantu Automobile Technology Co Ltd filed Critical Lantu Automobile Technology Co Ltd
Priority to CN202311338991.XA priority Critical patent/CN117519741A/en
Publication of CN117519741A publication Critical patent/CN117519741A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

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

Abstract

The invention discloses an OTA upgrading method and device, and relates to the technical field of OTA. According to the method, after the TBOX receives the third request, the information of the third duration of locking of the TBOX is not recorded first, and instead, whether the TBOX is in a normal mode is judged, if the TBOX is in the normal mode, the information of the third duration of locking of the TBOX is recorded after the locking is successful based on the third request, the information of the third duration of locking of the TBOX is recorded after the locking is fed back to the OTA component, and after the OTA upgrading task is completed in the third duration, the information of the third duration of locking of the TBOX is cleared, so that the method is equivalent to that the information of the third duration of locking of the TBOX is not recorded after the OTA upgrading is failed, the recorded information is not existed after the OTA is successfully upgraded, the information recorded after the TBOX is restarted for a day, long-time awakening is not caused, and the whole vehicle electricity caused by the OTA upgrading failure can be avoided.

Description

OTA upgrading method and device
Technical Field
The invention relates to the technical field of OTA (over the air technology), in particular to an OTA upgrading method and device.
Background
When the TBOX control vehicle performs OTA upgrading, the OTA component is required to request the TBOX to prohibit dormancy for 3 hours, then the information of prohibiting dormancy for 3 hours is recorded, if the TBOX is not in a normal mode, the upgrading cannot be completed, the upgrading is required to be attempted again after waiting for the daily restarting of the TBOX, and the information of prohibiting dormancy for 3 hours still exists after the upgrading is failed in the same day, and the information is called after the daily restarting of the TBOX, so that the whole vehicle is kept to wake up for 3 hours, and the whole vehicle is caused to lose electricity. In view of this, how to avoid the whole car power shortage caused by the failure of OTA upgrade is a problem to be solved in the art.
Disclosure of Invention
By providing the OTA upgrading method and device, the technical problem of how to avoid the whole vehicle power shortage caused by OTA upgrading failure is solved.
In one aspect, the present invention provides the following technical solutions:
an OTA upgrade method applied to TBOX, comprising:
after the OTA installation condition is checked, a third request for holding the lock for a third duration sent by the OTA component is received;
judging whether TBOX is in normal mode;
if the TBOX is in normal mode, holding the TBOX locked for the third duration based on the third request;
after successful locking is fed back to the OTA component, recording the information of the third duration of the TBOX locking;
and after the OTA upgrading task is completed in the third time period, clearing the information of the TBOX holding and locking the third time period.
Optionally, after the OTA installation condition check is passed, before receiving the third request for holding the lock for the third duration sent by the OTA component, the method further includes:
after the TBOX wakes up at the upgrade reservation time, controlling the TBOX to switch from a sleep mode to a normal mode, and receiving a first request for holding a lock for a first duration sent by the OTA component;
judging whether the switching time of the TBOX from sleep mode to normal mode is earlier than the receiving time of the first request;
if the switching time is later than the receiving time, feeding back a lock holding failure to the OTA component, so that the OTA component sends the first request based on the feedback loop until the switching time is earlier than the receiving time;
if the switching time is earlier than the receiving time, locking the TBOX for the first duration based on the first request;
checking that an OTA upgrade packet passes in the first time length by the OTA component, and receiving a second request for holding a lock for a second time length sent by the OTA component;
and locking the TBOX for the second time period based on the second request so that the OTA component can conduct the OTA installation condition check in the second time period.
Optionally, after receiving the first request sent by the OTA component to hold the lock for the first duration, the method further includes:
judging whether the first request is received within a preset time length;
and if the first request is not received within the preset time, enabling the TBOX to enter a sleep mode.
Optionally, after the TBOX wakes up at the upgrade reservation time, the TBOX is controlled to switch from sleep mode to normal mode, and before the first request for holding the lock for the first duration sent by the OTA component is received, the method further includes:
after the OTA component sets the upgrade reservation time, recording the upgrade reservation time;
and waking up the TBOX at the upgrade reservation time.
An OTA upgrading device applied to TBOX, comprising:
the receiving module is used for receiving a third request for holding a lock for a third duration sent by the OTA component after the OTA installation condition check is passed;
the judging module is used for judging whether the TBOX is in a normal mode or not;
a lock holding module configured to hold the TBOX for the third duration based on the third request if the TBOX is in normal mode;
the recording module is used for recording the information of the third duration of the TBOX locking after the locking success is fed back to the OTA component;
and the clearing module is used for clearing the information of the third duration of the TBOX lock after the OTA upgrading task is completed in the third duration.
Optionally, the OTA upgrading device further includes:
the switching module is used for controlling the TBOX to be switched from sleep mode to normal mode after the TBOX wakes up at the upgrade reservation time;
the receiving module is further configured to receive a first request for holding a lock for a first duration sent by the OTA component;
the judging module is further configured to judge whether a switching time of the TBOX from the sleep mode to the normal mode is earlier than a receiving time of the first request;
a feedback module, configured to, if the switching time is later than the receiving time, feedback a lock holding failure to the OTA component, so that the OTA component sends the first request based on the feedback loop until the switching time is earlier than the receiving time;
the lock holding module is further configured to hold the TBOX for the first duration based on the first request if the switching time is earlier than the receiving time;
the receiving module is further configured to check, by the OTA component, that an OTA upgrade packet passes within the first duration, and receive a second request sent by the OTA component to hold a lock for a second duration;
the lock holding module is further configured to hold the TBOX for the second duration based on the second request, so that the OTA component performs the OTA installation condition check within the second duration.
Optionally, the judging module is further configured to judge whether the first request is received within a preset duration;
and the switching module is further configured to, if the first request is not received within the preset duration, make the TBOX enter sleep mode.
Optionally, the recording module is further configured to record the upgrade reservation time after the OTA component sets the upgrade reservation time;
the device also comprises a wake-up module for waking up the TBOX at the upgrade reservation time.
On the other hand, the invention also provides the following technical scheme:
an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing any of the OTA upgrade methods described above when executing the computer program.
On the other hand, the invention also provides the following technical scheme:
a computer readable storage medium having stored thereon a computer program which when executed by a processor implements any of the OTA upgrade methods described above.
The one or more technical schemes provided by the invention have at least the following technical effects or advantages:
according to the method, after the TBOX receives the third request, the information of the third duration of locking of the TBOX is not recorded first, and instead, whether the TBOX is in a normal mode is judged, if the TBOX is in the normal mode, the information of the third duration of locking of the TBOX is recorded after the locking is successful based on the third request, the information of the third duration of locking of the TBOX is recorded after the locking is fed back to the OTA component, and after the OTA upgrading task is completed in the third duration, the information of the third duration of locking of the TBOX is cleared, so that the method is equivalent to that the information of the third duration of locking of the TBOX is not recorded after the OTA upgrading is failed, the recorded information is not existed after the OTA is successfully upgraded, the information recorded after the TBOX is restarted for a day, long-time awakening is not caused, and the whole vehicle electricity caused by the OTA upgrading failure can be avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an OTA upgrading method in an embodiment of the present invention;
fig. 2 is a schematic diagram of an OTA upgrading device in an embodiment of the present invention.
Detailed Description
The embodiment of the invention solves the technical problem of avoiding the whole vehicle from being deficient in power caused by failure of OTA upgrading by providing the OTA upgrading method and the OTA upgrading device.
In order to better understand the technical scheme of the present invention, the following detailed description will refer to the accompanying drawings and specific embodiments.
The OTA upgrading method of the embodiment of the invention is applied to TBOX, and as shown in fig. 1, the OTA upgrading method comprises the following steps:
step S1, after the OTA installation condition check is passed, a third request for holding a lock for a third duration sent by an OTA component is received;
step S2, judging whether TBOX is in normal mode;
step S3, if the TBOX is in the normal mode, locking the TBOX for a third duration based on the third request;
step S4, after successful locking is fed back to the OTA component, information of a third duration of TBOX locking is recorded;
and S5, after the OTA upgrading task is completed within the third time, clearing the information of the TBOX locking third time.
The OTA upgrading process in the embodiment of the invention comprises the following steps: when the vehicle is started and the vehicle speed is low, if the TBOX downloads the OTA upgrade package to be completed, an IVI (n-Vehicle Infotainment, vehicle-mounted information entertainment system) of the vehicle can display an upgrade task popup, a user can select upgrade reservation time on the upgrade task popup, the IVI records the upgrade reservation time and sends the upgrade reservation time to the OTA component, the OTA component sets the upgrade reservation time, and after the OTA component sets the upgrade reservation time, the TBOX records the upgrade reservation time;
after the upgrade reservation time is reached, if the TBOX is not awakened normally, the OTA upgrade task is not started, and the OTA upgrade task is continued to the next day; if the TBOX wakes up normally in the upgrade reservation time, controlling the TBOX to switch from sleep mode to normal mode (normal working mode), sending a first request for holding a first lock duration (such as 90 s) to the TBOX by the OTA component, applying for the first lock duration of the TBOX, checking an upgrade package by the OTA component by the TBOX 90s, after receiving the first request, holding the TBOX for the first lock duration based on the first request, and feeding back success of holding the lock to the OTA component; because the TBOX can enter a dormant state under the condition of no task, the lock holding is to prohibit the TBOX from dormancy and maintain the whole vehicle to wake up; then the OTA component checks the upgrade package, after the check is passed, the OTA component sends a second request for holding the lock for a second duration (such as 900 s) to the TBOX, and the TBOX holds the lock for the second duration, and the TBOX holds the lock for 900s for the OTA component to check the OTA installation condition;
after the TBOX receives the second request, locking the TBOX for a second duration based on the second request, then performing OTA installation condition checking by the OTA component, after the OTA installation condition checking is passed, sending a third request for locking a third duration (for example, 3 hours) to the TBOX by the OTA component, applying for locking the TBOX for the third duration, and locking the TBOX for 3 hours to complete the OTA upgrading task.
In the traditional OTA upgrading method, after receiving a third request, the TBOX records information of a third duration of locking of the TBOX, and then judges whether the TBOX is in a normal mode or not; if the TBOX is in the normal mode, enabling the TBOX to be locked for a third duration based on the third request, feeding back success of locking to the OTA component, and then completing the OTA upgrading task; if the TBOX is not in normal mode, the TBOX feeds back to the OTA component that the locking is unsuccessful, and the whole vehicle enters a dormant state. And after the next day TBOX day is restarted and initialized, calling the information of the third duration of the TBOX lock holding recorded in the previous day, judging that the instruction for prohibiting the TBOX from dormancy for 3 hours is effective, and then executing the instruction for prohibiting the TBOX from dormancy for 3 hours, so that the whole vehicle is kept to wake up for 3 hours, and the whole vehicle is caused to be deficient in power.
In the embodiment of the invention, after the TBOX receives the third request, the information of the third duration of the TBOX lock is not recorded first, but whether the TBOX is in the normal mode is judged, if the TBOX is in the normal mode, the information of the third duration of the TBOX lock is recorded after the TBOX lock is successfully locked is fed back to the OTA component, after the OTA upgrading task is completed in the third duration, the information of the third duration of the TBOX lock is cleared, so that the information of the third duration of the TBOX lock is not recorded after the OTA upgrading failure, the recorded information is cleared after the OTA upgrading success, the information recorded after the TBOX restarting is no longer existed, long-time awakening of the whole vehicle is not caused, and the whole vehicle power shortage caused by the OTA upgrading failure can be avoided.
In the OTA upgrade procedure in the embodiment of the present invention, a situation may occur that the OTA component sends the first request first, and then the TBOX switches from sleep mode to normal mode, i.e., when the TBOX receives the first request, the TBOX has not switched to normal mode yet, which may cause the TBOX to fail to hold the lock for the first time, and the OTA component cannot check the upgrade package. To avoid failure of the TBOX to lock the first time period, the OTA upgrade method may further include, before step S1:
after the TBOX wakes up at the upgrade reservation time, controlling the TBOX to switch from a sleep mode to a normal mode, and receiving a first request for holding a lock for a first duration sent by an OTA component; judging whether the switching time of the TBOX from sleep mode to normal mode is earlier than the receiving time of the first request; if the switching time is later than the receiving time, feeding back a lock holding failure to the OTA component, so that the OTA component sends a first request based on a feedback loop until the switching time is earlier than the receiving time; if the switching time is earlier than the receiving time, locking the TBOX for a first duration based on the first request; checking that the OTA upgrade packet passes in the first time length by the OTA component, and receiving a second request for locking a second time length sent by the OTA component; the TBOX is locked for a second duration based on the second request such that the OTA component performs an OTA installation condition check for the second duration.
After the TBOX feeds back the lock holding failure to the OTA component, the OTA component sends a first request to the TBOX every 1s until the TBOX switches to normal mode or repeatedly sends 15 first requests, so that the first time period failure of the TBOX in lock holding can be avoided.
In the above flow, after the TBOX is switched to normal mode, the situation that the first request is not sent all the time due to the abnormality of the OTA component may also occur, and if the OTA component is waited for to send the first request all the time, the TBOX is caused to remain meaningless and wake up, and the electric energy is wasted. To avoid the TBOX remaining meaningless awakening, the OTA upgrade method may further include, after the upgrade reservation time awakening: judging whether a first request is received within a preset duration; if the first request is not received within the preset time period, the TBOX is made to enter a sleep mode. The preset duration may be 15s, so that if the first request sent by the OT component is not received within 15s, the TBOX is dormant, and the TBOX is prevented from being awakened meaningless.
The embodiment of the invention also provides an OTA upgrading device applied to TBOX, as shown in FIG. 2, comprising:
the recording module is used for recording the upgrade reservation time after the upgrade reservation time is set by the OTA component;
the wake-up module is used for waking up the TBOX at the upgrade reservation time;
the switching module is used for controlling the TBOX to be switched from a sleep mode to a normal mode after the TBOX wakes up at the upgrade reservation time;
the receiving module is used for receiving a first request for holding the lock for a first duration sent by the OTA component;
a lock holding module for holding the TBOX locked for a first duration based on the first request;
the receiving module is further used for checking that the OTA upgrade package passes in the first duration of time to the OTA component and receiving a second request for locking a second duration of time sent by the OTA component;
the lock holding module is further used for holding the TBOX for a second duration based on the second request so that the OTA component performs OTA installation condition check in the second duration;
the receiving module is further used for receiving a third request for holding the lock for a third duration sent by the OTA component after the OTA installation condition check is passed;
the judging module is used for judging whether the TBOX is in a normal mode or not;
the lock holding module is further configured to hold the TBOX for a third duration based on the third request if the TBOX is in normal mode;
the recording module is also used for recording the information of the third duration of the TBOX locking after the locking success is fed back to the OTA component;
and the clearing module is used for clearing the information of the TBOX locking third duration after the OTA upgrading task is completed in the third duration.
The OTA upgrading process in the embodiment of the invention comprises the following steps: when the vehicle is started and the vehicle speed is low, if the TBOX downloads the OTA upgrade package to be completed, an IVI (n-Vehicle Infotainment, vehicle-mounted information entertainment system) of the vehicle can display an upgrade task popup, a user can select upgrade reservation time on the upgrade task popup, the IVI records the upgrade reservation time and sends the upgrade reservation time to the OTA component, the OTA component sets the upgrade reservation time, and after the OTA component sets the upgrade reservation time, the record module records the upgrade reservation time;
when the upgrade reservation time is reached, the wake-up module wakes up the TBOX, if the TBOX is not woken up normally, the OTA upgrade task is not started, and the OTA upgrade task is continued to the next day; if the TBOX wakes up normally in the upgrade reservation time, the switching module controls the TBOX to switch from sleep mode to normal mode (normal working mode), the OTA component sends a first request for holding a first lock duration (such as 90 s) to the TBOX, the TBOX holds the first lock duration, the TBOX holds the lock 90s for the OTA component to check the upgrade package, the receiving module receives the first request, the lock holding module makes the TBOX hold the first lock duration based on the first request, and the feedback module feeds back success of holding the lock to the OTA component; because the TBOX can enter a dormant state under the condition of no task, the lock holding is to prohibit the TBOX from dormancy and maintain the whole vehicle to wake up; then the OTA component checks the upgrade package, after the check is passed, the OTA component sends a second request for holding the lock for a second duration (such as 900 s) to the TBOX, and the TBOX holds the lock for the second duration, and the TBOX holds the lock for 900s for the OTA component to check the OTA installation condition;
the receiving module receives the second request, the locking module enables the TBOX to be locked for a second duration based on the second request, then the OTA component performs OTA installation condition check, after the OTA installation condition check is passed, the OTA component sends a third request for locking for a third duration (such as 3 hours) to the TBOX, the TBOX is applied for locking for the third duration, and the TBOX is locked for 3 hours to complete the OTA upgrading task.
In the traditional OTA upgrading method, after receiving a third request, the TBOX records information of a third duration of locking of the TBOX, and then judges whether the TBOX is in a normal mode or not; if the TBOX is in the normal mode, enabling the TBOX to be locked for a third duration based on the third request, feeding back success of locking to the OTA component, and then completing the OTA upgrading task; if the TBOX is not in normal mode, the TBOX feeds back to the OTA component that the locking is unsuccessful, and the whole vehicle enters a dormant state. And after the next day TBOX day is restarted and initialized, calling the information of the third duration of the TBOX lock holding recorded in the previous day, judging that the instruction for prohibiting the TBOX from dormancy for 3 hours is effective, and then executing the instruction for prohibiting the TBOX from dormancy for 3 hours, so that the whole vehicle is kept to wake up for 3 hours, and the whole vehicle is caused to be deficient in power.
In the embodiment of the invention, the receiving module does not record the information of the third duration of the TBOX holding lock after receiving the third request, but the judging module judges whether the TBOX is in the normal mode, if the TBOX is in the normal mode, the holding lock module makes the TBOX hold lock for the third duration based on the third request, the feedback module feeds back the information of the third duration of the TBOX holding lock to the OTA component, the recording module records the information of the third duration of the TBOX holding lock again after the success of the holding lock, and the clearing module clears the information of the third duration of the TBOX holding lock after the OTA upgrading task is completed within the third duration, so that the information of the third duration of the TBOX holding lock is not recorded after the OTA upgrading failure is no longer recorded after the OTA upgrading success, the recorded information after the TBOX is restarted again does not exist, the long-time awakening of the whole vehicle is not caused, and the whole vehicle power consumption caused by the OTA upgrading failure can be avoided.
In the OTA upgrade procedure in the embodiment of the present invention, a situation may occur that the OTA component sends the first request first, and then the TBOX switches from sleep mode to normal mode, i.e., when the TBOX receives the first request, the TBOX has not switched to normal mode yet, which may cause the TBOX to fail to hold the lock for the first time, and the OTA component cannot check the upgrade package. In order to avoid failure of the TBOX to hold the lock for the first time, in the OTA upgrading device:
after the receiving module receives a first request for holding the lock for a first duration sent by the OTA component, the judging module is further used for judging whether the switching time of the TBOX from the sleep mode to the normal mode is earlier than the receiving time for receiving the first request; the feedback module is further configured to, if the switching time is later than the receiving time, feed back to the OTA component that the lock holding fails, so that the OTA component sends a first request based on a feedback loop until the switching time is earlier than the receiving time; and the lock holding module is further used for holding the TBOX for a first duration based on the first request if the switching time is earlier than the receiving time.
After the TBOX feeds back the lock holding failure to the OTA component, the OTA component sends a first request to the TBOX every 1s until the TBOX switches to normal mode or repeatedly sends 15 first requests, so that the first time period failure of the TBOX in lock holding can be avoided.
In the above flow, after the TBOX is switched to normal mode, the situation that the first request is not sent all the time due to the abnormality of the OTA component may also occur, and if the OTA component is waited for to send the first request all the time, the TBOX is caused to remain meaningless and wake up, and the electric energy is wasted. To avoid TBOX remaining meaningless wakeup, in the OTA upgrade apparatus: the wake-up module is used for judging whether a first request is received in a preset duration after the TBOX is waken up in the upgrade reservation time; and the switching module is further used for enabling the TBOX to enter a sleep mode if the first request is not received within the preset time. The preset duration may be 15s, so that if the first request sent by the OT component is not received within 15s, the TBOX is dormant, and the TBOX is prevented from being awakened meaningless.
Based on the same inventive concept as the above-mentioned OTA upgrading method, the embodiment of the invention further provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor implements the steps of any one of the above-mentioned OTA upgrading methods when executing the computer program.
Where a bus architecture (represented by a bus), a bus may comprise any number of interconnected buses and bridges, linking together various circuits, including one or more processors, as represented by a processor, and a memory, as represented by a memory. The bus may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., as are well known in the art and, therefore, will not be further described herein. The bus interface provides an interface between the bus and the receiver and transmitter. The receiver and the transmitter may be the same element, i.e. a transceiver, providing a unit for communicating with various other apparatus over a transmission medium. The processor is responsible for managing the bus and general processing, while the memory may be used to store data used by the processor in performing operations.
Since the electronic device described in the embodiment of the present invention is an electronic device used to implement the OTA upgrading method in the embodiment of the present invention, based on the OTA upgrading method described in the embodiment of the present invention, a person skilled in the art can understand a specific implementation manner of the electronic device and various modifications thereof, so how to implement the method in the embodiment of the present invention in the electronic device will not be described in detail herein. Any electronic device used by those skilled in the art to implement the OTA upgrading method in the embodiments of the present invention falls within the scope of the present invention.
Based on the same inventive concept as the above-mentioned OTA upgrading method, the present invention further provides a computer readable storage medium having a computer program stored thereon, which when executed by a processor, implements any of the above-mentioned OTA upgrading methods.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. An OTA upgrading method applied to TBOX, comprising:
after the OTA installation condition is checked, a third request for holding the lock for a third duration sent by the OTA component is received;
judging whether TBOX is in normal mode;
if the TBOX is in normal mode, holding the TBOX locked for the third duration based on the third request;
after successful locking is fed back to the OTA component, recording the information of the third duration of the TBOX locking;
and after the OTA upgrading task is completed in the third time period, clearing the information of the TBOX holding and locking the third time period.
2. The OTA upgrading method of claim 1 wherein after the OTA installation condition checking is passed, before receiving a third request for holding a lock for a third duration sent by an OTA component, further comprising:
after the TBOX wakes up at the upgrade reservation time, controlling the TBOX to switch from a sleep mode to a normal mode, and receiving a first request for holding a lock for a first duration sent by the OTA component;
judging whether the switching time of the TBOX from sleep mode to normal mode is earlier than the receiving time of the first request;
if the switching time is later than the receiving time, feeding back a lock holding failure to the OTA component, so that the OTA component sends the first request based on the feedback loop until the switching time is earlier than the receiving time;
if the switching time is earlier than the receiving time, locking the TBOX for the first duration based on the first request;
checking that an OTA upgrade packet passes in the first time length by the OTA component, and receiving a second request for holding a lock for a second time length sent by the OTA component;
and locking the TBOX for the second time period based on the second request so that the OTA component can conduct the OTA installation condition check in the second time period.
3. The OTA upgrade method of claim 2 wherein after receiving the first request sent by the OTA component to hold the lock for a first duration, further comprising:
judging whether the first request is received within a preset time length;
and if the first request is not received within the preset time, enabling the TBOX to enter a sleep mode.
4. The OTA upgrade method of claim 2 wherein after the TBOX wakes up at the upgrade reservation time, controlling the TBOX to switch from sleep mode to normal mode, and before receiving the first request sent by the OTA component to hold the lock for the first duration, further comprising:
after the OTA component sets the upgrade reservation time, recording the upgrade reservation time;
and waking up the TBOX at the upgrade reservation time.
5. An OTA upgrading device applied to TBOX, comprising:
the receiving module is used for receiving a third request for holding a lock for a third duration sent by the OTA component after the OTA installation condition check is passed;
the judging module is used for judging whether the TBOX is in a normal mode or not;
a lock holding module configured to hold the TBOX for the third duration based on the third request if the TBOX is in normal mode;
the recording module is used for recording the information of the third duration of the TBOX locking after the locking success is fed back to the OTA component;
and the clearing module is used for clearing the information of the third duration of the TBOX lock after the OTA upgrading task is completed in the third duration.
6. The OTA upgrading device of claim 5, further comprising:
the switching module is used for controlling the TBOX to be switched from sleep mode to normal mode after the TBOX wakes up at the upgrade reservation time;
the receiving module is further configured to receive a first request for holding a lock for a first duration sent by the OTA component;
the judging module is further configured to judge whether a switching time of the TBOX from the sleep mode to the normal mode is earlier than a receiving time of the first request;
a feedback module, configured to, if the switching time is later than the receiving time, feedback a lock holding failure to the OTA component, so that the OTA component sends the first request based on the feedback loop until the switching time is earlier than the receiving time;
the lock holding module is further configured to hold the TBOX for the first duration based on the first request if the switching time is earlier than the receiving time;
the receiving module is further configured to check, by the OTA component, that an OTA upgrade packet passes within the first duration, and receive a second request sent by the OTA component to hold a lock for a second duration;
the lock holding module is further configured to hold the TBOX for the second duration based on the second request, so that the OTA component performs the OTA installation condition check within the second duration.
7. The OTA upgrading device of claim 6 wherein the determining module is further configured to determine whether the first request is received within a preset duration;
and the switching module is further configured to, if the first request is not received within the preset duration, make the TBOX enter sleep mode.
8. The OTA upgrading device of claim 6 wherein the recording module is further configured to record the upgrade reservation time after the OTA component sets the upgrade reservation time;
the device also comprises a wake-up module for waking up the TBOX at the upgrade reservation time.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the OTA upgrade method of any one of claims 1-4 when the computer program is executed.
10. A computer readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the OTA upgrade method of any one of claims 1-4.
CN202311338991.XA 2023-10-17 2023-10-17 OTA upgrading method and device Pending CN117519741A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311338991.XA CN117519741A (en) 2023-10-17 2023-10-17 OTA upgrading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311338991.XA CN117519741A (en) 2023-10-17 2023-10-17 OTA upgrading method and device

Publications (1)

Publication Number Publication Date
CN117519741A true CN117519741A (en) 2024-02-06

Family

ID=89744661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311338991.XA Pending CN117519741A (en) 2023-10-17 2023-10-17 OTA upgrading method and device

Country Status (1)

Country Link
CN (1) CN117519741A (en)

Similar Documents

Publication Publication Date Title
CN112104702B (en) Power management method for vehicle TBOX, vehicle TBOX and medium
US9778904B2 (en) Motor vehicle and method of controlling a motor vehicle
KR20200056838A (en) Communication system for vehicle and control method of the same
EP1784693A4 (en) Rapid vehicle bus network activity field of the invention
CN113194524B (en) Dormancy awakening method, upper computer, vehicle-mounted communication module and communication system
US20080104438A1 (en) Microcomputer, program and on-vehicle electronic controller
CN112087355A (en) State control method and device, electronic module and CAN network system
CN111796954A (en) Watchdog control method, device, equipment and storage medium based on JVM
WO2022095896A1 (en) Method for managing ecu on vehicle, and ecu and readable storage medium
CN112829793B (en) Automatic train end changing method, device and system and ground control center
CN117519741A (en) OTA upgrading method and device
CN113886049A (en) Timed task running method and device and computer equipment
CN113650498B (en) Power-on method and device of electric vehicle, electric vehicle and storage medium
CN114590241A (en) Vehicle idle charging method and device
CN111923747B (en) Method and system for controlling processor work
CN112542623A (en) Battery preheating method, system and device
CN112162514A (en) Synchronization module, auxiliary synchronization module and domain controller
US20230153119A1 (en) Method for initiating a standby mode in a control unit of a motor vehicle, corresponding operable control unit and motor vehicle
CN116009925B (en) Sub-battery management unit program refreshing method of battery management system
CN115224685B (en) Power distribution management method, device, vehicle and storage medium
CN117841677A (en) Communication state control method, battery management system, vehicle, and storage medium
CN115344280A (en) Vehicle TBOX (tunnel boring machine), and vehicle TBOX upgrading method and device
CN114490055A (en) Mobile equipment and CPU load control method and device thereof
CN117666545A (en) Wakeup control method, equipment and storage medium of whole vehicle controller
CN115158202A (en) Vehicle-mounted system power management method, device, equipment and medium

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