Tire pressure sensor programming method and system, computer equipment and storage medium
Through the coordinated work of the portable tire pressure matching device and the user terminal, the preset frame structure is used to analyze the instruction frame, efficient programming of the tire pressure sensor is achieved, and the problem of high cost in traditional equipment is solved, reducing programming costs and improving data interaction accuracy.
Patent Information
- Application Number
- CN202411448941.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2025-02-18
AI Technical Summary
Traditional tire pressure sensor programming equipment is expensive, mainly due to the need to integrate all functions, which leads to expensive construction.
The portable tire pressure matching device is used to program the command frames sent by the user terminal, and the data domain is analyzed using the preset frame structure, and the tire pressure sensor is searched and programmed.
It reduces the cost of tire pressure sensor programming, improves the flexibility of the programming process and the integrity and accuracy of data interaction.
Smart Images

Figure CN119473391A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of tire pressure monitoring, and in particular to a programming method, system, computer device and storage medium for a tire pressure sensor. Background Art
[0002] With the development of tire pressure monitoring technology, more and more vehicles are equipped with tire pressure monitoring systems (TPMS). The tire pressure sensors in the tire pressure monitoring system monitor the status of the tires and alarm for abnormal tire conditions, thereby ensuring vehicle safety.
[0003] In the traditional technology, the tire pressure sensor in the tire pressure monitoring system is programmed through an integrated tire pressure matching device. However, because the integrated tire pressure matching device needs to integrate all the functions of programming the tire pressure sensor, the integrated tire pressure matching device is expensive, resulting in excessively high costs for programming the tire pressure sensor. Summary of the invention
[0004] Based on this, it is necessary to provide a programming method, system, computer device and storage medium for a tire pressure sensor that can reduce costs in response to the above technical problems.
[0005] In a first aspect, the present application provides a programming method for a tire pressure sensor, which is applied to a portable tire pressure matching device; comprising:
[0006] Acquire a first instruction frame sent by a user terminal;
[0007] Parsing a first data field from the first instruction frame according to a preset frame structure;
[0008] In a case where the function type data in the first data field represents a programming function and the operation type data in the first data field represents a preparation operation, searching for a tire pressure sensor within a preset range;
[0009] Sending a first response frame to the first instruction frame to the user terminal to instruct the user terminal to generate a second instruction frame when the first response frame indicates that the tire pressure sensor search is successful;
[0010] Acquire the second instruction frame sent by the user terminal;
[0011] Parsing a second data field from the second instruction frame according to the preset frame structure;
[0012] In a case where the function type data in the second data field represents the programming function and the operation type data in the second data field represents the execution operation, the tire pressure sensor is programmed according to the content data in the second data field.
[0013] In a second aspect, the present application also provides a tire pressure sensor programming system, including a user terminal and a portable tire pressure matching device;
[0014] The user terminal is used to send a first instruction frame to the portable tire pressure matching device; obtain a first response frame sent by the portable tire pressure matching device for the first instruction frame; and generate a second instruction frame when the first response frame indicates that the tire pressure sensor search is successful;
[0015] The portable tire pressure matching device is used to parse the first data field from the first instruction frame according to the preset frame structure; search for tire pressure sensors within a preset range when the function type data in the first data field represents a programming function and the operation type data in the first data field represents a preparation operation; send a first response frame for the first instruction frame to the user terminal; obtain the second instruction frame; parse the second data field from the second instruction frame according to the preset frame structure; and program the tire pressure sensor according to the content data in the second data field when the function type data in the second data field represents the programming function and the operation type data in the second data field represents an execution operation.
[0016] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps in the above method when executing the computer program.
[0017] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps in the above method when executed by a processor.
[0018] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps in the above method when executed by a processor.
[0019] The programming method, system, computer device, storage medium and computer program product of the tire pressure sensor described above, the portable tire pressure matching device obtains a first instruction frame sent by a user terminal; parses a first data field from the first instruction frame according to a preset frame structure; searches for tire pressure sensors within a preset range when the function type data in the first data field represents a programming function and the operation type data in the first data field represents a preparation operation; sends a first response frame for the first instruction frame to the user terminal to instruct the user terminal to generate a second instruction frame when the first response frame represents that the tire pressure sensor search is successful. The first instruction frame corresponds to the preparation stage of the portable tire pressure matching device during the programming process, and the first response frame for the first instruction frame can reflect the search status of the tire pressure sensor in the preparation stage and the communication reliability between the user terminal and the portable tire pressure matching device. When the first response frame represents that the tire pressure sensor search is successful, it means that the user terminal and the portable tire pressure matching device have communication reliability and the tire pressure sensor is searched, so the user terminal generates a second instruction frame when the first response frame represents that the tire pressure sensor search is successful, which can ensure that the second instruction frame sent by the user terminal under the condition of communication reliability matches the search status of the tire pressure sensor, thereby ensuring the validity of the second instruction frame. And the instruction frame, as a kind of encapsulated structured data, can ensure the integrity and accuracy of the data in the interaction between the user terminal and the portable tire pressure matching device. Afterwards, the portable tire pressure matching device obtains the second instruction frame sent by the user terminal; parses the second data field from the second instruction frame according to the preset frame structure; and programs the tire pressure sensor according to the content data in the second data field when the function type data in the second data field represents the programming function and the operation type data in the second data field represents the execution operation. The portable tire pressure matching device can complete the programming of the tire pressure sensor using the content data in the second data field through reliable and effective data frame interaction with the user terminal. The portable tire pressure matching device does not need to have a built-in database for storing the data required for programming. Compared with the integrated tire pressure matching device, it is cheaper and can effectively reduce the cost of programming tire pressure sensors. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A flowchart of a tire pressure sensor programming method provided in an embodiment of the present application.
[0021] Figure 2 This is a diagram of the internal structure of a portable tire pressure matching device provided in an embodiment of the present application.
[0022] Figure 3 A timing diagram of an activation process provided in an embodiment of the present application.
[0023] Figure 4 A timing diagram of a programming process provided in an embodiment of the present application.
[0024] Figure 5 A timing diagram of a firmware update process provided in an embodiment of the present application.
[0025] Figure 6 A structural block diagram of a tire pressure sensor programming system provided in an embodiment of the present application.
[0026] Figure 7 An internal structure diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0028] In an exemplary embodiment, Figure 1 As shown, a programming method for a tire pressure sensor is provided, which is described by taking the application of the method to a portable tire pressure matching device as an example, and includes the following steps 102 to 114.
[0029] Step 102: Acquire a first instruction frame sent by a user terminal.
[0030] Exemplarily, a communication connection is established between the user terminal and the portable tire pressure matching device. The portable tire pressure matching device can obtain the first instruction frame sent by the user terminal based on the communication connection. The communication connection can include at least one of a wireless connection or a wired connection.
[0031] In some embodiments, the portable tire pressure matching device includes a communication module. The communication module is used to obtain a first instruction frame sent by a user terminal.
[0032] In some embodiments, the communication module may include a Bluetooth module. The portable tire pressure matching device may establish a Bluetooth connection with the user terminal and obtain the first instruction frame sent by the user terminal through the Bluetooth module.
[0033] In some embodiments, a matching program is running on the user terminal, and the matching program can call the Bluetooth function of the user terminal to establish a Bluetooth connection with the portable tire pressure matching device.
[0034] In some embodiments, the user terminal may display a Bluetooth connection entry provided by the matching program. In response to a trigger operation on the Bluetooth connection entry, a Bluetooth connection is established with the portable tire pressure matching device.
[0035] In some embodiments, the portable tire pressure matching device may display a Bluetooth connection portal, and establish a Bluetooth connection with the user terminal in response to a trigger operation on the Bluetooth connection portal.
[0036] In some embodiments, the portable tire pressure matching device can display the Bluetooth connection status.
[0037] In some embodiments, the portable tire pressure matching device can display the Bluetooth connection status on the screen.
[0038] In some embodiments, after a communication connection is established between the portable tire pressure matching device and the user terminal, the command frame is transmitted based on the communication protocol. It can be understood that the communication protocol is a set of rules and standards used to regulate the communication behavior between devices. It defines the information exchange method, communication rules, communication steps, etc. between devices to ensure the correct communication and collaboration between devices. The command frame is the command data that conforms to the preset frame structure. The preset frame structure specifies the organization form of data in communication.
[0039] In some embodiments, the first instruction frame conforms to a preset frame structure. The data field portion in the preset frame structure includes a function type field, an operation type field, and a content field. It can be understood that the response frame and the instruction frame are both data frames conforming to the preset frame structure. In the data field portion of the data frame conforming to the preset frame structure, the function type field contains the function type data, the operation type field contains the operation type data, and the content field contains the content data.
[0040] In some embodiments, the function type data is used to indicate the function enabled by the portable tire pressure matching device. The function of the portable tire pressure matching device may include at least one of a programming function, an update function, or an activation function. There are different operations in each function. The programming function may include a preparation operation, an execution operation, and a stop operation. The update function may include a preparation operation, an execution operation, and a stop operation. The activation function may include a preparation operation and an execution operation. The operation type data is used to indicate the operation in the function of the portable tire pressure matching device. For example, a preparation operation in the programming function or an execution operation in the programming function.
[0041] In some embodiments, the parts in the preset frame structure are respectively a frame header flag, a frame length, a device ID, a sequence number, configuration information, a data field, a checksum, and a frame tail flag, such as the preset frame structure in Table 1.
[0042] Table 1:
[0043]
[0044] The frame header flag and frame tail flag are used to mark the head and tail of the instruction frame. The body part is located between the frame header flag and the frame tail flag. The frame length is used to represent the remaining length except the frame header flag and the frame tail flag. The device ID refers to the identification code of the device, which is used to distinguish different devices. The device ID can be the identification code of the sender. The sequence number is the sequence number that identifies the data frame. The configuration information is used to indicate whether the data field is encrypted. The check code can be, but is not limited to, the checksum from the frame length to the end of the data field.
[0045] In some embodiments, the length of the field value under the frame header flag and the frame tail flag may be, but is not limited to, 1 byte. The frame length may be, but is not limited to, 2 bytes. The length of the field value under the device ID, serial number, configuration information, and check code may be, but is not limited to, 1 byte. It is understood that the lengths of different field values in the preset frame structure do not have to be in accordance with the field value lengths provided in this embodiment, and may be adaptively set.
[0046] In some embodiments, the data domain part of the preset frame structure may include a function type field, an operation type field, a data length field, and a content field. The data domain part belongs to the body part in the preset frame structure. The data domain part may be, but is not limited to, a TTLV format (Type-Type-Length-Value), such as the data domain part of the preset frame structure shown in Table 2.
[0047] Table 2:
[0048]
[0049] ClusterType is the function type field. OperateType is the operation type field. Len is the data length field. Value is the content field. The field value length under the function type field and the operation type field is 1 byte. The field value length under the data length field is 2 bytes. The field value length under the content field is not limited and is n bytes. The field value under the content field can be empty.
[0050] In some embodiments, in order to ensure the recognition accuracy of the frame header and the frame tail, in the process of generating a data frame according to a preset frame structure, if the body part includes a first field value that is consistent with the frame header flag or the frame tail flag, the first field value is converted to the first preset field value. And, if the body part includes a second field value that overlaps with the first preset field value, the second field value is converted to the second preset field value. Accordingly, in the process of parsing the data frame according to the preset frame structure, the first preset field value is converted to the first field value, and the second preset field value is converted to the second field value.
[0051] For example, the frame header and frame tail are both marked with 0x7e, and the body is between the frame header and frame tail. In order to avoid 0x7e appearing in the body, 0x7e in the body needs to be escaped when sending and receiving data frames. If 0x7e appears in the body, the sender needs to convert 0x7e to 0x7d-0x5e, and the receiver needs to restore 0x7d-0x5e to 0x7e. At the same time, in order to avoid the misinterpretation of the non-escaped normal field value that overlaps with 0x7d-0x5e, if 0x7d appears in the body, the sender needs to convert 0x7d to 0x7d-0x5d, and the receiver needs to restore 0x7d-0x5d to 0x7d. The field value of the text part can be transmitted in little-endian format but is not limited to it. All multi-byte data has the low byte first and the high byte last. For example, if the field value length is two bytes and the field value is 10, that is, 0x000a, it will be 0x0a00 during transmission.
[0052] In some embodiments, the original frame is as shown in Table 3. The escaped frame is as shown in Table 4 after the sender escapes the original frame.
[0053] Table 3:
[0054]
[0055] Table 4:
[0056]
[0057] It can be understood that 0x7e under the sequence number in Table 3 is escaped to 0x7d-0x5e in Table 4. 0x7d under the content field V of the data domain in Table 3 is escaped to 0x7d-0x5d in Table 4.
[0058] In some embodiments, when the user terminal obtains the reference sensor information, the programming function field value is written under the function type field of the data field part in the preset frame structure and the preparation operation field value is written under the operation type field of the data field part in the preset frame structure to generate a first instruction frame. The first instruction frame is sent to the portable tire pressure matching device. The programming function field value is a field value used to describe the programming function. The preparation operation field value is a field value used to describe the preparation operation.
[0059] In some embodiments, the user terminal may obtain input reference sensor information.
[0060] In some embodiments, the user terminal may generate reference sensor information in response to an automatic creation operation.
[0061] In some embodiments, the content field of the data field in the first instruction frame is empty. The user terminal can write the programming function field value under the function type field of the data field part in the preset frame structure, write the preparation operation field value under the operation type field of the data field part in the preset frame structure, and set the content field of the data field part in the preset frame structure to be empty to generate the first instruction frame. The first instruction frame shown in Table 5.
[0062] Table 5:
[0063]
[0064] Among them, in the first instruction frame, the function type field of the data field has a programming function field value of 0x02, the operation type field has a preparation operation field value of 0x01, and the content field is empty.
[0065] In some embodiments, the user terminal may be, but is not limited to, a mobile phone, an Internet of Things device, or a personal computer.
[0066] Step 104: parse the first instruction frame to obtain a first data field according to a preset frame structure.
[0067] Exemplarily, the first data field is a data field in a first instruction frame parsed by the portable tire pressure matching device. The portable tire pressure matching device can parse the data field in the first instruction frame according to a preset frame structure to obtain the first data field.
[0068] In some embodiments, the data field portion in the preset frame structure includes a function type field, an operation type field, and a content field. The portable tire pressure matching device can parse the function type field of the data field in the first instruction frame according to the preset frame structure to obtain the function type data in the first data field. Parse the operation type field of the data field in the first instruction frame according to the preset frame structure to obtain the operation type data in the first data field. Parse the content field of the data field in the first instruction frame according to the preset frame structure to obtain the content data in the first data field. It can be understood that parsing a field is essentially reading the field value under the field.
[0069] Step 106 , when the function type data in the first data field represents a programming function and the operation type data in the first data field represents a preparation operation, searching for a tire pressure sensor within a preset range.
[0070] In some embodiments, the portable tire pressure matching device has a programming function. There is a preparation operation in the programming function. The preparation operation in the programming function refers to searching for tire pressure sensors within a preset range. The portable tire pressure matching device can determine the function type represented by the function type data in the first data field and the operation type represented by the operation type data in the first data field.
[0071] In some embodiments, the portable tire pressure matching device stores a programming function field value and a preparation operation field value. When the function type data in the first data field is the programming function field value and the operation type data in the first data field is the preparation operation field value, the tire pressure sensor within the preset range is searched.
[0072] In some embodiments, the portable tire pressure matching device can transmit a search signal to obtain a response signal returned by the tire pressure sensor within a preset range in response to the search signal when the function type data in the first data field is a programming function field value and the operation type data in the first data field is a preparation operation field value.
[0073] Step 108 : Send a first response frame to the first command frame to the user terminal to instruct the user terminal to generate a second command frame when the first response frame indicates that the tire pressure sensor search is successful.
[0074] In some embodiments, the data under the function type field and the operation type field in the response frame of the command frame are consistent with the data under the function type field and the operation type field in the command frame. The portable tire pressure matching device can write the programming function field value under the function type field of the data field part in the preset frame structure, write the preparation operation field value under the operation type field of the data field part in the preset frame structure, and write the first error code under the content field of the data field part in the preset frame structure to generate a first response frame. The first error code is used to indicate whether the tire pressure sensor is searched. The first response frame shown in Table 6.
[0075] Table 6:
[0076]
[0077]
[0078] Among them, the function type field in the data field of the first response frame has a programming function field value of 0x02, the operation type field has a preparation operation field value of 0x01, and the content field has an n-byte first error code. The number of bytes of the field value under the content field is not limited, so it is expressed as n bytes.
[0079] In some embodiments, the sequence number in the response frame to the instruction frame is consistent with the sequence number in the instruction frame to ensure that the user terminal accurately identifies the instruction frame to which the response frame is directed.
[0080] In some embodiments, the portable tire pressure matching device may write at least one of a first error code or the number of searched candidate sensors under a content field of a data domain part in a preset frame structure to generate a first response frame.
[0081] In some embodiments, the user terminal may parse at least one of the first error code or the number of candidate sensors in the first response frame according to a preset frame structure. If the number of reference sensors corresponding to the reference sensor information input in the user terminal is consistent with the number of candidate sensors, it means that the tire pressure sensor search is successful. If the first error code indicates that the tire pressure sensor is not searched or the number of reference sensors is inconsistent with the candidate sensor data, it means that the tire pressure sensor search is unsuccessful.
[0082] In some embodiments, the portable tire pressure matching device may display the number of candidate sensors searched.
[0083] In some embodiments, the user terminal may display prompt information related to the unsuccessful search when the tire pressure sensor search is unsuccessful.
[0084] In some embodiments, the user terminal may send the first instruction frame to the portable tire pressure matching device again if the tire pressure sensor search is unsuccessful.
[0085] In some embodiments, when the tire pressure sensor search is successful, the user terminal can write the programming function field value under the function type field in the data domain part of the preset frame structure, write the execution operation field value under the operation type field in the data domain part of the preset frame structure, and write the programming data under the content field in the data domain part of the preset frame structure to generate a second instruction frame.
[0086] Step 110: Acquire a second instruction frame sent by the user terminal.
[0087] Exemplarily, the portable tire pressure matching device may receive the second instruction frame sent by the user terminal based on the communication connection with the user terminal.
[0088] Step 112: parse the second instruction frame to obtain a second data field according to a preset frame structure.
[0089] Exemplarily, the second data field is a data field in the second instruction frame parsed by the portable tire pressure matching device. The portable tire pressure matching device can parse the data field in the second instruction frame according to a preset frame structure to obtain the second data field.
[0090] In some embodiments, the data field portion in the preset frame structure includes a function type field, an operation type field, and a content field. The portable tire pressure matching device can parse the function type field of the data field in the second instruction frame according to the preset frame structure to obtain the function type data in the second data field. Parse the operation type field of the data field in the second instruction frame according to the preset frame structure to obtain the operation type data in the second data field. Parse the content field of the data field in the second instruction frame according to the preset frame structure to obtain the content data in the second data field.
[0091] Step 114 , when the function type data in the second data field represents a programming function and the operation type data in the second data field represents an execution operation, the tire pressure sensor is programmed according to the content data in the second data field.
[0092] Exemplarily, the portable tire pressure matching device can transmit a programming execution signal corresponding to the content data in the second data field to the tire pressure sensor when the function type data in the second data field represents the programming function and the operation type data in the second data field represents the execution operation. The programming execution signal can carry the content data in the second data field, and the tire pressure sensor can write the content data in the second data field in the programming execution signal to its own storage space, and send the programming execution result for the programming execution signal to the portable tire pressure matching device. The portable tire pressure matching device can obtain the programming execution result returned by the tire pressure sensor for the programming execution signal. The programming execution result is used to indicate whether the programming is successful.
[0093] In some embodiments, when the function type data in the second data field is a programming function field value and the operation type data in the second data field is an execution operation field value, the tire pressure sensor is programmed according to the content data in the second data field.
[0094] In the above-mentioned tire pressure sensor programming method, the portable tire pressure matching device obtains a first instruction frame sent by a user terminal; parses a first data field from the first instruction frame according to a preset frame structure; searches for tire pressure sensors within a preset range when the function type data in the first data field represents a programming function and the operation type data in the first data field represents a preparation operation; and sends a first response frame for the first instruction frame to the user terminal to instruct the user terminal to generate a second instruction frame when the first response frame represents that the tire pressure sensor search is successful. The first instruction frame corresponds to the preparation stage of the portable tire pressure matching device during the programming process, and the first response frame for the first instruction frame can reflect the search status of the tire pressure sensor in the preparation stage and the communication reliability between the user terminal and the portable tire pressure matching device. When the first response frame represents that the tire pressure sensor search is successful, it means that the user terminal and the portable tire pressure matching device have communication reliability and the tire pressure sensor is searched. Therefore, when the first response frame represents that the tire pressure sensor search is successful, the user terminal generates a second instruction frame, which can ensure that the second instruction frame sent by the user terminal under the condition of communication reliability matches the search status of the tire pressure sensor, thereby ensuring the validity of the second instruction frame. And the instruction frame, as a kind of encapsulated structured data, can ensure the integrity and accuracy of the data in the interaction between the user terminal and the portable tire pressure matching device. Afterwards, the portable tire pressure matching device obtains the second instruction frame sent by the user terminal; parses the second data field from the second instruction frame according to the preset frame structure; and programs the tire pressure sensor according to the content data in the second data field when the function type data in the second data field represents the programming function and the operation type data in the second data field represents the execution operation. The portable tire pressure matching device can complete the programming of the tire pressure sensor using the content data in the second data field through reliable and effective data frame interaction with the user terminal. The portable tire pressure matching device does not need to have a built-in database for storing the data required for programming. Compared with the integrated tire pressure matching device, it is cheaper and can effectively reduce the cost of programming tire pressure sensors.
[0095] In some embodiments, the content data in the second data domain includes reference sensor information; the method also includes: obtaining a third instruction frame sent by the user terminal; parsing an executable file corresponding to the reference sensor from the third instruction frame; transmitting an activation signal to the reference sensor by running the executable file; obtaining reference sensor information returned by the reference sensor in response to the activation signal; and sending the reference sensor information to the user terminal.
[0096] The portable tire pressure matching device has programming and activation functions. The executable file refers to a binary file required to activate the reference sensor.
[0097] In some embodiments, the user terminal may display at least two vehicle model options provided by the matching program. In response to the vehicle model selection operation, the tire options corresponding to the selected target vehicle model are displayed. In response to the tire selection operation, the selected reference tire is obtained. The user terminal may obtain the executable file corresponding to the reference sensor on the reference tire from the database associated with the matching program. The activation function field value is written under the function type field in the data domain part of the preset frame structure, the preparation operation field value is written under the operation type field in the data domain part of the preset frame structure, and the executable file corresponding to the reference sensor is written under the content type in the data domain part of the preset frame structure to generate a third instruction frame. The user terminal may send the third instruction frame to the portable tire pressure matching device.
[0098] In some embodiments, the database associated with the matching program is stored on the user terminal.
[0099] In some embodiments, a database associated with the matching program is stored on a server.
[0100] In some embodiments, a third instruction frame is shown in Table 7.
[0101] Table 7:
[0102]
[0103] It is understandable that the procedures required to activate the reference sensors installed on the tires of different vehicle models are different, and the corresponding executable files will also be different. Therefore, the n-byte field value under the content field V of the data field in the third instruction frame varies according to the selected target vehicle model, and the frame length, the field value under the data length field of the data field, and the check code also change accordingly.
[0104] In some embodiments, the portable tire pressure matching device can parse the content field of the data field in the third instruction frame according to the preset frame structure to obtain an executable file corresponding to the reference sensor. The executable file includes a preset operating program for activating the reference sensor.
[0105] In some embodiments, the activation signal may be, but is not limited to, a wireless radio frequency signal.
[0106] In some embodiments, the portable tire pressure matching device may be connected to the reference sensor via a wire. The activation signal may be, but is not limited to, a wired signal.
[0107] In some embodiments, the reference sensor receives and responds to the activation signal, and sends reference sensor information to the portable tire pressure matching device. The reference sensor information may include at least one of an identification of the reference sensor, collected air pressure, or collected temperature.
[0108] In some embodiments, the portable tire pressure matching device can display reference sensor information. For example, the portable tire pressure matching device can display reference sensor information on a screen.
[0109] In some embodiments, the portable tire pressure matching device may write at least one of a fourth error code or reference sensor information under the content field of the data domain part in the preset frame structure to generate a fourth response frame. The fourth error code is used to indicate whether the activation is successful. It can be understood that obtaining the reference sensor information indicates that the activation is successful.
[0110] In this embodiment, by acquiring the third instruction frame sent by the user terminal; parsing the executable file corresponding to the reference sensor from the third instruction frame; transmitting an activation signal to the reference sensor by running the executable file; acquiring the reference sensor information returned by the reference sensor in response to the activation signal; and sending the reference sensor information to the user terminal, the portable tire pressure matching device does not need to have built-in data for storing the activation data of the sensors installed on the tires of various vehicle models, and the activation of the reference sensor can be achieved through interaction with the user terminal, thereby reducing the cost of activating the reference sensor.
[0111] In some embodiments, parsing the executable file corresponding to the reference sensor from the third instruction frame includes: parsing the third data field from the third instruction frame according to a preset frame structure; when the function type data in the third data field represents an activation function and the operation type data in the third data field represents a preparation operation, determining the executable file from the content data in the third data field.
[0112] Exemplarily, the portable tire pressure matching device can parse the function type field of the data field in the third instruction frame according to the preset frame structure to obtain the function type data in the third data field. Parse the operation type field of the data field in the third instruction frame according to the preset frame structure to obtain the operation type data in the third data field. Parse the content field of the data field in the third instruction frame according to the preset frame structure to obtain the content data in the third data field. The portable tire pressure matching device stores the activation function field value and the preparation operation field value. When the function type data in the third data field is the activation function field value and the operation type data in the third data field is the preparation operation field value, determine the executable file from the content data in the third data field. Store the executable file to the preset address.
[0113] In some embodiments, the portable tire pressure matching device may determine the content data in the third data field as an executable file.
[0114] In this embodiment, the third data field is parsed from the third instruction frame according to the preset frame structure; the instruction frames sent by the user terminal all include function type data and operation type data, and the function type data and operation type data can jointly indicate which operation the portable tire pressure matching device performs under which function. Furthermore, when the function type data in the third data field represents the activation function, and the operation type data in the third data field represents the preparation operation, the executable file is determined from the content data in the third data field, and the portable tire pressure matching device does not need to be built-in to store the data required for activating the reference sensor installed on the tires of various vehicle models, and the executable file required for activating the reference sensor is obtained through interaction with the user terminal, thereby reducing the cost of activating the reference sensor.
[0115] In some embodiments, the method also includes: sending a third response frame to the third instruction frame to the user terminal to instruct the user terminal to generate a fourth instruction frame when the third response frame indicates that the executable file is successfully parsed; obtaining the fourth instruction frame sent by the user terminal; parsing a fourth data field from the fourth instruction frame according to a preset frame structure; and transmitting an activation signal to the reference sensor by running the executable file, including: transmitting an activation signal to the reference sensor by running the executable file when the function type data in the fourth data field indicates an activation function and the operation type data in the fourth data field indicates an execution operation.
[0116] Exemplarily, the portable tire pressure matching device may write an activation function field value under the function type field of the data field part in the preset frame structure, write a preparation operation field value under the operation type field of the data field in the preset frame structure, and write a third error code under the content field of the data field in the preset frame structure to generate a third response frame for the third instruction frame. Send the third response frame to the user terminal. The third error code is used to indicate whether the executable file is successfully parsed. Successfully parsing the executable file means that the portable tire pressure matching device stores the parsed executable file to a preset address.
[0117] The user terminal can parse the content field of the data field in the third response frame according to the preset frame structure to obtain a third error code. When the third error code indicates that the executable file is parsed successfully, the activation function field value is written under the function type field of the data field part in the preset frame structure, the execution operation field value is written under the operation type field of the data field part in the preset frame structure, and the content field of the data field part in the preset frame structure is set to empty to generate a fourth instruction frame.
[0118] The portable tire pressure matching device can receive a fourth instruction frame sent by a user terminal. Display a prompt message that the sensor is being activated. Parse the function type field of the data field in the fourth instruction frame according to the preset frame structure to obtain the function type data in the fourth data field. Parse the operation type field of the data field in the fourth instruction frame according to the preset frame structure to obtain the operation type data in the fourth data field. The portable tire pressure matching device stores an activation function field value and an execution operation field value. When the function type data in the fourth data field is an activation function field value and the operation type data in the fourth data field is an execution operation field value, an activation signal is transmitted to the reference sensor by running the executable file stored at the preset address.
[0119] In some embodiments, the portable tire pressure matching device may send a fourth response frame to the user terminal for the fourth instruction frame. Specifically, the portable tire pressure matching device may write an activation function field value under the function type field in the data domain part of the preset frame structure, write an execution operation field value under the operation type field in the data domain part of the preset frame structure, and write at least one of a fourth error code or reference sensor information under the content field in the data domain part of the preset frame structure to generate a fourth response frame for the fourth instruction frame. Send a fourth response frame to the user terminal. The fourth error code is used to characterize whether the reference sensor is successfully activated. It can be understood that if the reference sensor is successfully activated, the reference sensor information must be obtained. At this time, the fourth response frame may contain only the reference sensor information, or may contain both the fourth error code and the reference sensor information.
[0120] In some embodiments, a third response frame as shown in Table 8.
[0121] Table 8:
[0122]
[0123] The third response frame contains an activation function field value of 0x01 and a preparation operation field value of 0x01. The user terminal can parse the content field of the data field in the third response frame to obtain a third error code. If the third error code indicates that the executable file is not parsed successfully, the third instruction frame is resent to the portable tire pressure matching device; if the third error code indicates that the executable file is parsed successfully, a fourth instruction frame is sent to the portable tire pressure matching device. The fourth instruction frame is shown in Table 9.
[0124] Table 9:
[0125]
[0126] The fourth data field of the fourth instruction frame contains an activation function field value of 0x01 and an execution operation field value of 0x02. The portable tire pressure matching device may display a prompt message indicating that the sensor is being activated on the screen, run the executable file stored at the preset address, and send an activation signal to the reference sensor when there is an activation function field value under the function type field in the data field of the fourth instruction frame and there is an execution operation field value under the operation type field in the data field of the fourth instruction frame. Receive a reply signal containing reference sensor information returned by the reference sensor in response to the activation signal. The portable tire pressure matching device may display the received reference sensor information. Specifically, the portable tire pressure matching device may display the reference sensor information on the screen. The portable tire pressure matching device may write the fourth error code and the reference sensor information to the content field of the data field part in the preset frame structure to generate a fourth response frame. The fourth response frame as shown in Table 10.
[0127] Table 10:
[0128]
[0129] The data field of the fourth response frame includes an activation function field value of 0x01, an execution operation field value of 0x02, and n bytes of reference sensor information and a fourth error code.
[0130] In this embodiment, a third response frame for the third instruction frame is sent to the user terminal to instruct the user terminal to generate a fourth instruction frame when the third response frame indicates that the executable file is successfully parsed; the portable tire pressure matching device obtains the fourth instruction frame sent by the user terminal; the fourth data field is parsed from the fourth instruction frame according to the preset frame structure; when the function type data in the fourth data field indicates the activation function and the operation type data in the fourth data field indicates the execution operation, the activation signal is transmitted to the reference sensor by running the executable file. The user terminal sends the third instruction frame for indicating the preparation operation in the activation function and the fourth instruction frame for indicating the execution operation in the activation function, respectively, so as to decouple the preparation operation from the execution operation in the activation function of the portable tire pressure matching device and improve the flexibility of the activation function. In addition, the fourth instruction frame is generated when the third response frame indicates that the executable file is successfully parsed, so as to ensure that when the preparation operation in the activation function is successful, the portable tire pressure matching device is instructed to implement the execution operation in the activation function, so as to ensure the effectiveness of the activation function.
[0131] In some embodiments, there are at least two second instruction frames; the content data in the second data field in different second instruction frames is different; when the function type data in the second data field represents the programming function, and the operation type data in the second data field represents the execution operation, the tire pressure sensor is programmed according to the content data in the second data field, including: when the function type data in the second data field represents the programming function, and the operation type data in the second data field represents the execution operation, a programming execution signal corresponding to the content data in the second data field is transmitted to the tire pressure sensor; the programming execution result returned by the tire pressure sensor for the programming execution signal is obtained; the method also includes: sending a second response frame for the second instruction frame to the user terminal according to the programming execution result; wherein the user terminal is used to send a new second instruction frame when the second instruction frame sent last time is not the last second instruction frame and the second response frame represents successful programming.
[0132] Exemplarily, the amount of programming data is large, and the user terminal can divide it into multiple second instruction frames for sending. The user terminal can divide the programming data into at least two programming sub-data. For each programming sub-data, write the programming function field value under the function type field of the data domain part in the preset frame structure, write the execution operation field value under the operation type field of the data domain part in the preset frame structure, and write the programming sub-data and the programming sub-packet sequence number under the content field of the data domain part in the preset frame structure to generate a second instruction frame. The programming sub-packet sequence number is used to characterize the programming order of each second instruction frame in at least two second instruction frames. Send the first second instruction frame to the portable tire pressure matching device according to the programming order.
[0133] The portable tire pressure matching device can obtain the second instruction frame sent by the user terminal each time. Parse the function type field, operation type field and content field of the data field in each second instruction frame to obtain the function type data, operation type data and content data in the second data field. When the function type data in the second data field is the programming function field value and the operation type data in the second data field is the execution operation field value, determine the programming sub-data from the content data in the second data field, and send a programming execution signal corresponding to the programming sub-data to the tire pressure sensor.
[0134] The tire pressure sensor responds to the programming execution signal corresponding to the programming sub-data, writes the programming sub-data into its own storage space, and then sends the programming execution result to the portable tire pressure matching device.
[0135] The portable tire pressure matching device can receive the programming execution result. Determine a second error code that matches the programming execution result. The second error code is used to indicate whether the programming is successful. Write the programming function field value under the function type field of the data field part in the preset frame structure, write the execution operation field value under the operation type field of the data field part in the preset frame structure, and write the second error code under the content field of the data field part in the preset frame structure to generate a second response frame for the second instruction frame.
[0136] The user terminal can parse the content field of the data field in the second response frame to obtain the second error code. When the second error code indicates that programming is successful and the second instruction frame sent last is not the last second instruction frame, the next second instruction frame of the second instruction frame sent last is sent to the portable tire pressure matching device in the programming order. When the second error code indicates that programming is successful and the second instruction frame sent last is the last second instruction frame, it means that programming is completed and the fifth instruction frame is sent to the portable tire pressure matching device.
[0137] In some embodiments, the user terminal may resend the second instruction frame sent last time when the second error code indicates a programming failure.
[0138] In some embodiments, a second instruction frame is shown in Table 11.
[0139] Table 11:
[0140]
[0141] Among them, in the data field of the second instruction frame, there is a programming function field value 0x02 under the function type field, there is an execution operation field value 0x02 under the operation type field, and the n-byte field value under the content type includes programming sub-data.
[0142] The portable tire pressure matching device parses the function type field, operation type field and content field of the data field in the second instruction frame to obtain the function type data, operation type data and content data in the second data field. When the function type data in the second data field is the programming function field value and the operation type data in the second data field is the execution operation field value, the prompt message "Sensor is being programmed" is displayed on the screen, the programming sub-data is determined from the content data in the second data field, a programming execution signal corresponding to the programming sub-data is transmitted to the tire pressure sensor, and the programming execution result returned by the tire pressure sensor is received. A second response frame is generated according to the second error code that matches the programming execution result, and the second response frame is sent to the user terminal. A second response frame as shown in Table 12.
[0143] The second response frame is shown in Table 12.
[0144] Table 12:
[0145]
[0146] In the data field of the second response frame, the function type field contains a programming function field value of 0x02, the operation type field contains an execution operation field value of 0x02, and the n-byte field value of the content type includes a second error code. The second error code is used to indicate whether the programming is successful.
[0147] In this embodiment, when the function type data in the second data field represents the programming function and the operation type data in the second data field represents the execution operation, a programming execution signal corresponding to the content data in the second data field is transmitted to the tire pressure sensor; the programming execution result returned by the tire pressure sensor for the programming execution signal is obtained; and a second response frame for the second instruction frame is transmitted to the user terminal according to the programming execution result; wherein the user terminal is used to transmit a new second instruction frame when the second instruction frame transmitted last time is not the last second instruction frame and the second response frame represents the programming success. The amount of data required for programming the tire pressure sensor is large. The user terminal and the portable tire pressure matching device interact with at least two second instruction frames to split the entire programming process into multiple sub-processes, thereby avoiding the problem of processing a large amount of data when executing the entire programming at one time, and improving flexibility. Moreover, when the second response frame for the second instruction frame represents the programming success, it means that the portable tire pressure matching device successfully responds to the second instruction frame. At this time, the user terminal transmits a new second instruction frame, which can ensure the validity of each second instruction frame, thereby ensuring the accuracy of programming.
[0148] In some embodiments, the user terminal is used to generate a fifth instruction frame when the second instruction frame sent last time is the last second instruction frame and the second response frame indicates that the programming is successful; the method also includes: obtaining the fifth instruction frame sent by the user terminal; parsing the fifth data field from the fifth instruction frame according to a preset frame structure; when the function type data in the fifth data field indicates the programming function and the operation type data in the first data field indicates the stop operation, transmitting a programming stop signal to the tire pressure sensor; obtaining the programming stop result returned by the tire pressure sensor in response to the programming stop signal.
[0149] Exemplarily, the programming function of the portable tire pressure matching device also includes a stop operation. The user terminal can write a programming function field value under the function type field of the data field part in the preset frame structure, write a stop operation field value under the operation type field of the data field part in the preset frame structure, and set the content field of the data field part in the preset frame structure to empty to generate a fifth instruction frame. The fifth instruction frame is sent to the portable tire pressure matching device. The fifth instruction frame is shown in Table 13.
[0150] Table 13:
[0151]
[0152] Among them, in the data field of the fifth instruction frame, there is a programming function field value 0x02 under the function type field, there is a stop operation field value 0x03 under the operation type field, and the content field is set to empty.
[0153] The portable tire pressure matching device parses the function type field of the data field in the fifth instruction frame according to the preset frame structure to obtain the function type data in the fifth data field. Parses the operation type field of the data field in the fifth instruction frame according to the preset frame structure to obtain the operation type data in the fifth data field. When the function type data in the fifth data field is the programming function field value and the operation type data in the fifth data field is the stop operation field value, a programming stop signal is transmitted to the tire pressure sensor.
[0154] The tire pressure sensor stops programming in response to the programming stop signal and sends a programming stop result to the portable tire pressure matching device.
[0155] The portable tire pressure matching device obtains the programming stop result and determines the fifth error code that matches the programming stop result. The fifth error code is used to indicate whether the programming is successfully stopped. Specifically, when the programming stop result indicates that the programming is successfully stopped, the fifth error code used to describe the successful stop of programming is determined. When the programming stop result indicates that the programming is not successfully stopped, the fifth error code used to describe the unsuccessful stop of programming is determined. Write the programming function field value under the function type field of the data field in the preset frame structure, write the stop operation field value under the operation type field of the data field in the preset frame structure, and write the fifth error code under the content field of the data field in the preset frame structure to generate a fifth response frame for the fifth instruction frame. Send the fifth response frame to the user terminal. The fifth response frame as shown in Table 14.
[0156] Table 14:
[0157]
[0158]
[0159] Among them, in the data field of the fifth response frame, there is a programming function field value 0x02 under the function type field, there is a stop operation field value 0x03 under the operation type field, and the n-byte field value under the content field includes the fifth error code.
[0160] In some embodiments, the user terminal parses the content field of the data field in the fifth response frame according to the preset frame structure to obtain the fifth error code. If the fifth error code indicates that programming is not successfully stopped, the fifth instruction frame is resent to the portable tire pressure matching device.
[0161] In this embodiment, the fifth instruction frame sent by the user terminal is obtained; the fifth data field is parsed from the fifth instruction frame according to the preset frame structure; when the function type data in the fifth data field represents the programming function and the operation type data in the first data field represents the stop operation, a programming stop signal is transmitted to the tire pressure sensor; and the programming stop result returned by the tire pressure sensor in response to the programming stop signal is obtained. There are at least two second instruction frames sent by the user terminal. In order to lighten the portable tire pressure matching device, the portable tire pressure matching device does not need to determine to stop the programming of the tire pressure sensor by itself, but the fifth instruction frame sent by the user terminal is used to stop the programming of the tire pressure sensor. The lighter the portable tire pressure matching device, the lower the cost, which can reduce the cost of programming the tire pressure sensor.
[0162] In some embodiments, the method also includes: obtaining a sixth instruction frame sent by the user terminal; parsing a sixth data field from the sixth instruction frame according to a preset frame structure; entering a startup mode when the function type data in the sixth data field represents an update function and the operation type data in the sixth data field represents a preparation for an operation; obtaining a seventh instruction frame sent by the user terminal; parsing a seventh data field from the seventh instruction frame according to a preset frame structure; performing a firmware update according to the content data in the seventh data field in the startup mode when the function type data in the seventh data field represents an update function and the operation type data in the seventh data field represents an execution operation.
[0163] Exemplarily, the portable tire pressure matching device also has a firmware update function, which includes a preparation operation, an execution operation, and a stop operation.
[0164] The matching program running on the user terminal searches for the portable tire pressure matching device via Bluetooth for connection, and the portable tire pressure matching device displays the Bluetooth connection status on the screen.
[0165] The user terminal may write the update function field value under the function type field of the data field part in the preset frame structure, write the preparation operation field value under the operation type field of the data field part in the preset frame structure, and set the content field of the data field part in the preset frame structure to be empty to generate a sixth instruction frame. The sixth instruction frame is sent to the portable tire pressure matching device. The sixth instruction frame is shown in Table 15.
[0166] Table 15:
[0167]
[0168]
[0169] Among them, in the data field of the sixth instruction frame, there is an update function field value 0x03 under the function type field, there is a prepare operation field value 0x01 under the operation type field, and the content field is empty.
[0170] The portable tire pressure matching device obtains the sixth instruction frame. The function type field of the data field in the sixth instruction frame is parsed according to the preset frame structure to obtain the function type data in the sixth data field. The operation type field of the data field in the sixth instruction frame is parsed according to the preset frame structure to obtain the operation type data in the sixth data field. When the function type data in the sixth data field is the update function field value and the operation type data in the sixth data field is the prepare operation field value, a prompt message for preparing to update the function firmware is displayed and the boot mode is entered. The boot mode refers to the bootloader mode. Determine the sixth error code used to describe whether the boot mode is successfully entered. Write the update function field value under the function type field of the data field part in the preset frame structure, write the prepare operation field value under the operation type field of the data field part in the preset frame structure, and write the sixth error code under the content field of the data field part in the preset frame structure to generate a sixth response frame for the sixth instruction frame. Send the sixth response frame to the user terminal. The sixth response frame as shown in Table 16.
[0171] Table 16:
[0172]
[0173] Among them, in the data field of the sixth response frame, there is an update function field value 0x03 under the function type field, there is a prepare operation field value 0x01 under the operation type field, and the n-byte field value under the content field includes the sixth error code.
[0174] The user terminal obtains the sixth response frame. The content field of the data domain in the sixth response frame is parsed according to the preset frame structure to obtain the sixth error code. When the sixth error code indicates that the startup mode has not been successfully entered, the sixth instruction frame is resent to the portable tire pressure matching device. When the sixth error code indicates that the startup mode has been successfully entered, the update function field value is written under the function type field of the data domain part in the preset frame structure, the execution operation field value is written under the operation type field of the data domain part in the preset frame structure, and the firmware update data is written under the content field of the data domain part in the preset frame structure to generate the seventh instruction frame. The seventh instruction frame is sent to the portable tire pressure matching device. The seventh instruction frame is shown in Table 17.
[0175] Table 17:
[0176]
[0177]
[0178] Among them, in the data field of the seventh instruction frame, there is an update function field value 0x03 under the function type field, there is a prepare operation field value 0x02 under the operation type field, and the n-byte field value under the content field includes firmware update data.
[0179] The portable tire pressure matching device obtains the seventh instruction frame. Parse the function type field, operation type field and content field of the data field in the seventh instruction frame to obtain the function type data, operation type data and content data in the seventh data field. When the function type data in the seventh data field is the update function field value and the operation type data in the seventh data field is the execute operation field value, determine the firmware update data from the content data in the seventh data field. Display the prompt information that the firmware is being updated. Perform firmware update according to the firmware update data in the startup mode, and write the firmware update data into its own storage module. Determine the seventh error code used to describe whether the firmware is successfully updated. It can be understood that successfully updating the firmware means successfully writing the firmware update data into the memory in the portable tire pressure matching device. Write the update function field value under the function type field of the data field part in the preset frame structure, write the execute operation field value under the operation type field of the data field part in the preset frame structure, and write the seventh error code under the content field of the data field part in the preset frame structure to generate a seventh response frame for the seventh instruction frame. Send the seventh response frame to the user terminal. The seventh response frame as shown in Table 18.
[0180] Table 18:
[0181]
[0182] Among them, in the data field of the seventh response frame, there is an update function field value 0x03 under the function type field, there is an execution operation field value 0x02 under the operation type field, and the n-byte field value under the content field includes the seventh error code.
[0183] In some embodiments, there are multiple seventh instruction frames. There is a firmware update sub-data under the content field of the data field in the seventh instruction frame. It can be understood that due to the large amount of data in the firmware update data, the user terminal can divide the firmware update data into at least one firmware update sub-data, and encapsulate each firmware update sub-data in a seventh instruction frame to obtain at least one seventh instruction frame. The user terminal obtains the seventh response frame for the seventh instruction frame sent last time. The content field of the data field in the seventh response frame is parsed according to the preset frame structure to obtain the seventh error code. In the case where the seventh error code indicates that the firmware is not updated successfully, the seventh instruction frame sent last time is resent to the portable tire pressure matching device. In the case where the seventh error code indicates that the firmware is updated successfully and the seventh instruction frame sent last time is not the last seventh instruction frame, a new seventh instruction frame is sent to the portable tire pressure matching device.
[0184] In some embodiments, the user terminal may divide the firmware update data into at least two firmware update sub-data. For each firmware update sub-data, write the firmware update function field value under the function type field of the data domain part in the preset frame structure, write the execution operation field value under the operation type field of the data domain part in the preset frame structure, and write the firmware update sub-data and the firmware update sub-packet sequence number under the content field of the data domain part in the preset frame structure to generate a seventh instruction frame. The firmware update sub-packet sequence number is used to characterize the firmware update sequence of each seventh instruction frame in at least two seventh instruction frames. Send the first seventh instruction frame to the portable tire pressure matching device in the firmware update sequence. Obtain the seventh response frame for the seventh instruction frame sent last, and when the seventh error code indicates that the firmware is successfully updated and the seventh instruction frame sent last is not the last seventh instruction frame, send the next seventh instruction frame of the seventh instruction frame sent last to the portable tire pressure matching device in the firmware update sequence.
[0185] In some embodiments, when the seventh error code indicates that the firmware is successfully updated and the seventh instruction frame sent last is the last seventh instruction frame, it means that the firmware update is completed. At this time, the user terminal can write the firmware update function field value under the function type field of the data domain part in the preset frame structure, write the stop operation field value under the operation type field of the data domain part in the preset frame structure, and set the content field of the data domain part in the preset frame structure to empty to generate the eighth instruction frame. Send the eighth instruction frame to the portable tire pressure matching device. The eighth instruction frame as shown in Table 19.
[0186] Table 19:
[0187]
[0188] Among them, in the data field of the eighth instruction frame, there is an update function field value 0x03 under the function type field, there is a stop operation field value 0x03 under the operation type field, and the content field is empty.
[0189] The portable tire pressure matching device obtains the eighth instruction frame. Parse the function type field and the operation type field of the data field in the eighth instruction frame to obtain the function type data and the operation type data in the eighth data field. When the function type data in the eighth data field is the update function field value and the operation type data in the eighth data field is the stop operation field value, display the prompt information of the update completion and return from the startup mode to the normal operation mode. Determine the eighth error code used to describe whether the normal operation mode is successfully returned. Write the firmware update function field value under the function type field of the data field part in the preset frame structure, write the stop operation field value under the operation type field of the data field part in the preset frame structure, and write the eighth error code under the content field of the data field part in the preset frame structure to generate an eighth response frame for the eighth instruction frame. Send the eighth response frame to the user terminal. The eighth response frame as shown in Table 20.
[0190] Table 20:
[0191]
[0192]
[0193] Among them, in the data field of the eighth response frame, there is an update function field value 0x03 under the function type field, there is a stop operation field value 0x03 under the operation type field, and the n-byte field value under the content field includes the eighth error code.
[0194] In some embodiments, the user terminal obtains the eighth response frame, parses the content field of the data field in the eighth response frame, and obtains the eighth error code. When the eighth error code indicates that the normal operation mode is not successfully returned, the eighth instruction frame is resent to the portable tire pressure matching device.
[0195] In this embodiment, a sixth instruction frame sent by a user terminal is obtained; a sixth data field is parsed from the sixth instruction frame according to a preset frame structure; and a startup mode is entered when the function type data in the sixth data field represents an update function and the operation type data in the sixth data field represents a preparation operation; a seventh instruction frame sent by the user terminal is obtained; a seventh data field is parsed from the seventh instruction frame according to a preset frame structure; and when the function type data in the seventh data field represents an update function and the operation type data in the seventh data field represents an execution operation, a firmware update is performed in the startup mode according to the content data in the seventh data field, and the preparation phase and the execution phase in the firmware update process are decoupled. After entering the startup mode in response to the sixth instruction frame, a firmware update is performed in the startup mode in response to the seventh instruction frame. This is more flexible than the method of implementing the entire firmware update process in response to one instruction frame.
[0196] In some embodiments, the portable tire pressure matching device only needs to have a built-in tire pressure function firmware. Use a smartphone to install a dedicated matching program containing a database, and connect the portable tire pressure matching device via Bluetooth. Then, the matching program on the smartphone can be used to control the portable tire pressure matching device to achieve activation, programming, and firmware update functions, which reduces the cost of the device and is convenient to carry. Among them, the tire pressure function firmware is a fixed program in the tire pressure matching device hardware, which is responsible for the underlying control and hardware configuration. The database contains the executable files required for the activation of tire pressure sensors of various models and the programming data required for programming.
[0197] It is understandable that integrated tire pressure matching devices are usually bulky and expensive, requiring built-in operating systems, tire pressure function firmware, databases, etc. Portable tire pressure matching devices essentially separate the tire pressure function firmware from traditional integrated tire pressure matching devices, and the remaining functions are implemented through unique command frame communications between the portable tire pressure matching device and the matching program on the smartphone.
[0198] In some embodiments, Figure 2 The internal structure diagram of the portable tire pressure matching device is shown. The matching program runs on the user terminal. The portable tire pressure matching device includes a Bluetooth module, a general control module, a screen display module, a storage module, a wireless transmission module and a wireless structure module.
[0199] The general control module is used to parse the instruction frame received by the Bluetooth module, and control at least one of the Bluetooth module, screen display module, storage module, wireless transmission module or wireless receiving module according to the data field in the instruction frame to implement the operations in the function, such as the preparation operation or execution operation in the activation function, the preparation operation, execution operation or stop operation in the programming function, and the preparation operation, execution operation or stop operation in the firmware upgrade function.
[0200] The Bluetooth module is used to establish a Bluetooth connection with the matching program on the user terminal, receive the instruction frame sent by the matching program based on the Bluetooth communication protocol, and return a response frame for the instruction frame to the matching program.
[0201] The storage module is used to store at least one of firmware update data, Bluetooth communication protocol, or executable files required to activate the sensor.
[0202] The wireless transmission module is used to transmit at least one of wireless signals such as an activation signal, a programming execution signal or a programming stop signal to the tire pressure sensor.
[0203] The wireless receiving module is used to receive a wireless signal transmitted by the tire pressure sensor and carrying at least one of information such as a programming execution result or a programming stop result.
[0204] The screen display module is used to display information during each operation on the screen of the portable tire pressure matching device, such as displaying the Bluetooth connection status, reference sensor information, prompt information that the sensor is being activated, prompt information that the sensor is being programmed, or prompt information that programming is completed.
[0205] In some embodiments, Figure 3 The timing diagram of the activation process shown in FIG. 1 is a timing diagram of the activation process shown in FIG. 1 . The matching program on the user terminal communicates with the portable tire pressure matching device via a Bluetooth connection. When the matching program on the user terminal establishes a Bluetooth connection with the portable tire pressure matching device, the portable tire pressure matching device may display that the Bluetooth is connected. The matching program on the user terminal may send a third instruction frame to the portable tire pressure matching device. The portable tire pressure matching device parses the executable file from the received third instruction frame and sends a third response frame to the matching program on the user terminal. The matching program on the user terminal may determine whether the executable file is successfully parsed by parsing the third response frame. If not, it returns to the step of sending the third instruction frame to the portable tire pressure matching device. If yes, it sends a fourth instruction frame to the portable tire pressure matching device. The portable tire pressure matching device responds to the received fourth instruction frame, displays that the sensor is being activated, and transmits an activation signal to the reference sensor by running the executable file. The reference sensor may return reference sensor information in response to the activation signal. The portable tire pressure matching device may receive and display the reference sensor information, and send a fourth response frame to the matching program on the user terminal.
[0206] In some embodiments, Figure 4The timing diagram of the programming process shown in FIG. 1 is a timing diagram of the programming process shown in FIG. 2 . The matching program on the user terminal communicates with the portable tire pressure matching device via a Bluetooth connection. When the matching program on the user terminal establishes a Bluetooth connection with the portable tire pressure matching device, the portable tire pressure matching device may display that the Bluetooth is connected. The matching program on the user terminal may send a first instruction frame to the portable tire pressure matching device. The portable tire pressure matching device may respond to the first instruction frame, display that the sensor is being searched, and transmit a search signal to the tire pressure sensor. The tire pressure sensor may return a response signal in response to the search signal. The portable tire pressure matching device may determine that the tire pressure sensor is searched when receiving the response signal, and send a first response frame to the matching program on the user terminal. The matching program on the user terminal may parse the first response frame to determine whether the tire pressure sensor is searched, and if not, return to the step of sending the first instruction frame to the portable tire pressure matching device, and if so, send a second instruction frame to the portable tire pressure matching device. The portable tire pressure matching device may respond to the second instruction frame, display that the sensor is being programmed, and send a programming execution signal to the tire pressure sensor. The tire pressure sensor may return a programming execution result in response to the programming execution signal. The portable tire pressure matching device can generate a second response frame according to the programming execution result, and send the second response frame to the matching program on the user terminal. The user terminal can parse the second response frame to determine whether the programming is completed. If not, it returns to the step of sending the second instruction frame to the portable tire pressure matching device. If so, it sends the fifth instruction frame to the portable tire pressure matching device. It can be understood that the user terminal determines that the programming is completed when the second instruction frame sent last time is the last second instruction frame and the second response frame indicates that the programming is successful, so the situation where the programming is not completed includes the second response frame indicating that the programming failed and the second response frame indicating that the programming is successful but the second response frame sent last time is not the last second response frame. For these two situations where the programming is not completed, the second instruction frame sent by the user terminal when the second response frame indicates that the programming failed is the second instruction frame sent last time, and the second instruction frame sent when the second response frame indicates that the programming is successful but the second response frame sent last time is not the last second response frame is new. The portable tire pressure matching device can respond to the fifth instruction frame and send a programming stop signal to the tire pressure sensor. The tire pressure sensor can return a programming stop result for the programming stop signal. The portable tire pressure matching device can generate a fifth response frame according to the programming stop result, send the fifth response frame to the matching program on the user terminal, and display that the programming is completed.
[0207] In some embodiments, Figure 5The timing diagram of the firmware update process shown. The matching program on the user terminal communicates with the portable tire pressure matching device via a Bluetooth connection. When the matching program on the user terminal establishes a Bluetooth connection with the portable tire pressure matching device, the portable tire pressure matching device can display that the Bluetooth is connected. The matching program on the user terminal can send a sixth instruction frame to the portable tire pressure matching device. The portable tire pressure matching device can respond to the sixth instruction frame, enter the startup mode, send a sixth response frame to the matching program on the user terminal, and display that the firmware is ready to be updated. The matching program on the user terminal can parse the sixth response frame to determine whether the startup mode is successfully entered. If not, return to the step of sending the sixth instruction frame to the portable tire pressure matching device. If so, send the seventh instruction frame to the portable tire pressure matching device. The portable tire pressure matching device can parse the firmware update data in the seventh instruction frame, display that the firmware is being updated, write the firmware update data into the storage module, and send the seventh response frame to the matching program on the user terminal. The user terminal can parse the seventh response frame to determine whether the firmware update is completed. If not, return to the step of sending the seventh instruction frame to the portable tire pressure matching device. If so, send the eighth instruction frame to the portable tire pressure matching device. It can be understood that the user terminal determines that the firmware update is completed when the seventh instruction frame sent last is the last seventh instruction frame and the seventh response frame indicates that the firmware update is successful, so the situation where the firmware update is not completed includes the seventh response frame indicating that the firmware update failed and the seventh response frame indicating that the firmware update is successful but the seventh response frame sent last is not the last seventh response frame. For these two situations where the firmware update is not completed, the seventh instruction frame sent by the user terminal when the seventh response frame indicates that the firmware update failed is the seventh instruction frame sent last, and the seventh instruction frame sent when the seventh response frame indicates that the firmware update is successful but the seventh response frame sent last is not the last seventh response frame is a new one. The portable tire pressure matching device can respond to the eighth instruction frame, return to the normal operating mode from the startup mode, send the eighth response frame to the matching program on the user terminal, and display that the firmware update is completed.
[0208] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0209] Based on the same inventive concept, the embodiment of the present application also provides a tire pressure sensor programming system for implementing the tire pressure sensor programming method involved above. The implementation scheme for solving the problem provided by the system is similar to the implementation scheme recorded in the above method, so the specific limitations of the one or more tire pressure sensor programming system embodiments provided below can refer to the limitations of the tire pressure sensor programming method above, and will not be repeated here.
[0210] In an exemplary embodiment, Figure 6 As shown, a tire pressure sensor programming system 600 is provided, including: a user terminal 602 and a portable tire pressure matching device 604, wherein:
[0211] The user terminal 602 is used to send a first instruction frame to the portable tire pressure matching device 604; obtain a first response frame for the first instruction frame sent by the portable tire pressure matching device 604; and generate a second instruction frame when the first response frame indicates that the tire pressure sensor search is successful;
[0212] The portable tire pressure matching device 604 is used to parse the first data field from the first instruction frame according to the preset frame structure; search for the tire pressure sensor within the preset range when the function type data in the first data field represents the programming function and the operation type data in the first data field represents the preparation operation; send a first response frame for the first instruction frame to the user terminal 602; obtain the second instruction frame; parse the second data field from the second instruction frame according to the preset frame structure; program the tire pressure sensor according to the content data in the second data field when the function type data in the second data field represents the programming function and the operation type data in the second data field represents the execution operation.
[0213] In some embodiments, the content data in the second data domain includes reference sensor information; the user terminal 602 is used to send a third instruction frame to the portable tire pressure matching device 604; the portable tire pressure matching device 604 is used to obtain the third instruction frame; parse the executable file corresponding to the reference sensor from the third instruction frame; transmit an activation signal to the reference sensor by running the executable file; obtain the reference sensor information returned by the reference sensor in response to the activation signal; and send the reference sensor information to the user terminal 602.
[0214] In some embodiments, the portable tire pressure matching device 604 is used to parse the third data field from the third instruction frame according to a preset frame structure; when the function type data in the third data field represents an activation function and the operation type data in the third data field represents a preparation operation, determine the executable file from the content data in the third data field.
[0215] In some embodiments, the portable tire pressure matching device 604 is used to send a third response frame for the third instruction frame to the user terminal 602; the user terminal 602 is used to generate a fourth instruction frame when the third response frame indicates that the executable file is successfully parsed; send the fourth instruction frame to the portable tire pressure matching device 604; the portable tire pressure matching device 604 is also used to obtain the fourth instruction frame sent by the user terminal 602; parse the fourth data field from the fourth instruction frame according to a preset frame structure; when the function type data in the fourth data field indicates an activation function and the operation type data in the fourth data field indicates an execution operation, an activation signal is transmitted to the reference sensor by running the executable file.
[0216] In some embodiments, there are at least two second instruction frames; the content data in the second data field in different second instruction frames is different; the portable tire pressure matching device 604 is used to transmit a programming execution signal corresponding to the content data in the second data field to the tire pressure sensor when the function type data in the second data field represents a programming function and the operation type data in the second data field represents an execution operation; obtain the programming execution result returned by the tire pressure sensor for the programming execution signal; send a second response frame for the second instruction frame to the user terminal 602 according to the programming execution result; the user terminal 602 is used to send a new second instruction frame when the second instruction frame sent last time is not the last second instruction frame and the second response frame represents successful programming.
[0217] In some embodiments, the user terminal 602 is used to generate a fifth instruction frame when the second instruction frame sent last is the last second instruction frame and the second response frame indicates that the programming is successful; send the fifth instruction frame to the portable tire pressure matching device 604; the portable tire pressure matching device 604 is used to obtain the fifth instruction frame sent by the user terminal 602; parse the fifth data field from the fifth instruction frame according to the preset frame structure; when the function type data in the fifth data field indicates the programming function and the operation type data in the first data field indicates the stop operation, send a programming stop signal to the tire pressure sensor; obtain the programming stop result returned by the tire pressure sensor in response to the programming stop signal.
[0218] In some embodiments, the user terminal 602 is used to send a sixth instruction frame to the portable tire pressure matching device 604; the portable tire pressure matching device 604 is used to obtain the sixth instruction frame sent by the user terminal 602; the sixth data field is parsed from the sixth instruction frame according to the preset frame structure; when the function type data in the sixth data field represents an update function and the operation type data in the sixth data field represents a preparation operation, the startup mode is entered; the user terminal 602 is also used to send a seventh instruction frame to the portable tire pressure matching device 604; the portable tire pressure matching device 604 is also used to obtain the seventh instruction frame sent by the user terminal 602; the seventh data field is parsed from the seventh instruction frame according to the preset frame structure; when the function type data in the seventh data field represents an update function and the operation type data in the seventh data field represents an execution operation, the firmware is updated according to the content data in the seventh data field in the startup mode.
[0219] Each device in the tire pressure sensor programming system can be implemented in whole or in part by software, hardware, or a combination thereof. Each device can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each device.
[0220] In an exemplary embodiment, a computer device is provided. The computer device may be a portable tire pressure matching device, and its internal structure diagram may be as shown in FIG. Figure 7As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a programming method for a tire pressure sensor is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0221] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0222] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0223] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0224] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0225] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0226] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0227] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0228] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A programming method for a tire pressure sensor, characterized in that: Applied to a portable tire pressure matching device; the method comprises: Acquire a first instruction frame sent by a user terminal; Parsing a first data field from the first instruction frame according to a preset frame structure; In a case where the function type data in the first data field represents a programming function and the operation type data in the first data field represents a preparation operation, searching for a tire pressure sensor within a preset range; Sending a first response frame to the first instruction frame to the user terminal to instruct the user terminal to generate a second instruction frame when the first response frame indicates that the tire pressure sensor search is successful; Acquire the second instruction frame sent by the user terminal; Parsing a second data field from the second instruction frame according to the preset frame structure; In a case where the function type data in the second data field represents the programming function and the operation type data in the second data field represents the execution operation, the tire pressure sensor is programmed according to the content data in the second data field.
2. The method according to claim 1, characterized in that The content data in the second data domain includes reference sensor information; the method further includes: Acquire a third instruction frame sent by the user terminal; Parsing an executable file corresponding to the reference sensor from the third instruction frame; By running the executable file, an activation signal is transmitted to the reference sensor; Acquire the reference sensor information returned by the reference sensor in response to the activation signal; The reference sensor information is sent to the user terminal.
3. The method according to claim 2, characterized in that The step of parsing the executable file corresponding to the reference sensor from the third instruction frame includes: Parsing a third data field from the third instruction frame according to the preset frame structure; In the case where the function type data in the third data field indicates an activation function and the operation type data in the third data field indicates a preparation operation, an executable file is determined from the content data in the third data field.
4. The method according to claim 3, characterized in that The method further comprises: Sending a third response frame to the third instruction frame to the user terminal to instruct the user terminal to generate a fourth instruction frame when the third response frame indicates that the executable file is successfully parsed; Acquire the fourth instruction frame sent by the user terminal; Parsing a fourth data field from the fourth instruction frame according to the preset frame structure; The step of transmitting an activation signal to the reference sensor by running the executable file includes: In the case where the function type data in the fourth data field represents an activation function and the operation type data in the fourth data field represents an execution operation, an activation signal is transmitted to the reference sensor by running the executable file.
5. The method according to claim 1, characterized in that There are at least two second instruction frames; the content data in the second data fields of different second instruction frames are different; When the function type data in the second data field represents the programming function and the operation type data in the second data field represents the execution operation, programming the tire pressure sensor according to the content data in the second data field includes: In a case where the function type data in the second data field represents the programming function and the operation type data in the second data field represents the execution operation, transmitting a programming execution signal corresponding to the content data in the second data field to the tire pressure sensor; Acquire a programming execution result returned by the tire pressure sensor in response to the programming execution signal; The method further comprises: A second response frame for the second instruction frame is sent to the user terminal according to the programming execution result; wherein the user terminal is used to send a new second instruction frame when the second instruction frame sent last time is not the last second instruction frame and the second response frame indicates that the programming is successful.
6. The method according to claim 5, characterized in that The user terminal is used to generate a fifth instruction frame when the second instruction frame sent last time is the last second instruction frame and the second response frame indicates that programming is successful; The method further comprises: Acquire a fifth instruction frame sent by the user terminal; Parsing a fifth data field from the fifth instruction frame according to the preset frame structure; When the function type data in the fifth data field represents the programming function and the operation type data in the first data field represents the stop operation, transmitting a programming stop signal to the tire pressure sensor; The programming stop result returned by the tire pressure sensor in response to the programming stop signal is obtained.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Acquire a sixth instruction frame sent by the user terminal; Parsing a sixth data field from the sixth instruction frame according to a preset frame structure; In the case where the function type data in the sixth data field indicates an update function and the operation type data in the sixth data field indicates a preparation operation, entering a startup mode; Acquire a seventh instruction frame sent by the user terminal; Parsing a seventh data field from the seventh instruction frame according to a preset frame structure; In the case where the function type data in the seventh data field represents the update function and the operation type data in the seventh data field represents the execution operation, the firmware update is performed according to the content data in the seventh data field in the startup mode.
8. A programming system for a tire pressure sensor, characterized in that: The system includes a user terminal and a portable tire pressure matching device; The user terminal is used to send a first instruction frame to the portable tire pressure matching device; and obtain a first response frame sent by the portable tire pressure matching device for the first instruction frame; generating a second instruction frame when the first response frame indicates that the tire pressure sensor search is successful; The portable tire pressure matching device is used to parse a first data field from the first instruction frame according to a preset frame structure; search for the tire pressure sensor within a preset range when the function type data in the first data field represents a programming function and the operation type data in the first data field represents a preparation operation; and send a first response frame for the first instruction frame to the user terminal; Acquire the second instruction frame; Parsing a second data field from the second instruction frame according to the preset frame structure; In a case where the function type data in the second data field represents the programming function and the operation type data in the second data field represents the execution operation, the tire pressure sensor is programmed according to the content data in the second data field.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.