CN116540931A - Vehicle data protection method and device, electronic equipment and storage medium - Google Patents

Vehicle data protection method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116540931A
CN116540931A CN202310412705.3A CN202310412705A CN116540931A CN 116540931 A CN116540931 A CN 116540931A CN 202310412705 A CN202310412705 A CN 202310412705A CN 116540931 A CN116540931 A CN 116540931A
Authority
CN
China
Prior art keywords
vehicle
subsystem
register
data
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310412705.3A
Other languages
Chinese (zh)
Inventor
龚娜娜
关忠旭
杨慧凯
徐珊珊
安文君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FAW Group Corp
Original Assignee
FAW Group Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by FAW Group Corp filed Critical FAW Group Corp
Priority to CN202310412705.3A priority Critical patent/CN116540931A/en
Publication of CN116540931A publication Critical patent/CN116540931A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/062Securing storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The application discloses a vehicle data protection method, a vehicle data protection device, an electronic device, a storage medium and a vehicle, comprising the following steps: if the working state of the subsystem is a first abnormal state, writing flag bit data of a first register corresponding to the working state of the subsystem in the first abnormal state by a control system of the vehicle; if the first register stores the flag bit data corresponding to the subsystem working state being the first abnormal state, the control system of the vehicle writes the data corresponding to the current vehicle working state in the second register; if the working state of the power supply subsystem of the vehicle control system is the second abnormal state, writing flag bit data of the first register corresponding to the second abnormal state of the working state of the power supply subsystem into the vehicle control system; and copying the first register data and the second register data to write into a third register according to the flag bit data which corresponds to the second abnormal state of the working state of the power subsystem stored in the first register.

Description

Vehicle data protection method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of vehicle data, and in particular, to a vehicle data protection method, a vehicle data protection device, an electronic device, a storage medium, and a vehicle.
Background
The electric vehicle is a composite system integrating an embedded system, an electromechanical servo system, a sensor system, an electric control system and a mechanical transmission system, and has high data interaction density, high automation degree and intelligent degree of each system and strong mutual dependence compared with the traditional fuel vehicle.
When the conditions of bumpy road conditions, wading road conditions and the like are met, the conditions of line looseness, component overload and the like are caused, and the overall performance of the vehicle is possibly caused to be ambiguous.
While there are designs and improvements in system redundancy, the system nature of the electric vehicle itself is sensitive to data loss, and therefore, there is a need for data protection designs for electric vehicles in order to cope with data loss caused when vehicle performance is reduced and to reduce uncertainty in driving functions.
Disclosure of Invention
The present invention is directed to a vehicle data protection method, a vehicle data protection device, an electronic device, a storage medium, and a vehicle, which solve at least one of the above-mentioned problems.
The invention provides the following scheme:
according to an aspect of the present invention, there is provided a vehicle data protection method including:
acquiring vehicle working state information;
detecting the working state of a vehicle subsystem according to the working state of the vehicle as a running state;
if the working state of the subsystem is a first abnormal state, writing flag bit data of a first register corresponding to the working state of the subsystem in the first abnormal state by a control system of the vehicle;
if the first register stores the flag bit data corresponding to the subsystem working state being the first abnormal state, the control system of the vehicle writes the data corresponding to the current vehicle working state in the second register;
if the working state of the power supply subsystem of the vehicle control system is the second abnormal state, writing flag bit data of the first register corresponding to the second abnormal state of the working state of the power supply subsystem into the vehicle control system;
and copying the first register data and the second register data to be written into a third register according to the flag bit data which corresponds to the second abnormal state of the working state of the power subsystem and is stored in the first register by the control system of the vehicle.
Further, the acquiring the vehicle working state information includes:
if the vehicle enters a starting state, the control system of the vehicle copies the data of the third register and writes the data into the first register and the second register;
if the first register stores the flag bit data corresponding to the second abnormal state of the working state of the power subsystem, the control system of the vehicle copies the second register data for starting the vehicle.
Further, the method further comprises the following steps:
if the vehicle is in an end starting state and enters a running state, the control system of the vehicle clears the second register and the third register;
if the working state of the subsystem is not the first abnormal state, the control system of the vehicle clears the zone bit data of the first register, which corresponds to the first abnormal state of the working state of the subsystem;
if the working state of the power supply subsystem of the control system of the vehicle is not the second abnormal state, the control system of the vehicle clears the flag bit data of the first register, corresponding to the working state of the power supply subsystem, which is the second abnormal state.
Further, the subsystem further comprises: a servo subsystem;
and according to the control system of the vehicle, detecting that the jitter degree of the feedback waveform of the motor main loop exceeds a preset waveform distortion threshold, and writing flag bit data of which the state of the servo subsystem is a first abnormal state into a first register by the control system of the vehicle.
Further, the subsystem further comprises: an angle sensing subsystem;
according to the control system of the vehicle, detecting that the pulse loss degree of the angle sensor exceeds a preset pulse fault tolerance threshold, and writing zone bit data of which the state of the sensing subsystem is a first abnormal state into a first register.
Further, the subsystem further comprises: a vehicle alert subsystem;
writing zone bit data of a first register corresponding to the working state of the subsystem into a first abnormal state according to a control system of the vehicle, and starting a warning strategy by a vehicle warning subsystem;
the warning strategy comprises the steps that the man-machine interaction terminal displays warning information and limits the normal running of the vehicle.
According to two aspects of the present invention, there is provided a vehicle data protection device including:
the vehicle working state module is used for acquiring vehicle working state information;
the vehicle system detection module is used for detecting the working state of the vehicle subsystem according to the working state of the vehicle as the running state;
the first data processing module is used for writing flag bit data of the first register corresponding to the working state of the subsystem in the first abnormal state into the control system of the vehicle if the working state of the subsystem is in the first abnormal state;
the second data processing module is used for writing the data of the second register corresponding to the current vehicle working state into the control system of the vehicle if the first register stores the flag bit data corresponding to the first abnormal state of the subsystem working state;
the third data processing module is used for writing flag bit data of which the working state is the second abnormal state corresponding to the power supply subsystem of the first register into the control system of the vehicle if the working state of the power supply subsystem of the control system of the vehicle is the second abnormal state;
and the fourth data processing module is used for copying the first register data and the second register data to be written into the third register according to the fact that the first register stores the flag bit data which corresponds to the second abnormal state of the working state of the power subsystem.
According to three aspects of the present invention, there is provided an electronic apparatus including: the device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory has stored therein a computer program which, when executed by the processor, causes the processor to perform the steps of the vehicle data protection method.
According to four aspects of the present invention, there is provided a computer-readable storage medium, characterized in that it stores a computer program executable by an electronic device, which when run on the electronic device, causes the electronic device to perform the steps of the vehicle data protection method.
According to five aspects of the present invention, there is provided a vehicle characterized by comprising:
an electronic device for implementing the steps of the vehicle data protection method;
a processor that runs a program, and that executes the steps of the vehicle data protection method from data output from the electronic device when the program runs;
a storage medium storing a program that, when executed, performs the steps of the vehicle data protection method on data output from the electronic device.
Through the scheme, the following beneficial technical effects are obtained:
according to the method and the device, the state of each subsystem of the vehicle is detected, and the data of the subsystem state are timely captured and stored.
According to the method and the device, the power subsystem state of the control system of each subsystem of the vehicle is detected, the influence of the power subsystem on each subsystem is processed at a higher level, and the preparation for restarting the system is made.
According to the method, the temporary data and the permanent data are respectively stored into the RAM and the FLASH according to the reading speed and the losing characteristics of different registers and the actual working conditions of the vehicle.
According to the method and the device, the state data of the power subsystem and the other functional subsystems of the system to be controlled are distinguished, so that the vehicle can adopt different coping strategies to aim at different abnormal states, and the stability of the overall performance of the vehicle is ensured.
Drawings
Fig. 1 is a flow diagram of a method for protecting vehicle data according to one or more embodiments of the present invention.
Fig. 2 is a block diagram of a vehicle data protection device provided in one or more embodiments of the present invention.
FIG. 3 is a schematic energy storage diagram of a power subsystem of a control system for a vehicle seat in accordance with one embodiment of the present invention.
Fig. 4 is a block diagram of an electronic device according to one or more embodiments of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made apparent and fully in view of the accompanying drawings, in which some, but not all embodiments of the invention are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a flow diagram of a method for protecting vehicle data according to one or more embodiments of the present invention.
The vehicle data protection method as shown in fig. 1 includes:
step S1, acquiring vehicle working state information;
step S2, detecting the working state of a subsystem of the vehicle according to the working state of the vehicle as the running state;
step S3, if the working state of the subsystem is a first abnormal state, writing flag bit data of the first abnormal state corresponding to the working state of the subsystem of the first register into a control system of the vehicle;
step S4, if the first register stores the flag bit data corresponding to the working state of the subsystem in the first abnormal state, the control system of the vehicle writes the data corresponding to the working state of the current vehicle in the second register;
step S5, if the working state of the power supply subsystem of the control system of the vehicle is a second abnormal state, writing flag bit data of the first register corresponding to the second abnormal state of the working state of the power supply subsystem into the control system of the vehicle;
and S6, copying the first register data and the second register data to be written into a third register by the control system of the vehicle according to the fact that the first register stores the flag bit data which corresponds to the second abnormal state of the working state of the power subsystem.
Through the scheme, the following beneficial technical effects are obtained:
according to the method and the device, the state of each subsystem of the vehicle is detected, and the data of the subsystem state are timely captured and stored.
According to the method and the device, the power subsystem state of the control system of each subsystem of the vehicle is detected, the influence of the power subsystem on each subsystem is processed at a higher level, and the preparation for restarting the system is made.
According to the method and the device, temporary data and permanent data are respectively stored into the RAM and the FLASH according to the actual working conditions of the vehicle system through the reading speeds and the losing characteristics of different registers.
According to the method and the device, the state data of the power subsystem and the other functional subsystems of the system to be controlled are distinguished, so that the vehicle can adopt different coping strategies to aim at different abnormal states, and the stability of the overall performance of the vehicle is ensured.
Specifically, the electric vehicle is a composite system integrating an embedded system, an electromechanical servo system, a sensor system, an electric control system, an energy storage system and a mechanical transmission system, and compared with the traditional fuel vehicle, the system has the advantages of high data interaction density, high automation degree, high intelligent degree and strong mutual dependence.
For example, each functional component of the electric vehicle often has an embedded system such as a single-chip microcomputer, and each functional component becomes a relatively independent control system, and meanwhile, each functional component is a subsystem which respectively plays an independent functional module. The subsystems can be connected through signals to form a whole. As a control system (embedded system, etc.), both a subsystem control system and a whole vehicle control system have commonalities of data loss due to power failure, and thus an electric vehicle is sensitive to data loss. As subsystems with independent functions, the role and evaluation criteria vary throughout the vehicle system. When the conditions of bumpy road conditions, wading road conditions and the like are met, the conditions of line looseness, component overload and the like are caused, and the overall performance, abnormality and faults of the vehicle are possibly caused. Therefore, it is necessary to conduct overall planning and hierarchical processing for data protection of the vehicle.
For example, the servo subsystem (motor, motor server, etc.), the angle sensor subsystem (rotary encoder, position sensor, etc.) are used as independent subsystems, for example, whether the motor main loop or the motor server loop works normally or not can be judged according to waveform distortion of the control motor, and whether the motor main loop or the motor server loop has the problems of virtual connection, overload, interference, etc. can be judged. For example, whether the problems of virtual connection, interference and the like exist can be judged according to the situations of signal pulse loss, invalidation and the like of the rotary encoder. The effect of the abnormal condition of the subsystem on the whole system is not emphasized on data sensitivity, but is enabled by local functions. For example, a certain motor (wheel) can be temporarily stopped in a power supply or idle state, the vehicle can still run at a low speed under the drive of other motors, and the abnormal condition of the subsystem can be used as a first abnormal state and the flag bit data of the subsystem can be correspondingly stored for reading and using by a control system of the vehicle.
While an unstable supply voltage of the control system may cause the control system to restart, for example, a loss of process data may cause a restart failure, such an abnormal state may be regarded as a second abnormal state. The control system can be temporarily powered by arranging a capacitor, a battery and the like on a power supply loop of the control system as temporary energy storage components, so that the control system can be helped to store breakpoint data, flag bit data and the like in time as protective data, and the work flow of the previous power failure of the control system can be continued when the control system is started.
The second abnormal state may be converted into flag bit data, which may be read by a main control system of the vehicle, or may be read by a control system having a subsystem. When the auxiliary vehicle is restarted or the subsystem is restarted, the breakpoint data, the zone bit data and the like are read into the control system.
The flag bit data corresponding to the second abnormal state can be used as a trigger condition to trigger the storage of the data (such as breakpoint data and flag bit data) of the working state of the vehicle.
The first register corresponds to the flag bit data of the first abnormal state and the second abnormal state of the working states (including the power subsystem and the like) of each subsystem, and the second register corresponds to the data of the current vehicle working state (including the working states of each subsystem), so that the storage protection of the data can be rapidly executed by utilizing the high-speed storage of the RAM. The nonvolatile memory of FLASH can be utilized to store the data of the third register for a long time so as to be capable of restarting the control system for enough time, and when the second abnormal state occurs, the flag bit data of the first abnormal state and the second abnormal state are transferred to the third register.
The power subsystem of the control system can not only have the second abnormal state, but also have the first abnormal state, for example, the power voltage of the control system is not reduced much, the degree of instability of the operation of the control system is not enough, the risk of performance reduction is only existed, the first abnormal state can be generated according to the current voltage state, the first register is written with the flag bit data corresponding to the first abnormal state of the working state of the subsystem, the flag bit data is used as warning information, if the power voltage of the control system is continuously reduced, the situation that the data of the control system is lost and cannot be restarted smoothly is reached, the flag bit data corresponding to the second abnormal state of the working state of the power subsystem is written in the first register, and the corresponding control system of the vehicle is further triggered to write the data corresponding to the current working state of the vehicle in the second register.
The fault information belonging to the main control system is not only used by the main control system, but also used as fault interrupt signals of other control systems. For example, the voltage of the power subsystem of the main control system is too low, which means that the whole vehicle is likely to stop running, and other subsystems are required to store breakpoint data in time.
Similarly, the fault information of the control system of the subsystem can also be used by the main control system, for example, certain subsystems or under certain working conditions, which is very important for the whole vehicle to run, and the main control system can treat the power failure of the subsystem as a second abnormal state.
In the present embodiment, acquiring the vehicle operation state information includes:
if the vehicle enters a starting state, the control system of the vehicle copies the data of the third register and writes the data into the first register and the second register;
if the first register stores the flag bit data corresponding to the second abnormal state of the working state of the power subsystem, the control system of the vehicle copies the second register data for starting the vehicle.
Specifically, when the vehicle is restarted, the control system checks whether the power failure (second abnormal state) is caused by the last power failure, and continues to operate in the breakpoint state immediately before the power failure. The third register data can be written back into the first register and the second register in a primary way, and if the flag bit data of the second abnormal state indicates that the voltage of the control system is likely to be faulty, the second register stores the data (breakpoint data) of the previous vehicle working state.
The power-off data can be read to the control system, so that the hardware state corresponds to the state data, and the vehicle is restarted as a whole or a subsystem of the vehicle.
In this embodiment, further comprising:
if the vehicle is in an end starting state and enters a running state, the control system of the vehicle clears the second register and the third register;
if the working state of the subsystem is not the first abnormal state, the control system of the vehicle clears the flag bit data of the first register corresponding to the working state of the subsystem in the first abnormal state;
if the working state of the power supply subsystem of the control system of the vehicle is not the second abnormal state, the control system of the vehicle clears the flag bit data of the first register, corresponding to the working state of the power supply subsystem, which is the second abnormal state.
Specifically, the vehicle is in an end starting state and enters an operating state, the use of the data of the previous round, the system reset and the like are completed, the monitoring and the data protection of the vehicle state, the control system state and each subsystem state can be started for a new round, and when the vehicle just enters the operating state, a new abnormal state does not exist, and the second register and the third register can be emptied. The first register can be emptied (e.g. reset, initialization, etc.) to process the first register when the first and second abnormal state flag bit data are read or used when the vehicle is restarted, so as to prevent the mixed remote control of the flag bit data by the initial state of the memory.
In this embodiment, the subsystem further includes: a servo subsystem;
according to the control system of the vehicle, detecting that the jitter degree of the feedback waveform of the motor main loop exceeds a preset waveform distortion threshold, and writing zone bit data of which the state of the servo subsystem corresponding to the first register is a first abnormal state into the control system of the vehicle.
Specifically, for example, the servo subsystem is primarily associated with a wheel motor of an electric vehicle. The matched servo system of the vehicle motor possibly relates to inversion boosting, duty ratio adjustment, phase angle matching, IGBT dead zone control and the like, and if the problems of pumping voltage, control loop interruption and the like are generated due to virtual connection of a circuit, the calculation, comparison and judgment of the waveform distortion threshold value can be performed. The power supply of the wheel in an abnormal state (such as a servo subsystem corresponding to the wheel) can be temporarily turned off or the power supply loop is disconnected, so that the low-speed running of the vehicle is kept, and the redundancy of the vehicle for adapting to an emergency state is increased.
In this embodiment, the subsystem further includes: an angle sensing subsystem;
according to the control system of the vehicle, detecting that the pulse loss degree of the angle sensor exceeds a preset pulse fault tolerance threshold, and writing zone bit data of which the state of the corresponding sensing subsystem of the first register is a first abnormal state into the control system of the vehicle.
Specifically, the angle sensing subsystem (rotary encoder, position sensor, etc.) can be used for a signal closed loop related to the matching of a wheel motor of an electric vehicle, and can also be used as a signal feedback component related to other electromechanical mechanisms. The functions such as signal feedback and control closed loop can be disabled due to the failure of the angle sensing subsystem. For example, a position sensor is arranged on the power seat, and the position sensor fails to cause the seat to be incapable of being automatically adjusted, but the automatic adjustment function of the power seat can be temporarily shielded with little influence on the running ability of the vehicle. For example, a rotary encoder is arranged on a wheel motor, the power output of the vehicle is unstable due to the fault of the rotary encoder, the power supply of the wheel can be temporarily closed or a power supply loop can be disconnected, the vehicle is kept to run at a low speed, and the redundancy of the vehicle for adapting to an emergency state is increased.
The angle sensor can judge whether the failure of the angle sensor subsystem occurs or not through the fact that the pulse loss degree exceeds a preset pulse fault tolerance threshold value. Of course, some position sensors are in continuous level states and are not suitable for determining the normal or abnormal state of the angle sensing subsystem by pulse counting.
In this embodiment, the subsystem further includes: a vehicle alert subsystem;
writing flag bit data of a first abnormal state of a working state of a subsystem corresponding to a first register into a control system of the vehicle, and starting a warning strategy by a vehicle warning subsystem;
the warning strategy comprises that the man-machine interaction terminal displays warning information and limits the normal running of the vehicle.
Specifically, the vehicle warning subsystem may also include an embedded system, which may be connected to a main control system of the vehicle, may send a request for speed limitation to a central control system of the vehicle, and the main control system of the vehicle may issue an instruction for upper speed limitation to the servo subsystem.
The vehicle warning subsystem may include a human-machine terminal, such as a screen, a speaker, etc., through which a driver or a user may learn the current state of the vehicle for the first time, form an idea preparation for speed limitation of the vehicle, or initiate a request for a trailer or maintenance at a safe stop, etc., if a malfunction of the subsystem occurs, a voltage drop of a power supply subsystem of a control system of a certain subsystem, etc.
Fig. 2 is a block diagram of a vehicle data protection device provided in one or more embodiments of the present invention.
As shown in fig. 2, the vehicle data protection device includes: the system comprises a vehicle working state module, a vehicle system detection module, a first data processing module, a second data processing module, a third data processing module and a fourth data processing module;
the vehicle working state module is used for acquiring vehicle working state information;
the vehicle system detection module is used for detecting the working state of the vehicle subsystem according to the working state of the vehicle as the running state;
the first data processing module is used for writing flag bit data of the first abnormal state corresponding to the working state of the subsystem in the first register into the control system of the vehicle if the working state of the subsystem is the first abnormal state;
the second data processing module is used for writing the data of the second register corresponding to the current vehicle working state into the control system of the vehicle if the first register stores the flag bit data corresponding to the first abnormal state of the subsystem working state;
the third data processing module is used for writing flag bit data of which the working state of the power supply subsystem is the second abnormal state corresponding to the first register into the control system of the vehicle if the working state of the power supply subsystem of the control system of the vehicle is the second abnormal state;
and the fourth data processing module is used for copying the first register data and the second register data to be written into the third register according to the fact that the first register stores the flag bit data which corresponds to the second abnormal state of the working state of the power subsystem.
It should be noted that, although the present system discloses only the vehicle operating state module, the vehicle system detection module, the first data processing module, the second data processing module, the third data processing module, and the fourth data processing module, the present apparatus is not meant to be limited to the above basic functional modules, and, on the contrary, the present invention is intended to mean that, based on the above basic functional modules, one or more functional modules may be arbitrarily added by those skilled in the art in combination with the prior art to form an infinite number of embodiments or technical solutions, that is, the present system is open rather than closed, and the scope of protection of the claims of the present invention should not be considered to be limited to the above disclosed basic functional modules because the present embodiment discloses only individual basic functional modules.
FIG. 3 is a schematic energy storage diagram of a power subsystem of a control system for a vehicle seat in accordance with one embodiment of the present invention.
As shown in fig. 3, the vehicle seat may be provided as a subsystem, the control system of which is mainly implemented by an embedded system, and a special power subsystem is provided for supplying power to the vehicle seat. The power subsystem is provided with a capacitor for energy storage and filtering. The embedded system monitors the power supply state of the power supply subsystem in real time, for example, reads the data states of the register zone bit VSHS_U1 and VSHS_U2 of the power supply chip in real time in a period of 1ms, when the power supply voltage of the power supply subsystem is lower than a preset first threshold value, the data of the register zone bit VSHS_U1 is 1, and when the power supply voltage of the power supply subsystem is higher than a preset second threshold value, the data of the register zone bit VSHS_U1 is 0.
When the data of the register zone bit VSHS_U1 read by the control system of the vehicle seat in the process of debugging the vehicle seat is 1, the current position information of the vehicle seat is immediately stored in the breakpoint data register VSHS_U3, and the loss of the position information of the seat is prevented. At the moment, the motor of the vehicle seat is not actively disconnected, only the current position is stored, and misoperation caused by the fact that the voltage instant jitter is lower than a first threshold value is prevented from controlling the motor. And when the power supply voltage of the power supply subsystem is lower than a preset third threshold value, the data of the register flag bit VSHS_UV2 is 1. At this time, the voltage is too low, and data loss may occur.
When the control system of the vehicle seat recognizes that the power supply voltage of the power supply subsystem is lower than a preset third threshold value, the data of the register zone bit VSHS_U2 is 1, and the control system of the vehicle seat writes the data in the register VSHS_U3 into the register VSHS_U4, so that the loss of the current position information of the vehicle seat is avoided. It is often possible to struggle for the control system of the vehicle seat to write the data in register vshs_uv3 into register vshs_uv4 by setting the capacitance of the power subsystem. FLASH can be used by the register VSHS_U4, data is not easy to lose, RAM can be used by the registers VSHS_U1, VSHS_U2 and VSHS_U3, high speed of reading and writing is guaranteed, and consumption of FLASH is reduced.
The power supply voltage can be determined by using a low voltage determination function of the power supply chip (SBC). The control system of the vehicle seat reads the state of the power chip register module in real time, and when the power supply voltage of the power chip (SBC) is lower than a preset first threshold value, the current position data of the seat is stored in a register VSHS_UV3 immediately, so that the loss of the position data of the seat is prevented. And when the power supply voltage of the power supply chip (SBC) is lower than a preset third threshold value, writing the data in the register VSHS_UV3 into the register VSHS_UV4, and writing the data in the register VSHS_UV4 back into the control system of the vehicle seat when the power supply is recovered next time, so that the control system of the vehicle seat is continued with the program step interrupted when the voltage fails last time.
Fig. 4 is a block diagram of an electronic device according to one or more embodiments of the present invention.
As shown in fig. 4, the present application provides an electronic device, including: the device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory stores a computer program which, when executed by the processor, causes the processor to perform the steps of a vehicle data protection method.
The present application also provides a computer-readable storage medium storing a computer program executable by an electronic device, which when run on the electronic device causes the electronic device to perform the steps of a vehicle data protection method.
The present application also provides a vehicle comprising:
the electronic equipment is used for realizing the steps of the vehicle data protection method;
a processor that runs a program, and that executes a step of a vehicle data protection method from data output from the electronic device when the program runs;
a storage medium storing a program that, when executed, performs steps of a vehicle data protection method on data output from an electronic device.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The electronic device includes a hardware layer, an operating system layer running on top of the hardware layer, and an application layer running on top of the operating system. The hardware layer includes hardware such as a central processing unit (CPU, central Processing Unit), a memory management unit (MMU, memory Management Unit), and a memory. The operating system may be any one or more computer operating systems that implement electronic device control via processes (processes), such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a windows operating system, etc. In addition, in the embodiment of the present invention, the electronic device may be a handheld device such as a smart phone, a tablet computer, or an electronic device such as a desktop computer, a portable computer, which is not particularly limited in the embodiment of the present invention.
The execution body controlled by the electronic device in the embodiment of the invention can be the electronic device or a functional module in the electronic device, which can call a program and execute the program. The electronic device may obtain firmware corresponding to the storage medium, where the firmware corresponding to the storage medium is provided by the vendor, and the firmware corresponding to different storage media may be the same or different, which is not limited herein. After the electronic device obtains the firmware corresponding to the storage medium, the firmware corresponding to the storage medium can be written into the storage medium, specifically, the firmware corresponding to the storage medium is burned into the storage medium. The process of burning the firmware into the storage medium may be implemented by using the prior art, and will not be described in detail in the embodiment of the present invention.
The electronic device may further obtain a reset command corresponding to the storage medium, where the reset command corresponding to the storage medium is provided by the provider, and the reset commands corresponding to different storage media may be the same or different, which is not limited herein.
At this time, the storage medium of the electronic device is a storage medium in which the corresponding firmware is written, and the electronic device may respond to a reset command corresponding to the storage medium in which the corresponding firmware is written, so that the electronic device resets the storage medium in which the corresponding firmware is written according to the reset command corresponding to the storage medium. The process of resetting the storage medium according to the reset command may be implemented in the prior art, and will not be described in detail in the embodiments of the present invention.
For convenience of description, the above devices are described as being functionally divided into various units and modules. Of course, the functions of each unit, module, etc. may be implemented in one or more pieces of software and/or hardware when implementing the present application.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
For the purposes of simplicity of explanation, the methodologies are shown and described as a series of acts, it is to be understood and appreciated by one of ordinary skill in the art that the methodologies are not limited by the order of acts, as some acts may, in accordance with the methodologies, take place in other order or concurrently. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
From the above description of embodiments, it will be apparent to those skilled in the art that the present application may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, a server or a network device, etc.) to perform the methods described in the embodiments or some parts of the embodiments of the present application.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (10)

1. A vehicle data protection method, characterized in that the vehicle data protection method comprises:
acquiring vehicle working state information;
detecting the working state of a vehicle subsystem according to the working state of the vehicle as a running state;
if the working state of the subsystem is a first abnormal state, writing flag bit data of a first register corresponding to the working state of the subsystem in the first abnormal state by a control system of the vehicle;
if the first register stores the flag bit data corresponding to the subsystem working state being the first abnormal state, the control system of the vehicle writes the data corresponding to the current vehicle working state in the second register;
if the working state of the power supply subsystem of the vehicle control system is the second abnormal state, writing flag bit data of the first register corresponding to the second abnormal state of the working state of the power supply subsystem into the vehicle control system;
and copying the first register data and the second register data to be written into a third register according to the flag bit data which corresponds to the second abnormal state of the working state of the power subsystem and is stored in the first register by the control system of the vehicle.
2. The vehicle data protection method according to claim 1, characterized in that the acquiring of the vehicle operation state information includes:
if the vehicle enters a starting state, the control system of the vehicle copies the data of the third register and writes the data into the first register and the second register;
if the first register stores the flag bit data corresponding to the second abnormal state of the working state of the power subsystem, the control system of the vehicle copies the second register data for starting the vehicle.
3. The vehicle data protection method according to claim 2, characterized by further comprising:
if the vehicle is in an end starting state and enters a running state, the control system of the vehicle clears the second register and the third register;
if the working state of the subsystem is not the first abnormal state, the control system of the vehicle clears the zone bit data of the first register, which corresponds to the first abnormal state of the working state of the subsystem;
if the working state of the power supply subsystem of the control system of the vehicle is not the second abnormal state, the control system of the vehicle clears the flag bit data of the first register, corresponding to the working state of the power supply subsystem, which is the second abnormal state.
4. A vehicle data protection method according to claim 3, wherein the subsystem further comprises: a servo subsystem;
and according to the control system of the vehicle, detecting that the jitter degree of the feedback waveform of the motor main loop exceeds a preset waveform distortion threshold, and writing flag bit data of which the state of the servo subsystem is a first abnormal state into a first register by the control system of the vehicle.
5. A vehicle data protection method according to claim 3, wherein the subsystem further comprises: an angle sensing subsystem;
according to the control system of the vehicle, detecting that the pulse loss degree of the angle sensor exceeds a preset pulse fault tolerance threshold, and writing zone bit data of which the state of the sensing subsystem is a first abnormal state into a first register.
6. A vehicle data protection method according to claim 3, wherein the subsystem further comprises: a vehicle alert subsystem;
writing zone bit data of a first register corresponding to the working state of the subsystem into a first abnormal state according to a control system of the vehicle, and starting a warning strategy by a vehicle warning subsystem;
the warning strategy comprises the steps that the man-machine interaction terminal displays warning information and limits the normal running of the vehicle.
7. A vehicle data protection device, characterized in that the vehicle data protection device comprises:
the vehicle working state module is used for acquiring vehicle working state information;
the vehicle system detection module is used for detecting the working state of the vehicle subsystem according to the working state of the vehicle as the running state;
the first data processing module is used for writing flag bit data of the first register corresponding to the working state of the subsystem in the first abnormal state into the control system of the vehicle if the working state of the subsystem is in the first abnormal state;
the second data processing module is used for writing the data of the second register corresponding to the current vehicle working state into the control system of the vehicle if the first register stores the flag bit data corresponding to the first abnormal state of the subsystem working state;
the third data processing module is used for writing flag bit data of which the working state is the second abnormal state corresponding to the power supply subsystem of the first register into the control system of the vehicle if the working state of the power supply subsystem of the control system of the vehicle is the second abnormal state;
and the fourth data processing module is used for copying the first register data and the second register data to be written into the third register according to the fact that the first register stores the flag bit data which corresponds to the second abnormal state of the working state of the power subsystem.
8. An electronic device, comprising: the device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory has stored therein a computer program which, when executed by the processor, causes the processor to perform the steps of the vehicle data protection method of any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that it stores a computer program executable by an electronic device, which when run on the electronic device causes the electronic device to perform the steps of the vehicle data protection method according to any one of claims 1 to 6.
10. A vehicle, characterized by comprising:
an electronic device for implementing the steps of the vehicle data protection method according to any one of claims 1 to 6;
a processor that runs a program, data output from the electronic device when the program runs performing the steps of the vehicle data protection method according to any one of claims 1 to 6;
a storage medium storing a program that, when executed, performs the steps of the vehicle data protection method according to any one of claims 1 to 6 on data output from an electronic device.
CN202310412705.3A 2023-04-18 2023-04-18 Vehicle data protection method and device, electronic equipment and storage medium Pending CN116540931A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310412705.3A CN116540931A (en) 2023-04-18 2023-04-18 Vehicle data protection method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310412705.3A CN116540931A (en) 2023-04-18 2023-04-18 Vehicle data protection method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116540931A true CN116540931A (en) 2023-08-04

Family

ID=87451505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310412705.3A Pending CN116540931A (en) 2023-04-18 2023-04-18 Vehicle data protection method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116540931A (en)

Similar Documents

Publication Publication Date Title
JP3255693B2 (en) Automotive multi-computer system
CN111907505B (en) Automobile electronic parking execution controller with double-MCU redundancy design
CN105711520A (en) Power management circuit of vehicle control unit and control method thereof
KR20160110203A (en) Method and device for handling safety critical errors
JPH0319571B2 (en)
WO2024066310A1 (en) Five-connected-valve functional safety circuit for chassis domain controller system, and method
CN116540931A (en) Vehicle data protection method and device, electronic equipment and storage medium
JPS62258154A (en) Data back-up device
JP2768693B2 (en) Apparatus for monitoring a computer system having two processors
JPH0236003B2 (en)
KR102460182B1 (en) System and method for controlling motor
CN113650498B (en) Power-on method and device of electric vehicle, electric vehicle and storage medium
US11404128B2 (en) Power control method for a memory storage device and a memory storage system
JPH0325813B2 (en)
CN213602629U (en) LIMPHOME circuit, control device and automobile
JPS623312A (en) Electronic controller for vehicle
JPS6235917A (en) On-vehicle electronic controller
CN218862750U (en) Engine control device and engine system
CN117985099A (en) Electric power steering control method, medium, electronic device, and vehicle
CN117162943A (en) Vehicle body controller, control method and device
CN113918368A (en) Safety output circuit with physical disconnection mode and implementation method
CN115503633A (en) Vehicle-mounted power supply maintaining system, method, storage medium and vehicle
CN116382059A (en) Whole vehicle domain controller switching method and device based on safety verification and storage medium
CN113715905A (en) Redundant integrated electric drive unit and control method thereof
JPS638954A (en) Erroneous writing preventing device to nonvolatile memory

Legal Events

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