Gear control method and device after starting of vehicle controller and electronic equipment
By reading and verifying gear information from the gear backup storage area when the vehicle controller is started, determining the reason for the start operation to set the gear position of the vehicle, the problem of inaccurate gear recovery after the controller is reset and driving safety is improved.
Patent Information
- Application Number
- CN202510084934.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-20
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2045-01-20
AI Technical Summary
The prior art is difficult to accurately restore gear after the vehicle controller is reset, resulting in loss of power and affecting driving safety.
When the target controller of the vehicle is started, the backup gear information is read from the preset gear backup storage area, and it is verified to obtain a real-time verification code, and compared with the pre-stored backup verification code, the reason for the start operation is determined to set the gear of the vehicle.
It realizes accurate gear recovery after the controller is started, improves the matching of the vehicle gear with the actual driving scenario, and reduces the driving safety risks caused by abnormal reset of the controller.
Smart Images

Figure CN119594180A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a method, device and electronic device for controlling a gear position after a vehicle controller is started. Background Art
[0002] As the functional structure of automobiles becomes increasingly complex and the number of electronic components increases, the possibility of component failure also increases accordingly. When the wiring harness is loose or the power supply of the controller is abnormal, it may cause the controller to reset. If the vehicle is driving normally at this time, or even worse, if the vehicle is driving at high speed at this time, the controller will suddenly reset, the vehicle gear position will be incorrectly recognized, resulting in power loss, posing a hidden danger to driving safety. Therefore, how to accurately restore the gear position when the controller is started is a problem that needs to be solved. Summary of the invention
[0003] In view of this, in order to solve some or all of the above-mentioned technical problems, the embodiments of the present application provide a gear control method, device, electronic device and storage medium after a vehicle controller is started.
[0004] In a first aspect, an embodiment of the present application provides a gear control method after a vehicle controller is started, the method comprising: in response to a target controller of the vehicle executing a start-up 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-up operation is performed due to an abnormal situation in the target controller, and setting the gear of the vehicle based on the backup gear information, wherein when the target controller executes the start-up 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-up operation is performed due to normal power-on of the target controller, and setting the gear of the vehicle to the preset gear, wherein the backup gear information in the gear backup storage area changes when the target controller is normally powered on to execute the start-up operation.
[0005] In a possible implementation manner, the backup storage area is set in a random access memory of the target controller, and the backup storage area is a storage area that has been protected in advance.
[0006] In a possible implementation, after the gear position of the vehicle is set to a preset gear position, the method further includes: in response to the start operation being completed, adjusting the gear position of the vehicle based on the gear position currently selected by the user.
[0007] In one possible embodiment, before executing a startup operation in response to the target controller of the vehicle, the method further includes: in response to a normal shutdown operation that triggers the target controller, adjusting the backup gear information in the gear backup storage area to a preset value; in response to an abnormal shutdown operation that triggers the target controller, keeping the backup gear information in the gear backup storage area unchanged.
[0008] In a possible implementation, the number of backup gear information is at least two; verifying the backup gear information to obtain a real-time verification code includes: merging at least two backup gear information to obtain merged gear information; verifying the merged gear information to obtain a real-time verification code.
[0009] In one possible implementation, the method further includes: storing the current gear information of the vehicle in a gear backup storage area at regular intervals 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 embodiment, in response to the target controller of the vehicle executing a startup operation, backup gear information is read from a preset gear backup storage area, including: in response to a power-on signal or a reset signal that triggers the target controller, starting the startup operation of the target controller; executing an initialization program included in the startup operation, and in response to executing an electronic program included in the execution of the initialization program, reading the backup gear information from a preset gear backup storage area.
[0011] In a second aspect, an embodiment of the present application provides a gear control device after a vehicle controller is started, the device comprising: a first reading module, for responding to a target controller of the vehicle executing a startup operation, reading backup gear information from a preset gear backup storage area; a verification module, for verifying the backup gear information to obtain a real-time verification code; a second reading module, for 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; a first determination module, for determining that the startup operation is performed when an abnormal situation occurs in the target controller if the real-time verification code and the backup verification code are consistent, and setting the gear of the vehicle based on the backup gear information, wherein when the target controller executes the startup operation when an abnormal situation occurs, the backup gear information in the gear backup storage area remains unchanged; a second determination module, for determining 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 setting the gear of the vehicle to the preset gear, wherein when the target controller is powered on normally and the startup operation is performed, the backup gear information in the gear backup storage area changes.
[0012] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory for storing a computer program; a processor for executing the computer program stored in the memory, and when the computer program is executed, it implements the method of any embodiment of the gear control method after the vehicle controller of the above-mentioned first aspect of the present application is started.
[0013] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method of any embodiment of the gear control method after the vehicle controller is started as described in the first aspect above is implemented.
[0014] In a fifth aspect, an embodiment of the present application provides a computer program, which includes a computer readable code. When the computer readable code runs on a device, the processor in the device implements the method of any embodiment of the gear control method after the vehicle controller is started in the first aspect mentioned above.
[0015] The gear control method, device, electronic device and storage medium provided in the embodiment of the present application after the vehicle controller is started, when the target controller of the vehicle performs the startup operation, reads the backup gear information from the gear backup storage area, verifies the backup gear information, obtains the real-time verification code, then reads the backup verification code from the gear backup storage area, compares the real-time verification code and the backup verification code, and sets the gear of the vehicle based on the comparison result. The embodiment of the present application realizes the storage of backup gear information in the gear backup storage area, and utilizes the different characteristics of the backup gear information in the backup storage area after resetting in the two situations of normal power on and off and abnormal reset to restore the gear of the vehicle, thereby improving the matching of the vehicle gear with the actual driving scene, and reducing the driving safety risk caused by the inability to restore the gear after the abnormal reset of the vehicle controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0018] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0019] Figure 1 A schematic flow chart of a method for controlling a gear position after a vehicle controller is started provided in an embodiment of the present application;
[0020] Figure 2 A schematic flow chart of another method for controlling the gear position after a vehicle controller is started provided in an embodiment of the present application;
[0021] Figure 3 A flow chart of another method for controlling the gear position after a vehicle controller is started provided in an embodiment of the present application;
[0022] Figure 4 A flow chart of another method for controlling the gear position after a vehicle controller is started provided in an embodiment of the present application;
[0023] Figure 5 A flow chart of another method for controlling the gear position after a vehicle controller is started provided in an embodiment of the present application;
[0024] Figure 6 A flow chart of another method for controlling the gear position after a vehicle controller is started provided in an embodiment of the present application;
[0025] Figure 7 A schematic diagram of the structure of a gear control device after a vehicle controller is started provided in an embodiment of the present application;
[0026] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. It should be noted that unless otherwise specifically stated, the relative arrangement of the components and steps, the numerical expressions and the numerical values described in these embodiments do not limit the scope of the present application.
[0028] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of the present application are only used to distinguish between different steps, devices, modules and other objects, and do not represent any specific technical meanings, nor do they indicate the logical order between them.
[0029] It should also be understood that in this embodiment, “plurality” may refer to two or more than two, and “at least one” may refer to one, two or more than two.
[0030] It should also be understood that any component, data or structure mentioned in the embodiments of the present application can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0031] In addition, the term "and / or" in this application is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.
[0032] It should also be understood that the description of the various embodiments in this application focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0033] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.
[0034] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the above-mentioned technologies, methods, and equipment should be considered as part of the specification.
[0035] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0036] It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. To facilitate the understanding of the embodiments of the present application, the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0037] In order to solve the technical problem in the prior art that the vehicle gear cannot be accurately restored after the controller is reset, the present application provides a gear control method after the vehicle controller is started, which can effectively reduce the risk caused by the gear cannot be restored after the controller is started.
[0038] Figure 1A flow chart of a method for controlling the gear position after a vehicle controller is started is provided for an embodiment of the present application. This method can be applied to a vehicle and executed by a controller on the vehicle. Optionally, this method can also be executed by other electronic devices connected to the vehicle in communication, such as one or more electronic devices such as a server, a smart phone, a laptop computer, a desktop computer, etc. These electronic devices can monitor the operation of the controller on the vehicle in real time, and when the target controller is started, execute this method to determine the gear position information of the vehicle and feed the gear position information back to the vehicle. In addition, the execution subject of this method can be hardware or software. When the above-mentioned execution subject is hardware, the execution subject can be one or more of the above-mentioned 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 above-mentioned execution subject is software, this method can be implemented as multiple software or software modules, or as a single software or software module. No specific limitation is made here.
[0039] like Figure 1 As shown, the method specifically includes:
[0040] Step 101 , in response to a target controller of a vehicle executing a start-up operation, read backup gear information from a preset gear backup storage area.
[0041] In this embodiment, the target controller may be a controller on the vehicle for controlling the gear position, such as a vehicle controller. The startup operation may be a restart of the target controller, and a series of startup process operations such as executing software and hardware initialization. The startup operation may be triggered by any of the following operations: the target controller is powered on again according to the preset power-on and power-off process, and the target controller is abnormally reset. Among them, powering on again according to the preset power-on and power-off process refers to the process of the vehicle being powered on again after performing a normal shutdown operation through a key switch, remote control, etc. Abnormal reset refers to the operation performed by the controller to re-execute the startup process due to loose wiring harness, abnormal power supply, etc.
[0042] The gear backup storage area may be a storage area pre-set in the target controller for storing gear information. For example, a protected area may be set in the RAM (Random Access Memory) of the target controller, which can only be used to store gear related information.
[0043] In this embodiment, the backup gear information stored in the gear backup storage area is different for startup operations caused by different reasons.
[0044] Step 102, verify the backup gear information to obtain a real-time verification code.
[0045] In this embodiment, the backup gear information may be verified according to a preset verification algorithm, which may be various types of verification algorithms, such as a CRC (Cyclic Redundancy Check) verification algorithm.
[0046] Step 103, reading a pre-stored backup verification code from the gear backup storage area.
[0047] In this embodiment, the backup verification code is a verification code obtained by pre-verifying the gear information stored at the gear backup time. The gear backup time is a preset time for recording the gear of the vehicle. For example, during the normal use of the vehicle, the gear of the vehicle can be recorded in real time according to the preset backup cycle, and the backup verification code is generated according to the recorded gear information and the above-mentioned 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 is performed due to an abnormality in the target controller, and the gear of the vehicle is set based on the backup gear information.
[0049] In this embodiment, when an abnormal situation occurs in the target controller and causes a reset, the data stored in the gear backup storage area will not change, that is, the backup gear information in the gear backup storage area remains unchanged. At this time, the real-time verification code and the backup verification code are consistent, and the gear of the vehicle can be restored to the gear before the abnormality occurs based on the backup gear information.
[0050] Step 105 , 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 position of the vehicle is set to a preset gear position.
[0051] In this embodiment, if the target controller is powered on again after a normal shutdown operation, 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 gear control method after the vehicle controller is started provided in the embodiment of the present application is to read the backup gear information from the gear backup storage area when the target controller of the vehicle performs the startup operation, verify the backup gear information, obtain the real-time verification code, and then read the backup verification code from the gear backup storage area, compare the real-time verification code and the backup verification code, and set the gear of the vehicle based on the comparison result. The embodiment of the present application realizes the storage of backup gear information in the gear backup storage area, and utilizes the different characteristics of the backup gear information in the backup storage area after resetting in the two situations of normal power on and off and abnormal reset to restore the gear of the vehicle, improve the matching of the vehicle gear with the actual driving scene, and reduce the driving safety risk caused by the inability to restore the gear after the abnormal reset of the vehicle controller.
[0053] In some optional implementations of this embodiment, the backup storage area is set in the random access memory of the target controller, and the backup storage area is a storage area that has been protected in advance.
[0054] The above-mentioned protection processing refers to setting up a protection program so that the backup storage area can only store information related to the gear position, and other applications are prohibited from reading and writing to the storage area. Usually, in order to store data stably and avoid accidental erasure, non-volatile memory is often used for storage. Non-volatile memory includes ROM (Read-only memory), EPROM (Electrically alterable read only memory), Flash memory, etc. When writing data to a non-volatile memory, there is a risk of write failure. The present embodiment uses a random access memory (RAM), and sets a protected area in the random access memory for storing backup gear information, which can avoid data write failure and thereby improve the reliability of gear backup.
[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 start-up operation being completed, adjusting the gear of the vehicle based on the gear currently selected by the user.
[0057] That is, when it is determined that the startup operation is executed when the target controller is powered on normally, the vehicle's gear is first set to a preset gear (such as neutral), and then it is determined whether the user has selected other gears (such as parking). If other gears are selected, the gear can be set to the gear selected by the user.
[0058] This embodiment sets the gear based on the user's current selection when the target controller is powered on normally and performs the startup operation, thereby achieving timely response to the user's gear selection operation after resetting, thereby improving the scenario adaptability of the vehicle gear switching.
[0059] In some optional implementations of this embodiment, such as Figure 3 As shown, before step 101, the method further includes:
[0060] Step 107 , in response to triggering a normal shutdown operation of the target controller, adjusting the backup gear information in the gear backup storage area to a preset value.
[0061] The normal shutdown operation refers to the operation of controlling the target controller to stop running according to the normal shutdown process after the user stops driving the vehicle. For example, the operation of turning off the target controller by key switch or remote control switch light is a normal shutdown operation. The above preset value can be any value, such as zero value, that is, when the target controller is normally shut down, the reset procedure is executed to reset the gear information stored in the gear backup storage area.
[0062] After the subsequent execution of steps 101-103, since the backup gear information has changed, the real-time verification code and the backup verification code will be inconsistent, that is, step 105 is executed to determine 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.
[0063] Step 108 , in response to triggering the abnormal shutdown operation of the target controller, keeping the backup gear information in the gear backup storage area unchanged.
[0064] Among them, the abnormal shutdown operation may be caused by loose wiring harness of the target controller, abnormal power supply, etc. 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 the subsequent execution of steps 101-103, since the backup gear information has not changed, the real-time verification code and the backup verification code are consistent, that is, step 104 is executed to determine that the startup operation is performed due to an abnormal situation in the target controller, and the gear of the vehicle is set based on the backup gear information.
[0066] In this embodiment, when the target controller is normally shut down, the data in the gear backup storage area is reset. When it is abnormally shut down, the data in the gear backup storage area is kept unchanged, thereby accurately determining the reason why the target controller performs the startup operation and accurately setting the gear of the vehicle.
[0067] In some optional implementations of this embodiment, the number of backed-up gear information is at least two. That is, when backing up the gear information, at least two gear information are backed up. For example, three gear information are backed up each time.
[0068] like Figure 4 As shown, step 102 includes:
[0069] Step 1021, merge at least two backup gear information to obtain merged gear information.
[0070] When at least two backup gear information are merged, they can be connected into one piece of gear information as merged gear information.
[0071] Step 1022, verify the merged gear information to obtain a real-time verification code.
[0072] This embodiment can complicate the data used when executing the verification algorithm by backing up at least two pieces of gear information, and the generated verification code can more accurately represent the backed-up gear.
[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 period can be set arbitrarily, for example, the gear backup period is 1 second, that is, the gear backup operation is performed once per second.
[0076] Step 110, verify the gear information currently stored in the gear backup storage area to obtain the verification code to be stored, and replace the backup verification code in the gear backup storage area with the verification code to be stored.
[0077] Optionally, when backing up the gear information, you can follow the above Figure 4 The method corresponding to the embodiment shown in the figure backs up at least one gear information, and when calculating the backup check code, it can be performed according to Figure 4 The same method as the embodiment shown is used to combine multiple gear information and then calculate the check code.
[0078] This embodiment backs up the vehicle's gear information and verification code in real time during normal vehicle operation, so that when a startup operation occurs again, the most recently backed-up gear information and verification code can be obtained from the gear backup storage area, thereby facilitating accurate gear restoration.
[0079] In some optional implementations of this embodiment, such as Figure 6As shown, step 101 includes:
[0080] Step 1011 , in response to a power-on signal or a reset signal that triggers the target controller, start executing a startup operation of the target controller.
[0081] The power-on signal is a signal generated when the target controller is normally powered on, and the reset signal is a signal generated when the target controller is abnormally reset.
[0082] Step 1012, executing the initialization program included in the startup operation, and in response to executing the upper electronic program included in the initialization program, reading the backup gear information from the preset gear backup storage area.
[0083] Among them, the initialization program is used to initialize the software and hardware of the target controller. The initialization program usually includes a base layer initialization program and an application layer initialization program. The base layer initialization mainly includes hardware-related initialization, including sensor data acquisition, CAN (Controller Area Network) controller driver, input / output access, memory control, etc. After the base layer initialization is completed, the application layer initialization and electronic program are entered.
[0084] The application layer initialization program mainly includes the initialization and verification of some key variables in the application layer functional strategy, among which the reading and verification of the gear information can be performed through the upper electronic program included in the application layer initialization program.
[0085] This embodiment sets up an electronic program to achieve that each time a startup operation is performed, the backup gear information is first read from the gear backup storage area and verified through initialization. Therefore, when the target controller is started, the backup gear information can be judged in time and the gear can be restored in time, thereby improving the efficiency of gear recovery.
[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 the present application. Specifically comprising:
[0087] A first reading module 701 is used for reading backup gear information from a preset gear backup storage area in response to a target controller of the vehicle performing a start operation;
[0088] Verification module 702, used to verify the backup gear 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, wherein the backup verification code is a verification code obtained by pre-verifying the gear information stored at the gear backup time;
[0090] The first determination module 704 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 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;
[0091] The second determination module 705 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 set the gear position of the vehicle to a preset gear position. When the target controller is powered on normally to perform the startup operation, the backup gear position information in the gear backup storage area changes.
[0092] In a possible implementation manner, the backup storage area is set in a random access memory of the target controller, and the backup storage area is a storage area that has been protected in advance.
[0093] In a possible implementation, the device further includes: a first adjustment module, configured to adjust the gear position of the vehicle based on the gear position currently selected by the user in response to the startup operation being completed.
[0094] In one possible embodiment, the device also includes: a second adjustment module, used to adjust the backup gear information in the gear backup storage area to a preset value in response to triggering a normal closing operation of the target controller; a third adjustment module, used to keep the backup gear information in the gear backup storage area unchanged in response to triggering an abnormal closing operation of the target controller.
[0095] In a possible implementation, the number of backup gear information is at least two; the verification module includes: a merging unit, used to merge at least two backup gear information to obtain merged gear information; a verification unit, used to verify the merged gear information to obtain a real-time verification code.
[0096] In one possible embodiment, the device also includes: a storage module, which is used to store the vehicle's current gear information in the gear backup storage area at a preset gear backup cycle; a third verification module, which is used to verify the gear information currently stored in the gear backup storage area, obtain the 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 embodiment, the first reading module includes: a first execution unit, which is used to start the startup operation of the target controller in response to a power-on signal or a reset signal that triggers the target controller; a second execution unit, which is used to execute the initialization program included in the startup operation, and in response to executing the power-on program included in the execution of the initialization program, read the backup gear information from a preset gear backup storage area.
[0098] The gear position control device after the vehicle controller provided in this embodiment is started can be as follows Figure 7 The gear control device after the vehicle controller is started shown in can execute all steps of the above gear control methods after the vehicle controllers are started, thereby achieving the technical effects of the above gear control methods after the vehicle controllers are started. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.
[0099] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, Figure 8 The electronic device 800 shown 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 achieve connection and communication between these components. In addition to the data bus, the bus system 805 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 805 is not described in detail. Figure 8 Various buses are labeled as bus system 805 .
[0100] The user interface 803 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0101] It can be understood that the memory 802 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a 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 dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (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, the memory 802 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 8021 and an application program 8022 .
[0103] The operating system 8021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 8022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present application can be included in the application 8022.
[0104] In this embodiment, by calling the program or instruction stored in the memory 802, specifically, the program or instruction stored in the application 8022, the processor 801 is used to execute the method steps provided by each method embodiment, for example, including:
[0105] In response to the target controller of the vehicle executing a startup operation, backup gear information is read from a preset gear backup storage area; the backup gear information is verified to obtain a real-time verification code; a pre-stored backup verification code is read 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 in the target controller, and the gear of the vehicle is set based on the backup gear information, wherein when the target controller executes the startup 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, it is determined that the startup operation is performed due to normal power-on of the target controller, and the gear of the vehicle is set to the preset gear, wherein the backup gear information in the gear backup storage area changes when the target controller is powered on normally to execute the startup operation.
[0106] The method disclosed in the above embodiment of the present application can be applied to the processor 801, or implemented by the processor 801. The 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 hardware integrated logic circuit or software instructions in the processor 801. The above processor 801 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 802, and the processor 801 reads the information in the memory 802 and completes the steps of the above method in combination with its hardware.
[0107] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the above-mentioned functions of the present application, or a combination thereof.
[0108] For software implementation, the technology described above in this article can be implemented by a unit that performs the functions described above in this article. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0109] The electronic device provided in this embodiment may be Figure 8 The electronic device shown in can execute all steps of the gear control method after each vehicle controller is started, thereby achieving the technical effect of the gear control method after each vehicle controller is started. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.
[0110] The embodiment of the present application also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0111] When one or more programs in the storage medium can be executed by one or more processors, the gear control method after the vehicle controller is started and executed on the electronic device side can be implemented.
[0112] The processor is used to execute the program stored in the memory to implement the following steps of the gear control method after the vehicle controller is started, which are executed on the electronic device side:
[0113] In response to the target controller of the vehicle executing a startup operation, backup gear information is read from a preset gear backup storage area; the backup gear information is verified to obtain a real-time verification code; a pre-stored backup verification code is read 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 in the target controller, and the gear of the vehicle is set based on the backup gear information, wherein when the target controller executes the startup 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, it is determined that the startup operation is performed due to normal power-on of the target controller, and the gear of the vehicle is set to the preset gear, wherein the backup gear information in the gear backup storage area changes when the target controller is powered on normally to execute the startup operation.
[0114] The professionals should also be further aware that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0115] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0116] It should be understood that the terms used in the text are only for the purpose of describing specific example embodiments, and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used in the text may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0117] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A gear control method after a vehicle controller is started, characterized in that: The method comprises: In response to the target controller of the vehicle executing 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 is consistent with the backup verification code, it is determined that the startup operation is performed due to an abnormality in the target controller, and the gear of the vehicle is set based on the backup gear information, wherein when the startup operation is performed due to an abnormality 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 are inconsistent, it is determined that the startup operation is performed when the target controller is powered on normally, and the gear position of the vehicle is set to a preset gear position, wherein when the target controller is powered on normally to perform the startup operation, the backup gear position information in the gear backup storage area changes.
2. The method according to claim 1, characterized in that The backup storage area is set in the random access memory of the target controller, and the backup storage area is a storage area that has been protected in advance.
3. The method according to claim 2, characterized in that After setting the gear position of the vehicle to a preset gear position, the method further includes: In response to the start-up operation being completed, the gear of the vehicle is adjusted based on the gear currently selected by the user.
4. The method according to claim 1, characterized in that Before the target controller in response to the vehicle performs the start operation, the method further includes: In response to triggering a normal shutdown operation of the target controller, adjusting the backup gear information in the gear backup storage area to a preset value; In response to triggering the abnormal shutdown operation of the target controller, the backup gear information in the gear backup storage area is kept unchanged.
5. The method according to claim 1, characterized in that The number of the backup gear information is at least two; The step of verifying the backup gear information to obtain a real-time verification code includes: Merging at least two pieces of backup gear information to obtain merged gear information; The merged gear information is verified to obtain a real-time verification code.
6. The method according to claim 1, characterized in that The method further comprises: According to a preset gear backup cycle, the current gear information of the vehicle is stored in the gear backup storage area at regular intervals; The gear information currently 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.
7. The method according to claim 1, characterized in that The step of reading backup gear information from a preset gear backup storage area in response to the target controller of the vehicle executing a start-up operation comprises: In response to a power-on signal or a reset signal that triggers the target controller, starting to execute a startup operation of the target controller; An initialization program included in the startup operation is executed, and in response to the execution of an upper electronic program included in the initialization program, backup gear information is read from a preset gear backup storage area.
8. A gear control device after a vehicle controller is activated, characterized in that: The device comprises: A first reading module, configured to read backup gear information from a preset gear backup storage area in response to a target controller of the vehicle executing a start operation; A verification module, used to verify the backup gear information to obtain a real-time verification code; A second reading module is 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 determination module, configured to determine, if the real-time verification code and the backup verification code are consistent, that the startup operation is performed due to an abnormality in the target controller, and to set the gear of the vehicle based on the backup gear information, wherein when the startup operation is performed due to an abnormality in the target controller, the backup gear information in the gear backup storage area remains unchanged; The second determination 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 set the gear position of the vehicle to a preset gear position, wherein when the target controller is powered on normally to perform the startup operation, the backup gear position information in the gear backup storage area changes.
9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program stored in the memory, and when the computer program is executed, the gear control method after the vehicle controller is started as described in any one of claims 1 to 7 above is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, the gear control method after the vehicle controller is started as described in any one of claims 1 to 7 is implemented.
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
Vehicle gear shifting control method, power domain controller and vehicle
CN115727123A
Information sending method and device, equipment, storage medium and vehicle
CN118088668A
Gear information storage method and device, storage medium, program product and vehicle
CN119196305A