Production line calibration data processing method and device, electronic equipment and vehicle

By writing protection and copying the production line calibration data in the vehicle, using the Overlayfs file system to process the production line calibration data in the user view, the calibration data loss problem caused by abnormal vehicle network status is solved, and the vehicle traffic is saved , ensuring the normal use of vehicle functions.

CN119225620APending Publication Date: 2024-12-31BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310781970.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-29
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

The existing technology strongly relies on the normal vehicle network status. If the vehicle network status is abnormal, the online calibration of production line calibration data cannot be performed. Downloading data from the cloud server consumes vehicle traffic, affecting the use of vehicle functions.

Method used

By obtaining the production line calibration data of the first partition to be written to the storage space, and writing protection is released, the data is written to the first partition, and then the write protection settings are restored, and the first partition and the second partition are transferred through the Overlayfs file system The second partition combines the user view, copy and process production line calibration data in the user view, avoid data loss and save vehicle traffic.

Benefits of technology

The production line calibration data processing is realized when the vehicle network is in poor condition, avoiding data loss, ensuring the normal use of vehicle functions, and saving the consumption of vehicle traffic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119225620A_ABST
    Figure CN119225620A_ABST
Patent Text Reader

Abstract

The invention relates to a production line calibration data processing method and device, electronic equipment and a vehicle, and relates to the technical field of data processing.The method comprises the steps that production line calibration data of a first partition to be written into a storage space is obtained, and the first partition is provided with write protection; performing write protection relief on the first partition, and writing the production line calibration data into the first partition; recovering the write protection setting of the first partition; the first partition and a second partition of the storage space are synthesized into a user view through an Overlayfs file system, and the production line calibration data in the first partition in the user view can be copied to the second partition to be processed. By applying the technical scheme of the invention, the data loss of the production line calibration data can be fundamentally avoided. The situation that production line calibration data cannot be obtained due to the poor vehicle network state is avoided, and normal use of vehicle functions can be guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and specifically to a method, device, electronic equipment and vehicle for processing production line calibration data. Background Art

[0002] The automobile production line calibration process refers to the process of writing the calibration parameters of peripherals such as cameras and sensors into the main chip memory of the Advanced Driver Assistance System (ADAS) during the production line of the automobile factory.

[0003] At present, the vehicle's production line calibration data can be backed up in the cloud server. Then, when the production line calibration data needs to be calibrated online, it can be downloaded from the cloud server to the local computer for online calibration.

[0004] However, this method is highly dependent on the normal status of the vehicle network. If the vehicle network status is abnormal, the production line calibration data cannot be obtained, and the online calibration of the production line calibration data cannot be performed, which affects the use of vehicle functions. In addition, downloading data from the cloud server will also consume vehicle-side traffic. Summary of the invention

[0005] In view of this, the present application provides a method, device, electronic device and vehicle for processing production line calibration data. The main purpose is to improve the current existing technology that strongly relies on the normal vehicle network status. If the vehicle network status is abnormal, the production line calibration data cannot be obtained, and then the online calibration of the production line calibration data cannot be performed, which affects the use of vehicle functions. In addition, the method of downloading data from the cloud server will also consume vehicle-side traffic. Technical problems.

[0006] In a first aspect, the present application provides a method for processing production line calibration data, comprising:

[0007] Obtaining production line calibration data of a first partition to be written into the storage space, where the first partition is write-protected;

[0008] Restore the write protection setting of the first partition;

[0009] The first partition and the second partition of the storage space are synthesized into a user view through the Overlayfs file system, wherein in the user view, the production line calibration data in the first partition can be copied to the second partition for processing.

[0010] In a second aspect, the present application provides a device for processing production line calibration data, comprising:

[0011] An acquisition module is configured to acquire production line calibration data of a first partition to be written into the storage space, where the first partition is write-protected;

[0012] A writing module is configured to release the write protection of the first partition and write the production line calibration data into the first partition; and,

[0013] A recovery module configured to restore the write protection setting of the first partition

[0014] The synthesis module is configured to synthesize the first partition and the second partition of the storage space into a user view through the Overlayfs file system, wherein the production line calibration data in the first partition in the user view can be copied to the second partition for processing.

[0015] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method described in the first aspect is implemented.

[0016] In a fourth aspect, the present application provides an electronic device, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the method described in the first aspect when executing the computer program.

[0017] In a fifth aspect, the present application provides a vehicle, comprising: the device as described in the second aspect, or the electronic device as described in the fourth aspect.

[0018] By means of the above technical scheme, the present application provides a method, device and electronic device for processing production line calibration data. First, the production line calibration data of the first partition to be written into the storage space is obtained, and the first partition is set with write protection; the write protection of the first partition is released, and the production line calibration data is written into the first partition; then the write protection setting of the first partition is restored. Compared with the current existing processing method of production line calibration data, the present application saves the production line calibration data locally and saves it in the first partition of the storage space, which is set with a write protection attribute to protect the production line calibration data from being destroyed. And through the Overlayfs file system, the first partition and the second partition of the storage space are synthesized into a user view. In the user view, the production line calibration data in the first partition can be copied to the second partition for processing, and then the online calibration of the production line calibration data can be performed in the user view. During the calibration process, the production line calibration data copied from the first partition is processed, and the production line calibration data will not be lost due to misoperation, thereby fundamentally avoiding the loss of production line calibration data. The vehicle will not be unable to obtain the calibration data due to poor vehicle network status, which ensures the normal use of vehicle functions. In addition, since there is no need to download the data from the cloud server, the vehicle-side traffic consumption is also saved.

[0019] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0021] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0022] Figure 1 A schematic diagram of a process of processing production line calibration data provided by an embodiment of the present application is shown;

[0023] Figure 2 A schematic diagram of a process of processing production line calibration data provided by an embodiment of the present application is shown;

[0024] Figure 3 A schematic diagram of the structure of an application example provided by an embodiment of the present application is shown;

[0025] Figure 4 A schematic diagram of a process flow of an application example provided by an embodiment of the present application is shown;

[0026] Figure 5 A schematic diagram of a process flow of an application example provided by an embodiment of the present application is shown;

[0027] Figure 6 A schematic diagram of the structure of a production line calibration data processing device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0028] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0029] In order to improve the technical problem that the existing technology strongly relies on the normal state of the vehicle network, if the vehicle network state is abnormal, the production line calibration data cannot be obtained, and then the online calibration of the production line calibration data cannot be performed, which affects the use of vehicle functions, and the method of downloading data from the cloud server will also consume vehicle-side traffic, this embodiment provides a method for processing production line data, such as Figure 1 As shown, the method includes:

[0030] Step 101: Obtain production line calibration data of the first partition to be written into the storage space.

[0031] The first partition is write-protected.

[0032] There is a calibration process during the production line of the automobile factory, which will write the calibration parameters of peripherals such as cameras and sensors into the ADAS main chip memory. These calibration data are different for each car, and there is a need to update and modify the contents of the calibration folder in subsequent car use scenarios. Since the production line calibration process and the car use scenario will modify the contents of the calibration folder, there may be scenarios where the production line calibration data is lost due to misoperation and the on-board camera cannot work properly. Once the original calibration data of the production line is lost, the ADAS perception function can only be restored by recalibration after sales.

[0033] In the embodiment of the present application, the production line calibration data refers to the calibration parameters of peripherals such as cameras and sensors in the calibration process, which are the calibration data of the production line.

[0034] The existing technical solutions for protecting factory calibration data include: backing up the calibration data of all vehicles in the cloud. When data loss occurs, the vehicle main chip is connected to the network and the calibration data is downloaded and restored. However, this strongly relies on the normal vehicle network status, otherwise the on-board camera will not work properly, which will cause the autonomous driving perception function to not work. In addition, as the number of vehicle deliveries increases, cloud data continues to grow, and the synchronization of vehicle-side data and cloud data also consumes vehicle-side traffic.

[0035] Separate the production line calibration data from the user data. In the vehicle use scenario, the calibration program first copies the original production line calibration data to the user data folder and then updates the parameters. When user data is lost, it will not affect the original production line calibration data. First, the calibration program adds additional processing logic, and the process of power-on inspection and data recovery also adds additional startup time, affecting the user's vehicle experience; second, although the production line calibration data and user data are separated, for the convenience of the production line calibration process, the partition that stores the original production line calibration data is essentially still writable and may still be damaged.

[0036] ADAS is an active safety technology that uses a variety of sensors installed on the vehicle to collect environmental data inside and outside the vehicle at the first time, and perform technical processing such as identification, detection and tracking of static and dynamic objects, so that the driver can be aware of possible dangers in the fastest time to attract attention and improve safety. The sensors used by ADAS mainly include cameras, radars, lasers and ultrasound, which can detect light, heat, pressure or other variables used to monitor the status of the vehicle. They are usually located in the front and rear bumpers, side mirrors, inside the steering column or on the windshield of the vehicle. Early ADAS technology mainly focused on passive alarms. When the vehicle detected potential dangers, it would sound an alarm to remind the driver to pay attention to abnormal vehicles or road conditions. For the latest ADAS technology, active intervention is also common.

[0037] Read-only files are also called files with write protection enabled. That is, the content can be modified but not saved. However, it is different from read-only files. Read-only files can be deleted, but write-protected files cannot be deleted. Write protection protects the original files from misoperation on the one hand, and prevents viruses from attacking the file data on the other hand.

[0038] Write protection means that the disk cannot be written to, only read. When write protection is turned on, the data in the disk will not be modified, effectively protecting the disk data. It can also prevent viruses from infecting the disk.

[0039] In the embodiment of the present application, the first partition is write-protected by default, which can protect the data in the first partition from being changed.

[0040] Step 102: Unlock the write protection of the first partition and write the production line calibration data into the first partition.

[0041] In the embodiment of the present application, the write protection of the first partition can be released by, if the first partition is sda1, releasing the write protection of the sda1 partition through echo 0> / sys / block / sda / sda1 / rw_mode.

[0042] Step 103: Restore the write protection setting of the first partition.

[0043] In the embodiment of the present application, the write protection setting of the first partition can be restored by powering off and restarting to restore the default write protection setting of the first partition. If the first partition is sda1, the write protection of the sda1 partition can also be added by echo 1> / sys / block / sda / sda1 / rw_mode

[0044] Step 104: The first partition and the second partition of the storage space are synthesized into a user view through the Overlayfs file system.

[0045] Among them, the production line calibration data in the first partition in the user view can be copied to the second partition for processing.

[0046] The Overlayfs file system uses the copy-on-write concept to divide files into two layers, lower and upper. When writing a file, a copy of the file is copied from the lower layer to the upper layer, and then written. When reading a file, if the file does not exist in the upper layer, it is read from the lower layer. When deleting a file, a special file is added to the upper layer to mark the file as deleted.

[0047] In the embodiment of the present application, the production line calibration data is written into the first partition in advance, and the first partition and the second partition are combined into a user view through the Overlayfs file system. When the user actually writes, a file is copied from the first partition to the second partition, and then modified, and the actual modification is written to the second partition.

[0048] In the embodiment of the present application, user data refers to data generated in real time by the car in the subsequent vehicle delivery scenario that needs to be written into the calibrated ADAS system.

[0049] In an embodiment of the present application, the user view may specifically refer to a merged view of the first partition and the second partition. In a vehicle delivery scenario, when the user writes data generated in real time by the vehicle that needs to be written into the calibrated ADAS system, the user can view the merged data of the first partition and the second partition. When making modifications, the part of the first partition that needs to be modified is copied to the second partition for modification, and the modified part is stored in the second partition.

[0050] Compared with the current existing technology, this embodiment stores the production line calibration data locally and in the first partition, which is provided with a write protection attribute to protect the production line calibration data from being destroyed. And through the Overlayfs file system, the first partition and the second partition of the storage space are synthesized into a user view. In the user view, the production line calibration data in the first partition can be copied to the second partition for processing, and then the production line calibration data can be calibrated online in the user view. During the calibration process, the production line calibration data copied from the first partition is processed, and the production line calibration data will not be lost due to misoperation, thereby fundamentally avoiding the loss of production line calibration data. There will be no situation where the production line calibration data cannot be obtained due to poor vehicle network status, and the normal use of vehicle functions can be guaranteed. In addition, since there is no need to download the data from the cloud server, the consumption of vehicle-side traffic is also saved.

[0051] Further, as a refinement and extension of the above embodiment, in order to fully illustrate the specific implementation process of the method of the embodiment of the present disclosure, the embodiment of the present application provides the following Figure 2 The specific method shown includes:

[0052] Step 201: Obtain production line calibration data of the first partition to be written into the storage space.

[0053] The first partition is write-protected.

[0054] In some embodiments, before step 201, the method of this embodiment further includes: dividing the storage space into a first partition and a second partition; setting the operation permission of the first partition to write protection, and setting the operation permission of the second partition to read and write.

[0055] Mounting as read-write means that you have read and write permissions to the file, which means you can create files, delete files, modify files, etc.

[0056] Mounting is the process by which the operating system makes computer files and directories on a storage device (such as a hard disk, CD-ROM, or shared resource) accessible to users through the computer's file system. Generally, when the computer is shut down, each mounted storage will undergo an unmount to ensure that all queued data is written and the integrity of the file system structure on the media is guaranteed.

[0057] In Windows operating systems, mounting usually means assigning a drive letter to a disk partition (including virtualized disk partitions). This operation can be performed through "Disk Management" in "Computer Management". Third-party software, such as disk partition management software, virtual disk software, etc., usually also comes with a mounting function.

[0058] In the Linux operating system, mounting is a very important function and is used very frequently. It means mounting a device (usually a storage device) to an existing directory. (This directory may not be empty, but the previous contents of this directory will be unavailable after mounting.) It is important to understand that the Linux operating system treats all devices as files, and it integrates the resources of the entire computer into a large file directory. If we want to access files in a storage device, we must mount the partition where the file is located to an existing directory, and then access the storage device by accessing this directory.

[0059] For example, two partitions are planned in the storage space, namely sda1 and sda2. Sda1 is used to store production line calibration data, and sda2 is used to store user data. By default, sda1 is set to write protection and mounted in read-only mode, and sda2 is read-write by default. The method of setting write protection can be achieved by adding a flag in the device tree. The Linux kernel parses the flag during the startup phase and calls the set_disk_ro interface to set the partition write protection flag.

[0060] The device tree holds information about the devices present in the system. When the machine boots, the OS builds this tree using information obtained from drivers and other components, and updates this tree when devices are added or removed. The device tree is hierarchical, and the devices on the bus represent "subsets" of bus adapters or driver controllers. Each node of the device tree is a device node (devnode). A devnode contains the device object of the device driver plus internal information kept by the OS.

[0061] Step 202: Obtain the write protection flag set for the first partition through the Sysfs subsystem.

[0062] The Linux kernel began to use the Sysfs file system, which exports device and driver information to user space, making it easier for users to read device information while supporting modification and adjustment.

[0063] Sysfs is a virtual file system built in memory when the system starts up. It is usually mounted in the / sys directory. Since it is stored in memory, it will not be saved when the power is off, and it cannot store user data. Sysfs can generate a hierarchical view of all system hardware, which is very similar to the proc file system that provides process and status information; Sysfs organizes the devices and buses connected to the system into a hierarchical file, which can be accessed by user space and exports the kernel's data structure and their properties to user space. One of the purposes of Sysfs is to show the hierarchical relationship of each component in the device driver model. Its top-level directories include block, bus, drivers, class, power, and firmware. Sysfs provides a mechanism that allows explicit description of kernel objects, object attributes, and relationships between objects. Sysfs has two sets of interfaces, one for the kernel, used to map devices to the file system, and the other for user programs, used to read or operate these devices.

[0064] Exemplarily, based on step 201, a node that can change the write protection flag of the sda1 partition is exposed through the Linux Sysfs subsystem. For example, echo 0> / sys / block / sda / sda1 / rw_mode removes the write protection of the sda1 partition, and echo 1> / sys / block / sda / sda1 / rw_mode adds write protection to the sda1 partition.

[0065] Step 203: Unlock the write protection of the first partition based on the write protection flag.

[0066] Exemplarily, based on step 202, the factory calibration process is as follows Figure 3As shown in the figure, the write protection of the sda1 partition is released by echo 0> / sys / block / sda / sda1 / rw_mode, and the sda1 partition is remounted as readable and writable, and the calibration data is written to the partition sda1. After the operation is completed, the power is turned off and restarted.

[0067] Remount the already mounted file system (mount with read-write permissions). Note that the mount point must be an existing directory, which does not have to be empty. Files in this directory are usually ro permissions, which need to be temporarily changed to editable permissions.

[0068] Step 204: Restore the write protection setting of the first partition.

[0069] In some embodiments, step 204 may specifically include: performing write protection recovery on the first partition based on the write protection flag; or performing write protection recovery on the first partition by powering off and restarting.

[0070] Exemplarily, based on step 203, write protection is added to the sda1 partition by echo 1> / sys / block / sda / sda1 / rw_mode, or the default write protection setting of the sda1 partition is restored by powering off and restarting.

[0071] Step 205: The first partition and the second partition of the storage space are synthesized into a user view through the Overlayfs file system.

[0072] Among them, in the user view, the production line calibration data in the first partition can be copied to the second partition for processing.

[0073] Exemplarily, based on step 204, sda2 is superimposed on sda1 partition through the overlay file system Overlayfs, and the implementation principle and effect are as follows: Figure 4 As shown. You can see the overlay view in the Overlayfs merge layer.

[0074] In some embodiments, after step 205, it also includes: outputting a user view; in response to a calibration instruction for the production line calibration data in the user view, performing online calibration on the production line calibration data copied from the first partition to obtain user data; and writing the obtained user data into the second partition in real time.

[0075] In some embodiments, the method of this embodiment further includes: in response to an instruction to restore the factory mode, clearing the user data written in the second partition and retaining the production line calibration data written in the first partition.

[0076] Exemplarily, based on step 204, sda2 is superimposed on sda1 partition through the overlay file system Overlayfs, and the implementation principle and effect are as follows: Figure 4 As shown in the figure, you can see the superimposed view in the Overlayfs merge layer. The overlay file system Overlayfs is completely transparent to the calibration application. The calibration program reads and writes the merged layer of Overlayfs, and sees the merged view. The actual data is stored in the sda2 partition. Figure 5 As shown in the figure, when the car is powered on, the online calibration scenario is triggered irregularly. The calibration program reads and writes the merged layer of Overlayfs. What is seen is the merged view. The actual data is written to the sda2 partition and the car is powered off.

[0077] For example, when the sda2 partition data is lost abnormally, the original calibration data of the production line will not be lost, and the autonomous driving perception function can work normally. During the use of the vehicle, if there is a need to restore the factory mode, you only need to clear the user data of the sda2 partition, which will not cause the loss of the original calibration data of the production line.

[0078] For example, during the use of the vehicle, if user data needs to be added online, the newly added user data will be saved in sda2. If user data needs to be changed online, the copied production line calibration data needs to be updated and the updated user data needs to be written to sda2. If user data needs to be deleted online, the copied production line calibration data needs to be deleted, a deletion tag is generated, and the deleted user data is written to sda2.

[0079] Compared with the current existing technology, the partition of this embodiment is set with a write protection attribute, and the partition write protection attribute can be turned on or off as needed. Without increasing the logic of the existing calibration program, the loss of production line calibration data can be fundamentally avoided. The production line calibration data will not be affected by the loss or damage of user data, and the first partition and the second partition of the storage space are synthesized into a user view through the Overlayfs file system. In the user view, the production line calibration data in the first partition can be copied to the second partition for processing, and then the production line calibration data can be calibrated online in the user view. During the calibration process, the production line calibration data copied from the first partition is processed, and the production line calibration data will not be lost due to misoperation, thereby fundamentally avoiding the loss of production line calibration data. The situation where the production line calibration data cannot be obtained due to the poor network status of the vehicle can be guaranteed to be used normally. In addition, since there is no need to download the data from the cloud server, the consumption of vehicle-side traffic is also saved.

[0080] Furthermore, in order to fully illustrate the specific implementation process of the method of this embodiment, this embodiment provides the following examples, but is not limited thereto.

[0081] First, plan two partitions in the storage space, such as sda1 and sda2. Sda1 is used to store production line calibration data, and sda2 is used to store user data. By default, sda1 is set to write protection and mounted in read-only mode. The method of setting write protection can be implemented by adding a flag in the device tree. The Linux kernel parses the flag during the startup phase and calls the set_disk_ro interface to set the partition write protection flag. The node that can change the partition write protection flag is exposed through the Linux Sysfs subsystem. For example, echo 0> / sys / block / sda / sda1 / rw_mode removes the write protection of the sda1 partition, and echo 1> / sys / block / sda / sda1 / rw_mode adds write protection to the sda1 partition. Through the overlay file system Overlayfs, sda2 is superimposed on the sda1 partition, and the superimposed view can be seen in the overlayfs merge layer.

[0082] During the factory calibration process, the write protection of the sda1 partition is removed through echo 0> / sys / block / sda / sda1 / rw_mode, and the sda1 partition is mounted as readable and writable through mount-o remount,rw, and the calibration data is written to the partition sda1. After the operation is completed, the power is turned off and restarted. The overlay file system Overlayfs is completely transparent to the calibration application. The calibration program reads and writes the merged layer of Overlayfs, and what it sees is the merged view. The actual data is stored in the sda2 partition.

[0083] When the sda2 partition data is lost abnormally, the original calibration data of the production line will not be lost, and the autonomous driving perception function can work normally. During the use of the vehicle, if there is a need to restore the factory mode, you only need to clear the user data of the sda2 partition, and the original calibration data of the production line will not be lost.

[0084] Compared with the current existing technology, the partition of this embodiment is set with a write protection attribute, and the partition write protection attribute can be turned on or off as needed. Without increasing the logic of the existing calibration program, the loss of production line calibration data can be fundamentally avoided. The production line calibration data will not be affected by the loss or damage of user data, and the first partition and the second partition of the storage space are synthesized into a user view through the Overlayfs file system. In the user view, the production line calibration data in the first partition can be copied to the second partition for processing, and then the production line calibration data can be calibrated online in the user view. During the calibration process, the production line calibration data copied from the first partition is processed, and the production line calibration data will not be lost due to misoperation, thereby fundamentally avoiding the loss of production line calibration data. The situation where the production line calibration data cannot be obtained due to the poor network status of the vehicle can be guaranteed to be used normally. In addition, since there is no need to download the data from the cloud server, the consumption of vehicle-side traffic is also saved.

[0085] Further, as Figure 1 The specific implementation of the method shown in the embodiment provides a processing device for production line calibration data, such as Figure 6 As shown, the device includes: an acquisition module 31, a writing module 32, a recovery module 33, and a synthesis module 34.

[0086] An acquisition module 31 is configured to acquire production line calibration data to be written into a first partition of a storage space, wherein the first partition is set to be write-protected;

[0087] A writing module 32 is configured to release the write protection of the first partition and write the production line calibration data into the first partition; and,

[0088] A recovery module 33 is configured to restore the write protection setting of the first partition

[0089] The synthesis module 34 is configured to synthesize the first partition and the second partition of the storage space into a user view through an Overlayfs file system, wherein in the user view, the production line calibration data in the first partition can be copied to the second partition for processing.

[0090] In a specific application scenario, the writing module 32 is specifically configured to obtain the write protection flag set for the first partition through the Sysfs subsystem; and release the write protection for the first partition based on the write protection flag.

[0091] In a specific application scenario, the recovery module 33 is specifically configured to perform write protection recovery on the first partition based on the write protection flag; or, perform write protection recovery on the first partition by powering off and restarting.

[0092] The synthesis module 34 is also configured to output the user view; in response to a calibration instruction for the production line calibration data in the user view, perform online calibration on the production line calibration data copied from the first partition to obtain user data; and write the obtained user data into the second partition in real time.

[0093] The synthesis module 34 is further configured to clear the user data written in the second partition and retain the production line calibration data written in the first partition in response to an instruction to restore the factory mode.

[0094] The acquisition module 31 is further configured to divide the storage space into the first partition and the second partition; set the operation permission of the first partition to write protection, and set the operation permission of the second partition to read and write.

[0095] It should be noted that for other corresponding descriptions of the functional units involved in the processing device for production line calibration data provided in this embodiment, reference can be made to Figure 1 and Figure 2 The corresponding description in will not be repeated here.

[0096] Based on the above Figure 1 and Figure 2 The method shown in the figure, accordingly, the embodiment of the present disclosure also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned Figure 1 and Figure 4 The method shown.

[0097] Based on this understanding, the technical solution of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of various implementation scenarios of the present disclosure.

[0098] Based on the above Figure 1 and Figure 2 The method shown, and Figure 6 In order to achieve the above-mentioned purpose, the embodiment of the present disclosure also provides an electronic device, which can be configured on a computer terminal, etc. The device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1 and Figure 2 The method shown.

[0099] In some embodiments, the above-mentioned physical device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may include a standard wired interface, a wireless interface (such as a WI-FI interface), etc. in some embodiments.

[0100] Those skilled in the art will appreciate that the above-mentioned physical device structure provided in the embodiments of the present disclosure does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different arrangements of components.

[0101] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the above-mentioned physical device, and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize the communication between the components inside the storage medium, and the communication with other hardware and software in the information processing physical device.

[0102] Based on the above electronic device, the embodiment of the present disclosure further provides a vehicle, which may specifically include: Figure 6 The device shown in the figure or the electronic device as described above. The vehicle can be a new energy vehicle or a traditional vehicle.

[0103] Through the description of the above disclosed implementation methods, the technical personnel in this field can clearly understand that the present disclosure can be implemented by means of software plus the necessary general hardware platform, or by hardware. By applying the scheme of the embodiment of the present disclosure, the partition is set with a write protection attribute, and the partition write protection attribute can be turned on or off as needed. Without increasing the logic of the existing calibration program, the loss of production line calibration data can be fundamentally avoided, and the production line calibration data will not be affected by the loss or damage of user data. In addition, the first partition and the second partition of the storage space are synthesized into a user view through the Overlayfs file system. In the user view, the production line calibration data in the first partition can be copied to the second partition for processing, and then the production line calibration data can be online calibrated in the user view. During the calibration process, the production line calibration data copied from the first partition is processed, and the production line calibration data will not be lost due to misoperation, thereby fundamentally avoiding the loss of production line calibration data. There will be no situation where the production line calibration data cannot be obtained due to the poor network status of the vehicle, and the normal use of the vehicle function can be guaranteed. In addition, since there is no need to download the data from the cloud server, the consumption of vehicle-side traffic is also saved.

[0104] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0105] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features applied herein.

Claims

1. A method for processing production line calibration data, characterized in that: include: Acquire production line calibration data of a first partition to be written into the storage space, where the first partition is write-protected; Unlocking the write protection of the first partition and writing the production line calibration data into the first partition; Restoring the write protection setting of the first partition; The first partition and the second partition of the storage space are synthesized into a user view through the Overlayfs file system, wherein in the user view, the production line calibration data in the first partition can be copied to the second partition for processing.

2. The method according to claim 1, characterized in that The releasing the write protection of the first partition includes: Obtaining the write protection flag set for the first partition through the Sysfs subsystem; The write protection of the first partition is released based on the write protection flag.

3. The method according to claim 2, characterized in that The restoring the write protection setting of the first partition includes: Perform write protection recovery on the first partition based on the write protection flag; or, By powering off and restarting, the write protection of the first partition is restored.

4. The method according to claim 1, characterized in that After synthesizing the first partition and the second partition of the storage space into a user view through the Overlayfs file system, the method further includes: outputting the user view; In response to a calibration instruction for the production line calibration data in the user view, online calibration is performed on the production line calibration data copied from the first partition to obtain user data; The obtained user data is written into the second partition in real time.

5. The method according to claim 4, characterized in that The method further comprises: In response to an instruction to restore the factory mode, the user data written in the second partition is cleared, and the production line calibration data written in the first partition is retained.

6. The method according to any one of claims 1 to 5, characterized in that Before obtaining the production line calibration data of the first partition to be written into the storage space, the method further includes: Dividing the storage space into the first partition and the second partition; The operation permission of the first partition is set to be write-protected, and the operation permission of the second partition is set to be readable and writable.

7. A processing device for production line calibration data, characterized in that: include: An acquisition module is configured to acquire production line calibration data to be written into a first partition, wherein the first partition is set to be write-protected; A writing module, configured to release the write protection of the first partition and write the production line calibration data into the first partition; and, A recovery module configured to restore the write protection setting of the first partition The synthesis module is configured to synthesize the first partition and the second partition into a user view through an Overlayfs file system, wherein in the user view, the production line calibration data in the first partition can be copied to the second partition for processing.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

9. An electronic device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.

10. A vehicle, characterized in that: include: The device as claimed in claim 7 or the electronic device as claimed in claim 9.