Remote upgrade control method, device, electronic device and readable storage medium
By obtaining and displaying the status information and click logic in the upgrade management state machine, users can understand and control the remote upgrade process in real time, which solves the problem of users being unable to understand and control the OTA upgrade progress and improves the remote upgrade experience.
Patent Information
- Application Number
- CN202410889256.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-04
AI Technical Summary
Users cannot understand and control the OTA upgrade progress, resulting in a poor remote upgrade experience.
By obtaining the upgrade management state machine, send a status request to the cloud server to obtain the current status information, determine the display interface and click logic based on the status information, and display them on the terminal. The user can send instructions to the cloud server to control the upgrade through click operations. process.
Users can understand and control the remote upgrade process in real time, improving the remote upgrade experience.
Smart Images

Figure CN118426812B
Abstract
Description
Technical Field
[0001] The present application relates to the field of OTA upgrade technology, and in particular to a remote upgrade control method, device, electronic device and readable storage medium. Background Art
[0002] Automotive OTA technology (Over-the-Air, remote upgrade technology) refers to the technology of remotely managing the firmware, data and applications on the terminal of automotive components through mobile communication networks. Simply put, OTA technology is implemented in three steps: first, the service provider uploads the updated software to the OTA center, then the OTA center wirelessly transmits the updated software to the vehicle, and finally the vehicle automatically updates the software.
[0003] In the traditional OTA upgrade solution, the OTA center sends the OTA upgrade package to the vehicle side, and the vehicle side performs the upgrade based on the received OTA upgrade package. During the entire upgrade process, the vehicle side or mobile phone APP only provides the user with an upgrade operation button. The user has no way of understanding the more specific upgrade progress, nor can he or she specifically control the upgrade process.
[0004] Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve. Summary of the invention
[0005] In view of this, the embodiments of the present application provide a remote upgrade control method, device, electronic device and readable storage medium to solve the problem in the prior art that users cannot understand and control the progress of OTA upgrades.
[0006] A first aspect of an embodiment of the present application provides a remote upgrade control method, comprising:
[0007] Acquire an upgrade management state machine, where the upgrade management state machine includes multiple cloud states and jump relationships between each cloud state, and each cloud state is used to indicate an operation state of the cloud server in the process of upgrading the target vehicle;
[0008] Send a status request to the cloud server, so that the cloud server returns current status information based on the status request, where the current status information includes current cloud status and version information;
[0009] Determine the corresponding display interface based on the current cloud status stage;
[0010] Determine a display identifier provided on the display interface and a click logic corresponding to the display identifier based on the version information and the jump relationship between the current cloud status and other cloud statuses in the upgrade management state machine;
[0011] Displaying a display interface including a display identifier on a display terminal;
[0012] When a click operation is received for any display mark, an operation instruction is sent to the cloud server according to the corresponding click logic so that the cloud server executes the operation instruction on the target vehicle, and a status request is sent to the cloud server so that the cloud server returns the current status information based on the status request.
[0013] A second aspect of the embodiments of the present application provides a remote upgrade control device, including:
[0014] A state machine acquisition module, used to acquire an upgrade management state machine, the upgrade management state machine includes a plurality of cloud states and a jump relationship between each cloud state, each cloud state is used to indicate an operation state of the cloud server in the upgrade process of the target vehicle;
[0015] A status acquisition module is used to send a status request to the cloud server so that the cloud server returns current status information based on the status request, and the current status information includes current cloud status and version information;
[0016] An interface determination module, used to determine a corresponding display interface based on the current cloud state stage;
[0017] An information determination module, used to determine a display identifier set on a display interface and a click logic corresponding to the display identifier based on version information and a jump relationship between the current cloud status and other cloud statuses in an upgrade management state machine;
[0018] A display module, used to display a display interface including a display identifier on a display terminal;
[0019] The operation response module is used to send an operation instruction to the cloud server according to the corresponding click logic when receiving a click operation on any display mark so that the cloud server executes the operation instruction on the target vehicle and triggers the status acquisition module.
[0020] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0021] According to a fourth aspect of an embodiment of the present application, a readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0022] Compared with the prior art, the beneficial effects of the embodiments of the present application include at least the following: the embodiments of the present application obtain a status request through a cloud server, determine a display interface according to the cloud status returned by the current status request, and determine a display identifier on the display interface according to the jump relationship of the returned cloud status in the upgrade management state machine, and send an operation instruction to the cloud server according to a click operation on the display identifier, so that the cloud server executes the corresponding operation instruction on the target vehicle, thereby updating the cloud status in the cloud server, and continuously displaying and updating the display interface and display identifier on the display terminal. Based on the display terminal in this solution, the user can understand the specific status information of the current upgrade process, and issue feasible operation instructions through the display identifier, thereby realizing the understanding and control of the remote upgrade process, and improving the user's remote upgrade experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0024] Figure 1 It is a schematic diagram of an application scenario of an embodiment of the present application;
[0025] Figure 2 It is a flowchart of a remote upgrade control method provided in an embodiment of the present application;
[0026] Figure 3(a) to Figure 3(h) is a schematic diagram of a display interface in different situations provided by an embodiment of the present application;
[0027] Figure 4 It is a flowchart of a specific remote upgrade control method provided in an embodiment of the present application;
[0028] Figure 5 It is a structural schematic diagram of a remote upgrade control device provided in an embodiment of the present application;
[0029] Figure 6 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0031] A remote upgrade control method, device, electronic device, and readable storage medium according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0032] Figure 1 1 is a schematic diagram of an application scenario of an embodiment of the present application. The application scenario may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a server 104 and a network 105.
[0033] The first terminal device 101, the second terminal device 102, and the third terminal device 103 can be hardware or software. When the first terminal device 101, the second terminal device 102, and the third terminal device 103 are hardware, they can be various electronic devices with display screens and support communication with the server 104, including but not limited to vehicle systems, smart phones, tablet computers, laptop portable computers, and desktop computers; when the first terminal device 101, the second terminal device 102, and the third terminal device 103 are software, they can be installed in the above electronic devices. The first terminal device 101, the second terminal device 102, and the third terminal device 103 can be implemented as multiple software or software modules, or as a single software or software module, which is not limited in the embodiment of the present application. Further, various applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as data processing applications, instant messaging tools, social platform software, search applications, shopping applications, etc.
[0034] The server 104 may be a server that provides various services, for example, a background server that receives a request sent by a terminal device that establishes a communication connection with the server, and the background server may receive and analyze the request sent by the terminal device, and generate a processing result. The server 104 may be a single server, or a server cluster composed of several servers, or a cloud computing service center, which is not limited in the present embodiment of the application.
[0035] It should be noted that the server 104 can be hardware or software. When the server 104 is hardware, it can be various electronic devices that provide various services for the first terminal device 101, the second terminal device 102, and the third terminal device 103. When the server 104 is software, it can be multiple software or software modules that provide various services for the first terminal device 101, the second terminal device 102, and the third terminal device 103, or it can be a single software or software module that provides various services for the first terminal device 101, the second terminal device 102, and the third terminal device 103, and the embodiment of the present application does not limit this.
[0036] The network 105 may be a wired network connected by coaxial cables, twisted pairs, and optical fibers, or a wireless network that enables interconnection of various communication devices without wiring, such as Bluetooth, Near Field Communication (NFC), infrared, etc., and the embodiments of the present application are not limited to this.
[0037] It should be noted that the specific types, quantities and combinations of the first terminal device 101, the second terminal device 102, the third terminal device 103, the server 104 and the network 105 can be adjusted according to the actual needs of the application scenario, and the embodiments of the present application do not limit this.
[0038] It should be noted that the specific types, quantities and combinations of the first terminal device 101, the second terminal device 102, the third terminal device 103, the server 104 and the network 105 can be adjusted according to the actual needs of the application scenario, and the embodiments of the present application do not limit this.
[0039] Figure 2 It is a flowchart of a remote upgrade control method provided in an embodiment of the present application. Figure 2 The remote upgrade control method can be executed by a user terminal, which can be Figure 1 The first terminal device, the second terminal device, or the third terminal device is implemented. Figure 2 As shown, the remote upgrade control method includes:
[0040] S201: Acquire an upgrade management state machine, where the upgrade management state machine includes multiple cloud states and jump relationships between each cloud state, and each cloud state is used to indicate an operation state of the cloud server in the process of upgrading the target vehicle;
[0041] S202: Send a status request to the cloud server, so that the cloud server returns current status information based on the status request, where the current status information includes current cloud status and version information;
[0042] S203: Determine a corresponding display interface based on the current cloud state stage;
[0043] S204: Determine a display identifier set on the display interface and a click logic corresponding to the display identifier based on the version information and the jump relationship between the current cloud status and other cloud statuses in the upgrade management state machine;
[0044] S205: Displaying a display interface including a display identifier on a display terminal;
[0045] S206: When a click operation is received for any display mark, an operation instruction is sent to the cloud server according to the corresponding click logic so that the cloud server executes the operation instruction on the target vehicle, and step S202 is executed to send a status request to the cloud server so that the cloud server returns the current status information based on the status request.
[0046] It can be understood that the method in this embodiment is executed by the user terminal, the user terminal communicates with the cloud server through a wireless network, the cloud server communicates with the Tbox of the target vehicle through a wireless network, and the conventional cloud server is used to perform OTA remote upgrades on the target vehicle. Using the method of this embodiment, the cloud server feeds back the specific progress of the remote upgrade to the user terminal, and the user terminal displays the relevant information on the display terminal based on the feedback of the cloud server for the user to view; further, the user can click on the display logo on the display terminal, and the user terminal sends an operation instruction to the cloud server after receiving the click operation, and the operation instruction is used to control the remote upgrade process of the cloud server to the target vehicle. As a result, the user can perceive the remote upgrade process in real time and control the remote upgrade process, and the remote upgrade experience is improved.
[0047] Specifically, the upgrade management state machine acquired and stored in this embodiment includes not only all cloud states, but also the jump relationship between cloud states. The jump relationship includes the previous and next cloud states of each cloud state, and may also include the jump conditions between cloud states. The jump conditions include cloud server or target vehicle updates, click operation triggers, etc.
[0048] It can be understood that the method of this embodiment is applied to the remote upgrade process, which mainly includes the download process and the installation process. Since the goal of this embodiment is to provide users with the display and control of the remote upgrade progress, the display interactive content is further added, so the whole process can be divided into multiple stages: the current latest version stage, the new version discovery stage, the download stage, the waiting installation stage and the installation stage. Among them, the current latest version stage means that the corresponding target vehicle is in the latest version and does not need remote upgrade; the new version discovery stage means that the cloud server has an updated version that can upgrade the target vehicle, but the target vehicle has not downloaded the upgrade file; the download stage means that the target vehicle is downloading the upgrade file; the waiting installation stage means that the target vehicle has completed the download of the upgrade file and has not yet started the installation; the installation stage means that the target vehicle is installing the upgrade file.
[0049] According to different stages of the remote upgrade process, the corresponding display interfaces are different. In this embodiment, the selectable display interfaces include the home page, the new version information page, and the installation information page. Specifically, the process of determining the corresponding display interface based on the stage of the current cloud status includes:
[0050] If the current cloud status is at the latest version stage, determine that the displayed interface is the home page;
[0051] If the current cloud status is in the new version discovery stage, downloading stage or waiting to be installed stage, determine that the display interface is the new version information page;
[0052] If the current cloud status is in the installation stage, confirm that the displayed interface is the installation information page.
[0053] It can be understood that the current latest version stage does not require download or installation operations, so the corresponding display interface is set to the homepage to display the display information to the user that "it is currently in the latest version stage and no download or installation operations are required"; the new version stage, download stage or to-be-installed stage all belong to the new version that exists but the new version upgrade file has not yet been installed on the target vehicle, so the display interface is set to the new version information page to display the display information to the user that "a new version currently exists but the new version upgrade file has not yet been installed on the target vehicle"; when the new version upgrade file is installed, that is, it is in the installation stage, the display interface is set to the installation information page to display the display information to the user that "the new version upgrade file is currently being installed".
[0054] It is understandable that due to the different display information that needs to be displayed to the user, there are differences in the layout and specific display content of the home page, new version information page, and installation information. In this embodiment, the display content is reflected by a display identifier. At this time, the display identifier is used to indicate the specific content of the current cloud state on the one hand, and on the other hand, it is used to indicate the next cloud state to which the current cloud state can jump or will jump. If the jump needs to be triggered by a click operation, the display identifier also corresponds to the click logic of the click operation. When the user clicks on a display identifier, the user terminal in this embodiment receives a click operation on the display identifier, and then sends the corresponding operation instruction to the cloud server according to the click logic. For example, the instruction display text contained in the display identifier is "Download the upgrade file". When a click operation on the display identifier is received, the operation instruction generated according to the click logic is an immediate download instruction. The immediate download instruction is sent to the cloud server, and the cloud server executes the action of immediately downloading the upgrade file for the target vehicle.
[0055] Furthermore, after the cloud server executes the operation instruction, the current cloud status will change, and the change needs to be synchronized to the user terminal, so it returns to execute step S202 to update the status information, and further executes steps S203-S205 to update the display interface and display mark.
[0056] Specifically, among all cloud states in the upgrade management state machine, the cloud states in the current latest version stage include: no new version detected state, successful installation state;
[0057] The cloud status in the new version discovery stage includes: new version detection status, manual download cancellation status, and download failure status;
[0058] The cloud status in the downloading stage includes: download paused status and downloading status;
[0059] The cloud status in the waiting for installation stage includes: download success status, waiting for the expected time to arrive status, manual installation cancellation status, pre-installation environment check failure status, and installation failure status;
[0060] The cloud status in the installation stage includes: pre-installation environment check status, pre-installation environment check success status, pre-installation preparation status, and installation status.
[0061] It can be understood that the click operations in the above include downloading immediately, pausing downloading, resuming downloading, canceling downloading, installing immediately, reserving installation, canceling reservation, confirming installation, and canceling installation. The jump relationship between the above cloud states may include:
[0062] The next cloud state in which the new version state is not detected includes: the new version state is not detected or the new version state is detected;
[0063] The next cloud status of the successful installation status includes: no new version detected status;
[0064] The next cloud state in which the new version state is detected includes: a downloading state triggered by an immediate download instruction;
[0065] The next cloud status of manually canceling the download status includes: a new version status is detected;
[0066] The next cloud status of the download failure status includes: a new version detected status;
[0067] The next cloud state of the paused download state includes: a downloading state triggered by a resume download instruction, and a manually canceled download state triggered by a cancel download instruction;
[0068] The next cloud state of the downloading state includes: a paused download state triggered by a pause download instruction, a manually canceled download state triggered by a cancel download instruction, a failed download state, and a successful download state;
[0069] The next cloud status of the download success status includes: the pre-installation environment checking status triggered by the immediate installation command, and the waiting for the estimated time to arrive status triggered by the scheduled installation command;
[0070] The next cloud state of the waiting estimated time arrival state includes: the pre-installation environment check state triggered after the estimated time arrives or triggered by the immediate installation command, the waiting estimated time arrival state triggered by the scheduled installation command, and the download success state triggered by the cancel reservation command;
[0071] The next cloud state of the manually canceled installation state includes: the pre-installation environment check state triggered by the immediate installation command, and the waiting for the estimated time to arrive state triggered by the scheduled installation command;
[0072] The next cloud state of the pre-installation environment check failure state includes: the pre-installation environment check in progress state triggered by the immediate installation command, and the waiting estimated time arrival state triggered by the scheduled installation command;
[0073] The next cloud state of the installation failure state includes: the pre-installation environment check state triggered by the immediate installation command, and the waiting estimated time arrival state triggered by the scheduled installation command;
[0074] The next cloud status of the status in the pre-installation environment check includes: pre-installation environment check success status, pre-installation environment check failure status;
[0075] The next cloud status of the pre-installation environment check success status includes: the pre-installation preparation status triggered by the installation confirmation instruction, and the manual installation cancellation status triggered by the installation cancellation instruction;
[0076] The next cloud state of the pre-installation preparation state includes: installing state;
[0077] The next cloud status of the installing state includes: installation success status and installation failure status.
[0078] According to the above description of the relationship between each cloud state and the operation instructions that trigger the cloud state, it can be seen that in the jump relationship of the cloud state, there may be multiple jump objects for the same cloud state, that is, the next cloud state, and the actual state update requires the joint action of the cloud server, the target vehicle, and the click operation. In other words, the next cloud state that is actually updated is a unique specific cloud state determined from multiple possible jump objects based on the joint action under the premise of the jump relationship.
[0079] Furthermore, since there are command trigger conditions in the state change, there is a delay in the process of transmitting and taking effect the information of the operation command from the user terminal to the cloud server and then to the target vehicle. Therefore, in order to improve the interactive experience, the delay process can also set the corresponding command state according to the click operation, and set the display mark to the form corresponding to the command state. When the operation command takes effect, the display mark is updated to the corresponding cloud state. Therefore, the upgrade management state machine also includes multiple command states corresponding to each click operation, and there is a jump relationship between each command state and the corresponding cloud state;
[0080] When a click operation is received for any display mark, it also includes:
[0081] The display interface and display identification are updated based on the instruction status corresponding to the click operation.
[0082] It can be understood that updating the display interface and display identification based on the instruction status of the click operation is intended to provide feedback to the user on the response of the execution subject of this embodiment to the click operation, that is, the click operation has been received and the corresponding process is being performed based on the click operation.
[0083] Further, when a click operation is received for any display mark, the process of sending an operation instruction to the cloud server according to the corresponding click logic so that the cloud server executes the operation instruction on the target vehicle includes:
[0084] Sending an operation instruction to the cloud server according to the corresponding click logic, so that the cloud server executes the operation instruction on the target vehicle and updates the current state information based on the jump relationship between the instruction state and the cloud state;
[0085] After executing the step of sending a status request to the cloud server so that the cloud server returns current status information based on the status request, the process of determining the corresponding display interface based on the stage of the current cloud status includes:
[0086] If the current cloud state in the current state information is the next cloud state of the current instruction state, the corresponding display interface is determined based on the stage of the current cloud state.
[0087] It can be understood that in an embodiment where only the cloud status does not appear in the instruction status, when a click operation is received, the corresponding operation instruction is sent to the cloud server so that the cloud server executes the operation instruction on the target vehicle, and then the process of returning to step S202 to send a status request to the cloud server so that the cloud server returns the current status information based on the status request. The purpose of returning to step S202 here is that if the cloud server executes the operation instruction on the target vehicle and causes the current cloud status to change, the entire process can be executed again from S202.
[0088] Furthermore, when the command state is added to the jump relationship, in order to ensure the accuracy of the displayed state, the restriction condition that the current cloud state is the next cloud state corresponding to the current command state is added as a necessary basis for the subsequent display interface and display identification display update. This is to avoid the state bounce problem caused by information delay or asynchrony. The state bounce problem refers to the following possible situation: the current operation instruction sent to the cloud server has not yet taken effect, and the cloud state that the cloud server can return is still in the original state. At this time, a status request is sent to the cloud server, and the cloud state returned by the cloud server is the original state. Then the display interface jumps back from the display interface that has responded to the click operation to the display interface that can execute the click operation, which can easily cause users to misunderstand that the click operation is invalid.
[0089] Therefore, after adding the setting of updating the display interface based on the instruction status, this embodiment further emphasizes the correct response and jump of the display interface to the instruction status. At this time, the complete response process for the click operation includes: sending the operation instruction to the cloud server according to the corresponding click logic so that the cloud server executes the operation instruction on the target vehicle; executing step S202, sending a status request to the cloud server so that the cloud server returns the current status information based on the status request; executing step S203, specifically including: if the current cloud state in the current status information is the next cloud state of the current instruction state, based on the stage of the current cloud state, determine the corresponding display interface; execute steps S204-S205. Displaying according to this process can ensure the accuracy of the display interface and avoid user experience problems caused by repeated bounces of the display interface.
[0090] Taking the operation instruction of immediate download instruction as an example, the process is as follows:
[0091] When a click operation on the display mark of "download now" is received, it is determined that the corresponding instruction state is that the download instruction is being sent immediately, and the corresponding operation instruction is the download instruction immediately. The display mark is updated based on the state, that is, the text of the display mark is "the download instruction is being sent immediately", and the download instruction is sent to the cloud server at the same time; the cloud server executes the action of downloading the upgrade file immediately for the target vehicle, and the cloud server will update the internal current cloud state to the downloading state when it starts to execute the action of downloading the upgrade file;
[0092] Send a status request to the cloud server to receive the current status information returned by the cloud server;
[0093] If the cloud state in the received current state information is the expected next cloud state of the state of sending the immediate download instruction, that is, the downloading state, it can be determined that the cloud server has received the current operation instruction and started to execute it, so the actual state is the downloading state, so the display interface and the display indicator can be updated according to the received current cloud state;
[0094] If the cloud status in the received current status information is not the downloading status, the current cloud server has not received the current operation instruction or has not started to execute the operation instruction, and still maintains the original display logo, that is, the logo text of the display logo is "download instruction sending immediately".
[0095] Specifically, different operation instructions correspond to different instruction states and are in different stages. Each instruction state also determines the display interface according to the corresponding stage, that is to say:
[0096] If the current cloud status or the current command status is at the latest version stage, determine that the display interface is the home page;
[0097] If the current cloud status or the current command status is in the new version discovery stage, downloading stage or waiting to be installed stage, determine that the display interface is the new version information page;
[0098] If the current cloud status or the current command status is in the installation stage, determine that the displayed interface is the installation information page.
[0099] Further, the instruction status in the new version discovery stage includes: an immediate download instruction sending status corresponding to an operation instruction being an immediate download instruction;
[0100] The command status in the download stage includes: a pause download command sending status corresponding to the operation command being a pause download command, a resume download command sending status corresponding to the operation command being a resume download command, and a cancel download command sending status corresponding to the operation command being a cancel download command.
[0101] Correspondingly, the instruction status in the waiting installation stage includes: the status of sending the immediate installation instruction corresponding to the operation instruction being the immediate installation instruction, the status of configuring the installation time corresponding to the operation instruction being the scheduled installation instruction, and the status of sending the cancel reservation instruction corresponding to the operation instruction being the cancel reservation instruction;
[0102] The instruction status in the installation stage includes: a confirm installation instruction sending status corresponding to the operation instruction being a confirm installation instruction, and a cancel installation instruction sending status corresponding to the operation instruction being a cancel installation instruction.
[0103] It can be understood that these instruction states correspond to operation instructions one by one, and each operation instruction corresponds to the click logic of the corresponding display mark on the specific display interface. If there is a clickable display mark on the current display interface, and the user clicks on the display mark, the execution subject of this embodiment will receive the click operation, and locate the display mark, click logic, operation instruction and instruction state based on the click operation, and then determine the specific content of the display interface again. Therefore, the actual display interface and display mark on the display terminal will be updated and displayed accordingly based on the current state information, the current possible instruction state, the jump relationship and other display bases.
[0104] Further, according to the triggering relationship between each cloud state and the operation instruction described above, in the jump relationship between each instruction state and the cloud state:
[0105] In the instruction state of the new version discovery stage, the previous cloud state of the immediate download instruction sending state includes: new version detection state, download failure state; the next cloud state of the immediate download instruction sending state includes downloading state;
[0106] In the instruction state in the downloading stage, the previous cloud state of the state of pausing the download instruction sending includes the downloading state; the next cloud state of the state of pausing the download instruction sending includes the pausing download state;
[0107] The previous cloud state of canceling the download instruction sending state includes the downloading state and the paused download state; the next cloud state of canceling the download instruction sending state includes the manually canceled download state;
[0108] The previous cloud state of the state of resuming the download instruction sending includes the paused download state; the next cloud state of resuming the download instruction sending includes the downloading state;
[0109] In the instruction state in the waiting-for-installation stage, the previous cloud state of the cancel reservation instruction sending state includes the waiting estimated time arrival state; the next cloud state of the cancel reservation instruction sending state includes the download success state;
[0110] The previous cloud status of the status of sending the immediate installation instruction includes: download success status, manual installation cancellation status, pre-installation environment check failure status, and waiting for the estimated time to arrive status; the next cloud status of the status of sending the immediate installation instruction includes the pre-installation environment check status;
[0111] The previous cloud status of the status in the installation time configuration includes the download success status, the manual cancellation of the installation status, the pre-installation environment check failure status, and the waiting for the estimated time to arrive status; the next cloud status of the status in the installation time configuration includes the waiting for the estimated time to arrive status;
[0112] In the instruction state in the installation stage, it is confirmed that the previous cloud state of the installation instruction sending state includes the pre-installation environment check success state; it is confirmed that the next cloud state of the installation instruction sending state includes the pre-installation preparation state;
[0113] The previous cloud state of the cancel installation instruction sending state includes a pre-installation environment check success state; the next cloud state of the cancel installation instruction sending state includes a manual cancellation installation state.
[0114] It is understandable that there are usually multiple previous cloud states for the command state, that is, the display interfaces corresponding to the multiple cloud states may include display logos representing the same click logic. This provides users with multiple controllable nodes throughout the remote upgrade process. Users can issue click operations through any controllable node to pause, continue or interrupt the progress of the remote upgrade, providing users with flexible process settings for managing the progress of the remote upgrade, and optimizing the user's management experience of remote upgrades of target vehicles.
[0115] Correspondingly, each command state has a unique next cloud state to indicate that the current click operation has been responded to and the cloud server has started to execute the corresponding operation command. Based on the specific jump relationship between the command state and the cloud state, the display interface and display logo are updated, thereby providing users with more fine-grained progress prompts, reducing users' anxiety during the remote upgrade process of the target vehicle and optimizing the user experience.
[0116] Based on the above description, in the upgrade management state machine of this embodiment, the jump relationship between all cloud states and instruction states includes:
[0117] 1. The next cloud state in which no new version is detected includes: no new version is detected or a new version is detected;
[0118] 2. The next instruction status when a new version is detected includes: the status of sending an immediate download instruction;
[0119] 3. The next cloud status of the status of sending the immediate download instruction includes: downloading status;
[0120] 4. The next state of the downloading state includes: pause download instruction sending state, cancel download instruction sending state, download failure state, and download success state;
[0121] 5. The next cloud state of the state of sending the pause download instruction includes: pause download state;
[0122] 6. The next instruction state of the pause download state includes: resume download instruction sending state, cancel download instruction sending state;
[0123] 7. The next cloud state for resuming the download instruction sending state includes: downloading state;
[0124] 8. The next cloud status of the download instruction sending state includes: manually canceling the download state;
[0125] 9. The next cloud status of manually canceling the download status includes: new version status detected;
[0126] 10. The next cloud status of the download failure status includes: new version detected status;
[0127] 11. The next status of the download success status includes: the status of sending the immediate installation instruction and the status of sending the scheduled installation instruction;
[0128] 12. The next cloud status of the scheduled installation instruction sending state includes: waiting for the expected time to arrive;
[0129] 13. The next state of the waiting estimated time arrival state includes: the state of sending the immediate installation instruction, the state of sending the scheduled installation instruction, and the state of sending the cancel appointment instruction;
[0130] 14. The next cloud status of the cancel reservation instruction sending state includes: download success status;
[0131] 15. The next cloud status of the status of sending the immediate installation command includes: the status of checking the environment before installation;
[0132] 16. The next cloud status of the pre-installation environment check status includes: pre-installation environment check success status, pre-installation environment check failure status;
[0133] 17. The next cloud status of the state of canceling the installation instruction sending includes: manually canceling the installation state;
[0134] 18. The next state of manually canceling the installation state includes: the state of sending the immediate installation instruction and the state of sending the scheduled installation instruction;
[0135] 19. The next cloud status for the pre-installation environment check failure status includes: immediate installation instruction sending status, scheduled installation instruction sending status;
[0136] 20. The next state of the pre-installation environment check success state includes: confirming the installation instruction sending state, canceling the installation instruction sending state;
[0137] 21. The next cloud status for confirming the status of sending installation instructions includes: the status of preparing before installation;
[0138] 22. The next cloud status of the pre-installation preparation status includes: installing status;
[0139] 23. The next cloud status of the installation status includes: installation success status, installation failure status;
[0140] 24. The next cloud status of the installation failure status includes: the status of sending the immediate installation instruction and the status of sending the scheduled installation instruction;
[0141] 25. The next cloud status of the successful installation status includes: no new version detected status;
[0142] It can be understood that in a complete process of successfully installing the upgrade file on the target vehicle, at least the following state changes are included: new version detected state (indicating that there is an upgrade file that is newer than the local file version on the target vehicle at this time), immediate download instruction sending state triggered after receiving the immediate download instruction (indicating the communication process between the cloud server and the target vehicle, requiring the target vehicle to download the upgrade file), downloading state (indicating that the target vehicle is downloading the upgrade file), successful download state (indicating that the target vehicle has completed the download of the upgrade file), immediate installation instruction sending state triggered after receiving the immediate installation instruction (indicating the communication process between the cloud server and the target vehicle , requiring the target vehicle to install the upgrade file immediately), pre-installation environment checking status (indicating that the target vehicle is checking the pre-installation environment), pre-installation environment checking success status (indicating that the target vehicle has completed the pre-installation environment check and the pre-installation environment allows the next installation operation), the confirmation installation instruction sending status triggered after receiving the confirmation installation instruction (indicating the communication process between the cloud server and the target vehicle, confirming that the target vehicle is installing the upgrade file), pre-installation preparation status (indicating that the target vehicle is preparing for installation), installing status (indicating that the target vehicle is installing the upgrade file), installation success (indicating that the target vehicle has completed the installation of the upgrade file). In addition to the above state changes, there are multiple states that can jump to the next state. As a jumpable node, other scene jumps under different situations and different instructions can be realized. For example, in the download success state, the appointment installation instruction can be received to enter the appointment installation instruction sending state. The next state in the installation state may be installation failure, etc. The specific state jump in the upgrade management state machine will be realized according to the actual situation, which will not be repeated here.
[0143] It is understandable that the download and installation of the upgrade file takes a long time. In order to allow users to have a more fine-grained grasp of the specific details of the download and installation, the cloud server can be polled for specific download or installation conditions, and the display interface and display mark can be updated accordingly. Therefore, in this embodiment, after the display interface including the display mark is displayed on the display terminal, it also includes:
[0144] If the current cloud status is in the downloading stage or the installing stage, a progress request is sent to the cloud server at a preset frequency, so that the cloud server returns the current progress information based on the progress request, and the current progress information includes one or more of the download progress, installation progress, total file size, downloaded file size, and current cloud status;
[0145] Based on the current progress information and the jump relationship between the current cloud state and other cloud states in the upgrade management state machine, the display interface and display identification are updated.
[0146] It is understandable that the downloading and installation stages take a long time and can easily cause user anxiety. Therefore, by regularly determining the progress information and updating the display interface and display logo based on the current progress information and jump relationship, users are provided with more fine-grained progress prompts, allowing users to have a more accurate and clear understanding of the current progress, thereby reducing user anxiety during the remote upgrade of the target vehicle and optimizing the user experience.
[0147] It is understandable that the display mark on the display interface includes one or more of the following:
[0148] The first display button corresponding to the current cloud status;
[0149] A second display button corresponding to the jump relationship of the current cloud state and including instruction display text;
[0150] Display animation corresponding to the current cloud status;
[0151] The progress display text corresponding to the current progress information;
[0152] Download progress indicator corresponding to download progress and current cloud status;
[0153] The installation progress indicator corresponds to the installation progress and current cloud status.
[0154] Specifically, according to the different display interfaces and cloud states, it can be determined whether each display logo is displayed, the display position of each display logo, the display form and the specific display content of the display logo. At the same time, the display logo can also add visual design to reduce the difficulty of understanding the display logo, facilitate user understanding and operation, and enable users to have a more accurate and clear understanding of the current progress. At the same time, it reduces the difficulty of users managing the remote upgrade process, that is, the difficulty of issuing click operations.
[0155] In the specific implementation of this method, the software support of the method of this embodiment can be provided by the Android system or other systems, which is not limited here. In the implementation of this method, the following definitions need to be performed: define each state in the upgrade management state machine, define operation instructions, define entity classes, define interfaces, define OTA singletons, and define page elements.
[0156] 1. Define each state in the upgrade management state machine:
[0157] Create a new enumeration class named OTA Status (enum class OTAStatus), which can be used to define the states agreed upon with the cloud server. In the enumeration class, declare the following state constants that are required during the remote upgrade process:
[0158] 1.NOT_CHECKED_NEW_VERSION: No new version status was detected;
[0159] 2.CHECKED_NEW_VERSION: A new version status has been detected;
[0160] 3.DOWNLOAD_NOW_PUSHING: download instruction is being sent immediately;
[0161] 4.DOWNLOADING: downloading status;
[0162] 5.DOWNLOAD_PAUSING: Pause download instruction sending status;
[0163] 6.PAUSE_DOWNLOAD: Pause download status;
[0164] 7.DOWNLOAD_RESUMING: Resuming the download instruction sending status;
[0165] 8.DOWNLOAD_CANCELING: cancel the download instruction sending status;
[0166] 9.MANUAL_CANCEL_DOWNLOAD: Manually cancel the download status;
[0167] 10.DOWNLOAD_FAIL: download failure status;
[0168] 11.DOWNLOAD_SUCCESS: download success status;
[0169] 12.INSTALL_TIME_SETTING: installation time configuration status;
[0170] 13.WAIT_INSTALL: Waiting for the expected time to arrive;
[0171] 14.RESERVATION_CANCELING: The cancellation reservation instruction is being sent;
[0172] 15.INSTALL_NOW_PUSHING: The installation command is being sent immediately;
[0173] 16.ENVIRONMENT_CHECKING: The environment is being checked before installation.
[0174] 17.INSTALL_CANCELING: cancel the installation instruction sending status;
[0175] 18.MANUAL_CANCEL_INSTALL: Manually cancel the installation status;
[0176] 19.ENVIRONMENT_CHECK_FAIL: Pre-installation environment check failure status;
[0177] 20.ENVIRONMENT_CHECK_SUCCESS: The pre-installation environment check succeeded;
[0178] 21.INSTALL_CONFIRM_PUSHING: confirms that the installation command is being sent;
[0179] 22.INSTALL_PREPARING: Preparing state before installation;
[0180] 23.INSTALLING: installing status;
[0181] 24.INSTALL_FAIL: installation failed status;
[0182] 25.INSTALL_SUCCESS: installation success status.
[0183] It is understandable that the state constants may also include two reset states for jumping back to the original home page:
[0184] ENVIRONMENT_CHECK_FAIL_RESET: reset if the pre-installation environment check fails;
[0185] DOWNLOAD_FAIL_RESET: Download failed reset.
[0186] When these two reset states appear, they are reset back to the initial state of the upgrade management state machine, that is, the home page for detecting whether OTA has a new version.
[0187] 2. Define operation instructions:
[0188] Create a new enumeration class named OTA Command (enum class OTACommand), and declare the status constants used to send operation commands to the cloud server in the enumeration class:
[0189] 1. START_DOWNLOAD: Download command immediately;
[0190] 2.PAUSE_DOWNLOAD: Pause download command;
[0191] 3.RESUME_DOWNLOAD: resume download instruction;
[0192] 4.CANCEL_DOWNLOAD: cancel the download command;
[0193] 5.INSTALL_NOW: Install the command immediately;
[0194] 6.INSTALL_CONFIRM: Confirm the installation instructions;
[0195] 7.INSTALL_CANCEL: cancel the installation command;
[0196] 8.RESERVATION_CANCEL: cancel reservation instruction.
[0197] 3. Define entity class:
[0198] Create a new data class "OTA Detection": dataclassOTACheck, and define fields in the data class: current version, current version number, current version time, whether there is a new version, new version number, new version package size, version description, installation prompts, OTA status and other information. This class is used to receive data returned from the OTA version detection interface.
[0199] Create a new data class "OTA Upgrade": dataclassOTAUpgrade, and define fields in the data class: download progress, downloaded size, total size, installation progress, failure reason, OTA status, etc. This class is used to receive data returned from the OTA progress interface below.
[0200] 4. Define the interface:
[0201] The detection interface defines a "status detection" interface to obtain whether there is a new OTA version. When the App requests this interface, the background cloud server will receive the status request and return the status information of the current OTA version, including cloud status and version information. The version information includes version number, version name, etc. For example, when a new version is detected, the returned cloud status is: CHECKED_NEW_VERSION. If there is no new version, NOT_CHECKED_NEW_VERSION is returned, indicating that it is the latest version.
[0202] The polling interface defines a "progress detection" interface to obtain the download progress or installation progress of the new OTA version. When the App requests this interface, the backend cloud server will receive the accuracy request and return the current accuracy information, including the download progress or installation progress, the total size of the upgrade file, the downloaded size, the current cloud status, etc.
[0203] The command interface defines a "command sending" interface, which is used to send various operation commands to the background cloud server. After receiving the operation command, the cloud server sends the operation command to the vehicle computer of the target vehicle, so that the vehicle computer can execute the corresponding operation process.
[0204] The time configuration interface defines an "appointment time configuration" interface, which is used to send the appointment installation time to the background cloud server. When the time arrives, the cloud server automatically controls the target vehicle to perform the installation operation.
[0205] 5. Define OTA singleton:
[0206] Create a new object declaration Object, named OTA management object objectOTAManager{}, which is used to generate a singleton object. In this OTA management object:
[0207] 1. Define member attributes:
[0208] Declare a member variable named "OTA Detection";
[0209] Variable type: "OTA detection" type;
[0210] Default value: empty;
[0211] Declare a member variable named "OTA Upgrade";
[0212] Variable type: "OTA upgrade" type;
[0213] Default value: empty;
[0214] 2. Definition method:
[0215] Method name: OTA version detection;
[0216] Method body: In the method body, use the network service to request the "status detection" interface, parse the json object returned by the server into an object of the "OTA detection" type, and then assign it to the defined "OTA detection" member variable;
[0217] Method name: OTA update progress;
[0218] Method body: In the method body, start a loop. In the loop body, use the network service to request the "update progress" interface from the background every 3 seconds. Each time the request result json object returned by the server is obtained, it is parsed into an object of the "OTA upgrade" type, and then assigned to the defined "OTA upgrade" member variable;
[0219] Method name: Send OTA command;
[0220] Parameter type: "OTA command" enumeration type;
[0221] Method body: In the method body, use the network service to request the "OTA command sending" interface to send OTA operation related instructions to the background cloud server, such as the user clicking to download the OTA upgrade package;
[0222] Method name: "Appointment time configuration";
[0223] Parameter type: long integer timestamp;
[0224] Method body: In the method, use the network service to request the "appointment time configuration" interface, pass the required appointment time to the cloud server, and the cloud server will configure the upgrade time of the vehicle. After the time configuration is successful, the "OTA state" will become the "WAIT_INSTALL" state in the state machine.
[0225] 6. Define page elements:
[0226] 1. Define the elements on the home page:
[0227] Text: Displays the current OTA version number and the current OTA version time;
[0228] Text: Displays the new version name, which is hidden by default;
[0229] Button: used to detect whether OTA has a new version. When the user clicks this button, the "OTA Version Detection" method in the OTA singleton object is called to obtain the OTA version information. This version information will be saved in the "OTA Detection" member variable in the OTA singleton object, and then the "OTA Status" field in the "OTA Detection" variable will be used to compare and judge with the state machine on the page.
[0230] As shown in Figure 3(a), if the "OTA status" is equal to any of the following states:
[0231] NOT_CHECKED_NEW_VERSION (new version status not detected),
[0232] INSTALL_SUCCESS (installation success status),
[0233] The page displays: Currently the latest version, and the button text displays: Check for updates, indicating that the OTA is in the "current latest version stage";
[0234] Click the button: call the "OTA version detection" method of the OTA singleton to detect whether the OTA version has been updated. The click logic is "send a status request to the cloud server so that the cloud server returns the current status information based on the status request."
[0235] If OTA Status is equal to any of the following:
[0236] CHECKED_NEW_VERSION (new version status detected),
[0237] DOWNLOAD_NOW_PUSHING (download instruction is being sent immediately),
[0238] MANUAL_CANCEL_DOWNLOAD (manually cancel download status),
[0239] DOWNLOAD_FAIL (download failure status)
[0240] The page displays: New version found, and the button text displays: View, indicating that OTA is in the "new version discovery stage";
[0241] Click the button: call the system method public void start Activity (Intent intent) to switch the page to the OTA new version page.
[0242] If OTA Status is equal to any of the following:
[0243] DOWNLOADING (downloading status),
[0244] DOWNLOAD_PAUSING (Pause download instruction sending status),
[0245] PAUSE_DOWNLOAD (pause download status),
[0246] DOWNLOAD_RESUMING (resume download instruction sending status)
[0247] DOWNLOAD_CANCELING (cancel download instruction sending status)
[0248] The page displays: New version downloading, and the button text displays: View, indicating that the OTA is in the "downloading stage";
[0249] Click the button: call the system method public void startActivity (Intent intent) to switch the page to the OTA new version page. On the OTA new version page, you can click the "Start Download" button, call the "Send OTA Command" method of the OTA singleton, pass in START_DOWNLOAD, and send the download command to the cloud server. After receiving the command, the cloud will wake up the car computer, download, and synchronize the download progress and size to the cloud.
[0250] If OTA Status is equal to any of the following:
[0251] DOWNLOAD_SUCCESS (download success status),
[0252] INSTALL_TIME_SETTING (installation time configuration status),
[0253] WAIT_INSTALL (waiting for the estimated time to arrive),
[0254] RESERVATION_CANCELING (cancellation order is being sent),
[0255] INSTALL_NOW_PUSHING (the installation command is being sent immediately),
[0256] MANUAL_CANCEL_INSTALL (manually cancel the installation state),
[0257] ENVIRONMENT_CHECK_FAIL (pre-installation environment check failure status),
[0258] The page displays: New version to be installed, and the button text displays: Install, indicating that the OTA is in the "pending installation stage";
[0259] Click the button: call the system method public void start Activity (Intent intent) to switch the page to the OTA new version page.
[0260] If OTA Status is equal to any of the following:
[0261] ENVIRONMENT_CHECKING (environment checking status before installation),
[0262] INSTALL_CANCELING (cancel the installation instruction sending status),
[0263] ENVIRONMENT_CHECK_SUCCESS (pre-installation environment check success status),
[0264] INSTALL_CONFIRM_PUSHING (confirm installation command sending status),
[0265] INSTALL_PREPARING (preparation status before installation),
[0266] INSTALLING (installing state),
[0267] The page displays: New version is being installed, and the button text displays: View, indicating that the OTA is in the "installation stage"
[0268] Click the button: call the system method public void start Activity (Intent intent) to switch the page to the OTA installation information page.
[0269] 2. Element definition in the OTA new version information page:
[0270] Basic elements: Displays information such as the name of the new OTA version, version creation time, new version package size, estimated installation time, version description, etc.
[0271] When "OTA Status" is equal to any of the following: CHECKED_NEW_VERSION, DOWNLOAD_FAIL, MANUAL_CANCEL_DOWNLOAD:
[0272] As shown in Figure 3(b), only one button is displayed at the bottom of the page, and the button text is "Download Now";
[0273] Click "Download Now": call the "Send OTA Command" method of the OTA singleton object with the parameter "START_DOWNLOAD" of the "OTA Command" type to send an immediate download command to the cloud server.
[0274] When "OTA Status" is equal to DOWNLOAD_NOW_PUSHING:
[0275] Only one button is displayed on the left side at the bottom of the page, with the text "Sending download instructions...", and the button is set to be unclickable.
[0276] When "OTA Status" is equal to DOWNLOADING:
[0277] As shown in FIG3(c), two buttons are displayed at the bottom of the page, and the button texts are "Pause Download" and "Cancel Download", respectively. At the same time, a progress bar is displayed above the buttons to indicate the download progress of the current OTA version;
[0278] Click "Pause Download": call the "Send OTA Command" method of the OTA singleton object with the parameter "PAUSE_DOWNLOAD" of the "OTA Command" type to send a pause download command to the cloud server.
[0279] Click "Cancel Download": call the "Send OTA Command" method of the OTA singleton object with the parameter "CANCEL_DOWNLOAD" of the "OTA Command" type to send a cancel download command to the cloud server.
[0280] When "OTA Status" is equal to DOWNLOAD_PAUSING:
[0281] The text content of the "Pause Download" button at the bottom of the page changes to "Pause instruction is being sent...", and the button is set to be unclickable.
[0282] When "OTA Status" equals DOWNLOAD_CANCELING:
[0283] The text content of the "Cancel Download" button at the bottom of the page changes to "Cancel instruction is being sent...", and the button is set to be unclickable.
[0284] When "OTA Status" equals PAUSE_DOWNLOAD:
[0285] The text content of the "Pause Download" button at the bottom of the page changes to "Resume Download", and the progress bar turns gray, indicating that the download has been paused;
[0286] Click "Resume Download": call the "Send OTA Command" method of the OTA singleton object with the parameter "RESUME_DOWNLOAD" of the "OTA Command" type to send the resume download command to the cloud server.
[0287] When "OTA Status" is equal to DOWNLOAD_RESUMING:
[0288] The right button at the bottom of the page is displayed as "Resume instruction is sending...", and the button is set to be unclickable.
[0289] When "OTA Status" is equal to any of the following: DOWNLOAD_SUCCESS, MANUAL_CANCEL_INSTALL, ENVIRONMENT_CHECK_FAIL:
[0290] As shown in FIG3( d ), the left button at the bottom of the page is displayed as “Schedule Upgrade”, and the right button is displayed as “Upgrade Now”;
[0291] Click "Upgrade Now": call the "Send OTA Command" method of the OTA singleton object with the parameter "INSTALL_NOW" of the "OTA Command" type to send an immediate upgrade command to the cloud server, which is the immediate installation command mentioned above;
[0292] Click "Appointment Upgrade": call the "Appointment Time Configuration" method of the OTA singleton object, with the parameter being the standard timestamp, and report the appointment time to the cloud server, which is the appointment installation instruction mentioned above.
[0293] In addition, when the "OTA status" is equal to ENVIRONMENT_CHECK_FAIL, the page can also display the "reason for failure of the pre-installation environment check" to prompt the user to adjust the environment to ensure the success of the next environment check.
[0294] When "OTA Status" equals INSTALL_TIME_SETTING:
[0295] The right button at the bottom of the page is displayed as "Instructions sending", indicating that instructions are being sent to configure the time for the scheduled upgrade, and the button is set to be unclickable.
[0296] When "OTA Status" equals WAIT_INSTALL:
[0297] As shown in FIG3( e ), the left button at the bottom of the page is displayed as “Cancel Reservation”, and the right button is displayed as “Upgrade Now”;
[0298] Click "Cancel Reservation": call the "Send OTA Command" method of the OTA singleton object with the parameter "RESERVATION_CANCEL" of the "OTA Command" type to send a cancel reservation command to the cloud server;
[0299] Click "Upgrade Now": call the "Send OTA Command" method of the OTA singleton object with the parameter "INSTALL_NOW" of the "OTA Command" type to send an immediate upgrade command to the cloud server, that is, an immediate installation command.
[0300] When "OTA Status" equals RESERVATION_CANCELING:
[0301] The right button at the bottom of the page is displayed as "Instructions sending", indicating that the instruction to cancel the appointment is being sent, and the button is set to be unclickable.
[0302] When "OTA Status" equals INSTALL_NOW_PUSHING:
[0303] The left button at the bottom of the page is displayed as "Instructions are being sent", indicating that instructions for immediate upgrade are being sent, and the button is set to be unclickable.
[0304] 3. Element definition in OTA installation information page:
[0305] When "OTA Status" equals ENVIRONMENT_CHECKING:
[0306] As shown in Figure 3(f), the text is "Vehicle upgrade condition verification is in progress. This process is long, please wait patiently...", indicating that the pre-installation environment check is in progress. An animation element is displayed on the page to indicate the waiting process.
[0307] When "OTA Status" equals ENVIRONMENT_CHECK_SUCCESS:
[0308] As shown in Figure 3(g), the vehicle environment detection is successful. A countdown time is displayed on the page. This time is provided by the cloud server and is 120 seconds by default. At the same time, two buttons are displayed below the countdown, one is "Install Now" and the other is "Cancel Installation". When the countdown ends, "Install Now" is executed by default.
[0309] Click "Install Now": call the "Send OTA Command" method of the OTA singleton object with the parameter "INSTALL_CONFIRM" of the "OTA Command" type to send an immediate installation command to the cloud server. It should be noted that this command is actually the confirmation installation command mentioned above.
[0310] Click "Cancel Installation": call the "Send OTA Command" method of the OTA singleton object with the parameter "INSTALL_CANCEL" of the "OTA Command" type to send a command to the cloud server to cancel the installation. This command is the cancel installation command mentioned above.
[0311] When "OTA Status" equals INSTALL_PREPARING:
[0312] It indicates that the installation preparation is in progress, and an animation element is displayed on the page to indicate the waiting process.
[0313] When "OTA Status" is equal to INSTALLING:
[0314] As shown in FIG. 3( h ), OTA is being installed, and a progress element is displayed on the page to indicate the progress of the OTA installation.
[0315] For further information, see Figure 4 The specific flow chart shown in the figure shows that the operation process of this embodiment of the scheme is as follows:
[0316] When a new OTA version is detected on the OTA homepage, compare the "OTA status" attribute field of the data returned by the server with the OTA state machine:
[0317] If OTA is in the "downloading stage", you can click the "View" button below to enter the OTA new version information page. At this time, immediately call the "OTA Update Progress" method of the OTA singleton object to start polling (intermittently request the server to obtain the download progress) until the OTA download is completed, then end the polling and exit the loop.
[0318] If OTA is in the "pending installation stage", you can click the "Upgrade" button below to enter the OTA new version information page. On the OTA new version information page, you can click the "Upgrade Now" button to perform the immediate upgrade operation. At this time, the "OTA Update Progress" method of the OTA singleton object is also called to start polling until the "OTA Status" is in the "Installing Stage". The page automatically switches to the OTA upgrade page until the upgrade is completed, and then the polling ends;
[0319] If OTA is in the "installing stage", you can click the "View" button below to enter the OTA upgrade page. At this time, immediately call the "OTA Update Progress" method of the OTA singleton object to start polling until the upgrade is completed and then end the polling.
[0320] When the "OTA status" is in the "downloading stage" and "installing stage", polling is required. Therefore, the condition for ending polling is: when the "OTA update progress" in the OTA singleton object polls to the "OTA status" which is not equal to the status in the "downloading stage" and "installing stage" in the state machine and all the instructions are being issued, the "OTA update progress" method in the OTA singleton object will force exit the loop and end polling.
[0321] It can be understood that, in the above element definition of each display interface, a button is also a key, the button text content corresponds to the instruction display text, the action after clicking a button refers to the click logic, and the element definition includes a first display button, a second display button, a display animation, a progress display text, a download progress identifier, an installation progress identifier, etc. For example, the button text of the home page is displayed as View, which refers to the first display button corresponding to the current state; for another example, when "OTA Status" is equal to DOWNLOADING, two buttons are displayed at the bottom of the page, and the button texts are "Pause Download" and "Cancel Download" respectively. At the same time, a progress bar is displayed above the button to indicate the download progress of the current OTA version. At this time, the two buttons corresponding to "Pause Download" and "Cancel Download" are both second display buttons, and the progress bar is a download progress identifier. A specific progress display text determined according to the current progress information can also be added, such as adding a progress display text of 75% to the installation progress bar; for another example, when "OTA Status" is equal to ENVIRONMENT_CHECKING, it means that the vehicle environment is being checked before upgrading, and an animation element is displayed on the page to indicate the waiting process, and the animation element is also a display animation.
[0322] The method in this embodiment has the following effects:
[0323] The OTA remote upgrade process is controlled by the state machine, and the user can perceive the upgrade process;
[0324] The OTA singleton manager is used to globally control upgrade polling and cutoff polling, and the display interface control is flexible and highly scalable.
[0325] The method of the embodiment of the present application obtains a status request through a cloud server, determines a display interface according to the cloud status returned by the current status request, and determines a display identifier on the display interface according to the jump relationship of the returned cloud status in the upgrade management state machine, and sends an operation instruction to the cloud server according to a click operation on the display identifier, so that the cloud server executes the corresponding operation instruction on the target vehicle, thereby updating the cloud status in the cloud server, and the display terminal will continue to display and update the display interface and display identifier. Based on the display terminal in this solution, the user can understand the specific status information of the current upgrade process, and issue feasible operation instructions through the display identifier, thereby realizing the understanding and control of the remote upgrade process, and improving the user's remote upgrade experience.
[0326] All the above optional technical solutions can be combined in any way to form optional embodiments of the present application, and will not be described in detail here. It should be understood that the size of the sequence number of each step in the above embodiment does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
[0327] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0328] Figure 5 Schematic diagram of a remote upgrade control device provided in an embodiment of the present application. Figure 5 As shown, the remote upgrade control device includes:
[0329] The state machine acquisition module 501 is used to acquire an upgrade management state machine, where the upgrade management state machine includes a plurality of cloud states and a jump relationship between each cloud state, and each cloud state is used to indicate an operation state of the cloud server in the upgrade process of the target vehicle;
[0330] A status acquisition module 502 is used to send a status request to the cloud server so that the cloud server returns current status information based on the status request, where the current status information includes current cloud status and version information;
[0331] The interface determination module 503 is used to determine the corresponding display interface based on the current cloud state stage;
[0332] The information determination module 504 is used to determine the display identifier set on the display interface and the click logic corresponding to the display identifier based on the version information and the jump relationship between the current cloud status and other cloud statuses in the upgrade management state machine;
[0333] A display module 505, configured to display a display interface including a display identifier on a display terminal;
[0334] The operation response module 506 is used to send an operation instruction to the cloud server according to the corresponding click logic when receiving a click operation on any display mark so that the cloud server executes the operation instruction on the target vehicle and triggers the state acquisition module.
[0335] The device of the embodiment of the present application obtains a status request through a cloud server, determines a display interface according to the cloud status returned by the current status request, and determines a display identifier on the display interface according to the jump relationship of the returned cloud status in the upgrade management state machine, and sends an operation instruction to the cloud server according to a click operation on the display identifier, so that the cloud server executes the corresponding operation instruction on the target vehicle, thereby updating the cloud status in the cloud server, and the display terminal will continuously display and update the display interface and display identifier. Based on the display terminal in this solution, the user can understand the specific status information of the current upgrade process, and issue feasible operation instructions through the display identifier, thereby realizing the understanding and control of the remote upgrade process, and improving the user's remote upgrade experience.
[0336] In an exemplary embodiment, the interface determination module is specifically used to:
[0337] If the current cloud status is at the latest version stage, determine that the displayed interface is the home page;
[0338] If the current cloud status is in the new version discovery stage, downloading stage or pending installation stage, determine that the display interface is the new version information page;
[0339] If the current cloud status is in the installation stage, confirm that the displayed interface is the installation information page.
[0340] In an exemplary embodiment, among all cloud states in the upgrade management state machine, the cloud states in the current latest version stage include: no new version detected state, successful installation state;
[0341] The cloud status in the new version discovery stage includes: new version detection status, manual download cancellation status, and download failure status;
[0342] The cloud status in the downloading stage includes: download paused status and downloading status;
[0343] The cloud status in the waiting for installation stage includes: download success status, waiting for the expected time to arrive status, manual installation cancellation status, pre-installation environment check failure status, and installation failure status;
[0344] The cloud status in the installation stage includes: pre-installation environment check status, pre-installation environment check success status, pre-installation preparation status, and installation status.
[0345] In an exemplary embodiment, the upgrade management state machine further includes a plurality of instruction states corresponding to each click operation, and there is a jump relationship between each instruction state and the corresponding cloud state;
[0346] When receiving a click operation on any display mark, the operation response module is further used to:
[0347] The display interface and display identification are updated based on the instruction status corresponding to the click operation.
[0348] In an exemplary embodiment, the operation response module is specifically used to:
[0349] Sending an operation instruction to the cloud server according to the corresponding click logic, so that the cloud server executes the operation instruction on the target vehicle and updates the current state information based on the jump relationship between the instruction state and the cloud state;
[0350] The interface determination module is also used to:
[0351] If the current cloud state in the current state information is the next cloud state of the current instruction state, the corresponding display interface is determined based on the stage of the current cloud state.
[0352] In an exemplary embodiment, the instruction status in the new version discovery stage includes: an immediate download instruction sending status corresponding to an operation instruction being an immediate download instruction;
[0353] The command status in the download stage includes: a pause download command sending status corresponding to the operation command being a pause download command, a resume download command sending status corresponding to the operation command being a resume download command, and a cancel download command sending status corresponding to the operation command being a cancel download command.
[0354] In an exemplary embodiment, the instruction status in the waiting installation stage includes: an immediate installation instruction sending status corresponding to an operation instruction being an immediate installation instruction, an installation time configuring status corresponding to an operation instruction being a scheduled installation instruction, and a cancel reservation instruction sending status corresponding to an operation instruction being a cancel reservation instruction;
[0355] The instruction status in the installation stage includes: a confirm installation instruction sending status corresponding to the operation instruction being a confirm installation instruction, and a cancel installation instruction sending status corresponding to the operation instruction being a cancel installation instruction.
[0356] In an exemplary embodiment, in the jump relationship between each instruction state and the cloud state:
[0357] The previous cloud status of the status of sending the download instruction immediately includes: a new version detected status and a download failed status; the next cloud status of the status of sending the download instruction immediately includes a downloading status.
[0358] In an exemplary embodiment, in the jump relationship between each instruction state and the cloud state:
[0359] The previous cloud state of the state of pausing download instruction sending includes the downloading state; the next cloud state of the state of pausing download instruction sending includes the pausing download state;
[0360] The previous cloud state of canceling the download instruction sending state includes the downloading state and the paused download state; the next cloud state of canceling the download instruction sending state includes the manually canceled download state;
[0361] The previous cloud state of resuming the download instruction sending state includes the paused download state; the next cloud state of resuming the download instruction sending state includes the downloading state.
[0362] In an exemplary embodiment, in the jump relationship between each instruction state and the cloud state:
[0363] The previous cloud state of the cancel reservation instruction sending state includes the waiting estimated time arrival state; the next cloud state of the cancel reservation instruction sending state includes the download success state;
[0364] The previous cloud status of the status of sending the immediate installation instruction includes: download success status, manual installation cancellation status, pre-installation environment check failure status, and waiting for the estimated time to arrive status; the next cloud status of the status of sending the immediate installation instruction includes the pre-installation environment check status;
[0365] The previous cloud status of the status in the installation time configuration includes the download success status, the manual cancellation installation status, the pre-installation environment check failure status, and the waiting estimated time arrival status; the next cloud status of the status in the installation time configuration includes the waiting estimated time arrival status.
[0366] In an exemplary embodiment, in the jump relationship between each instruction state and the cloud state:
[0367] Confirming that the previous cloud status of the installation instruction sending state includes a pre-installation environment check success state; confirming that the next cloud status of the installation instruction sending state includes a pre-installation preparation state;
[0368] The previous cloud state of the cancel installation instruction sending state includes a pre-installation environment check success state; the next cloud state of the cancel installation instruction sending state includes a manual cancellation installation state.
[0369] In an exemplary embodiment, the device further includes an accuracy acquisition module, which is used to:
[0370] If the current cloud status is in the downloading stage or the installing stage, a progress request is sent to the cloud server at a preset frequency, so that the cloud server returns the current progress information based on the progress request, and the current progress information includes one or more of the download progress, installation progress, total file size, downloaded file size, and current cloud status;
[0371] Based on the current progress information and the jump relationship between the current cloud state and other cloud states in the upgrade management state machine, the display interface and display identification are updated.
[0372] In an exemplary embodiment, the display mark on the display interface includes one or more of the following:
[0373] The first display button corresponding to the current cloud status;
[0374] A second display button corresponding to the jump relationship of the current cloud state and including instruction display text;
[0375] Display animation corresponding to the current cloud status;
[0376] The progress display text corresponding to the current progress information;
[0377] Download progress indicator corresponding to download progress and current cloud status;
[0378] The installation progress indicator corresponds to the installation progress and current cloud status.
[0379] Figure 6 Schematic diagram of an electronic device 6 provided in an embodiment of the present application. Figure 6 As shown, the electronic device 6 of this embodiment includes: a processor 601, a memory 602, and a computer program 603 stored in the memory 602 and executable on the processor 601. When the processor 601 executes the computer program 603, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 601 executes the computer program 603, the functions of the modules / units in the above-mentioned device embodiments are implemented.
[0380] The electronic device 6 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 6 may include, but is not limited to, a processor 601 and a memory 602. Those skilled in the art will appreciate that Figure 6 The electronic device 6 is merely an example and does not limit the electronic device 6 . The electronic device 6 may include more or less components than those shown in the figure, or different components.
[0381] The processor 601 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0382] The memory 602 may be an internal storage unit of the electronic device 6, for example, a hard disk or memory of the electronic device 6. The memory 602 may also be an external storage device of the electronic device 6, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 6. The memory 602 may also include both an internal storage unit and an external storage device of the electronic device 6. The memory 602 is used to store computer programs and other programs and data required by the electronic device.
[0383] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0384] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, which may be in source code form, object code form, executable file or some intermediate form. The readable storage medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0385] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A remote upgrade control method, It is characterized in that include: Acquire an upgrade management state machine, the upgrade management state machine including a plurality of cloud states and a jump relationship between each of the cloud states, each of the cloud states being used to indicate an operation state in a process of upgrading a target vehicle by a cloud server; Sending a status request to the cloud server, so that the cloud server returns current status information based on the status request, wherein the current status information includes the current cloud status and version information; Determine a corresponding display interface based on the current stage of the cloud state; Determine a display identifier provided on the display interface and a click logic corresponding to the display identifier based on the version information and the jump relationship between the current cloud state and other cloud states in the upgrade management state machine; Displaying the display interface including the display identifier on a display terminal; When a click operation is received for any of the display identifiers, an operation instruction is sent to the cloud server according to the corresponding click logic so that the cloud server executes the operation instruction on the target vehicle, and a status request is sent to the cloud server so that the cloud server returns current status information based on the status request; Among them, when the cloud server completes executing the operation instruction on the target vehicle, based on the jump relationship, the current cloud state in the cloud server changes to the next cloud state triggered by the operation instruction.
2. The method according to claim 1, It is characterized in that The process of determining a corresponding display interface based on the current stage of the cloud state includes: If the current cloud status is at the latest version stage, determine that the display interface is the home page; If the current cloud status is in the new version discovery stage, downloading stage or waiting to be installed stage, determining that the display interface is a new version information page; If the current cloud status is in the installation stage, determine that the display interface is an installation information page.
3. The method according to claim 2, It is characterized in that Among all the cloud states in the upgrade management state machine, the cloud state in the current latest version stage includes: no new version detected state, successful installation state; The cloud status in the new version discovery stage includes: new version detection status, manual download cancellation status, and download failure status; The cloud status in the downloading stage includes: download pause status and downloading status; The cloud status in the waiting installation stage includes: download success status, waiting for the expected time to arrive status, manual cancellation of installation status, pre-installation environment check failure status, and installation failure status; The cloud status in the installing stage includes: pre-installation environment checking status, pre-installation environment checking success status, pre-installation preparation status, and installing status.
4. The method according to claim 3, It is characterized in that The upgrade management state machine also includes a plurality of command states corresponding to each of the click operations, and there is a jump relationship between each of the command states and the corresponding cloud state; When a click operation on any of the display identifiers is received, the method further includes: The display interface and the display indicator are updated based on the instruction state corresponding to the click operation.
5. The method according to claim 4, It is characterized in that The process of sending an operation instruction to the cloud server according to the corresponding click logic so that the cloud server executes the operation instruction on the target vehicle includes: Sending an operation instruction to the cloud server according to the corresponding click logic, so that the cloud server executes the operation instruction on the target vehicle and updates the current state information based on the jump relationship between the instruction state and the cloud state; After executing the step of sending a status request to the cloud server so that the cloud server returns current status information based on the status request, the process of determining the corresponding display interface based on the current stage of the cloud status includes: If the current cloud state in the current state information is the next cloud state of the current instruction state, a corresponding display interface is determined based on the stage of the current cloud state.
6. The method according to claim 4, It is characterized in that The instruction status in the new version discovery stage includes: an immediate download instruction sending state corresponding to the operation instruction being an immediate download instruction; The command status in the download stage includes: a pause download command sending status corresponding to the operation command being a pause download command, a resume download command sending status corresponding to the operation command being a resume download command, and a cancel download command sending status corresponding to the operation command being a cancel download command.
7. The method according to claim 4, It is characterized in that The instruction status in the waiting installation stage includes: an immediate installation instruction sending state corresponding to the operation instruction being an immediate installation instruction, an installation time configuring state corresponding to the operation instruction being a scheduled installation instruction, and a cancel reservation instruction sending state corresponding to the operation instruction being a cancel reservation instruction; The instruction status in the installation stage includes: a confirm installation instruction sending status corresponding to the operation instruction being a confirm installation instruction, and a cancel installation instruction sending status corresponding to the operation instruction being a cancel installation instruction.
8. The method according to claim 6, It is characterized in that In the jump relationship between each of the instruction states and the cloud state: The previous cloud state of the state in which the download instruction is being sent immediately includes: the new version detected state and the download failed state; the next cloud state of the state in which the download instruction is being sent immediately includes the downloading state.
9. The method according to claim 6, It is characterized in that In the jump relationship between each of the instruction states and the cloud state: The previous cloud state of the state in which the download pause instruction is being sent includes the downloading state; the next cloud state of the state in which the download pause instruction is being sent includes the download pause state; The previous cloud state of the cancel download instruction sending state includes the downloading state and the paused download state; the next cloud state of the cancel download instruction sending state includes the manually canceled download state; The previous cloud state of the resume download instruction sending state includes the pause download state; the next cloud state of the resume download instruction sending state includes the downloading state.
10. The method according to claim 7, It is characterized in that In the jump relationship between each of the instruction states and the cloud state: The previous cloud state of the cancel reservation instruction sending state includes the waiting estimated time arrival state; the next cloud state of the cancel reservation instruction sending state includes the download success state; The previous cloud state of the state of sending the immediate installation instruction includes: the download success state, the manual cancellation of installation state, the pre-installation environment check failure state, and the waiting estimated time arrival state; the next cloud state of the state of sending the immediate installation instruction includes the pre-installation environment check state; The previous cloud state of the status in the installation time configuration includes the download success status, the manual cancellation of installation status, the pre-installation environment check failure status, and the waiting for the expected time to arrive status; the next cloud state of the status in the installation time configuration includes the waiting for the expected time to arrive status.
11. The method according to claim 7, It is characterized in that In the jump relationship between each of the instruction states and the cloud state: The previous cloud state of the confirmation of the installation instruction sending state includes the pre-installation environment check success state; the next cloud state of the confirmation of the installation instruction sending state includes the pre-installation preparation state; The previous cloud state of the cancel installation instruction sending state includes the pre-installation environment check success state; the next cloud state of the cancel installation instruction sending state includes the manual cancellation installation state.
12. The method according to any one of claims 2 to 11, It is characterized in that After the display interface including the display identifier is displayed on the display terminal, the method further includes: If the current cloud state is in the downloading stage or the installing stage, sending a progress request to the cloud server at a preset frequency, so that the cloud server returns current progress information based on the progress request, and the current progress information includes one or more of download progress, installation progress, total file size, downloaded file size, and the current cloud state; Based on the current progress information, the jump relationship between the current cloud state and other cloud states in the upgrade management state machine, the display interface and the display identifier are updated.
13. The method according to claim 12, It is characterized in that The display mark on the display interface includes one or more of the following: A first display button corresponding to the current cloud state; a second display button corresponding to the jump relationship of the current cloud state and including instruction display text; A display animation corresponding to the current cloud state; The progress display text corresponding to the current progress information; A download progress indicator corresponding to the download progress and the current cloud status; An installation progress identifier corresponding to the installation progress and the current cloud status.
14. A remote upgrade control device, It is characterized in that include: A state machine acquisition module, used to acquire an upgrade management state machine, wherein the upgrade management state machine includes a plurality of cloud states and a jump relationship between each of the cloud states, and each of the cloud states is used to indicate an operation state of a cloud server in an upgrade process of a target vehicle; A status acquisition module, used to send a status request to the cloud server, so that the cloud server returns current status information based on the status request, and the current status information includes the current cloud status and version information; An interface determination module, used to determine a corresponding display interface based on the current stage of the cloud state; An information determination module, configured to determine a display identifier provided on the display interface and a click logic corresponding to the display identifier based on the version information and the jump relationship between the current cloud state and other cloud states in the upgrade management state machine; A display module, used for displaying the display interface including the display identifier on a display terminal; an operation response module, configured to, upon receiving a click operation on any of the display identifiers, send an operation instruction to the cloud server according to the corresponding click logic so that the cloud server executes the operation instruction on the target vehicle and triggers the state acquisition module; Among them, when the cloud server completes executing the operation instruction on the target vehicle, based on the jump relationship, the current cloud state in the cloud server changes to the next cloud state triggered by the operation instruction.
15. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 13 are implemented.
16. A readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.
