Data processing method, system and electronic device
By encrypting and decrypting partition configuration information of the removable storage media of the vehicle terminal, it ensures that only matching vehicles can read the upgrade package, solving the security and cost of the vehicle terminal software upgrade, and achieving high efficiency. Safe software upgrade.
Patent Information
- Application Number
- CN202111642251.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-29
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2041-12-29
AI Technical Summary
The existing vehicle terminal software upgrade method has security risks and high cost problems, especially in air download technology, where vehicle terminals are exposed to public networks for a long time, which increases the risk of hacker attacks and the upgrade cost and time when the software package is large. Higher cost.
By identifying the removable storage medium connected to the vehicle, loading its boot block to obtain the partition table, parsing the partition subtable to obtain partition configuration information, and loading the upgrade package in the target block group based on this information. This method ensures that only matching vehicles can decrypt and read the upgrade package, improving the security and efficiency of software upgrades.
This method improves the security and efficiency of on-board software upgrades, reduces the cost of secure data transmission, and can only read the upgrade package after decrypting and verifying the identification information of the received object, ensuring the security of the upgrade data.
Smart Images

Figure CN114329491B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and in particular to a data processing method, system and electronic device. Background Art
[0002] With the rapid development of electronic technology, cars are evolving from simple means of transportation to large-scale intelligent mobile terminals. Vehicle terminals are becoming more and more intelligent and integrated. Users are installing more and more software on vehicle terminals, which also makes the software updates on vehicle terminals more and more frequent.
[0003] At present, the software on the vehicle terminal is usually upgraded in the following two ways. The first is to upgrade the software on the vehicle terminal using Over The Air (OTA) technology, that is, the vehicle terminal sends an upgrade request to the server through the public network, the server sends the latest software package, and the vehicle terminal receives the latest software package and then upgrades. Since the vehicle terminal downloads and upgrades the software package from the server through the public network, the communication link between the vehicle terminal and the server is exposed to the public network for a long time during the download and upgrade period, resulting in an increased risk of hacker attacks on the vehicle terminal, affecting the security of the vehicle terminal. At the same time, when the software package is large, the price of vehicle traffic is relatively expensive and the network speed is limited, which greatly increases the financial cost and time cost of software upgrades. The second is to use an offline upgrade method, that is, users upgrade the software offline through 4S stores, but this upgrade method is inefficient and has poor user experience. Summary of the invention
[0004] In view of this, an object of the present application is to provide a data processing method, system and electronic device to overcome at least one of the above-mentioned defects.
[0005] In a first aspect, an embodiment of the present application provides a data processing method, including:
[0006] Identify removable storage media connected to the vehicle;
[0007] Loading a boot block of a removable storage medium to obtain a partition table of the removable storage medium, wherein the removable storage medium is divided into at least one block group, the partition table includes at least one partition sub-table, and each partition sub-table records partition configuration information of a corresponding block group;
[0008] Each partition sub-table is parsed in turn to obtain the partition configuration information corresponding to each partition sub-table, wherein the following parsing process is performed for each partition sub-table: identifying whether the content recorded in the partition sub-table is encrypted, and if encrypted, decrypting the encrypted content, and determining the decrypted content as the partition configuration information corresponding to the partition sub-table;
[0009] Based on the obtained partition configuration information corresponding to each partition sub-table, at least one block group is loaded.
[0010] Optionally, a target file provided only to the vehicle is stored in a target block group of at least one block group of the removable storage medium, and partition configuration information corresponding to the target block group is encrypted in advance.
[0011] Optionally, the pre-encrypted content includes partition configuration information corresponding to the target block group and identification information for indicating a receiving object of a removable storage medium, wherein the partition configuration information corresponding to each partition sub-table is obtained in the following manner: when it is identified that the content recorded in the partition sub-table is encrypted, the encrypted content is decrypted to obtain the partition configuration information corresponding to the partition sub-table and the identification information for indicating a receiving object of the removable storage medium; identity information for characterizing the identity of the vehicle is obtained; if the identity information matches the identification information, the partition configuration information corresponding to the partition sub-table is output.
[0012] Optionally, the identity information includes at least one of the following items: a unique identification code of the vehicle, a user identification for indicating ownership and / or use rights of the vehicle.
[0013] Optionally, the partition configuration information includes configuration parameters corresponding to multiple configuration information items, wherein the target configuration parameters corresponding to the target block group are pre-encrypted, and the target configuration parameters are configuration parameters of the target configuration information items in the partition configuration information corresponding to the target block group.
[0014] Optionally, the step of parsing each partition sub-table in turn to obtain the partition configuration information corresponding to each partition sub-table includes: for each partition sub-table, parsing each configuration information item in the partition sub-table in turn to obtain the configuration parameters corresponding to each configuration information item.
[0015] Optionally, the following parsing process is performed on each configuration information item: identifying whether the content recorded in the configuration information item is encrypted; if encrypted, decrypting the encrypted content and determining the decrypted content as the configuration parameter corresponding to the configuration information item; if not encrypted, directly determining the content recorded in the configuration information item as the configuration parameter corresponding to the configuration information item.
[0016] Optionally, the target file includes at least one upgrade package for the vehicle, all upgrade packages are stored in the same block group, or each upgrade package is stored in a corresponding block group, and / or the target file also includes at least one multimedia file provided by the vehicle manufacturer, the multimedia file includes at least one of the following types: pictures, videos, audios, all multimedia files are stored in the same block group, or each type of multimedia file is stored in a corresponding block group, wherein the target configuration parameters corresponding to the target block group storing the target file and the identification information for indicating the receiving object of the removable storage medium are pre-encrypted.
[0017] Optionally, the method further includes: after loading at least one block group, displaying the block group identifiers corresponding to each block group; receiving a selection operation for any block group identifier among a plurality of block group identifiers; and displaying the content stored in the block group corresponding to any selected block group identifier.
[0018] Optionally, the step of displaying the block group identifiers corresponding to each block group includes: distinguishing and displaying the block group identifiers corresponding to the block group storing the encrypted content.
[0019] Optionally, the content stored in the block group corresponding to any block group identifier includes a target upgrade program package, which also includes: receiving a selection operation for the target upgrade program package; determining the program identifier of the selected target upgrade program package; loading the upgrade program in the target upgrade program package to upgrade the software program corresponding to the program identifier in the vehicle.
[0020] Optionally, the partition configuration information corresponding to the target block group is encrypted in the following manner: target characteristic information for encryption is obtained, the target characteristic information being identification information for indicating a receiving object of a removable storage medium; the partition configuration information and the target characteristic information corresponding to the target block group are encrypted to obtain the encrypted partition configuration information corresponding to the target block group; and the partition configuration information in the partition subtable corresponding to the target block group in the partition table is updated based on the encrypted partition configuration information.
[0021] In a second aspect, an embodiment of the present application further provides a data processing system, which is applied in a vehicle, and includes:
[0022] An interface unit, used for connecting with a removable storage medium;
[0023] The processor is configured to perform the following processing: identifying a removable storage medium connected to an interface unit; loading a boot block of the removable storage medium to obtain a partition table of the removable storage medium, wherein the removable storage medium is divided into at least one block group, and the partition table includes at least one partition sub-table, and each partition sub-table records partition configuration information of a corresponding block group; parsing each partition sub-table in turn to obtain partition configuration information corresponding to each partition sub-table, wherein the following parsing processing is performed for each partition sub-table: identifying whether the content recorded in the partition sub-table is encrypted, and if encrypted, decrypting the encrypted content, and determining the decrypted content as the partition configuration information corresponding to the partition sub-table; and loading at least one block group based on the obtained partition configuration information corresponding to each partition sub-table.
[0024] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the above-mentioned data processing method are performed.
[0025] The embodiments of the present application bring the following beneficial effects:
[0026] A data processing method, system and electronic device provided in an embodiment of the present application ensure the security of transmission of a target file stored in a removable storage medium by encrypting partition configuration information.
[0027] In addition, the above data processing method does not require the use of equipment such as confidentiality boxes, effectively reducing the cost of secure data transmission.
[0028] In addition, in the case where a vehicle-mounted software upgrade package is stored in a removable storage medium, the vehicle-mounted software can be upgraded directly using the removable storage medium, thereby improving the efficiency of software upgrades.
[0029] In addition, the above data processing method allows the receiving object to read the upgrade package stored in the removable storage medium only after decrypting the encrypted partition configuration information and verifying the identification information of the receiving object, thereby ensuring the security of the upgrade data.
[0030] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0032] Figure 1 A flow chart showing a data processing method provided in an embodiment of the present application is shown;
[0033] Figure 2 A schematic diagram of the storage structure of a removable storage medium provided in an embodiment of the present application is shown;
[0034] Figure 3 A schematic diagram of the storage structure of the partition table provided in an embodiment of the present application is shown;
[0035] Figure 4 A schematic diagram showing the structure of a data processing system provided in an embodiment of the present application is shown;
[0036] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0037] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.
[0038] It is worth noting that before the present application was filed, with the rapid development of electronic technology, automobiles are evolving from simple means of transportation to large-scale intelligent mobile terminals, and vehicle terminals are becoming more and more intelligent and integrated. Users are installing more and more software on vehicle terminals, which also makes the software updates on vehicle terminals more and more frequent. At present, the software on the vehicle terminal is usually upgraded in the following two ways. The first is to upgrade the software on the vehicle terminal using Over The Air (OTA) technology, that is, the vehicle terminal sends an upgrade request to the server through the public network, the server sends the latest software package, and the vehicle terminal receives the latest software package and then upgrades it. Since the vehicle terminal downloads the software package from the server through the public network and upgrades it, during the download and upgrade period, the communication link between the vehicle terminal and the server is exposed to the public network for a long time, resulting in an increased risk of hacker attacks on the vehicle terminal, affecting the security of the vehicle terminal, especially when the car cannot communicate wirelessly, it is even more impossible to upgrade the vehicle software. At the same time, when the software package is large, the vehicle traffic price used by the remote upgrade technology is relatively expensive and the network speed is limited, which greatly increases the capital cost and time cost of upgrading the vehicle software. The second method is to use offline upgrade, that is, users upgrade the software offline through 4S stores, but this upgrade method has high time cost, low efficiency, and poor user experience.
[0039] Based on this, an embodiment of the present application provides a data processing method to improve the security and efficiency of software upgrades.
[0040] See also Figure 1 , Figure 1 This is a flow chart of a data processing method provided in an embodiment of the present application. Figure 1 As shown, the data processing method provided in the embodiment of the present application includes:
[0041] Step S101, identifying a removable storage medium connected to a vehicle.
[0042] In this step, the vehicle may refer to a car that can be connected to the removable storage medium and can identify the removable storage medium. As an example, the vehicle may be a smart car that can identify the removable storage medium.
[0043] The removable storage medium may refer to a carrier for storing data. Exemplarily, the removable storage medium includes, but is not limited to, any one of the following items: a mobile hard disk, a floppy disk, a CD, a USB flash drive, and a memory card.
[0044] In an embodiment of the present application, a removable storage medium is inserted into a USB interface of a smart car to realize a communication connection between the removable storage medium and the smart car. The smart car identifies the removable storage medium connected thereto and obtains relevant information of the removable storage medium.
[0045] It can be understood that using removable storage media as the storage medium for upgrade packages is not only inexpensive but also reusable, which reduces the financial cost of software upgrades. At the same time, it is not affected by the network communication environment, such as limited network speed and security environment, which improves the security and reliability of software upgrades and reduces the time cost of software upgrades.
[0046] Step S102: loading the boot block of the removable storage medium to obtain a partition table of the removable storage medium.
[0047] In this step, the removable storage medium is divided into at least one block group, and the partition table includes at least one partition sub-table, and each partition sub-table records the partition configuration information of a corresponding block group.
[0048] Refer to the following Figure 2 To introduce the storage structure of removable storage media.
[0049] Figure 2 The storage structure diagram of the removable storage medium provided in the embodiment of the present application is shown. It should be understood that Figure 2 The storage structure of the removable storage medium shown is only an example and the present application is not limited thereto.
[0050] like Figure 2 As shown, the removable storage medium is divided into a primary boot block, block group 1, block group 2, block group 3, block group 4 and a secondary boot block. Block group 1 to block group 4 are 4 partitions for storing data. The primary boot block is used to store a boot program and a partition table. The boot program is a program for booting an operating system. The secondary boot block is a backup of the primary boot block and is used to restore the content in the primary boot block when an abnormality occurs in the data in the primary boot block. The secondary boot block also stores a boot program and a partition table.
[0051] A block group can refer to a storage area in a removable storage medium. A block group is used to store data, such as a smart car's onboard software upgrade package and multimedia files. Here, a block group can be understood as a partition. The hard disk in a home computer is divided into multiple partitions. For example, the C drive and the D drive are different partitions.
[0052] The partition table is used to record the configuration information of the block group. The partition table includes at least one partition sub-table. Each partition sub-table corresponds to a block group and is used to record the partition configuration information of the block group. It can be understood that the removable storage medium is divided into several block groups, and there are several partition sub-tables corresponding to them.
[0053] The partition configuration information may refer to identification information of a block group, and the partition configuration information includes configuration parameters corresponding to a plurality of configuration information items.
[0054] Refer to the following Figure 3 To introduce the storage structure of the partition table.
[0055] Figure 3 The following is a schematic diagram showing the storage structure of the partition table provided in the embodiment of the present application. It should be understood that Figure 3 The partition table shown is only an example and the present application is not limited thereto.
[0056] like Figure 3 As shown in the figure, the partition table includes 4 partition sub-tables, namely, partition sub-table 1, partition sub-table 2, partition sub-table 3 and partition sub-table 4. Each partition sub-table records multiple partition configuration information, and each partition configuration information includes multiple configuration information items. Here, taking partition sub-table 3 as an example, multiple configuration information items include: active partition u8 boot_ind, partition starting head number u8head, partition starting sector number u8 sector, partition starting cylinder number u8 cyl, partition format u8sys_ind, end head number u8 end_head, end sector number u8 end_sector, end cylinder number u8 end_cyl, partition starting relative sector number u32 start_sect, and partition total number of sectors u32nr_sects. Each configuration information item has corresponding configuration parameters.
[0057] The boot block may refer to a storage area in the removable storage medium where a partition table is stored.
[0058] In an embodiment of the present application, the smart car can obtain the partition table stored in the boot block of the removable storage medium by loading the boot block of the removable storage medium.
[0059] It can be seen that the present application obtains the partition table, that is, the identification information of the block group, rather than the data stored in the removable storage medium block group, such as the upgrade program package. Since the content recorded in the partition table is less, the processing efficiency of the program can be improved.
[0060] In an optional embodiment, a target file provided only to the vehicle is stored in a target block group of at least one block group of the removable storage medium, and partition configuration information corresponding to the target block group is encrypted in advance.
[0061] Here, the target file may refer to a file stored in the target block group that can be read only by the target vehicle.
[0062] To prevent other vehicles from reading the contents of the target file, the partition configuration information corresponding to the target block group stored in the target file has been encrypted. Only the target vehicle can decrypt the partition configuration information corresponding to the target block group and read the contents of the target block group after decryption.
[0063] It can be seen that by encrypting the partition configuration information of the target block group in the removable storage medium, it can be ensured that the removable storage medium can be read by the target vehicle, thereby improving the security of software upgrade.
[0064] Step S103: parse each partition sub-table in turn to obtain the partition configuration information corresponding to each partition sub-table.
[0065] In this step, since the partition configuration information of the target block group is stored in the partition sub-table corresponding to the target block group, if you want to decrypt the partition configuration information corresponding to the target block group, you need to first parse the partition sub-table where the partition configuration information is located to obtain the partition configuration information corresponding to the target block group.
[0066] In the embodiment of the present application, since the removable storage medium is divided into at least one block group, there is at least one partition sub-table correspondingly, and each partition sub-table needs to be parsed separately. Here, the following parsing process is performed for each partition sub-table: identify whether the content recorded in the partition sub-table is encrypted, and if encrypted, decrypt the encrypted content, and determine the decrypted content as the partition configuration information corresponding to the partition sub-table.
[0067] It can be seen that the object of decryption is the partition configuration information, not the target file. The partition configuration information can be only a configuration parameter in the partition sub-table. Therefore, when decrypting, the processing efficiency of the program is also high.
[0068] In an optional embodiment, the pre-encrypted content includes partition configuration information corresponding to the target block group and identification information for indicating a receiving object of a removable storage medium, wherein the partition configuration information corresponding to each partition sub-table is obtained in the following manner: when it is identified that the content recorded in the partition sub-table is encrypted, the encrypted content is decrypted to obtain the partition configuration information corresponding to the partition sub-table and the identification information for indicating a receiving object of the removable storage medium; identity information for characterizing the identity of the vehicle is obtained; if the identity information matches the identification information, the partition configuration information corresponding to the partition sub-table is output.
[0069] Here, the identity information may refer to the identity information of the vehicle, and the identity information includes at least one of the following items: a unique identification code of the vehicle, and a user identification for indicating the ownership and / or use right of the vehicle.
[0070] The unique identification code of a vehicle may be referred to as a Vehicle Identification Number (VIN).
[0071] The user identification includes at least one of the following items: the user's mobile phone number and the user's name.
[0072] It can be seen that after decrypting the encrypted content, the identification information of the receiving object obtained by decryption must be compared with the identity information of the vehicle to ensure that the vehicle reading the target file is a vehicle that matches the identification information stored in the removable storage medium and that the identification information is encrypted.
[0073] It is understandable that if you want to read the target file, you need to go through two verifications. The first is to decrypt the encrypted content in the removable storage medium, that is, to decrypt the partition configuration information, and the second is to match the identity information of the receiving object with the identification information stored in the removable storage medium obtained by decryption. It can be seen that only when all vehicles pass the two verifications can the target file be read, and the receiving object can be accurately verified.
[0074] It should be noted that when decrypting the encrypted content in the partition sub-table, if a secret key is needed for decryption, the secret key can be sent to the receiving object in advance through OTA technology. Here, taking the receiving object as a smart car as an example, after the vehicle manufacturer uses the secret key to encrypt the content in the partition sub-table of the removable storage medium, the secret key can be sent to the target vehicle that receives the removable storage medium through OTA technology, so that the target vehicle automatically obtains the secret key when decrypting the content in the encrypted partition sub-table to decrypt the encrypted content.
[0075] In an optional embodiment, the partition configuration information includes configuration parameters corresponding to multiple configuration information items, wherein the target configuration parameters corresponding to the target block group are pre-encrypted, and the target configuration parameters are the configuration parameters of the target configuration information items in the partition configuration information corresponding to the target block group.
[0076] Here, the configuration information item may refer to a configuration item in a partition sub-table.
[0077] The target configuration information item may refer to at least one configuration information item selected from a plurality of configuration information items, for example, a partition format is selected as the target configuration information item.
[0078] The configuration parameter may refer to a specific value of a configuration information item. Taking the partition format as an example of a configuration information item, the configuration parameter may be FAT12 or SFS.
[0079] In an optional embodiment, executing step S103 includes: for each partition sub-table, parsing each configuration information item in the partition sub-table in turn to obtain configuration parameters corresponding to each configuration information item.
[0080] Here, since it is impossible to predict which configuration information item in which partition subtable is encrypted, it is necessary to traverse each configuration information item in each partition subtable to determine the specific location of the encrypted configuration information item. Each time it is determined that a configuration parameter corresponding to a configuration information item is encrypted, the configuration parameter is decrypted.
[0081] In an optional embodiment, the following parsing process is performed on each configuration information item: identifying whether the content recorded in the configuration information item is encrypted; if encrypted, decrypting the encrypted content and determining the decrypted content as the configuration parameter corresponding to the configuration information item; if not encrypted, directly determining the content recorded in the configuration information item as the configuration parameter corresponding to the configuration information item.
[0082] Here, it is identified whether the content recorded in the configuration information item is encrypted, that is, it is identified whether the configuration parameters in the configuration information item are encrypted. It can be understood that if the configuration parameters are encrypted, the encrypted configuration parameters are different from the unencrypted configuration parameters, and it can be verified by matching rules whether the configuration parameters are encrypted.
[0083] Whether the configuration parameters corresponding to each configuration information item in each partition subtable are encrypted can be determined through the following processing: obtaining a matching rule, the matching rule including location information; determining two sets of target data based on the location information in the matching rule, each set of target data in the two sets of target data is data intercepted from the configuration parameters; determining whether the two sets of target data comply with the matching rule; if it is determined that the two sets of target data comply with the matching rule, determining that the configuration parameters corresponding to the two sets of target data are encrypted; if it is determined that the two sets of target data do not comply with the matching rule, determining that the configuration parameters corresponding to the two sets of target data are not encrypted.
[0084] In the embodiment of the present application, taking the encryption of the partition information in the removable storage medium by the vehicle manufacturer as an example, the vehicle manufacturer can determine the character arrangement characteristics of the encrypted partition configuration information according to the combination rule of the encryption algorithm, the partition configuration information and the identification information of the receiving object, determine the matching rules based on the character arrangement characteristics, and send the matching rules to the vehicle-mounted software system of the target vehicle corresponding to the removable storage medium through OTA technology, or pre-set in the target vehicle before the smart car leaves the factory, and then when the target vehicle decrypts the partition configuration information in the removable storage medium, it is determined whether the partition configuration information is encrypted according to the received matching rules. If it is determined that the partition configuration information is encrypted, the encrypted partition configuration information is decrypted using a preset decryption algorithm, and if the decryption is successful, the decrypted content is determined as the configuration parameter corresponding to the configuration information item. In this way, all encrypted configuration parameters in the partition subtable are decrypted to obtain a partition subtable that can be identified, so that the block group corresponding to the partition subtable can be loaded by the target vehicle to use the target file in the block group for software upgrade. Among them, the decryption algorithm can also be sent to the target vehicle through OTA technology, or set in the vehicle-mounted system of the target vehicle before the target vehicle leaves the factory.
[0085] It should be noted that the decrypted content includes not only configuration parameters, but also identification information of the receiving object. It is necessary to extract the configuration parameters and identification information from the decrypted content according to the preset combination rules, and use the extracted identification information to verify the target vehicle.
[0086] At the same time, the matching rule can be to determine whether the two sets of target data are the same, or to determine whether the difference between the two sets of target data is a preset value. Technical personnel in this field can determine the specific matching rule based on actual conditions, and this application does not limit it here.
[0087] In an optional embodiment, the target file includes at least one upgrade package for the vehicle, all upgrade packages are stored in the same block group, or each upgrade package is stored in a corresponding block group, and / or the target file also includes at least one multimedia file provided by the manufacturer of the vehicle, the multimedia file includes at least one of the following types: pictures, videos, audios, all multimedia files are stored in the same block group, or each type of multimedia file is stored in a corresponding block group, wherein the target configuration parameters corresponding to the target block group storing the target file and the identification information for indicating the receiving object of the removable storage medium are pre-encrypted.
[0088] Here, the target file can be an upgrade package used by the vehicle when upgrading the on-board software, or it can be a multimedia file. The target file can be stored in one block group or in multiple block groups. Technical personnel in this field can determine the location where the target file is stored based on actual conditions, and this application does not limit this.
[0089] Step S104: loading at least one block group based on the obtained partition configuration information corresponding to each partition sub-table.
[0090] In this step, after parsing each partition sub-table, the removable storage medium is loaded to display the block group identifier of the removable storage medium.
[0091] In an optional embodiment, the method further includes: after loading at least one block group, displaying the block group identifiers corresponding to each block group; receiving a selection operation for any block group identifier among a plurality of block group identifiers; and displaying the content stored in the block group corresponding to any selected block group identifier.
[0092] Here, the block group identifier may refer to identification information of the block group, and the block group identifier is used to distinguish different block groups.
[0093] Exemplarily, the block group identification includes but is not limited to at least one of the following items: a block group name, a block group icon, and a block group size.
[0094] In an embodiment of the present application, the owner of the smart car can click on the block group to be viewed through the touch screen, and the content stored in the selected block group will be displayed on the screen for the owner to view.
[0095] In an optional embodiment, the step of displaying the block group identifiers corresponding to each block group includes: distinguishing and displaying the block group identifiers corresponding to the block group storing the encrypted content.
[0096] Here, if the removable storage medium does not match the vehicle identification code of the smart car, and / or the removable storage medium does not match the identity information of the owner of the smart car, the encrypted partition information in the removable storage medium cannot be decrypted. Therefore, the smart car will display the block group identifier corresponding to the block group of the encrypted content to remind the owner that the removable storage medium does not match the smart car or the owner's identity information, and the data stored in the block group corresponding to the encrypted content cannot be read. At the same time, the owner can also be reminded that the removable storage medium does not match the smart car or the owner's identity information by popping up a prompt message.
[0097] In an optional embodiment, the content stored in the block group corresponding to any block group identifier includes a target upgrade program package, which also includes: receiving a selection operation for the target upgrade program package; determining the program identifier of the selected target upgrade program package; loading the upgrade program in the target upgrade program package to upgrade the software program corresponding to the program identifier in the vehicle.
[0098] Here, the program identifier may refer to a version number of the upgrade program package, and the program identifier is used to determine version information corresponding to the upgrade program package.
[0099] Taking the target file as an upgrade package as an example, after successfully decrypting the partition configuration information in the removable storage medium, the content in the target block group in the removable storage medium can be read. At this time, the user can select the upgrade package to upgrade the vehicle software.
[0100] In an optional embodiment, the partition configuration information corresponding to the target block group is encrypted in the following manner: obtaining target characteristic information for encryption; encrypting the partition configuration information and target characteristic information corresponding to the target block group to obtain the encrypted partition configuration information corresponding to the target block group; and updating the partition configuration information in the partition sub-table corresponding to the target block group in the partition table based on the encrypted partition configuration information.
[0101] Here, the target characteristic information may refer to identification information, which is identification information used to indicate a receiving object of the removable storage medium.
[0102] The receiving object includes at least one of the following items: a target vehicle for receiving storage content in a removable storage medium, a user having ownership and / or use rights of the target vehicle, and the identification information includes at least one of the following items: a unique identification code of the target vehicle, a user identification for characterizing the user.
[0103] In the embodiment of the present application, the vehicle manufacturer can use the target feature information to encrypt the partition configuration information in the removable storage medium, and replace the partition configuration information in the partition sub-table corresponding to the target block group in the partition table with the encrypted partition configuration information. In this way, when the receiving object reads the removable storage medium, it must be decrypted, otherwise it will not be able to obtain the content stored in the removable storage medium.
[0104] Compared with the data processing method in the prior art, the present application can directly use removable storage media to upgrade vehicle-mounted software, thereby reducing upgrade costs and improving upgrade efficiency. At the same time, the receiving object is allowed to read the upgrade package stored in the removable storage medium only after the encrypted partition configuration information is decrypted and the identification information of the receiving object is verified, thereby ensuring the security of the upgrade data and solving the problems of poor software upgrade security and high software upgrade cost during the vehicle-mounted software upgrade process.
[0105] Based on the same inventive concept, a data processing system corresponding to the data processing method is also provided in the embodiment of the present application. Since the principle of solving the problem by the system in the embodiment of the present application is similar to the above-mentioned data processing method in the embodiment of the present application, the implementation of the system can refer to the implementation of the method, and the repeated parts will not be repeated.
[0106] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of a data processing system provided in an embodiment of the present application. Figure 4 As shown, the data processing system 200 includes:
[0107] An interface unit 201, used for connecting to a removable storage medium;
[0108] The processor 202 is configured to perform the following processing: identifying a removable storage medium connected to the interface unit; loading a boot block of the removable storage medium to obtain a partition table of the removable storage medium, wherein the removable storage medium is divided into at least one block group, and the partition table includes at least one partition sub-table, and each partition sub-table records partition configuration information of a corresponding block group; parsing each partition sub-table in turn to obtain partition configuration information corresponding to each partition sub-table, wherein the following parsing processing is performed for each partition sub-table: identifying whether the content recorded in the partition sub-table is encrypted, and if encrypted, decrypting the encrypted content, and determining the decrypted content as the partition configuration information corresponding to the partition sub-table; and loading at least one block group based on the obtained partition configuration information corresponding to each partition sub-table.
[0109] Optionally, a target file provided only to the vehicle is stored in a target block group of at least one block group of the removable storage medium, and partition configuration information corresponding to the target block group is pre-encrypted.
[0110] Optionally, the pre-encrypted content includes partition configuration information corresponding to the target block group and identification information for indicating a receiving object of the removable storage medium, wherein the processor 202 obtains the partition configuration information corresponding to each partition sub-table in the following manner: when it is identified that the content recorded in the partition sub-table is encrypted, the encrypted content is decrypted to obtain the partition configuration information corresponding to the partition sub-table and the identification information for indicating a receiving object of the removable storage medium; identity information for characterizing the identity of the vehicle is obtained; if the identity information matches the identification information, the partition configuration information corresponding to the partition sub-table is output.
[0111] Optionally, the identity information may include at least one of the following items: a unique identification code of the vehicle, a user identification for indicating ownership and / or use rights of the vehicle.
[0112] Optionally, the partition configuration information may include configuration parameters corresponding to multiple configuration information items, wherein the target configuration parameters corresponding to the target block group are pre-encrypted, and the target configuration parameters are configuration parameters of the target configuration information items in the partition configuration information corresponding to the target block group.
[0113] Optionally, the processor 202 is further configured to perform the following processing: for each partition sub-table, parse each configuration information item in the partition sub-table in turn to obtain configuration parameters corresponding to each configuration information item.
[0114] Optionally, the processor 202 performs the following parsing processing on each configuration information item: identifying whether the content recorded in the configuration information item is encrypted; if encrypted, decrypting the encrypted content and determining the decrypted content as the configuration parameter corresponding to the configuration information item; if not encrypted, directly determining the content recorded in the configuration information item as the configuration parameter corresponding to the configuration information item.
[0115] Optionally, the target file may include at least one upgrade package for the vehicle, all upgrade packages are stored in the same block group, or each upgrade package is stored in a corresponding block group, and / or the target file also includes at least one multimedia file provided by the vehicle manufacturer, the multimedia file includes at least one of the following types: pictures, videos, audios, all multimedia files are stored in the same block group, or each type of multimedia file is stored in a corresponding block group, wherein the target configuration parameters corresponding to the target block group storing the target file and the identification information for indicating the receiving object of the removable storage medium are pre-encrypted.
[0116] Optionally, the data processing system 200 also includes a display (not shown in the figure), which performs the following processing: after loading at least one block group, displaying the block group identifiers corresponding to each block group; receiving a selection operation for any block group identifier among multiple block group identifiers; and displaying the content stored in the block group corresponding to any selected block group identifier.
[0117] Optionally, the display further performs the following processing: distinctively displaying the block group identifiers corresponding to the block groups storing the encrypted content.
[0118] Optionally, the content stored in the block group corresponding to any block group identifier includes a target upgrade program package, wherein the processor 202 is further configured to perform the following processing: receiving a selection operation for the target upgrade program package; determining the program identifier of the selected target upgrade program package; loading the upgrade program in the target upgrade program package to upgrade the software program corresponding to the program identifier in the vehicle.
[0119] Optionally, the processor 202 encrypts the partition configuration information corresponding to the target block group in the following manner: obtaining target feature information for encryption, the target feature information being identification information for indicating a receiving object of a removable storage medium; encrypting the partition configuration information and the target feature information corresponding to the target block group to obtain encrypted partition configuration information corresponding to the target block group; and updating the partition configuration information in the partition sub-table corresponding to the target block group in the partition table based on the encrypted partition configuration information.
[0120] See also Figure 5 , Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 5 As shown in , the electronic device 300 includes a processor 310 , a memory 320 and a bus 330 .
[0121] The memory 320 stores machine-readable instructions executable by the processor 310. When the electronic device 300 is running, the processor 310 communicates with the memory 320 via the bus 330. When the machine-readable instructions are executed by the processor 310, the above-mentioned Figure 1 The steps of the data processing method in the method embodiment shown and the specific implementation methods can be found in the method embodiment, which will not be repeated here.
[0122] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0123] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0124] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0125] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0126] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0127] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A data processing method, characterized in that: include: Identify removable storage media connected to the vehicle; Loading the boot block of the removable storage medium to obtain a partition table of the removable storage medium, wherein the removable storage medium is divided into at least one block group, and the partition table includes at least one partition sub-table, and each partition sub-table records partition configuration information of a corresponding block group; Each partition sub-table is parsed in turn to obtain the partition configuration information corresponding to each partition sub-table, wherein the following parsing process is performed for each partition sub-table: identifying whether the content recorded in the partition sub-table is encrypted, and if encrypted, decrypting the encrypted content, and determining the decrypted content as the partition configuration information corresponding to the partition sub-table; Based on the obtained partition configuration information corresponding to each partition sub-table, loading the at least one block group; A target file provided only to the vehicle is stored in a target block group of the at least one block group of the removable storage medium, and partition configuration information corresponding to the target block group is encrypted in advance; The pre-encrypted content includes the partition configuration information corresponding to the target block group and the identification information for indicating the receiving object of the removable storage medium. The partition configuration information corresponding to each partition sub-table is obtained in the following way: When it is identified that the content recorded in the partition sub-table is encrypted, the encrypted content is decrypted to obtain the partition configuration information corresponding to the partition sub-table and the identification information for indicating the receiving object of the removable storage medium; Acquiring identity information for characterizing the identity of the vehicle; If the identity information matches the identification information, then outputting the partition configuration information corresponding to the partition sub-table; The identity information includes at least one of the following: a unique identification code of the vehicle, a user identification indicating ownership and / or use rights of the vehicle; The partition configuration information includes configuration parameters corresponding to multiple configuration information items. The target configuration parameters corresponding to the target block group are pre-encrypted, and the target configuration parameters are configuration parameters of the target configuration information items in the partition configuration information corresponding to the target block group.
2. The method according to claim 1, characterized in that The steps of parsing each partition sub-table in turn to obtain the partition configuration information corresponding to each partition sub-table include: For each partition sub-table, each configuration information item in the partition sub-table is parsed in turn to obtain configuration parameters corresponding to each configuration information item.
3. The method according to claim 2, characterized in that The following parsing process is performed for each configuration information item: Identify whether the content recorded in the configuration information item is encrypted; If encrypted, decrypt the encrypted content and determine the decrypted content as the configuration parameter corresponding to the configuration information item; If it is not encrypted, the content recorded in the configuration information item is directly determined as the configuration parameter corresponding to the configuration information item.
4. The method according to claim 1, characterized in that: The target file includes at least one upgrade package for the vehicle, all upgrade packages are stored in the same block group, or each upgrade package is stored in a corresponding block group. And / or, the target file further includes at least one multimedia file provided by the manufacturer of the vehicle, the multimedia file includes at least one of the following types: picture, video, audio, all multimedia files are stored in the same block group, or each type of multimedia file is stored in a corresponding block group respectively, The target configuration parameters corresponding to the target block group storing the target file and the identification information for indicating the receiving object of the removable storage medium are encrypted in advance.
5. The method according to claim 4, characterized in that Also includes: After loading the at least one block group, displaying a block group identifier corresponding to each block group; receiving a selection operation on any block group identifier among a plurality of block group identifiers; The content stored in the block group corresponding to any selected block group identifier is displayed.
6. The method according to claim 5, characterized in that The step of displaying the block group identifier corresponding to each block group includes: The block group identifiers corresponding to the block groups storing the encrypted content are displayed in a distinguishable manner.
7. The method according to claim 6, characterized in that The content stored in the block group corresponding to any block group identifier includes the target upgrade program package, Among them, it also includes: receiving a selection operation on the target upgrade program package; Determine the program identifier of the selected target upgrade program package; The upgrade program in the target upgrade program package is loaded to upgrade the software program corresponding to the program identifier in the vehicle.
8. The method according to claim 1, characterized in that The partition configuration information corresponding to the target block group is encrypted in the following manner: Acquire target characteristic information for encryption, wherein the target characteristic information is identification information for indicating a receiving object of the removable storage medium; Encrypting the partition configuration information corresponding to the target block group and the target characteristic information to obtain the encrypted partition configuration information corresponding to the target block group; The partition configuration information in the partition sub-table corresponding to the target block group in the partition table is updated based on the encrypted partition configuration information.
9. A data processing system, characterized in that: Used in vehicles, including: An interface unit, used for connecting with a removable storage medium; A processor is configured to perform the following processing: identifying a removable storage medium connected to the interface unit; Loading the boot block of the removable storage medium to obtain a partition table of the removable storage medium, wherein the removable storage medium is divided into at least one block group, and the partition table includes at least one partition sub-table, and each partition sub-table records partition configuration information of a corresponding block group; Each partition sub-table is parsed in turn to obtain the partition configuration information corresponding to each partition sub-table, wherein the following parsing process is performed for each partition sub-table: identifying whether the content recorded in the partition sub-table is encrypted, and if encrypted, decrypting the encrypted content, and determining the decrypted content as the partition configuration information corresponding to the partition sub-table; Based on the obtained partition configuration information corresponding to each partition sub-table, loading the at least one block group; A target file provided only to the vehicle is stored in a target block group of the at least one block group of the removable storage medium, and partition configuration information corresponding to the target block group is encrypted in advance; The pre-encrypted content includes the partition configuration information corresponding to the target block group and the identification information for indicating the receiving object of the removable storage medium. The partition configuration information corresponding to each partition sub-table is obtained in the following way: When it is identified that the content recorded in the partition sub-table is encrypted, the encrypted content is decrypted to obtain the partition configuration information corresponding to the partition sub-table and the identification information for indicating the receiving object of the removable storage medium; Acquiring identity information for characterizing the identity of the vehicle; If the identity information matches the identification information, then outputting the partition configuration information corresponding to the partition sub-table; The identity information includes at least one of the following: a unique identification code of the vehicle, a user identification indicating ownership and / or use rights of the vehicle; The partition configuration information includes configuration parameters corresponding to multiple configuration information items. The target configuration parameters corresponding to the target block group are pre-encrypted, and the target configuration parameters are configuration parameters of the target configuration information items in the partition configuration information corresponding to the target block group.
10. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the storage medium communicate via the bus, and the processor executes the machine-readable instructions to perform the steps of the data processing method as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Software upgrading method and apparatus
CN106484450A
USB flash disk system authentication method and device, electronic equipment and storage medium
CN112613011A