Gear control method, device and electronic equipment after vehicle controller is started
By setting up a gear backup storage area in the vehicle controller and verifying the backup gear information, the problem of gears not being able to be restored after the controller is reset is solved, achieving accurate gear restoration and improving driving safety.
Patent Information
- Application Number
- CN202510084934.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-20
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2045-01-20
AI Technical Summary
In existing technologies, vehicle controllers cannot accurately restore gear positions after being reset, leading to driving safety hazards.
By setting up a gear backup storage area in the vehicle controller, reading and verifying the backup gear information, and comparing the real-time verification code with the backup verification code, the reason for the start operation can be determined, thereby accurately setting the vehicle gear.
It improves the matching between vehicle gears and actual driving scenarios, and reduces the driving safety risks caused by the inability to restore gears after abnormal controller reset.
Smart Images

Figure CN119594180B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle technology, and in particular to a method, device and electronic device for gear control after a vehicle controller is started. Background Technology
[0002] As automotive structures become increasingly complex and electronic components proliferate, the likelihood of component failures also increases. Loose wiring harnesses or abnormal power supply to the controller can cause it to reset. If this occurs while the vehicle is in normal driving, or even at high speeds, the sudden controller reset can lead to incorrect gear selection, resulting in power loss and posing a safety hazard. Therefore, accurately restoring the gear position upon controller activation is a problem that needs to be addressed. Summary of the Invention
[0003] In view of this, in order to solve some or all of the above-mentioned technical problems, embodiments of this application provide a method, device, electronic device and storage medium for gear control after vehicle controller is started.
[0004] In a first aspect, embodiments of this application provide a gear control method after a vehicle controller is started. The method includes: in response to a target controller of the vehicle performing a start operation, reading backup gear information from a preset gear backup storage area; verifying the backup gear information to obtain a real-time verification code; reading a pre-stored backup verification code from the gear backup storage area, wherein the backup verification code is a verification code obtained by pre-verifying the gear information stored at the gear backup time; if the real-time verification code and the backup verification code are consistent, determining that the start operation is performed due to an abnormal situation of the target controller, and setting the vehicle's gear based on the backup gear information, wherein when the target controller performs the start operation due to an abnormal situation, the backup gear information in the gear backup storage area remains unchanged; if the real-time verification code and the backup verification code are inconsistent, determining that the start operation is performed due to a normal power-on of the target controller, and setting the vehicle's gear to a preset gear, wherein when the target controller performs the start operation normally upon power-on, the backup gear information in the gear backup storage area changes.
[0005] In one possible implementation, the backup storage area is located in the random access memory of the target controller, and the backup storage area is a storage area that has been pre-protected.
[0006] In one possible implementation, after setting the vehicle's gear to a preset gear, the method further includes: adjusting the vehicle's gear based on the gear currently selected by the user in response to the completion of the start operation.
[0007] In one possible implementation, before the target controller of the vehicle performs a start operation, the method further includes: adjusting the backup gear information in the gear backup storage area to a preset value in response to triggering a normal shutdown operation of the target controller; and keeping the backup gear information in the gear backup storage area unchanged in response to triggering an abnormal shutdown operation of the target controller.
[0008] In one possible implementation, the number of backup file information is at least two; verifying the backup file information to obtain a real-time verification code includes: merging at least two backup file information to obtain merged file information; and verifying the merged file information to obtain a real-time verification code.
[0009] In one possible implementation, the method further includes: periodically storing the current gear information of the vehicle into the gear backup storage area according to a preset gear backup cycle; verifying the gear information currently stored in the gear backup storage area to obtain a verification code to be stored, and replacing the backup verification code in the gear backup storage area with the verification code to be stored.
[0010] In one possible implementation, in response to the vehicle's target controller performing a start operation, backup gear information is read from a preset gear backup storage area, including: in response to a power-on signal or reset signal triggering the target controller, starting the target controller's start operation; executing the initialization program included in the start operation; and in response to executing the power-on program included in the initialization program, reading the backup gear information from the preset gear backup storage area.
[0011] Secondly, embodiments of this application provide a gear control device after a vehicle controller is started. The device includes: a first reading module, used to read backup gear information from a preset gear backup storage area in response to a start operation performed by the vehicle's target controller; a verification module, used to verify the backup gear information to obtain a real-time verification code; a second reading module, used to read a pre-stored backup verification code from the gear backup storage area, wherein the backup verification code is a verification code obtained by pre-verifying the gear information stored at the gear backup time; a first determining module, used to determine that the start operation was performed due to an abnormal situation in the target controller if the real-time verification code and the backup verification code are consistent, and to set the vehicle's gear based on the backup gear information, wherein the backup gear information in the gear backup storage area remains unchanged when the target controller performs the start operation due to an abnormal situation; and a second determining module, used to determine that the start operation was performed due to a normal power-on of the target controller if the real-time verification code and the backup verification code are inconsistent, and to set the vehicle's gear to a preset gear, wherein the backup gear information in the gear backup storage area changes when the target controller performs the start operation normally.
[0012] Thirdly, embodiments of this application provide an electronic device, including: a memory for storing a computer program; and a processor for executing the computer program stored in the memory, wherein when the computer program is executed, it implements any embodiment of the gear control method after the vehicle controller is started according to the first aspect of this application.
[0013] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it implements the method of any embodiment of the vehicle controller start-up gear control method of the first aspect described above.
[0014] Fifthly, embodiments of this application provide a computer program including computer-readable code that, when executed on a device, causes a processor in the device to implement any embodiment of the gear control method after the vehicle controller is started as described in the first aspect above.
[0015] The vehicle controller gear control method, device, electronic device, and storage medium provided in this application embodiment read backup gear information from the gear backup storage area when the vehicle's target controller performs a startup operation. The backup gear information is verified to obtain a real-time verification code. Then, the backup verification code is read from the gear backup storage area, and the real-time verification code and the backup verification code are compared. Based on the comparison result, the vehicle's gear is set. This application embodiment realizes the storage of backup gear information in the gear backup storage area. Utilizing the difference in backup gear information after reset under normal power-on / off and abnormal reset conditions, the vehicle's gear is restored, improving the matching of vehicle gears with actual driving scenarios and reducing the driving safety risk caused by the inability to restore gears after an abnormal reset of the vehicle controller. Attached Figure Description
[0016] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0017] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.
[0019] Figure 1 A flowchart illustrating a gear control method for a vehicle controller after startup, provided in an embodiment of this application;
[0020] Figure 2 A flowchart illustrating another method for controlling the gear position after the vehicle controller is started, provided in an embodiment of this application;
[0021] Figure 3 A flowchart illustrating another method for gear control after a vehicle controller is started, provided in an embodiment of this application;
[0022] Figure 4 A flowchart illustrating another method for gear control after a vehicle controller is started, provided in an embodiment of this application;
[0023] Figure 5 A flowchart illustrating another method for gear control after a vehicle controller is started, provided in an embodiment of this application;
[0024] Figure 6 A flowchart illustrating another method for gear control after a vehicle controller is started, provided in an embodiment of this application;
[0025] Figure 7 This application provides a schematic diagram of the structure of a gear control device after a vehicle controller is started.
[0026] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0027] Various exemplary embodiments of this application will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of this application.
[0028] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of this application are only used to distinguish different steps, devices or modules, and do not represent any specific technical meaning, nor do they indicate the logical order between them.
[0029] It should also be understood that in this embodiment, "multiple" can refer to two or more, and "at least one" can refer to one, two or more.
[0030] It should also be understood that any component, data or structure mentioned in the embodiments of this application can generally be understood as one or more unless explicitly defined or given contrary guidance in the context.
[0031] Furthermore, the term "and / or" in this application is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this application generally indicates that the preceding and following related objects have an "or" relationship.
[0032] It should also be understood that the description of the various embodiments in this application emphasizes the differences between the various embodiments, and the similarities or similarities can be referred to each other. For the sake of brevity, they will not be described in detail.
[0033] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit the scope of this application and its application or use.
[0034] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.
[0035] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.
[0036] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. To facilitate understanding of the embodiments of this application, the application will be described in detail below with reference to the accompanying drawings and embodiments. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0037] To address the technical problem in the prior art that the vehicle gear cannot be accurately restored after the controller is reset, this application provides a gear control method after the vehicle controller is started, which can effectively reduce the risk caused by the inability to restore the gear after the controller is started.
[0038] Figure 1This is a flowchart illustrating a gear control method after a vehicle controller is started, provided in an embodiment of this application. This method can be applied to a vehicle and executed by the vehicle's controller. Optionally, this method can also be executed by other electronic devices communicatively connected to the vehicle, such as servers, smartphones, laptops, desktop computers, or one or more other electronic devices. These electronic devices can monitor the operation of the vehicle's controller in real time, execute this method when the target controller starts, determine the vehicle's gear information, and feed the gear information back to the vehicle. Furthermore, the executing entity of this method can be hardware or software. When the executing entity is hardware, it can be one or more of the aforementioned electronic devices. For example, a single electronic device can execute this method, or multiple electronic devices can cooperate with each other to execute this method. When the executing entity is software, this method can be implemented as multiple software programs or software modules, or as a single software program or software module. No specific limitations are made here.
[0039] like Figure 1 As shown, the method specifically includes:
[0040] Step 101: In response to the vehicle's target controller performing a start operation, the backup gear information is read from the preset gear backup storage area.
[0041] In this embodiment, the target controller can be a controller on the vehicle used to control gear positions, such as a vehicle controller. The startup operation can be a restart of the target controller, as well as a series of startup procedures including software and hardware initialization. The startup operation can be triggered by any of the following operations: the target controller is powered on again according to a preset power-on / off procedure, or the target controller is reset due to an abnormality. Powering on again according to the preset power-on / off procedure refers to the process where the vehicle is powered on again after a normal shutdown operation via key switch, remote control, or other means. An abnormal reset refers to the controller re-executing the startup procedure due to reasons such as loose wiring harness or abnormal power supply.
[0042] The aforementioned gear backup storage area can be a pre-configured storage area within the target controller for storing gear information. For example, a protected area can be set up in the target controller's RAM (Random Access Memory), which can only be used to store gear-related information.
[0043] In this embodiment, the backup file information stored in the backup file storage area will be different for different reasons for the startup operation.
[0044] Step 102: Verify the backup file information to obtain a real-time verification code.
[0045] In this embodiment, the backup file information can be verified according to a preset verification algorithm. The preset verification algorithm can be various types of verification algorithms, such as the CRC (Cyclic Redundancy Check) verification algorithm.
[0046] Step 103: Read the pre-stored backup verification code from the backup storage area.
[0047] In this embodiment, the backup verification code is a verification code obtained by pre-verifying the gear position information stored at the gear position backup time. The gear position backup time is a pre-set time for recording the vehicle's gear positions. For example, during normal vehicle use, the vehicle's gear positions can be recorded in real time according to a preset backup cycle, and a backup verification code is generated based on the recorded gear position information and the aforementioned preset verification algorithm.
[0048] Step 104: If the real-time verification code and the backup verification code are consistent, it is determined that the startup operation was executed due to an abnormal situation in the target controller, and the vehicle gear is set based on the backup gear information.
[0049] In this embodiment, when the target controller is reset due to an abnormality, the data stored in the gear backup storage area will not change, that is, the backup gear information in the gear backup storage area will remain unchanged. At this time, the real-time verification code and the backup verification code are consistent, and the vehicle's gear can be restored to the gear before the abnormality occurred based on the backup gear information.
[0050] Step 105: If the real-time verification code and the backup verification code are inconsistent, determine that the startup operation was performed when the target controller was powered on normally, and set the vehicle's gear to the preset gear.
[0051] In this embodiment, if the target controller is normally shut down and then powered on again, the data stored in the gear backup storage area will change, that is, the backup gear information in the gear backup storage area will change. At this time, the real-time verification code and the backup verification code are inconsistent, and the vehicle's gear can be set to a preset gear, such as neutral (N gear).
[0052] The vehicle controller gear control method provided in this application involves reading backup gear information from a gear backup storage area when the vehicle's target controller performs a startup operation. This backup gear information is then verified to obtain a real-time verification code. The backup verification code is then read from the gear backup storage area, and the real-time verification code is compared with the backup verification code. Based on the comparison result, the vehicle's gear is set. This application implements the storage of backup gear information in the gear backup storage area. Utilizing the difference in backup gear information after normal power-on / off and abnormal reset, the vehicle's gear is restored, improving the matching of the vehicle's gears with actual driving scenarios and reducing the driving safety risk caused by the inability to restore gears after an abnormal reset of the vehicle controller.
[0053] In some optional implementations of this embodiment, the backup storage area is located in the random access memory of the target controller, and the backup storage area is a storage area that has been pre-protected.
[0054] The aforementioned protection mechanism refers to setting up a protection program that ensures the backup storage area can only store file-related information, prohibiting other applications from reading or writing to this storage area. Typically, to ensure stable data storage and prevent accidental erasure, non-volatile memory (NDRAM) is used. NDRAM includes ROM (Read-only memory), EPROM (Electrically alterable read-only memory), and Flash memory. However, writing data to NDRAM carries the risk of write failure. This embodiment uses Random Access Memory (RAM) and sets up a protected area within it to store backup file information, thus preventing data write failures and improving the reliability of file backups.
[0055] In some optional implementations of this embodiment, such as Figure 2 As shown, after step 105, the method further includes:
[0056] Step 106: In response to the completion of the start operation, adjust the vehicle's gear based on the gear currently selected by the user.
[0057] That is, when it is determined that the start operation is executed by the target controller after normal power-on, the vehicle's gear is first set to the preset gear (e.g., neutral), and then it is determined whether the user has selected another gear (e.g., parking). If another gear is selected, the gear can be set to the gear selected by the user.
[0058] This embodiment improves the vehicle's adaptability to different gear shifting scenarios by responding promptly to the user's gear selection operation after a reset, based on the user's current gear selection setting when the target controller is powered on normally and performs a start operation.
[0059] In some optional implementations of this embodiment, such as Figure 3 As shown, prior to step 101, the method further includes:
[0060] Step 107: In response to the normal shutdown operation triggered by the target controller, the backup gear information in the gear backup storage area is adjusted to a preset value.
[0061] The normal shutdown operation refers to the user controlling the target controller to stop operating after stopping the vehicle, following the normal shutdown procedure. For example, turning off the target controller via a key switch or remote control of the lights constitutes a normal shutdown operation. The preset value mentioned above can be any value, such as zero, meaning that when the target controller is normally shut down, a zeroing procedure is executed, clearing the gear information stored in the gear backup storage area.
[0062] After executing steps 101-103, the real-time verification code and the backup verification code will be inconsistent because the backup gear information has changed. Therefore, step 105 is executed to determine that the startup operation is performed when the target controller is powered on normally, and the vehicle's gear is set to the preset gear.
[0063] Step 108: In response to the abnormal shutdown operation triggered by the target controller, the backup file information in the file backup storage area remains unchanged.
[0064] The abnormal shutdown operation may be caused by phenomena such as loose wiring harness or abnormal power supply of the target controller. After the abnormal shutdown operation is triggered, the target controller will automatically restart, that is, an abnormal reset occurs. At this time, the gear information stored in the gear backup storage area remains unchanged.
[0065] After executing steps 101-103, since the backup gear information has not changed, the real-time verification code and the backup verification code are consistent. Therefore, step 104 is executed to determine that the startup operation was performed due to an abnormal situation in the target controller, and the vehicle gear is set based on the backup gear information.
[0066] In this embodiment, the data in the gear backup storage area is reset when the target controller is normally shut down, and the data in the gear backup storage area remains unchanged when the target controller is abnormally shut down. This enables accurate determination of the reason for the target controller to perform the start operation, and thus accurate setting of the vehicle's gear.
[0067] In some optional implementations of this embodiment, the number of backup gear information entries is at least two. That is, when backing up gear information, at least two gear information entries are backed up. For example, three gear information entries are backed up each time.
[0068] like Figure 4 As shown, step 102 includes:
[0069] Step 1021: Merge at least two backup file information entries to obtain merged file information.
[0070] At least two backup gear information can be combined into a single gear information when merging, which will be the merged gear information.
[0071] Step 1022: Verify the merged gear information to obtain a real-time verification code.
[0072] This embodiment, by backing up at least two gear positions, can complicate the data used when executing the verification algorithm, and the generated verification code can more accurately represent the backed-up gear positions.
[0073] In some optional implementations of this embodiment, such as Figure 5 As shown, after step 104 or step 105, the method further includes:
[0074] Step 109: According to the preset gear backup cycle, the current gear information of the vehicle is stored in the gear backup storage area at regular intervals.
[0075] The gear backup cycle can be set arbitrarily. For example, a gear backup cycle of 1 second means that a gear backup operation is performed once every second.
[0076] Step 110: Verify the current file information stored in the file backup storage area to obtain the verification code to be stored, and replace the backup verification code in the file backup storage area with the verification code to be stored.
[0077] Optionally, when backing up gear information, you can follow the steps described above. Figure 4 The method corresponding to the illustrated embodiment backs up at least one piece of gear information. When calculating the backup checksum, it can be done according to... Figure 4 The same method as the illustrated embodiment is used to merge multiple gear information entries before calculating the check code.
[0078] This embodiment backs up the vehicle's gear position information and check code in real time during normal vehicle operation. When a restart operation occurs, the most recently backed-up gear position information and check code can be obtained from the gear position backup storage area, which helps to accurately restore the gear position.
[0079] In some optional implementations of this embodiment, such as Figure 6As shown, step 101 includes:
[0080] Step 1011: In response to the power-on signal or reset signal that triggers the target controller, start the startup operation of the target controller.
[0081] Among them, the power-on signal is the signal generated when the target controller is powered on normally, and the reset signal is the signal generated when the target controller undergoes an abnormal reset.
[0082] Step 1012: Execute the initialization procedure included in the startup operation, and in response to the electronic procedure included in the initialization procedure, read the backup file information from the preset backup storage area.
[0083] The initialization program is used to initialize the hardware and software of the target controller. It typically includes a base layer initialization program and an application layer initialization program. Base layer initialization mainly includes hardware-related initializations, such as sensor data acquisition, CAN (Controller Area Network) controller driving, input / output access, and memory control. After base layer initialization is complete, the application layer initialization and onboarding program begin.
[0084] The application layer initialization program mainly includes the initialization and verification of some key variables in the application layer functional strategy. Among them, the reading and verification of gear information can be performed through the electronic program included in the application layer initialization program.
[0085] This embodiment, by setting up an electronic program, first initializes the system to read and verify the backup gear information from the gear backup storage area each time a startup operation is performed. This allows the backup gear information to be judged in a timely manner when the target controller starts up, and the gear to be restored in a timely manner, thereby improving the efficiency of gear restoration.
[0086] Figure 7 This is a schematic diagram of the structure of a gear control device after a vehicle controller is started, provided in an embodiment of this application. Specifically, it includes:
[0087] The first reading module 701 is used to read backup gear information from a preset gear backup storage area in response to the vehicle's target controller performing a start operation.
[0088] The verification module 702 is used to verify the backup file information and obtain a real-time verification code.
[0089] The second reading module 703 is used to read the pre-stored backup verification code from the gear backup storage area. The backup verification code is a verification code obtained by pre-verifying the gear information stored at the gear backup time.
[0090] The first determining module 704 is used to determine that the start operation is executed due to an abnormal situation of the target controller if the real-time verification code and the backup verification code are consistent, and to set the gear of the vehicle based on the backup gear information. When the target controller executes the start operation due to an abnormal situation, the backup gear information in the gear backup storage area remains unchanged.
[0091] The second determining module 705 is used to determine that the start operation is performed when the target controller is powered on normally if the real-time verification code and the backup verification code are inconsistent, and to set the vehicle's gear to the preset gear. When the target controller is powered on normally and performs the start operation, the backup gear information in the gear backup storage area changes.
[0092] In one possible implementation, the backup storage area is located in the random access memory of the target controller, and the backup storage area is a storage area that has been pre-protected.
[0093] In one possible implementation, the device further includes: a first adjustment module, configured to adjust the vehicle's gear based on the gear currently selected by the user in response to the completion of the start-up operation.
[0094] In one possible implementation, the device further includes: a second adjustment module, configured to adjust the backup position information in the backup position storage area to a preset value in response to a normal shutdown operation triggered by the target controller; and a third adjustment module, configured to keep the backup position information in the backup position storage area unchanged in response to an abnormal shutdown operation triggered by the target controller.
[0095] In one possible implementation, the number of backup gear information is at least two; the verification module includes: a merging unit for merging at least two backup gear information to obtain merged gear information; and a verification unit for verifying the merged gear information to obtain a real-time verification code.
[0096] In one possible implementation, the device further includes: a storage module, used to periodically store the current gear information of the vehicle into a gear backup storage area according to a preset gear backup cycle; and a third verification module, used to verify the gear information currently stored in the gear backup storage area, obtain a verification code to be stored, and replace the backup verification code in the gear backup storage area with the verification code to be stored.
[0097] In one possible implementation, the first reading module includes: a first execution unit, configured to start executing a startup operation of the target controller in response to a power-on signal or reset signal triggering the target controller; and a second execution unit, configured to execute an initialization program included in the startup operation, and to read backup file information from a preset backup file storage area in response to executing an power-on program included in the initialization program.
[0098] The gear control device provided in this embodiment after the vehicle controller is started can be as follows: Figure 7 The gear control device shown after the vehicle controller is started can execute all the steps of the gear control methods after the vehicle controller is started, thereby achieving the technical effects of the gear control methods after the vehicle controller is started. Please refer to the relevant descriptions above for details. For the sake of brevity, it will not be elaborated here.
[0099] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 8 The illustrated electronic device 800 includes at least one processor 801, a memory 802, at least one network interface 804, and other user interfaces 803. The various components in the electronic device 800 are coupled together via a bus system 805. It is understood that the bus system 805 is used to implement communication between these components. In addition to a data bus, the bus system 805 also includes a power bus, a control bus, and a status signal bus. However, for clarity, ... Figure 8 The general labeled all buses as Bus System 805.
[0100] The user interface 803 may include a display, keyboard, or clicking device (e.g., mouse, trackball, touchpad, or touchscreen).
[0101] It is understood that the memory 802 in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 802 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0102] In some implementations, memory 802 stores elements, executable units or data structures, or subsets thereof, or extended sets thereof: operating system 8021 and application programs 8022.
[0103] The operating system 8021 includes various system programs, such as the framework layer, core library layer, and driver layer, used to implement various basic business functions and handle hardware-based tasks. The application program 8022 includes various applications, such as a media player and a browser, used to implement various application functions. The program implementing the method of this application embodiment can be included in the application program 8022.
[0104] In this embodiment, by calling the program or instructions stored in memory 802, specifically the program or instructions stored in application program 8022, processor 801 executes the method steps provided in each method embodiment, including, for example:
[0105] In response to the vehicle's target controller executing a start operation, the system reads backup gear information from a preset gear backup storage area; verifies the backup gear information to obtain a real-time verification code; and reads a pre-stored backup verification code from the gear backup storage area, where the backup verification code is obtained by pre-verifying the gear information stored at the gear backup time. If the real-time verification code and the backup verification code match, it is determined that the start operation was executed due to an abnormal situation in the target controller, and the vehicle's gear is set based on the backup gear information. When the start operation is executed due to an abnormal situation in the target controller, the backup gear information in the gear backup storage area remains unchanged. If the real-time verification code and the backup verification code do not match, it is determined that the start operation was executed due to a normal power-on of the target controller, and the vehicle's gear is set to a preset gear. When the start operation is executed due to a normal power-on of the target controller, the backup gear information in the gear backup storage area changes.
[0106] The methods disclosed in the embodiments of this application can be applied to or implemented by processor 801. Processor 801 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 801 or by instructions in the form of software. The processor 801 may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software units in the decoding processor. The software units may be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 802. Processor 801 reads the information in memory 802 and, in conjunction with its hardware, completes the steps of the above method.
[0107] It is understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described above in this application, or combinations thereof.
[0108] For software implementation, the techniques described herein can be implemented by units that perform the functions described above. The software code can be stored in memory and executed by a processor. The memory can be implemented within the processor or external to the processor.
[0109] The electronic device provided in this embodiment may be as follows: Figure 8 The electronic device shown can execute all the steps of the gear control method after the vehicle controller is started, thereby achieving the technical effect of the gear control method after the vehicle controller is started. Please refer to the relevant description above for details. For the sake of brevity, it will not be elaborated here.
[0110] This application also provides a storage medium (computer-readable storage medium). This storage medium stores one or more programs. The storage medium may include volatile memory, such as random access memory; it may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid-state drive; and it may also include combinations of the above types of memory.
[0111] When one or more programs in the storage medium can be executed by one or more processors to implement the gear control method after the vehicle controller is started, which is executed on the electronic device side.
[0112] The processor described above is used to execute programs stored in memory to implement the following steps of the gear control method after the vehicle controller is started, which is executed on the electronic device side:
[0113] In response to the vehicle's target controller executing a start operation, the system reads backup gear information from a preset gear backup storage area; verifies the backup gear information to obtain a real-time verification code; and reads a pre-stored backup verification code from the gear backup storage area, where the backup verification code is obtained by pre-verifying the gear information stored at the gear backup time. If the real-time verification code and the backup verification code match, it is determined that the start operation was executed due to an abnormal situation in the target controller, and the vehicle's gear is set based on the backup gear information. When the start operation is executed due to an abnormal situation in the target controller, the backup gear information in the gear backup storage area remains unchanged. If the real-time verification code and the backup verification code do not match, it is determined that the start operation was executed due to a normal power-on of the target controller, and the vehicle's gear is set to a preset gear. When the start operation is executed due to a normal power-on of the target controller, the backup gear information in the gear backup storage area changes.
[0114] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0115] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0116] It should be understood that the terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “described” as used herein may also include the plural forms. The terms “comprising,” “including,” “containing,” and “having” are inclusive and therefore indicate the presence of the stated features, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not construed as requiring them to be performed in a particular order described or illustrated unless the order of performance is explicitly indicated. It should also be understood that additional or alternative steps may be used.
[0117] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for gear control after a vehicle controller is started, characterized in that, The method includes: In response to the vehicle's target controller executing a start operation, the backup gear information is read from the preset gear backup storage area; The backup file information is verified to obtain a real-time verification code; Read the pre-stored backup verification code from the gear backup storage area, wherein the backup verification code is a verification code obtained by pre-verifying the gear information stored at the gear backup time. If the real-time verification code and the backup verification code are consistent, it is determined that the startup operation is performed due to an abnormal situation of the target controller, and the gear of the vehicle is set based on the backup gear information. When the startup operation is performed due to an abnormal situation of the target controller, the backup gear information in the gear backup storage area remains unchanged. If the real-time verification code and the backup verification code are inconsistent, it is determined that the startup operation is performed when the target controller is powered on normally, and the gear of the vehicle is set to the preset gear. When the target controller is powered on normally and performs the startup operation, the backup gear information in the gear backup storage area changes. The number of backup file information entries is at least two; The step of verifying the backup file information to obtain a real-time verification code includes: At least two backup file information entries are merged to obtain merged file information; The merged gear information is verified to obtain a real-time verification code.
2. The method according to claim 1, characterized in that, The backup storage area is located in the random access memory of the target controller, and the backup storage area is a storage area that has been pre-protected.
3. The method according to claim 2, characterized in that, After setting the vehicle's gear to a preset gear, the method further includes: In response to the completion of the start-up operation, the vehicle's gear is adjusted based on the gear currently selected by the user.
4. The method according to claim 1, characterized in that, Prior to the vehicle's target controller performing the start operation, the method further includes: In response to triggering the normal shutdown operation of the target controller, the backup file information in the file backup storage area is adjusted to a preset value; In response to triggering an abnormal shutdown operation of the target controller, the backup file information in the backup file storage area remains unchanged.
5. The method according to claim 1, characterized in that, The method further includes: According to the preset gear backup cycle, the current gear information of the vehicle is periodically stored in the gear backup storage area. The current gear information stored in the gear backup storage area is verified to obtain a verification code to be stored, and the verification code to be stored replaces the backup verification code in the gear backup storage area.
6. The method according to claim 1, characterized in that, The step of responding to the vehicle's target controller executing a start operation by reading backup gear information from a preset gear backup storage area includes: In response to a power-on signal or a reset signal that triggers the target controller, the startup operation of the target controller is initiated. The startup operation includes an initialization procedure, and in response to the execution of the initialization procedure, the backup file information is read from a preset backup storage area.
7. A gear control device after a vehicle controller is activated, characterized in that, The device comprises: The first reading module is used to read backup gear information from the preset gear backup storage area in response to the vehicle's target controller performing a start operation. The verification module is used to verify the backup file information and obtain a real-time verification code. The second reading module is used to read the pre-stored backup verification code from the gear backup storage area, wherein the backup verification code is a verification code obtained by pre-verifying the gear information stored at the gear backup time. The first determining module is used to determine that the startup operation is performed due to an abnormal situation of the target controller if the real-time verification code and the backup verification code are consistent, and to set the gear of the vehicle based on the backup gear information, wherein when the startup operation is performed due to an abnormal situation of the target controller, the backup gear information in the gear backup storage area remains unchanged. The second determining module is used to determine that the startup operation is performed when the target controller is powered on normally if the real-time verification code and the backup verification code are inconsistent, and to set the gear of the vehicle to a preset gear. When the target controller is powered on normally and performs the startup operation, the backup gear information in the gear backup storage area changes. The number of backup file information entries is at least two; The verification module includes: The merging unit is used to merge at least two backup file information entries to obtain merged file information. The verification unit is used to verify the merged gear information to obtain a real-time verification code.
8. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor is configured to execute a computer program stored in the memory, wherein when the computer program is executed, it implements the gear control method after the vehicle controller is started, as described in any one of claims 1-6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the gear control method after the vehicle controller is started, as described in any one of claims 1-6.
Citation Information
Patent Citations
Method and device for controlling AMT gear selecting and shifting executing mechanism
CN104019223A
Method of addressing and correcting mismatches between e-shift position and actual transmission gear
CN105074286A