Data storage method, device, storage medium and automobile
By determining the overall vehicle status during the car's sleep state and storing configuration data only when all functional modules are awake, the problem of data loss caused by default value overwriting is solved, thus improving the user experience.
Patent Information
- Application Number
- CN202310601265.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-25
- Publication Date
- 2025-12-23
- Estimated Expiration
- 2043-05-25
AI Technical Summary
During vehicle sleep mode, the configuration data of some functional modules may be overwritten by default values because they are not woken up, resulting in the loss of valid data and affecting the user's driving experience.
By determining whether the vehicle is in a valid wake-up state or an invalid wake-up state, configuration data is only stored in the valid wake-up state to avoid overwriting default values in the invalid wake-up state.
It protects the true and valid configuration data from being overwritten by default values, thus improving the user's driving experience.
Smart Images

Figure CN116778605B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of automobiles, and in particular to a data storage method and device, a storage medium, and an automobile. BACKGROUND
[0002] Generally, when a vehicle is in hibernation, the data of the vehicle at that time is stored in a power-off manner to retain the last used configuration of the vehicle, thereby facilitating subsequent use of the vehicle by the user. However, when the vehicle is in hibernation and some data is updated in a special working condition, the data corresponding to other modules that are not woken up during the re-power-off storage is automatically filled with default values and saved, which causes the original valid data corresponding to these modules to be reset. Therefore, a data storage method is needed to protect the valid data from being reset due to data update in a special working condition, thereby improving the user experience of using the vehicle. SUMMARY
[0003] The present application provides a data storage method and device, a storage medium, and an automobile, which can solve the technical problem of valid configuration data being easily overwritten and lost in the related art.
[0004] In a first aspect, an embodiment of the present application provides a data storage method, which includes the following steps.
[0005] receiving a data storage request and determining current configuration data corresponding to the data storage request, judging a whole vehicle state of the vehicle when the current configuration data is acquired, and dividing the whole vehicle state into an effective wake-up state and an ineffective wake-up state according to the number of activated functional modules in the vehicle;
[0006] If the whole vehicle state is the effective wake-up state, the current configuration data is stored in response to the data storage request.
[0007] If the whole vehicle state is the ineffective wake-up state, the data storage request and the current configuration data are subjected to preset processing.
[0008] In a second aspect, an embodiment of the present application provides a data storage device, which includes the following modules.
[0009] A state confirmation module is configured to receive a data storage request and determine current configuration data corresponding to the data storage request, judge a whole vehicle state of the vehicle when the current configuration data is acquired, and divide the whole vehicle state into an effective wake-up state and an ineffective wake-up state according to the number of activated functional modules in the vehicle;
[0010] A data storage module is configured to store the current configuration data in response to the data storage request if the whole vehicle state is the effective wake-up state.
[0011] A cancel storage module is configured to, if the vehicle state is an invalid wake-up state, perform preset processing on the data storage request and the current configuration data.
[0012] In a third aspect, an embodiment of the present application provides a computer storage medium, which stores a plurality of instructions. The instructions are suitable for being loaded by a processor and performing the steps of the method described above.
[0013] In a fourth aspect, an embodiment of the present application provides an automobile, which comprises a memory, a processor, and a computer program stored in the memory and capable of running on the processor. The computer program is suitable for being loaded by the processor and performing the steps of the method described above.
[0014] The technical scheme provided by some embodiments of the present application has at least the following beneficial effects:
[0015] The present application provides a data storage method, which receives a data storage request and determines current configuration data corresponding to the data storage request, judges a vehicle state in which the current configuration data is acquired, and divides the vehicle state into an effective wake-up state and an invalid wake-up state according to the number of started functional modules in the vehicle. If the vehicle state is the effective wake-up state, the current configuration data is stored in response to the data storage request. If the vehicle state is the invalid wake-up state, preset processing is performed on the data storage request and the current configuration data. Since the number of started functional modules in the vehicle does not meet the requirement when the vehicle state is the invalid wake-up state, the configuration data of the required functional module is processed as a default value. The number of started functional modules in the effective wake-up state meets the storage requirement, and the vehicle environment in which the current configuration data is acquired is verified to store only the current configuration data in the effective wake-up state. The stored configuration data of the configuration data of the required functional module is prevented from being overwritten by the default value, the real and effective configuration value is protected, and the user's subsequent vehicle experience is improved. BRIEF DESCRIPTION OF DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed in the embodiments or prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0017] Figure 1 An exemplary system architecture diagram of the data storage method provided by an embodiment of the present application is shown in the following figure.
[0018] Figure 2 A flowchart of the data storage method provided by an embodiment of the present application is shown in the following figure.
[0019] Figure 3 A flowchart of a data storage method provided for an embodiment of the present application is shown in FIG. 1.
[0020] Figure 4 A structural block diagram of a data storage device provided for an embodiment of the present application is shown in FIG. 2.
[0021] Figure 5 A structural diagram of an automobile provided for an embodiment of the present application is shown in FIG. 3. DETAILED DESCRIPTION
[0022] In order to make the features and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.
[0023] The following description refers to the accompanying drawings. Unless otherwise indicated, same or similar elements in different drawings have the same or similar reference numbers. The implementations described in the following example embodiments are not meant to represent all implementations consistent with the present application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the present application as detailed in the appended claims.
[0024] With the combination and progress of automobile research and development technology and artificial intelligence technology, there are more and more functional modules in the automobile, and the configuration data of each functional module will be updated in real time with the use of the user. Most of the data of the functional modules in the automobile are lost after power failure and reset after power on, that is, the current configuration data of each functional module will be lost when the automobile enters hibernation, and will be restored to the default state when the automobile is started. However, there is a part of configuration data in the automobile that needs to remain unchanged after power failure, such as automobile mileage data and automobile configuration state, so as to continue to provide corresponding functions for the user based on this configuration data when the automobile wakes up next time, and facilitate the continued use of the user. Moreover, at present, a large number of automobiles allow users to customize some personalized configurations of the hardware and software of the vehicle to meet the user's own comfortable demand for using the vehicle. These customized configuration data also need to be retained when the automobile is powered off, so that the user can directly use the customized configuration when the automobile wakes up next time, and ensure the user's experience of using the vehicle.
[0025] In order to save the configuration data which needs to be kept unchanged after power-off, an EEPROM (Electrically Erasable Programmable read only memory) memory module is introduced in the automobile. The EEPROM is an electrically erasable programmable read-only memory, which does not lose data after power-off. In the automobile, it can be used to store some data which needs to be kept after power-off. Specifically, the process of storing data into the EEPROM is called E 2 Before the automobile goes to sleep, the current configuration data will be stored once by E 2 storage to ensure that the current configuration data will not be lost after the automobile power-off.
[0026] However, for each functional module in the automobile, the controller communicates with the functional module through the bus (CAN) to receive and send signals. Not every time of wake-up will wake up the functional module which saves the configuration data. For example, the hot patrol wake-up, the domain controller of the automobile only communicates with the related sensors of the hot patrol function through the private CAN. At this time, other functional modules are still in sleep, and the domain controller cannot receive the configuration data signals of other functional modules, and will process the configuration data of these functional modules as default values. After completing this wake-up work and re-powering off to sleep, E 2 storage will occur again, that is, the E 2 storage this time will cause these default values to overwrite the configuration data stored in the previous communication state. When these functional modules wake up next time, since the storage value changes, the configuration based on the storage value will also be reset, which makes the data that needs to be kept unchanged after power-off change, and the reset of the configuration will greatly affect the user's driving experience.
[0027] Therefore, the embodiment of the present application provides a data storage method, which receives a data storage request and determines the current configuration data corresponding to the data storage request, judges the whole vehicle state of the automobile when the current configuration data is obtained, and divides the whole vehicle state into an effective wake-up state and an ineffective wake-up state according to the number of started functional modules in the automobile. If the whole vehicle state is the effective wake-up state, the current configuration data is stored in response to the data storage request. If the whole vehicle state is the ineffective wake-up state, the data storage request and the current configuration data are preprocessed, so as to solve the technical problem that the effective configuration data is easily overwritten and lost by default values.
[0028] Please refer to Figure 1 , Figure 1 for an exemplary system architecture diagram of the data storage method provided by the embodiment of the present application.
[0029] As Figure 1As shown, the system architecture can include a car 101, a network 102 and a server 103. The network 102 is used to provide a medium for a communication link between the car 101 and the server 103. The network 102 can include various types of wired communication links or wireless communication links, for example, the wired communication links include optical fiber, twisted pair or coaxial cable, and the wireless communication links include Bluetooth communication link, Wireless-Fidelity (Wi-Fi) communication link or microwave communication link, etc.
[0030] The car 101 can interact with the server 103 through the network 102 to receive a message from the server 103 or send a message to the server 103, or the car 101 can interact with the server 103 through the network 102 to receive a message or data sent by other users to the server 103. The car 101 can be hardware or software. When the car 101 is hardware, it can be various electronic devices including but not limited to smart watch, smart phone, tablet computer, laptop computer and desktop computer, etc. When the car 101 is software, it can be installed in the above-mentioned electronic devices, which can be implemented as multiple software or software modules (for example, used to provide distributed services) or a single software or software module, which is not specifically limited here.
[0031] In the embodiment of the present application, first, the car 101 receives a data storage request and determines the current configuration data corresponding to the data storage request, judges the whole vehicle state in which the car is located when the current configuration data is acquired, and the whole vehicle state is divided into an effective wake-up state and an ineffective wake-up state according to the number of started function modules in the car; if the whole vehicle state is the effective wake-up state, the car 101 responds to the data storage request and stores the current configuration data; if the whole vehicle state is the ineffective wake-up state, the car 101 performs a preset processing on the data storage request and the current configuration data.
[0032] The server 103 can be a service server providing various services. It should be noted that the server 103 can be hardware or software. When the server 103 is hardware, it can be implemented as a distributed server cluster composed of multiple servers or as a single server. When the server 103 is software, it can be implemented as multiple software or software modules (for example, used to provide distributed services) or a single software or software module, which is not specifically limited here.
[0033] Alternatively, the system architecture can also not include the server 103, in other words, the server 103 can be an optional device in the embodiments of the present specification, that is, the method provided in the embodiments of the present specification can be applied to a system structure including only the car 101, and the embodiments of the present application do not limit this.
[0034] It should be understood that,Figure 1 The number of cars, networks and servers in the system is only illustrative, and can be any number of cars, networks and servers according to implementation needs.
[0035] Please refer to Figure 2 , Figure 2 A flowchart of a data storage method provided by an embodiment of the application is shown. The execution subject of the embodiment of the application can be a car that executes data storage, can be a processor in the car that executes the data storage method, or can be a data storage service in the car that executes the data storage method. For convenience of description, the specific execution process of the data storage method is introduced below by taking the execution subject as the processor in the car as an example.
[0036] As shown in Figure 2 , the data storage method can at least include:
[0037] S202, receiving a data storage request and determining current configuration data corresponding to the data storage request, judging a whole vehicle state in which the car is located when the current configuration data is acquired, and the whole vehicle state is divided into an effective wake-up state and an ineffective wake-up state according to the number of started functional modules in the car.
[0038] Optionally, when the E 2 Storage occurs in the car, the configuration data that needs to be retained in the car at power failure will be stored, and when facing some special working conditions, only the functional modules that are woken up are needed to complete the work, and when the car is hibernated again after the work is completed, the configuration data that is not acquired will be processed as default values, but this will cause the configuration of the functional module to be reset to the default configuration when the user wakes up the functional module next time, which will cover the configuration before the car is hibernated, and there may be some important vehicle data and custom configuration data, which will greatly affect the user experience. Therefore, in order to avoid the real and effective storage values from being covered by the default values in individual working conditions, the data to be stored can be verified before storage, and only the effective data is stored, and the storage request for invalid data is shielded.
[0039] Optionally, in the embodiment of the application, when the car is about to hibernate, the current configuration data of each functional module is acquired first to generate a data storage request corresponding to the current configuration data, and the current configuration data can be further verified whether it can be stored. Whether the current configuration data can be stored depends on whether the current configuration data is real data from the functional module in the started state or default values processed in the hibernation state, which means that whether the current configuration data can be stored needs to judge the whole vehicle state in which the car is located when the current configuration data is acquired, that is, the state of the functional module in the car.
[0040] Specifically, at this time, the whole vehicle state can be divided into an effective wake-up state and an ineffective wake-up state according to the number of started functional modules in the automobile. As can be easily understood, the effective wake-up state indicates that the functional modules in the automobile that need to store the current configuration data are all in the started wake-up state, so that the reliability of the current configuration data can be ensured. The ineffective wake-up state indicates that the functional modules in the automobile that need to store the current configuration data are not all in the started wake-up state, and at this time, if the current configuration data is stored, the original configuration data is likely to be overwritten by the default value. Therefore, the number of started functional modules can accurately reflect the reliability of the current configuration data, and further ensure the reliability of the subsequent current configuration data saving operation.
[0041] Optionally, the number of started functional modules for dividing the effective wake-up state and the ineffective wake-up state can be set according to the number of functional modules that need to store the configuration data. For example, when there are 10 functional modules in the automobile, and 8 of them need to store the current configuration data before power failure, the number of started functional modules can be set to 8. When the whole vehicle has 8 functional modules in the started state during the acquisition of the current configuration data, it indicates that each functional module corresponding to the current configuration data is in the communication online state, and it can be considered that the automobile is in the effective wake-up state at this time. If the number of started functional modules does not meet 8 during the acquisition of the current configuration data, it indicates that the automobile is in the ineffective wake-up state at this time, and the current configuration data should not be stored.
[0042] In a feasible embodiment, the number of started functional modules can be all the functional modules, that is, when all the functional modules in the automobile are started, and the automobile is in the whole vehicle wake-up state, it is in the effective wake-up state. When there is a functional module that is not started, and the automobile is in the partial wake-up state, it is in the ineffective wake-up state. In this way, the division can ensure that the current configuration data of all the functional modules in the network communication state is stored each time.
[0043] S204, if the whole vehicle state is the effective wake-up state, store the current configuration data in response to the data storage request.
[0044] Optionally, after determining the whole vehicle state in which the automobile is when the current configuration data is acquired, it can be determined according to the number of started functional modules in the automobile whether the current whole vehicle state is the effective wake-up state or the ineffective wake-up state. If the whole vehicle state is the effective wake-up state, it indicates that the functional modules in the automobile that need to store the configuration data are all in the started state, and the configuration data acquired in the started state of each functional module is the data information corresponding to the current real configuration of each functional module. At this time, the current configuration data can be stored in response to the data storage request. Next time the user uses the automobile, each functional module can acquire the current configuration data stored this time from the storage, adjust itself to the configuration state corresponding to the current configuration data, and improve the user experience.
[0045] S206, if the vehicle state is the invalid wake-up state, preset processing is performed on the data storage request and the current configuration data.
[0046] Optionally, if the vehicle state is the invalid wake-up state, it indicates that the number of started functional modules in the current vehicle is not the number of started functional modules in the valid wake-up state, that is, the functional modules that need to store configuration data are not woken up, and the configuration data corresponding to these functional modules can only be processed as default values. In order to protect the normal functional data that has been stored from being overwritten by the default values, preset processing can be performed on the data storage request and the current configuration data when it is judged that the vehicle state is the invalid wake-up state. In a feasible embodiment, the preset processing can be not responding to the data storage request corresponding to the current configuration data, so as to ensure that the next time the vehicle is woken up, each functional module in the vehicle can obtain valid configuration data from the memory to adjust the configuration of itself, reproduce the vehicle state before hibernation, and meet the user's vehicle demand.
[0047] In the embodiment of the present application, a data storage method is provided, which receives a data storage request and determines current configuration data corresponding to the data storage request, judges a vehicle state in which the vehicle is located when the current configuration data is obtained, and the vehicle state is divided into a valid wake-up state and an invalid wake-up state according to the number of started functional modules in the vehicle. If the vehicle state is the valid wake-up state, the data storage request is responded to, and the current configuration data is stored. If the vehicle state is the invalid wake-up state, preset processing is performed on the data storage request and the current configuration data. Since the number of started functional modules in the vehicle does not meet the requirement when the vehicle state is the invalid wake-up state, the configuration data of the required functional modules will be processed as default values, and the number of started functional modules in the valid wake-up state meets the storage requirement. By verifying the vehicle environment in which the current configuration data is obtained, only the current configuration data in the valid wake-up state is stored, which can avoid the stored configuration data of the required functional modules being overwritten by the default values, protect the real and valid configuration values that have been stored, and improve the user's subsequent vehicle experience.
[0048] Please refer to Figure 3 , Figure 3 A flowchart of a data storage method provided in the embodiment of the present application is shown.
[0049] As Figure 3 shown, the data storage method can at least include:
[0050] S302, in response to a vehicle hibernation instruction, obtaining current configuration data corresponding to all functional modules in the vehicle.
[0051] Optionally, from the introduction of the above embodiment, it can be known that E 2The storage occurs before the car enters the hibernation mode, so after receiving the car hibernation instruction, the current configuration data corresponding to all functional modules in the car is acquired in response to the car hibernation instruction, so that the current configuration data is subsequently stored in power failure.
[0052] The car hibernation instruction can be initiated by the user through a terminal, an in-vehicle control, an in-vehicle operating lever, a steering wheel, a key, or the like, or can be automatically generated by the car after the car is in a stationary state for a period of time, for example, the user turns off the car by the key, and the car receives the car hibernation instruction triggered by the key and enters the hibernation mode; or the car is in a stationary state for 1 hour, and the car hibernation instruction is automatically generated and enters the hibernation mode.
[0053] Optionally, at this time, there can be started functional modules and non-started functional modules in the car, for the started functional modules, the real configuration data of the started functional modules in the car is directly acquired through CAN network communication, and if there are non-started functional modules in the car, the data signal sent by the CAN network communication of the non-started functional modules cannot be received, and the default configuration data of the non-started functional modules needs to be determined as the current configuration data thereof for subsequent storage. The default configuration data of each functional module is usually the default setting of the car out of the factory, or can be the historical default data set by the user, which is not limited in the embodiments of the present application.
[0054] Optionally, according to the real configuration data and the default configuration data of all functional modules in the car, the current configuration data corresponding to all functional modules in the car can be obtained. In the current configuration data of the car, each functional module corresponds to the current configuration data of each functional module obtained, and after storage, each functional module determines the stored configuration data corresponding to itself in the memory when it is woken up, and adjusts its own configuration.
[0055] S304, determining the number of started functional modules in the car, and determining a data flag bit for the current configuration data based on the number of started functional modules.
[0056] Optionally, after acquiring the current configuration data of the car, the current configuration data needs to be stored. In order to determine whether the default configuration data will be used to overwrite the real configuration data at the last time the car hibernates, the state of the car needs to be verified, and since the state of the car is divided into an effective wake-up state and an invalid wake-up state based on the number of started functional modules in the car, the number of started functional modules in the car needs to be determined first.
[0057] Optionally, the wake-up of each functional module in the automobile is based on the HCU being in the wake-up state, and sending a network management message to each functional module based on the CAN line network communication link connected to each functional module, so when determining the number of started functional modules, the number of started functional modules in the automobile can be determined based on the network management message and the vehicle network communication link, the network management message is used to instruct the functional modules in the automobile to start and work, and the vehicle network communication link is used to send the network management message to the functional modules in the automobile. For example, when the number of started functional modules in the effective wake-up state and the invalid wake-up state is the total number of functional modules in the automobile, that is, the full network wake-up of the automobile is in the effective wake-up state and the non-full network wake-up is in the invalid wake-up state, the full network wake-up is divided into two cases. One is the passive wake-up of the CAN network, when the CAN network is woken up and powers the low-voltage network of the vehicle, the HCU receives the network management message to start working and transmits the network management message signal to each functional module to instruct each functional module to start and work. The other is that the HCU actively wakes up the vehicle. Since the function of the HCU itself requires the full network wake-up of the vehicle, the HCU actively sends the network management message to each functional module at this time. When the non-full network wake-up, only the private CAN network needs to be woken up, and the HCU does not need to send the network management message at this time. Therefore, it can be known that whether the HCU actively sends the network management message or passively sends the network management message, the current wake-up state can be detected based on the network management message and the vehicle network communication link.
[0058] Further, after the number of started functional modules is determined, each functional module will enter sleep, and real-time network communication with each functional module cannot be performed during storage. At this time, the data flag bit of the current configuration data can be determined based on the number of started functional modules, so that when the current configuration data is stored, the number of started functional modules in the automobile when the current configuration data is obtained can be determined according to the data flag bit carried by the current configuration data.
[0059] Optionally, when the data flag bit of the current configuration data is determined based on the number of started functional modules, the value of each data flag bit can be directly set based on the value of the number of started functional modules, for example, if the number of started functional modules is 8, the data flag bit is 8, and if the number of started functional modules is 5, the data flag bit is 5. After marking the current configuration data, when storing, the vehicle state corresponding to the current data flag bit needs to be determined by comparing the data flag bit with the preset start number condition corresponding to the effective wake-up state, and then the current configuration data is processed based on the determination result of the vehicle state.
[0060] Further, in a feasible embodiment, only the whole vehicle state corresponding to the current start quantity needs to be marked respectively, that is, when the start quantity of the functional module in the automobile meets the preset start quantity condition, it is explained that the current start quantity corresponds to the effective wake-up state, and then the valid data flag bit of the current configuration data can be determined; when the start quantity of the functional module in the automobile does not meet the preset start quantity condition, it is explained that the current start quantity corresponds to the invalid wake-up state, and then the invalid data flag bit of the current configuration data can be determined, so that the corresponding subsequent processing mode can be directly based on the data flag bit of the current configuration data.
[0061] Specifically, when determining the data flag bit, the valid data flag bit and the invalid data flag bit can be distinguished by various representation methods, for example, the valid data flag bit is True, and the invalid data flag bit is False; or the valid data flag bit is 1, and the invalid data flag bit is 0. The embodiment of the present application does not limit the specific setting of the data flag bit.
[0062] S306, generate a data storage request corresponding to the current configuration data.
[0063] Optionally, after obtaining the current configuration data, a data storage request corresponding to the current configuration data is generated, so that subsequent data storage or no response to the data storage request is based on the data flag bit of the current configuration data.
[0064] S308, receive the data storage request and determine the current configuration data corresponding to the data storage request, and judge the whole vehicle state of the automobile when the current configuration data is obtained based on the data flag bit.
[0065] Optionally, after receiving the data storage request and determining the current configuration data corresponding to the data storage request, the whole vehicle state of the automobile when the current configuration data is obtained can be judged based on the data flag bit corresponding to the current configuration data. If it is judged that the whole vehicle state is an effective wake-up state, it is explained that the functional module in the current automobile which needs to store the configuration data is in a start state, and the configuration data obtained under the start state of each functional module is the data information corresponding to the current real configuration of each functional module, so that the data storage request can be responded to store the current configuration data; if the whole vehicle state is an invalid wake-up state, it is explained that the start quantity of the functional module in the current automobile is not the start quantity in the effective wake-up state, that is, the functional module which needs to store the configuration data is not awakened at present, so that the configuration data corresponding to these functional modules can only be processed as a default value, and then in order to protect the normal functional data which has been stored from being covered by the default value, the data storage request corresponding to the current configuration data can not be responded.
[0066] Further, based on the data flag bit judging the whole vehicle state when the current configuration data is acquired, in a feasible embodiment, when the number of started function modules in the vehicle meets the preset number of start conditions, the valid data flag bit is set for the current configuration data; when the number of started function modules in the vehicle does not meet the preset number of start conditions, the invalid data flag bit is set for the current configuration data, so that the whole vehicle state can be determined based on the data flag bit of the current configuration data, that is, the whole vehicle state when the current configuration data is acquired is determined as the valid wake-up state based on the valid data flag bit, or the whole vehicle state when the current configuration data is acquired is determined as the invalid wake-up state based on the invalid data flag bit.
[0067] S3010, if the whole vehicle state is the valid wake-up state, the current configuration data is stored in response to the data storage request.
[0068] S3012, if the whole vehicle state is the invalid wake-up state, the data storage request and the current configuration data are subjected to preset processing.
[0069] For steps S3010-S3012, please refer to the detailed description in steps S204-S206, which will not be repeated here.
[0070] S3014, in response to the vehicle wake-up instruction, the function modules in the vehicle are configured based on the current configuration data corresponding to all the function modules in the vehicle stored before entering the sleep state.
[0071] Optionally, when the vehicle needs to be woken up in the sleep state, in response to the vehicle wake-up instruction, the function modules in the vehicle are started. Since the function modules do not have power-off storage function, the configuration data before power-off will be lost, so the current configuration data corresponding to each function module itself is acquired based on the current configuration data corresponding to all the function modules in the vehicle stored before entering the sleep state, to configure the function modules in the vehicle. According to the embodiment of the present application, the current configuration data is the real configuration data of each function module before the vehicle sleeps, so that when woken up, each function module in the vehicle can be reset to the state before the vehicle sleeps, facilitating the user to continue using the vehicle.
[0072] The vehicle wake-up instruction can be actively sent by the user through a terminal, an in-vehicle control, an in-vehicle operating lever, a steering wheel, a key, etc., or can be automatically generated by the vehicle based on information collected by a vehicle body sensor and an in-vehicle sensor. For example, when the user starts the vehicle by a key, the vehicle receives the vehicle wake-up instruction triggered by the key and starts; or when the vehicle body sensor collects that the distance of the key is within one meter of the vehicle body, the vehicle autonomously generates the vehicle wake-up instruction and starts.
[0073] In the embodiment of the present application, a data storage method is provided. First, in response to a vehicle hibernation instruction, current configuration data corresponding to all functional modules in the vehicle is acquired. The number of functional modules that are started in the vehicle is determined, and a data flag bit is determined based on the number of started functional modules and the current configuration data. A data storage request is received, and current configuration data corresponding to the data storage request is determined. The vehicle state when the current configuration data is acquired is determined based on the data flag bit. The subsequent processing mode of the current configuration data is determined according to the vehicle state, and the current configuration data is stored if it is valid, or the data storage request is not responded to if it is invalid. In addition, in response to a vehicle wake-up instruction, the functional modules in the vehicle are configured based on the current configuration data corresponding to all functional modules in the vehicle that is stored before entering the hibernation state. The vehicle state corresponding to the current number of started functional modules is respectively marked based on the number of started functional modules in the vehicle. When the number of started functional modules meets the preset number of started functional modules corresponding to the valid wake-up state, a valid data flag bit is obtained. When the number of started functional modules does not meet the preset number of started functional modules corresponding to the valid wake-up state, an invalid data flag bit is obtained. The corresponding subsequent processing mode is directly adopted based on the data flag bit of the current configuration data, so that each functional module in the vehicle is reset to the state before the vehicle hibernation when the vehicle wakes up, facilitating the user to continue using the vehicle and ensuring the user experience.
[0074] Please refer to Figure 4 , Figure 4 The structure block diagram of a data storage device provided in the embodiment of the present application is shown.
[0075] As shown in Figure 4 , the data storage device 400 comprises:
[0076] The state confirmation module 410 is configured to receive a data storage request and determine current configuration data corresponding to the data storage request, and determine the vehicle state when the current configuration data is acquired. The vehicle state is divided into a valid wake-up state and an invalid wake-up state according to the number of started functional modules in the vehicle.
[0077] The data storage module 420 is configured to, if the vehicle state is the valid wake-up state, respond to the data storage request and store the current configuration data.
[0078] The cancel storage module 430 is configured to, if the vehicle state is the invalid wake-up state, perform a preset processing on the data storage request and the current configuration data.
[0079] Optionally, the data storage device 400 further comprises a data acquisition module configured to, in response to a vehicle hibernation instruction, acquire current configuration data corresponding to all functional modules in the vehicle, and generate a data storage request corresponding to the current configuration data.
[0080] Optionally, the data storage apparatus 400 further comprises a flag processing module configured to determine a number of started function modules in the vehicle, and determine a data flag of the current configuration data based on the number of started function modules; and the state confirmation module 410 is further configured to determine the state of the vehicle when the current configuration data is acquired based on the data flag.
[0081] Optionally, the flag processing module is further configured to determine the number of started function modules in the vehicle based on a network management message and a vehicle network communication link, the network management message being used to instruct the function modules in the vehicle to start, and the vehicle network communication link being used to send the network management message to the function modules in the vehicle.
[0082] Optionally, the flag processing module is further configured to determine a valid data flag of the current configuration data when the number of started function modules in the vehicle meets a preset number condition, and determine an invalid data flag of the current configuration data when the number of started function modules in the vehicle does not meet the preset number condition; and the state confirmation module 410 is further configured to determine that the state of the vehicle when the current configuration data is acquired is a valid wake-up state based on the valid data flag, or determine that the state of the vehicle when the current configuration data is acquired is an invalid wake-up state based on the invalid data flag.
[0083] Optionally, the data acquisition module is further configured to acquire real configuration data of the started function modules in the vehicle, and determine default configuration data of the unstarted function modules in the vehicle if there are unstarted function modules in the vehicle; and obtain the current configuration data corresponding to all the function modules in the vehicle according to the real configuration data and the default configuration data.
[0084] Optionally, the data storage apparatus 400 further comprises a configuration resetting module configured to, in response to a vehicle wake-up instruction, configure the function modules in the vehicle based on the current configuration data corresponding to all the function modules in the vehicle stored before entering the sleep state.
[0085] In the embodiment of the present application, a data storage device is provided, wherein a state confirmation module is configured to receive a data storage request and determine current configuration data corresponding to the data storage request, judge a whole vehicle state in which the vehicle is located when the current configuration data is acquired, and divide the whole vehicle state into an effective wake-up state and an ineffective wake-up state according to the number of started functional modules in the vehicle; a data storage module is configured to store the current configuration data in response to the data storage request if the whole vehicle state is the effective wake-up state; and a data storage cancellation module is configured to perform a preset processing on the data storage request and the current configuration data if the whole vehicle state is the ineffective wake-up state. Since the number of started functional modules in the vehicle does not meet the requirement when the whole vehicle state is the ineffective wake-up state, the configuration data of the required functional module is processed as a default value, and the number of started functional modules in the effective wake-up state meets the storage requirement, the whole vehicle environment in which the current configuration data is acquired is verified, and only the current configuration data in the effective wake-up state is stored, so that the stored configuration data of the configuration data of the required functional module is prevented from being overwritten by the default value, the real and effective configuration value is protected, and the subsequent vehicle experience of the user is improved.
[0086] The embodiment of the present application further provides a computer storage medium, which can store a plurality of instructions, and the instructions are suitable for being loaded and executed by a processor to perform the steps of the method in any one of the above embodiments.
[0087] Please refer to Figure 5 , Figure 5 A structural schematic diagram of a vehicle is provided for the embodiment of the present application. As shown in Figure 5 , the vehicle 500 can include at least one vehicle processor 501, at least one network interface 504, a user interface 503, a memory 505, and at least one communication bus 502.
[0088] The communication bus 502 is configured to realize the connection and communication among the components.
[0089] The user interface 503 can include a display screen (Display) and a camera (Camera), and the optional user interface 503 can further include a standard wired interface and a wireless interface.
[0090] The network interface 504 can optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
[0091] The automobile processor 501 can include one or more processing cores. The automobile processor 501 connects various parts in the automobile 500 through various interfaces and lines, and performs various functions of the automobile 500 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 505, and calling data stored in the memory 505. Alternatively, the automobile processor 501 can be implemented in at least one of a hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The automobile processor 501 can be integrated with a combination of one or more of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes operating systems, user interfaces, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; and the modem is used for processing wireless communication. It can be understood that the above-mentioned modem can also not be integrated into the automobile processor 501, but can be implemented separately through a chip.
[0092] The memory 505 can include a random access memory (RAM) and can also include a read-only memory (ROM). Optionally, the memory 505 includes a non-transitory computer-readable storage medium. The memory 505 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 505 can include a program storage area and a data storage area, wherein the program storage area can store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area can store data involved in the above-mentioned various method embodiments, etc. The memory 505 can also be at least one storage device located away from the aforementioned automobile processor 501. As shown, the memory 505 as a computer storage medium can include an operating system, a network communication module, a user interface module, and a data storage program. Figure 5 As shown, the memory 505 as a computer storage medium can include an operating system, a network communication module, a user interface module, and a data storage program.
[0093] In Figure 5In the shown automobile 500, the user interface 503 is mainly used to provide an interface for the user to input, and obtain data input by the user; and the automobile processor 501 can be used to call a data storage program stored in the storage 505, and specifically perform the following operations:
[0094] receive a data storage request and determine current configuration data corresponding to the data storage request, determine a whole vehicle state of the automobile when the current configuration data is obtained, and divide the whole vehicle state into an effective wake-up state and an ineffective wake-up state according to a number of started functional modules in the automobile;
[0095] if the whole vehicle state is the effective wake-up state, store the current configuration data in response to the data storage request;
[0096] if the whole vehicle state is the ineffective wake-up state, perform preset processing on the data storage request and the current configuration data.
[0097] In some embodiments, before the automobile processor 501 performs the operation of receiving the data storage request and determining the current configuration data corresponding to the data storage request, the automobile processor 501 further specifically performs the following steps: in response to an automobile sleep instruction, obtaining current configuration data corresponding to all functional modules in the automobile, and generating a data storage request corresponding to the current configuration data.
[0098] In some embodiments, after the automobile processor 501 performs the operation of obtaining the current configuration data corresponding to all functional modules in the automobile, the automobile processor 501 further specifically performs the following steps: determining a number of started functional modules in the automobile, and determining a data flag bit of the current configuration data based on the number; when the automobile processor 501 performs the operation of determining the whole vehicle state of the automobile when the current configuration data is obtained, the automobile processor 501 specifically performs the following steps: determining the whole vehicle state of the automobile when the current configuration data is obtained based on the data flag bit.
[0099] In some embodiments, when the automobile processor 501 performs the operation of determining the number of started functional modules in the automobile, the automobile processor 501 specifically performs the following steps: determining the number of started functional modules in the automobile based on a network management message and a whole vehicle network communication link, the network management message being used to instruct the functional modules in the automobile to start, and the whole vehicle network communication link being used to send the network management message to the functional modules in the automobile.
[0100] In some embodiments, when the vehicle processor 501 performs determining the data flag bit based on the number of starts of the current configuration data, the following steps are specifically performed: when the number of starts of the functional modules in the vehicle meets the preset number of starts condition, determining the valid data flag bit for the current configuration data; when the number of starts of the functional modules in the vehicle does not meet the preset number of starts condition, determining the invalid data flag bit for the current configuration data; when the vehicle processor 501 performs determining the whole vehicle state in which the vehicle is located when the current configuration data is acquired based on the data flag bit corresponding to the configuration data, the following steps are specifically performed: determining that the whole vehicle state in which the vehicle is located when the current configuration data is acquired is the valid wake-up state based on the valid data flag bit, or determining that the whole vehicle state in which the vehicle is located when the current configuration data is acquired is the invalid wake-up state based on the invalid data flag bit.
[0101] In some embodiments, when the vehicle processor 501 performs acquiring the current configuration data corresponding to all the functional modules in the vehicle, the following steps are specifically performed: acquiring the real configuration data of the started functional modules in the vehicle, and if there is a non-started functional module in the vehicle, determining the default configuration data of the non-started functional module; and obtaining the current configuration data corresponding to all the functional modules in the vehicle according to the real configuration data and the default configuration data.
[0102] In some embodiments, the vehicle processor 501 further performs configuring the functional modules in the vehicle based on the current configuration data corresponding to all the functional modules in the vehicle stored before entering the sleep state in response to the vehicle wake-up instruction.
[0103] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented by other manners. For example, the apparatus embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and actual implementation can have another division manner, for example, a plurality of modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed modules can be indirect coupling or communication connection through some interfaces, apparatuses or modules, which can be electrical, mechanical or other forms.
[0104] The modules illustrated as separate components can or can not be physically separate, and the components illustrated as modules can or can not be physical modules, i.e., can be located in one place, or can be distributed to a plurality of network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the embodiment scheme.
[0105] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The above computer program product includes one or more computer instructions. When the above computer program instructions are loaded and executed on a computer, all or part of the processes or functions described above according to the embodiments of the present specification are generated. The above computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices. The above computer instructions can be stored in a computer-readable storage medium or transmitted by the above computer-readable storage medium. The above computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The above computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The above available medium can be a magnetic medium (for example, floppy disk, hard disk, magnetic tape), an optical medium (for example, digital versatile disc (DVD)), or a semiconductor medium (for example, solid state disk (SSD)) and the like.
[0106] It should be noted that for the foregoing method embodiments, in order to facilitate description, they are all described as a combination of a series of actions, but those skilled in the art should know that the present application is not limited by the order of the described actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the present application.
[0107] In the above embodiments, the description of each embodiment has its own emphasis, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.
[0108] The above is the description of the data storage method, device, storage medium and automobile provided by the present application. For those skilled in the art, according to the idea of the embodiments of the present application, there will be changes in specific implementation and application range. In summary, the content of the specification should not be understood as a limitation of the present application.
Claims
1. A data storage method, characterized by, The method comprises: receiving a data storage request and determining current configuration data corresponding to the data storage request, judging a whole vehicle state of the vehicle when the current configuration data is acquired, the whole vehicle state being divided into an effective wake-up state and an ineffective wake-up state according to a number of started functional modules in the vehicle; when all the functional modules in the vehicle are started, the vehicle is in a whole vehicle wake-up state, and the effective wake-up state is determined; when there is a functional module that is not started in the vehicle, the ineffective wake-up state is determined; if the whole vehicle state is the effective wake-up state, the current configuration data is stored in response to the data storage request; if the whole vehicle state is the ineffective wake-up state, the data storage request and the current configuration data are subjected to preset processing.
2. The method of claim 1, wherein, Before the receiving of the data storage request and the determining of the current configuration data corresponding to the data storage request, the method further comprises: in response to a vehicle hibernation instruction, acquiring current configuration data corresponding to all the functional modules in the vehicle, and generating a data storage request corresponding to the current configuration data.
3. The method of claim 2, wherein, After the acquiring of the current configuration data corresponding to all the functional modules in the vehicle, the method further comprises: determining a number of started functional modules in the vehicle, and determining a data flag bit of the current configuration data based on the number of started functional modules; the judging of the whole vehicle state of the vehicle when the current configuration data is acquired comprises: judging the whole vehicle state of the vehicle when the current configuration data is acquired based on the data flag bit.
4. The method of claim 3, wherein, The determining of the number of started functional modules in the vehicle comprises: determining the number of started functional modules in the vehicle based on a network management message and a whole vehicle network communication link, the network management message being used to instruct the functional modules in the vehicle to start, and the whole vehicle network communication link being used to send the network management message to the functional modules in the vehicle.
5. The method of claim 3, wherein, The determining of the data flag bit of the current configuration data based on the number of started functional modules comprises: when all the functional modules in the vehicle are started and the vehicle is in the whole vehicle wake-up state, determining an effective data flag bit of the current configuration data; when there is a functional module that is not started in the vehicle, determining an ineffective data flag bit of the current configuration data; The judging of the whole vehicle state of the vehicle when the current configuration data is acquired based on the data flag bit of the configuration data comprises: determining that the whole vehicle state of the vehicle when the current configuration data is acquired is the effective wake-up state based on the effective data flag bit, or determining that the whole vehicle state of the vehicle when the current configuration data is acquired is the ineffective wake-up state based on the ineffective data flag bit.
6. The method of claim 2, wherein, The acquiring of the current configuration data corresponding to all the functional modules in the vehicle comprises: acquiring real configuration data of the started functional modules in the vehicle, and if there is an unstarted functional module in the vehicle, determining default configuration data of the unstarted functional module; obtaining the current configuration data corresponding to all the functional modules in the vehicle according to the real configuration data and the default configuration data.
7. The method of claim 1, wherein, The method further comprises: In response to the vehicle wake-up instruction, all functional modules in the vehicle are configured based on the current configuration data of all functional modules stored before entering the sleep state.
8. A data storage device, characterized by The device comprises: a state confirmation module configured to receive a data storage request and determine the current configuration data corresponding to the data storage request, judge the vehicle state when the current configuration data is acquired, and divide the vehicle state into an effective wake-up state and an ineffective wake-up state according to the number of started functional modules in the vehicle; when all functional modules in the vehicle are started and the vehicle is in a vehicle wake-up state, the effective wake-up state is achieved; when there is a functional module that is not started in the vehicle, the ineffective wake-up state is achieved; a data storage module configured to store the current configuration data in response to the data storage request if the vehicle state is the effective wake-up state; a cancel storage module configured to perform a preset processing on the data storage request and the current configuration data if the vehicle state is the ineffective wake-up state.
9. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, which are suitable for being loaded and executed by the processor to perform the steps of the method according to any one of claims 1-7.
10. An automobile characterized by comprising: The vehicle is capable of performing the steps of the method according to any one of claims 1-7.
Citation Information
Patent Citations
Data processing method and device as well as electronic equipment
CN104345861A
Vehicle state recording method, electronic device and system
CN104991546A