Tire pressure sensor chip verification method, device, equipment and medium
By dividing the tire pressure sensor chip into regions and performing secondary CRC verification, the problem of duplicate verification values is solved, the probability of correct operation of the sensor is improved, and the integrity and accuracy of the data are ensured.
Patent Information
- Application Number
- CN202410741877.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-08-30
AI Technical Summary
There is a possibility of duplication of verification values during the existing tire pressure sensor chip verification process, resulting in the sensor being unable to operate correctly after programming.
By dividing the verification area of the tire pressure sensor chip into regions, using the CRC data verification method for preliminary verification, the first verification value is obtained, and the second verification value is obtained through the second CRC verification, and compared with the preset Chip verification value to determine whether the chip passes verification.
It reduces the possibility of duplication of verification values, improves the probability of correct operation of the sensor after programming, ensures sufficient verification of the verification area data, and prevents programming errors and sensor operation errors caused by insufficient verification.
Smart Images

Figure CN118565710A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of sensor technology, and in particular to a tire pressure sensor chip calibration method, device, equipment and medium. Background Art
[0002] The tire pressure sensors currently on the market need to be programmed using special equipment before use, and the sensor verification area needs to be verified during the programming process. If the verification passes, only the data outside the verification area needs to be programmed. If it fails, the entire APP area will be programmed. The APP area is an area inside the sensor chip (a part of which stores fixed data, called the verification area) used to store data written by special tools.
[0003] The commonly used verification method is to perform CRC (Cyclic Redundancy Check) verification on the verification area, and the CRC16 verification can only obtain 65536 values. That is to say, during the verification process, there is a probability that the data in the verification area is different, but the values obtained by the CRC16 verification are the same. If the values are the same, the programming of the verification area will be omitted. However, the data that needs to be programmed in this area is different from the verification area inside the sensor. Then the sensor will not be able to operate correctly after programming.
[0004] In summary, how to reduce the possibility of verification value duplication during the tire pressure sensor chip verification process and increase the probability of correct operation of the sensor after programming is a technical problem to be solved in this field. Summary of the invention
[0005] In view of this, the purpose of the present invention is to provide a tire pressure sensor chip verification method, device, equipment and medium, which can reduce the possibility of verification value duplication during the tire pressure sensor chip verification process and increase the probability of correct operation of the sensor after programming. The specific scheme is as follows:
[0006] In a first aspect, the present application discloses a tire pressure sensor chip calibration method, comprising:
[0007] Dividing the chip verification area of the tire pressure sensor chip into regions to obtain a plurality of regions to be verified;
[0008] Performing area verification on each of the areas to be verified according to a preset data verification method to obtain a number of corresponding first verification values;
[0009] Performing a second verification on all the first verification values according to the preset data verification method to obtain a second verification value;
[0010] The second verification value is compared with the preset chip verification value. If the comparison results are consistent, it indicates that the tire pressure sensor chip has passed the verification. If the comparison results are inconsistent, it indicates that the tire pressure sensor chip has failed the verification.
[0011] Optionally, the chip verification area of the tire pressure sensor chip is divided into regions to obtain a plurality of regions to be verified, including:
[0012] Select any area division rule as the preset area division rule according to the actual tire pressure sensor chip verification requirements and chip application scenarios;
[0013] The chip verification area of the tire pressure sensor chip is divided into regions according to the preset region division rule to obtain a plurality of regions to be verified.
[0014] Optionally, before selecting any area division rule as the preset area division rule according to the actual tire pressure sensor chip verification requirements and the chip application scenario, the method further includes:
[0015] Setting a zone division rule for dividing the chip verification area into zones according to the usage functions of each chip verification area;
[0016] Setting a regional division rule for dividing the chip verification area according to vehicle models;
[0017] An area division rule is set for dividing the chip verification area according to the verification data type.
[0018] Optionally, performing area verification on each of the to-be-verified areas according to a preset data verification method to obtain a plurality of corresponding first verification values includes:
[0019] A CRC data verification method is adopted and each of the to-be-verified areas is verified through loop and bit operations to obtain a plurality of corresponding first verification values.
[0020] Optionally, the adopting of the CRC data verification method and performing area verification on each of the to-be-verified areas through loop and bit operations to obtain a plurality of corresponding first verification values includes:
[0021] Select CRC16 algorithm as the data verification algorithm and determine the initial verification value;
[0022] The data to be verified in the area to be verified is read bit by bit; the data to be verified is XORed with the initial verification value, and the XOR calculation result is stored back in the initial verification value to obtain a process verification value;
[0023] Shift the process check value right by one bit, and fill the highest bit of the process check value after the shift with 0 to obtain the current bit that has been shifted out;
[0024] Determine whether the current bit is 0, if so, execute the step of reading the data to be checked in the area to be checked bit by bit; if not, perform an XOR operation on the current bit and A001H;
[0025] The step of reading the data to be verified in the area to be verified bit by bit is performed until all the data to be verified in the area to be verified are processed to obtain a first verification value corresponding to each area to be verified.
[0026] Optionally, determining the initial check value includes:
[0027] Set 0xFFFFH as the initial check value.
[0028] Optionally, comparing the second verification value with a preset chip verification value, if the comparison results are consistent, it indicates that the tire pressure sensor chip has passed the verification; if the comparison results are inconsistent, it indicates that the tire pressure sensor chip has failed the verification, includes:
[0029] The second verification value is compared with the preset chip verification value. If the comparison results are consistent, it indicates that the tire pressure sensor chip has passed the verification, and then a data writing process of other areas of the tire pressure sensor chip except the area to be verified is started;
[0030] If the comparison result is inconsistent, indicating that the tire pressure sensor chip has failed the verification, a process of writing all data of the tire pressure sensor chip is started.
[0031] In a second aspect, the present application discloses a tire pressure sensor chip verification device, comprising:
[0032] A region division module is used to divide the chip verification area of the tire pressure sensor chip into regions to obtain a number of regions to be verified;
[0033] A region verification module, used for performing region verification on each of the regions to be verified according to a preset data verification method to obtain a plurality of corresponding first verification values;
[0034] A secondary verification module, used for performing secondary verification on all the first verification values according to the preset data verification method to obtain a second verification value;
[0035] The verification comparison module is used to compare the second verification value with a preset chip verification value. If the comparison result is consistent, it indicates that the tire pressure sensor chip has passed the verification; if the comparison result is inconsistent, it indicates that the tire pressure sensor chip has failed the verification.
[0036] In a third aspect, the present application discloses an electronic device, comprising:
[0037] Memory, used to store computer programs;
[0038] The processor is used to execute the computer program to implement the steps of the tire pressure sensor chip calibration method disclosed above.
[0039] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the tire pressure sensor chip calibration method disclosed above are implemented.
[0040] It can be seen that the present application discloses a tire pressure sensor chip verification method, including: dividing the chip verification area of the tire pressure sensor chip into regions to obtain a number of regions to be verified; performing regional verification on each of the regions to be verified according to a preset data verification method to obtain a number of corresponding first verification values; performing secondary verification on all the first verification values according to the preset data verification method to obtain a second verification value; comparing the second verification value with the preset chip verification value, if the comparison result is consistent, it indicates that the tire pressure sensor chip has passed the verification, if the comparison result is inconsistent, it indicates that the tire pressure sensor chip has not passed the verification. It can be seen that by dividing the regions, disassembling and separately performing data verification, and performing secondary verification after obtaining the first verification value after the disassembly of the data verification, it is avoided that the correction value is consistent but the actual verification data is inconsistent, which is a probabilistic error, resulting in the problem that the tire pressure sensor chip cannot be correctly operated and used after subsequent programming. The partition verification and secondary verification method can ensure that the data in the sensor verification area is fully verified, and prevent programming errors caused by insufficient verification, thereby causing sensor operation errors. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present invention 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, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0042] Figure 1 A flow chart of a tire pressure sensor chip calibration method disclosed in this application;
[0043] Figure 2 A schematic diagram of a verification area of a tire pressure sensor chip disclosed in this application;
[0044] Figure 3 This is a schematic diagram of the structure of a tire pressure sensor chip verification device disclosed in this application;
[0045] Figure 4This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0047] The tire pressure sensors currently on the market need to be programmed using special equipment before use, and the sensor verification area needs to be verified during the programming process. If the verification passes, only the data outside the verification area needs to be programmed. If it fails, the entire APP area will be programmed. The APP area is an area inside the sensor chip (a part of which stores fixed data, called the verification area) used to store data written by special tools.
[0048] The commonly used verification method is to perform CRC verification on the verification area, and the values obtained by the CRC16 verification are only 65536. That is to say, during the verification process, there is a probability that the data in the verification area is different, but the values obtained by the CRC16 verification are the same. If the values are the same, the programming of the verification area will be omitted. However, the data that actually needs to be programmed in this area is different from the verification area inside the sensor. Then the sensor will not be able to operate correctly after programming.
[0049] To this end, the present invention provides a tire pressure sensor chip verification scheme, which can reduce the possibility of verification value duplication during the tire pressure sensor chip verification process and increase the probability of the sensor operating correctly after programming.
[0050] Reference Figure 1 As shown, an embodiment of the present invention discloses a tire pressure sensor chip verification method, comprising:
[0051] Step S11: dividing the chip verification area of the tire pressure sensor chip into regions to obtain a plurality of regions to be verified.
[0052] In this embodiment, any area division rule is selected as the preset area division rule according to the actual tire pressure sensor chip verification requirements and the chip application scenario; the chip verification area of the tire pressure sensor chip is divided into regions according to the preset area division rule to obtain a number of areas to be verified. It can be understood that before programming the tire pressure sensor, the chip verification area of the tire pressure sensor chip needs to be verified first. Specifically, the chip verification area is located in the APP area of the tire pressure sensor chip, wherein the process of verifying the chip verification area located in the APP area is first to divide the chip verification area into regions to obtain a number of areas to be verified. It should be noted that the regional division needs to select a corresponding regional division rule as the preset regional division rule according to the actual chip verification requirements and the chip application scenario, and then divide the entire chip verification area into regions according to the selected preset regional division rule to obtain a number of areas to be verified. For example: when the actual tire pressure sensor chip verification requirement is to verify a tire pressure sensor chip, the chip is applied to a certain model of automobile tires. Then, the chip verification area can be divided into regions according to the circumferential direction of the tire, and it can be divided into 8 areas to be verified, each area representing a part of the tire circumference. In this way, the above-selected preset area division rules can more specifically verify different positions of the chip to ensure the performance consistency of the tire pressure sensor around the entire tire circumference.
[0053] In the present embodiment, before selecting any area division rule as the preset area division rule according to the actual tire pressure sensor chip verification requirements and the chip application scenario, it also includes: setting area division rules for dividing the chip verification area according to the chip verification area usage functions; setting area division rules for dividing the chip verification area according to the vehicle model; setting area division rules for dividing the chip verification area according to the verification data type. It can be understood that the area division rules for different application scenarios and different verification requirements are pre-set, and then when the selected area division rule is the area division rule for the use function of each area of the chip verification, the chip verification area is divided into areas according to the area division rule for the use function of each area of the chip verification, so as to obtain a number of areas to be verified including a sensor data area to be verified, an algorithm area to be verified, and a communication area to be verified; then when the selected area division rule is the area division rule according to the vehicle model, the chip verification area is divided into areas according to the area division rule of the vehicle model, so as to obtain a number of areas to be verified including verification data and algorithm data of each vehicle model; when the selected area division rule is the area division rule for the verification data type, the chip verification area is divided into areas according to the area division rule for the verification data type, so as to obtain a number of areas to be verified including an integer area to be verified, a floating point area to be verified, and a string area to be verified.
[0054] Reference Figure 2 As shown, the chip verification area (sensor verification area) is divided into the to-be-verified area 1, the to-be-verified area 2, ..., and the to-be-verified area n according to the selected preset area division rule. Wherein, n is a positive integer, and n≥2, and the range of n is determined according to the actual preset area division rule, and is not specifically limited thereto.
[0055] Step S12: performing area verification on each of the to-be-verified areas according to a preset data verification method to obtain a number of corresponding first verification values.
[0056] In this embodiment, a CRC data verification method is adopted and each of the to-be-verified areas is verified through loops and bit operations to obtain a number of corresponding first verification values. Among them, this embodiment adopts the CRC16 algorithm as the CRC data verification method, and each to-be-verified area is verified in turn through loops and bit operations to obtain the first verification value of each to-be-verified area. When all the to-be-verified areas are verified, a number of first verification values corresponding to the chip verification area of the entire tire pressure sensor chip are obtained.
[0057] Specifically, the CRC data verification method is used and the regional verification process of each of the areas to be verified is performed through loops and bit operations as follows: select the CRC16 algorithm as the data verification algorithm and determine the initial verification value; wherein 0xFFFFH is set as the initial verification value; read the data to be verified in the area to be verified bit by bit; perform an XOR operation on the data to be verified and the initial verification value, and store the XOR calculation result back to the initial verification value to obtain a process verification value; shift the process verification value right by one bit, and fill the highest bit of the shifted process verification value with 0 to obtain the current bit that is shifted out; determine whether the current bit is 0, and if so, execute the step of reading the data to be verified in the area to be verified bit by bit; if not, perform an XOR operation on the current bit and A001H; execute the step of reading the data to be verified in the area to be verified bit by bit until all the data to be verified in the area to be verified are processed to obtain the first verification value corresponding to each of the areas to be verified. Among them, the specific calculation example is as follows:
[0058] 1. Select a suitable CRC algorithm, for example: CRC-16;
[0059] 2. Determine the initial check value, which can be set to 0xFFFFH;
[0060] 3. Read the data to be verified in the verification area bit by bit in order from high to low;
[0061] 4. Perform XOR (exclusive OR) operation on the current byte (data to be verified) and the initial verification value, and use the result as the process verification value, and save the process verification value back to the storage location where the initial verification value is located. It should be noted that the process verification value at this time has overwritten the initial verification value;
[0062] 5. Shift the process check value right by one position, and fill the highest position of the process check value with 0;
[0063] 6. Determine whether the value of the shifted bit is equal to 1 or 0;
[0064] 7. If the bit shifted out is 0, repeat steps 3 to 5.
[0065] 8. If the shifted bit is 1, perform an XOR operation on the check value and A001H.
[0066] 9. Repeat steps 3 to 6 until all the data to be verified in the verification area are processed.
[0067] 10. The final check value is the CRC check result of a certain area to be checked.
[0068] Through the above steps, by using loops and bit operations, the CRC check result of each area to be checked is obtained as the first check value. In this way, the accuracy and integrity of the data are ensured by performing CRC check on the check area of the tire pressure sensor.
[0069] Step S13: perform a second verification on all the first verification values according to the preset data verification method to obtain a second verification value.
[0070] In this embodiment, according to the above-mentioned data verification method, the CRC16 data verification algorithm is selected again, and the corresponding initial verification value is used to perform a secondary CRC verification on the first verification value of each of the above-mentioned areas to be verified to obtain a second verification value. The verification process is consistent with step S12 and will not be repeated here.
[0071] Step S14: Compare the second verification value with the preset chip verification value. If the comparison result is consistent, it indicates that the tire pressure sensor chip has passed the verification. If the comparison result is inconsistent, it indicates that the tire pressure sensor chip has failed the verification.
[0072] In this embodiment, the second check value is compared with the preset chip check value. If the comparison result is consistent, indicating that the tire pressure sensor chip has passed the check, then the data writing process of other areas in the tire pressure sensor chip except the area to be checked is started; if the comparison result is inconsistent, indicating that the tire pressure sensor chip has not passed the check, then the entire data writing process of the tire pressure sensor chip is started. It can be understood that because of the secondary check method, each first check value has 65536 types, and the CRC16 check is performed again on all first check values, the accuracy of the check can be further improved and the possibility of misjudgment can be reduced. Moreover, the secondary check can increase the system's tolerance for errors. Even if an error occurs in a certain area, the overall correctness of the chip can be judged by the check values of other areas. More check values can provide more comprehensive information, help discover potential problems, and improve the reliability of the tire pressure sensor chip. In addition, the preset chip verification value is a standard chip verification value that is preset or sent by the data sender (the programming end where data will be written). When the comparison results are consistent, it indicates that the current data in the chip verification area to be programmed is consistent with the execution data to be written. In this case, the chip verification area will be omitted, and data writing programming operations will be performed on other APP areas except the chip verification area. When the comparison results are inconsistent, it indicates that the current data in the chip verification area to be programmed is inconsistent with the execution data to be written. In this case, the chip verification area cannot be erased, so the data writing programming operation is performed on the entire APP area. Avoid the situation where the sensor cannot be properly operated and used after programming due to the omission of the chip verification area erasing process when the two are inconsistent.
[0073] It can be seen that the present application discloses a tire pressure sensor chip verification method, including: dividing the chip verification area of the tire pressure sensor chip into regions to obtain a number of regions to be verified; performing regional verification on each of the regions to be verified according to a preset data verification method to obtain a number of corresponding first verification values; performing secondary verification on all the first verification values according to the preset data verification method to obtain a second verification value; comparing the second verification value with the preset chip verification value, if the comparison result is consistent, it indicates that the tire pressure sensor chip has passed the verification, if the comparison result is inconsistent, it indicates that the tire pressure sensor chip has not passed the verification. It can be seen that by dividing the regions, disassembling and separately performing data verification, and performing secondary verification after obtaining the first verification value after the disassembly of the data verification, it is avoided that the correction value is consistent but the actual verification data is inconsistent, which is a probabilistic error, resulting in the problem that the tire pressure sensor chip cannot be correctly operated and used after subsequent programming. The partition verification and secondary verification method can ensure that the data in the sensor verification area is fully verified, and prevent programming errors caused by insufficient verification, thereby causing sensor operation errors.
[0074] Reference Figure 3 As shown, the present invention also discloses a tire pressure sensor chip verification device, including:
[0075] The area division module 11 is used to divide the chip verification area of the tire pressure sensor chip into regions to obtain a plurality of areas to be verified;
[0076] The area verification module 12 is used to perform area verification on each of the areas to be verified according to a preset data verification method to obtain a number of corresponding first verification values;
[0077] A secondary verification module 13, configured to perform secondary verification on all the first verification values according to the preset data verification method to obtain a second verification value;
[0078] The verification comparison module 14 is used to compare the second verification value with a preset chip verification value. If the comparison result is consistent, it indicates that the tire pressure sensor chip has passed the verification; if the comparison result is inconsistent, it indicates that the tire pressure sensor chip has failed the verification.
[0079] It can be seen that the present application discloses the method of dividing the chip verification area of the tire pressure sensor chip into regions to obtain a number of regions to be verified; performing regional verification on each of the regions to be verified according to a preset data verification method to obtain a number of corresponding first verification values; performing secondary verification on all the first verification values according to the preset data verification method to obtain a second verification value; comparing the second verification value with the preset chip verification value, if the comparison result is consistent, it indicates that the tire pressure sensor chip has passed the verification, if the comparison result is inconsistent, it indicates that the tire pressure sensor chip has not passed the verification. It can be seen that by dividing the regions, disassembling and performing data verification separately, and performing secondary verification after obtaining the first verification value after the disassembly data verification, it avoids the probabilistic error of the correction value being consistent but the actual verification data being inconsistent generated by directly verifying the entire chip verification area once, which leads to the problem that the tire pressure sensor chip cannot be operated and used correctly after subsequent programming. The partition verification and secondary verification method can ensure that the data in the sensor verification area is fully verified, and prevent programming errors caused by insufficient verification, thereby causing sensor operation errors.
[0080] Furthermore, the present application also discloses an electronic device. Figure 4 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.
[0081] Figure 4 The present invention provides a schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the tire pressure sensor chip verification method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0082] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0083] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0084] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0085] Among them, the operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the massive data 223 in the memory 22 by the processor 21, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the tire pressure sensor chip verification method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks. In addition to data transmitted from an external device received by the electronic device, the data 223 can also include data collected by its own input and output interface 25, etc.
[0086] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the tire pressure sensor chip verification method disclosed above. The specific steps of the method can refer to the corresponding contents disclosed in the above embodiments, and will not be repeated here.
[0087] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0088] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application. The steps of the method or algorithm described in conjunction with the embodiments disclosed herein can be implemented directly with hardware, a software module executed by a processor, or a combination of the two. The software module can be placed in a random access memory RAM (Random Access Memory), memory, read-only memory ROM (Read Only Memory), electrically programmable EPROM (Electrically Programmable Read Only Memory), electrically erasable programmable EEPROM (ElectricErasable Programmable Read Only Memory), register, hard disk, removable disk, CD-ROM (CompactDisc-Read Only Memory), or any other form of storage medium known in the technical field.
[0089] Finally, it should be noted that, in this article, relational terms such as first and second, etc. 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 terms "include", "comprise" or any other variants thereof are 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 presence of other identical elements in the process, method, article or device including the elements.
[0090] The scheme provided by the present invention is introduced in detail above. Specific examples are used in this article to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A tire pressure sensor chip calibration method, characterized in that: include: Dividing the chip verification area of the tire pressure sensor chip into regions to obtain a plurality of regions to be verified; Performing area verification on each of the areas to be verified according to a preset data verification method to obtain a number of corresponding first verification values; Performing a second verification on all the first verification values according to the preset data verification method to obtain a second verification value; The second verification value is compared with the preset chip verification value. If the comparison results are consistent, it indicates that the tire pressure sensor chip has passed the verification. If the comparison results are inconsistent, it indicates that the tire pressure sensor chip has failed the verification.
2. The tire pressure sensor chip verification method according to claim 1, characterized in that: The chip verification area of the tire pressure sensor chip is divided into regions to obtain a plurality of regions to be verified, including: Select any area division rule as the preset area division rule according to the actual tire pressure sensor chip verification requirements and chip application scenarios; The chip verification area of the tire pressure sensor chip is divided into regions according to the preset region division rule to obtain a plurality of regions to be verified.
3. The tire pressure sensor chip verification method according to claim 2, characterized in that: Before selecting any area division rule as the preset area division rule according to the actual tire pressure sensor chip verification requirements and the chip application scenario, the method further includes: Setting a zone division rule for dividing the chip verification area into zones according to the usage functions of each chip verification area; Setting a regional division rule for dividing the chip verification area according to vehicle models; An area division rule is set for dividing the chip verification area according to the verification data type.
4. The tire pressure sensor chip verification method according to claim 1, characterized in that: The performing area verification on each of the to-be-verified areas according to a preset data verification method to obtain a plurality of corresponding first verification values includes: A CRC data verification method is adopted and each of the to-be-verified areas is verified through loop and bit operations to obtain a plurality of corresponding first verification values.
5. The tire pressure sensor chip verification method according to claim 4, characterized in that: The method of adopting the CRC data verification method and performing area verification on each of the areas to be verified by looping and bit operations to obtain a plurality of corresponding first verification values includes: Select CRC16 algorithm as the data verification algorithm and determine the initial verification value; The data to be verified in the area to be verified is read bit by bit; the data to be verified is XORed with the initial verification value, and the XOR calculation result is stored back in the initial verification value to obtain a process verification value; Shift the process check value right by one bit, and fill the highest bit of the process check value after the shift with 0 to obtain the current bit that has been shifted out; Determine whether the current bit is 0, if so, execute the step of reading the data to be checked in the area to be checked bit by bit; if not, perform an XOR operation on the current bit and A001H; The step of reading the data to be verified in the area to be verified bit by bit is performed until all the data to be verified in the area to be verified are processed to obtain a first verification value corresponding to each area to be verified.
6. The tire pressure sensor chip verification method according to claim 5, characterized in that: The determining of the initial check value comprises: Set 0xFFFFH as the initial check value.
7. The tire pressure sensor chip verification method according to claim 1, characterized in that: The step of comparing the second verification value with the preset chip verification value, if the comparison results are consistent, it indicates that the tire pressure sensor chip has passed the verification; if the comparison results are inconsistent, it indicates that the tire pressure sensor chip has failed the verification, includes: The second verification value is compared with the preset chip verification value. If the comparison results are consistent, it indicates that the tire pressure sensor chip has passed the verification, and then a data writing process of other areas of the tire pressure sensor chip except the area to be verified is started; If the comparison result is inconsistent, indicating that the tire pressure sensor chip has failed the verification, a process of writing all data of the tire pressure sensor chip is started.
8. A tire pressure sensor chip verification device, characterized in that: include: A region division module is used to divide the chip verification area of the tire pressure sensor chip into regions to obtain a number of regions to be verified; A region verification module, used for performing region verification on each of the regions to be verified according to a preset data verification method to obtain a plurality of corresponding first verification values; A secondary verification module, used for performing secondary verification on all the first verification values according to the preset data verification method to obtain a second verification value; The verification comparison module is used to compare the second verification value with a preset chip verification value. If the comparison result is consistent, it indicates that the tire pressure sensor chip has passed the verification; if the comparison result is inconsistent, it indicates that the tire pressure sensor chip has failed the verification.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the steps of the tire pressure sensor chip calibration method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the steps of the tire pressure sensor chip calibration method as described in any one of claims 1 to 7 are implemented.
