Sensor calibration method, device, electronic device and computer-readable storage medium
By combining signal strength and wheel position maps, simplified calibration of sensors in commercial vehicle tire pressure monitoring systems has been achieved, solving the problem of mismatch between sensor position and ID, and improving user experience and system accuracy.
Patent Information
- Application Number
- CN202411147646.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-08-21
AI Technical Summary
In commercial vehicle tire pressure monitoring systems, the sensor's location and ID do not match after tire replacement or swapping, leading to complex pairing and a poor user experience.
The relative distance to the sensor is determined by the signal transmission strength, and the position is calibrated by combining the wheel position diagram, which simplifies the sensor calibration process.
It simplifies the sensor calibration process and improves the user experience, ensuring the accuracy and reliability of the tire pressure monitoring system, and enhancing driving safety and fuel efficiency.
Smart Images

Figure CN118651007B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a sensor calibration method, device, electronic equipment and computer-readable storage medium. Background Art
[0002] Commercial vehicle TPMS (Tire Pressure Monitoring System) is divided into two types: built-in and external. Most of the sensors are built-in, and in order to make the sensor correspond to the corresponding wheel position, wireless pairing is usually performed after or before installation to write the corresponding ID. However, due to the complex operating environment of large trucks, the life of tires is generally shorter than that of family cars, and it is inevitable to replace or swap tires. In this process, the position of the sensor and the position ID will not correspond. The usual solution is to re-pair. In addition, due to the large number of tires on large trucks, pairing errors are prone to occur. To achieve correct pairing requires a complex process, and the user experience is not good. Summary of the invention
[0003] In view of this, the purpose of the present invention is to provide a sensor calibration method, device, electronic device and computer-readable storage medium, which determine the relative distance of sensor time by signal transmission strength, calibrate the position of wheels and sensors in conjunction with a wheel position map, simplify the sensor calibration process and improve the user experience.
[0004] In a first aspect, the present invention provides a sensor calibration method, which is applied to a tire pressure monitoring system, the tire pressure monitoring system comprising: a cab terminal and multiple wheel terminals; the wheel terminal is arranged on the wheel; the method comprises: the cab terminal broadcasts first identification information; after the wheel terminal receives the first identification information, the wheel terminal determines the first signal strength of the received first identification information; the wheel terminal sends the first signal strength and the second identification information to the cab terminal; wherein the second identification information represents the serial number of the wheel terminal; the cab terminal determines the first distance between the wheel terminal and the cab terminal based on the first signal strength, the unit signal strength and the pre-set calibration parameters; and determines the position of the wheel corresponding to the wheel terminal based on the first distance and the pre-set wheel position map.
[0005] In some preferred embodiments of the present invention, the second identification information also represents whether the wheel terminal has completed pairing; after the cab terminal determines the first distance between the wheel terminal and the cab terminal based on the first signal strength, the unit signal strength and the pre-set calibration parameters, the method also includes: determining the wheel terminal corresponding to the minimum first distance as the first slave of the cab terminal; the first slave broadcasts the second identification information corresponding to the first slave; after the wheel terminal receives the second identification information, it determines the second signal strength of the received second identification information; the wheel terminal sends the second signal strength and the second identification information to the first slave; the first slave determines the second distance between the wheel terminal and the first slave based on the second signal strength, the unit signal strength and the calibration parameters; determines the position of the wheel corresponding to the wheel terminal based on the second distance and the pre-set wheel position map; determines the wheel terminal corresponding to the minimum second distance and not completed pairing as the second slave of the first slave; the second slave broadcasts the second identification information corresponding to the second slave until all wheel terminals received by the second slave have completed pairing.
[0006] In some preferred embodiments of the present invention, after the terminal determines the slave, the slave sends pairing completion information and wheel information to the host corresponding to the slave.
[0007] In some preferred embodiments of the present invention, the distance between two terminals is determined based on the following formula: ;in, is the first distance or the second distance between the two terminals, is the first signal strength or the second signal strength, is the unit signal strength, is the calibration parameter.
[0008] In some preferred embodiments of the present invention, the step of determining the calibration parameters includes: fixing the distance between the handheld terminal and the test terminal; obtaining the strength of the test signal sent by the handheld terminal based on the test terminal; and determining the calibration parameters based on the distance between the handheld terminal and the test terminal, the strength of the test signal and the unit signal strength.
[0009] In some preferred embodiments of the present invention, the cab terminal broadcasts the first identification information multiple times; the step of the cab terminal determining the first distance between the wheel terminal and the cab terminal based on the first signal strength, the unit signal strength and the pre-set calibration parameters includes: acquiring the first signal strength multiple times; performing pre-processing on the first signal strength acquired multiple times and calculating the average value to obtain the first average signal strength; the cab terminal determines the first distance between the wheel terminal and the cab terminal based on the first average signal strength, the unit signal strength and the pre-set calibration parameters.
[0010] In some preferred embodiments of the present invention, the communication protocol between terminals includes: a data header, an ID, a function code, data, a pairing status and a fixed table footer.
[0011] In a second aspect, the present invention provides a sensor calibration device, which is applied to a tire pressure monitoring system, and the tire pressure monitoring system includes: a cab terminal and multiple wheel terminals; the wheel terminal is arranged on the wheel; the device includes: a first broadcast module, which is used for the cab terminal to broadcast first identification information; a signal strength acquisition module, which is used for the wheel terminal to determine the first signal strength of the received first identification information after receiving the first identification information; a second broadcast module, which is used for the wheel terminal to send the first signal strength and the second identification information to the cab terminal; wherein the second identification information is the serial number of the wheel terminal; a distance module, which is used for the cab terminal to determine the first distance between the wheel terminal and the cab terminal based on the first signal strength, the unit signal strength and the pre-set calibration parameters; a wheel position determination module, which is used to determine the position of the wheel corresponding to the wheel terminal based on the first distance and the pre-set wheel position map.
[0012] In a third aspect, the present invention provides an electronic device including a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement any of the above-mentioned sensor calibration methods.
[0013] In a fourth aspect, the present invention provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement any of the above-mentioned sensor calibration methods.
[0014] The present invention brings the following beneficial effects:
[0015] The present invention provides a sensor calibration method, device, electronic device and computer-readable storage medium, which are applied to a tire pressure monitoring system, wherein the tire pressure monitoring system comprises: a cab terminal and multiple wheel terminals; the wheel terminal is arranged on the wheel; the method comprises: the cab terminal broadcasts first identification information; after the wheel terminal receives the first identification information, the wheel terminal determines the first signal strength of the received first identification information; the wheel terminal sends the first signal strength and the second identification information to the cab terminal; wherein the second identification information is the serial number of the wheel terminal; the cab terminal determines the first distance between the wheel terminal and the cab terminal based on the first signal strength, the unit signal strength and the pre-set calibration parameters; determines the position of the wheel corresponding to the wheel terminal based on the first distance and the pre-set wheel position map; determines the relative distance of the sensor time by the signal transmission strength, and calibrates the position of the wheel and the sensor in conjunction with the wheel position map, thereby simplifying the sensor calibration process and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 A flow chart of a sensor calibration method provided by an embodiment of the present invention;
[0018] Figure 2 A flow chart of another sensor calibration method provided by an embodiment of the present invention;
[0019] Figure 3 A schematic diagram of the wheel positions of a 22-wheel truck provided in an embodiment of the present invention;
[0020] Figure 4 A flow chart of another sensor calibration method provided by an embodiment of the present invention;
[0021] Figure 5 A data transmission flow chart provided by an embodiment of the present invention;
[0022] Figure 6 A schematic diagram of the structure of a sensor calibration device provided by an embodiment of the present invention;
[0023] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.
[0024] Icons: 310 - first broadcast module; 320 - signal strength acquisition module; 330 - second broadcast module; 340 - distance module; 350 - wheel position determination module; 400 - memory; 401 - processor; 402 - bus; 403 - communication interface. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0026] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0028] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, or the positions or positional relationships in which the product of the invention is usually placed when in use. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific position, be constructed and operated in a specific position, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0029] In addition, the terms "horizontal", "vertical", "overhanging" and the like do not mean that the components are required to be absolutely horizontal or overhanging, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", and does not mean that the structure must be completely horizontal, but can be slightly tilted.
[0030] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0031] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0032] Embodiment 1
[0033] The embodiment of the present invention provides a sensor calibration method, which is applied to a tire pressure monitoring system. The tire pressure monitoring system includes: a cab terminal and multiple wheel terminals; the wheel terminal is set on the wheel; the cab terminal is usually located below the vehicle dashboard, responsible for receiving data from each wheel terminal, and processing and analyzing the data. It can also send instructions to the wheel terminal to control the operation of the entire system. The wheel terminal can be installed on each wheel, responsible for real-time monitoring of the tire pressure and temperature, and sending the detected data to the cab terminal via a wireless signal. The system can monitor the air pressure status of each tire of the vehicle in real time, promptly detect tire leakage or insufficient air pressure problems, and remind the driver to take corresponding measures, thereby ensuring driving safety and improving fuel efficiency. In order to ensure the accuracy and reliability of the system, the calibration process of the sensor is particularly important. The following will introduce in detail a sensor calibration method applied to a tire pressure monitoring system.
[0034] See also Figure 1 The flowchart of a sensor calibration method provided by an embodiment of the present invention is shown, and the method includes:
[0035] Step S102: the cab terminal broadcasts first identification information.
[0036] Specifically, the cab terminal first sends a first identification message to the surroundings. This message is a radio frequency signal or infrared signal for data transmission, where the radio frequency signal generally includes: ZigBee (an advanced communication protocol), Bluetooth, Wi-Fi, ultra-wideband (UWB) and near field communication (NFC), etc., which is used to trigger the wheel terminal to start the calibration procedure. The signal will be received by all wheel terminals.
[0037] Step S104: After receiving the first identification information, the wheel terminal determines the first signal strength of the received first identification information.
[0038] Specifically, when the wheel terminal receives the first identification information from the cab terminal, it will measure the signal strength of the signal. Signal strength is an important parameter in the signal transmission process, reflecting the attenuation of the signal during the transmission process.
[0039] Step S106: The wheel terminal sends the first signal strength and the second identification information to the cab terminal; wherein the second identification information represents the serial number of the wheel terminal.
[0040] Specifically, each wheel terminal sends the first signal strength measured by it and its second identification information back to the cab terminal. The second identification information may be a unique serial number to indicate which wheel terminal sent the data.
[0041] Step S108: The cab terminal determines a first distance between the wheel terminal and the cab terminal based on the first signal strength, the unit signal strength and a preset calibration parameter.
[0042] Specifically, after receiving the signal strength and the second identification information from each wheel terminal, the cab terminal will calculate the distance between each wheel terminal and the cab terminal according to the first signal strength, the unit signal strength and the pre-set calibration parameters. The unit signal strength is a known constant used to convert the signal strength into a distance. The calculated first distance is the distance between the two terminals. In this embodiment, the first distance can be the distance between the cab terminal and the wheel terminal.
[0043] Furthermore, in some preferred embodiments of the present invention, in a tire pressure monitoring system, distance calculation is critical to determining the exact location of the tire. This is because the system needs to know which tire sent a specific signal in order to provide an accurate pressure reading. If the distance cannot be accurately calculated, the system may not be able to distinguish signals from different tires, resulting in erroneous alarms or data interpretation. The distance between the two terminals is determined based on the following formula (1):
[0044] (1)
[0045] in, is the first distance between the two terminals, is the first signal strength, is the unit signal strength, is the calibration parameter.
[0046] Specifically, RSSI (Received Signal Strength Indicator) is an indicator to measure the strength of wireless signals, which reflects the signal power level received by the wireless device. RSSI is positively correlated with the distance between the transmitting and receiving devices to a certain extent. Therefore, through reasonable calculation and conversion, the distance to the receiving device can be inferred from the RSSI value.
[0047] In the above formula, A is RSSI, tx is txPower, which is the RSSI value when the transmitter is 1 meter away from the receiver, and n is an empirical value. The value of n is related to the physical environment (temperature, air pressure, etc.).
[0048] Furthermore, in some preferred embodiments of the present invention, the process of determining the calibration parameter n includes steps A1 to A3:
[0049] Step A1, fixing the distance between the handheld terminal and the test terminal.
[0050] Specifically, we need to fix the distance between the handheld terminal (transmitter) and the test terminal (receiver) in a controlled environment. This distance should be known and can be used as a reference distance. In order to reduce errors, this distance should be measured as accurately as possible and remain unchanged throughout the test.
[0051] Step A2: acquiring the strength of the test signal sent by the handheld terminal based on the test terminal.
[0052] Specifically, the handheld terminal will send a test signal, and the test terminal will receive this signal and measure its strength. This signal strength is the actual received signal power level, usually expressed in decibel milliwatts (dBm). To improve accuracy, this process may need to be repeated multiple times and performed under different environmental conditions in order to collect enough data to analyze changes in signal strength.
[0053] Step A3, determining calibration parameters based on the distance between the handheld terminal and the test terminal, the strength of the test signal and the unit signal strength.
[0054] Specifically, with the above information, we can use formula (1) to determine the calibration parameters.
[0055] Exemplarily, the calibration method may be to test the handheld terminal at a known distance, for example, the front wheel distance of a 22-wheel truck is two and a half meters. After the sensor is installed on one of the tires, the handheld terminal sends a pairing signal to the tire on the other side. txPower is the RSSI value when the transmitter is 1 meter away from the receiver. The RSSI value is the signal strength detected when the receiver receives the data. During the calibration process, the value of n is adjusted to minimize the error between the calculated distance and the actual distance.
[0056] In practical applications, the process of determining calibration parameters may be affected by many factors. For example, environmental interference, temperature changes, vehicle speed and direction, etc. may affect signal propagation. Therefore, the system may need to adjust the calibration parameters in real time to adapt to the current propagation conditions. In addition, since the tire pressure monitoring system usually works in the complex environment of the metal body, the signal may be affected by various effects such as reflection, refraction and scattering. This requires that the system design and calibration process must take these complex propagation characteristics into account.
[0057] Through the above process, we can accurately determine the calibration parameters in the tire pressure monitoring system. This parameter is crucial to the normal operation of the system and vehicle safety. The correct calibration parameters can ensure that the system provides accurate tire pressure information and help drivers detect potential tire problems in time. With the continuous advancement of wireless communication technology, future tire pressure monitoring systems will be more accurate and reliable, providing stronger protection for vehicle safety.
[0058] Furthermore, since the Bluetooth signal itself is volatile, and many factors in the real environment will also affect the signal strength, such as object occlusion, device orientation change, hardware stability, etc., the RSSI value detected by the receiving device is usually unstable, so the result directly calculated using the ranging formula is usually inaccurate. At this time, the data is filtered and the values collected for a period of time are averaged. The RSSI value of a device at a fixed distance will always change within a relatively stable range. The longer the sampling time, the closer the sampled average value will be to the true value. Therefore, in a static ranging scenario, averaging is the best way. Therefore, after completing the formula calibration, the host needs to send the pairing signal more than 10 times during the pairing process, and collect the return data of all responding devices. The filtering algorithm is used to determine whether the sensor ID corresponding to each distance is the same, and the corresponding distance is obtained by removing the large and small values and averaging.
[0059] In some preferred embodiments of the present invention, the cab terminal broadcasts the first identification information multiple times; and the cab terminal determines the first distance between the wheel terminal and the cab terminal based on the first signal strength, the unit signal strength and the preset calibration parameters, including the following steps B1 to B3:
[0060] Step B1, obtaining the first signal strength multiple times.
[0061] Specifically, the cab terminal will send the first identification information multiple times. After each transmission, it will wait for the response of the wheel terminal and record the first signal strength of the response signal. This process will be repeated multiple times to collect enough data for subsequent processing. This step is crucial to reduce random errors and improve the accuracy of distance measurement.
[0062] Step B2, performing preprocessing on the first signal strengths obtained multiple times and calculating the average value to obtain a first average signal strength.
[0063] Specifically, after collecting the first signal strength data for multiple times, the cab terminal will preprocess the data. The purpose of preprocessing is to remove outliers and reduce the impact of noise. This may include data processing techniques such as filtering and removing extreme values. After preprocessing, the cab terminal will calculate the average of these signal strengths to obtain the first average signal strength. This average is more representative of the actual signal strength level because it takes into account the results of multiple measurements rather than relying on a single measurement that may be interfered with.
[0064] Step B3: The cab terminal determines a first distance between the wheel terminal and the cab terminal based on the first average signal strength, the unit signal strength and a preset calibration parameter.
[0065] Specifically, after obtaining the first average signal strength, the cab terminal can calculate the first distance from the wheel terminal based on formula (1).
[0066] Furthermore, in the process of determining the first distance, multiple first signal strengths may be processed to obtain a first average signal strength and then calculate the first distance. Alternatively, multiple first distances may be determined using multiple first signal strengths and then the first average distance may be determined by preprocessing and average value calculation.
[0067] Calculating the first average signal strength can provide a more stable and reliable signal strength indicator, which is crucial for many key functions in wireless communication systems, such as signal quality assessment, base station selection, transmission effect prediction, and system stability.
[0068] Step S110, determining the position of the wheel corresponding to the wheel terminal based on the first distance and a preset wheel position map.
[0069] Specifically, the cab terminal determines the wheel position corresponding to each wheel terminal according to the calculated distance and the pre-set wheel position map. In this way, the system can accurately identify the position of each tire and provide accurate tire pressure information. The wheel position map is pre-stored in the system, and the number of each wheel and the distance of each wheel from the cab terminal are calibrated. This distance can be an estimated distance measured in advance, and then a more accurate position is manually updated after all terminals are positioned. In this step, the cab terminal can be placed on the left side of the cab. Among the multiple first distances calculated, the wheel terminal on the frontmost wheel on the left side of the vehicle must be the closest to the first distance of the cab terminal. During the calibration process, the number of the wheel terminal corresponding to the smallest first distance can be bound to the wheel position of the first wheel on the left side, and the number corresponding to the wheel terminal is bound to each wheel position according to the first distance from each wheel terminal to the cab terminal to complete the sensor calibration.
[0070] The embodiment of the present invention provides a sensor calibration method, device, electronic device and computer-readable storage medium, which are applied to a tire pressure monitoring system, wherein the tire pressure monitoring system includes: a cab terminal and multiple wheel terminals; the wheel terminal is arranged on the wheel; the method includes: the cab terminal broadcasts first identification information; after the wheel terminal receives the first identification information, it determines the first signal strength of the received first identification information; the wheel terminal sends the first signal strength and the second identification information to the cab terminal; wherein the second identification information is the serial number of the wheel terminal; the cab terminal determines the first distance between the wheel terminal and the cab terminal based on the first signal strength, the unit signal strength and the pre-set calibration parameters; determines the position of the wheel corresponding to the wheel terminal based on the first distance and the pre-set wheel position map; determines the relative distance of the sensor time by the signal transmission strength, and calibrates the position of the wheel and the sensor in conjunction with the wheel position map, thereby simplifying the sensor calibration process and improving the user experience.
[0071] Furthermore, the embodiments of the present invention provide a sensor calibration method for ensuring the accuracy and reliability of the tire pressure monitoring system. Through the accurate calibration process, the system can provide the driver with important information about the tire condition, thereby improving driving safety, reducing the risk of accidents, and helping to improve the overall performance of the vehicle.
[0072] Embodiment 2
[0073] Based on the above embodiments, the embodiments of the present invention provide another sensor calibration method and another method for pairing multiple wheel terminals. The second identification information also indicates whether the wheel terminal has completed pairing; the second identification information is generated based on a common communication protocol and can transmit a variety of information. In some preferred embodiments of the present invention, the second identification information can indicate at least one of the following: wheel ID, whether pairing is completed, wheel status, etc.; see Figure 2 The flowchart of another sensor calibration method provided by an embodiment of the present invention is shown, and the method includes:
[0074] Step S202: the cab terminal broadcasts first identification information.
[0075] Specifically, the cab terminal, as the main control unit of the system, first broadcasts a wireless signal containing specific information, which is called the first identification information. This identification information usually contains a unique identification code of the cab terminal, which is used for the wheel terminal to identify and respond.
[0076] Step S204: After receiving the first identification information, the wheel terminal determines the first signal strength of the received first identification information.
[0077] Specifically, each wheel terminal is equipped with a wireless signal receiver, and when they receive the first identification information sent by the cab terminal, they will record the received signal strength. This signal strength is an important basis for judging the distance between the two terminals.
[0078] Step S206: The wheel terminal sends the first signal strength and the second identification information to the cab terminal.
[0079] Specifically, after recording the signal strength of the first identification information, the wheel terminal will send its second identification information and the measured first signal strength back to the cab terminal. This process allows the cab terminal to identify which wheel terminal responded to its broadcast and obtain the signal strength data.
[0080] Step S208: The cab terminal determines a first distance between the wheel terminal and the cab terminal based on the first signal strength, the unit signal strength and a preset calibration parameter.
[0081] Specifically, after receiving the response from the wheel terminal, the cab terminal will calculate the distance to the wheel terminal using the aforementioned formula (1) based on the received first signal strength, the known unit signal strength and the preset calibration parameters. It can also be a second distance, It may also be a second signal strength.
[0082] Step S210: determine the wheel terminal corresponding to the smallest first distance as the first slave of the cab terminal.
[0083] Specifically, among all the wheel terminals that respond, the cab terminal will select the one closest to it as a slave. This slave will become the first wheel terminal whose position is confirmed in the system.
[0084] Step S212: the first slave broadcasts second identification information corresponding to the first slave.
[0085] Specifically, after being determined as the first slave, the wheel terminal will continue to broadcast its own second identification information so that other wheel terminals can recognize and calculate the distance.
[0086] Step S214: After receiving the second identification information, the wheel terminal determines the second signal strength of the received second identification information.
[0087] Specifically, after receiving the second identification information sent by the first slave, the other wheel terminals will also record the signal strength for subsequent distance calculation.
[0088] Step S216: The wheel terminal sends the second signal strength and the second identification information to the first slave.
[0089] Specifically, these wheel terminals will then send their own second identification information together with the received second signal strength to the first slave.
[0090] Step S218: The first slave determines a second distance between the wheel terminal and the first slave based on the second signal strength, the unit signal strength and the calibration parameter.
[0091] Specifically, after receiving the responses from other wheel terminals, the first slave will also calculate the distances between itself and other wheel terminals based on the above information.
[0092] Step S220, determining the position of the wheel corresponding to the wheel terminal based on the second distance and a preset wheel position map.
[0093] Specifically, by comparing the second distance with a preset wheel position map, the first slave machine can determine the specific position of each responding wheel terminal.
[0094] Step S222: Determine the wheel terminal that corresponds to the smallest second distance and has not yet completed pairing as the second slave of the first slave.
[0095] Specifically, after determining the positions of all responding wheel terminals, the first slave will find a wheel terminal that is closest and has not been paired as a slave.
[0096] Step S224: the second slave broadcasts the second identification information corresponding to the second slave until all wheel terminals received by the second slave complete pairing.
[0097] Specifically, the second slave will continue to broadcast its second identification information until all wheel terminals in the area it is responsible for have completed pairing. This process may be repeated multiple times until all wheel terminals are accurately identified and paired.
[0098] Through the above steps, the tire pressure monitoring system can accurately identify the location of each wheel terminal and establish accurate pairing between the cab terminal and each wheel terminal. This process is critical to ensure that the system can provide accurate tire pressure monitoring. With the pairing process completed, the system will be able to monitor the condition of each tire in real time, detect problems in time and alert the driver, thereby ensuring driving safety.
[0099] Furthermore, in some preferred embodiments of the present invention, after the terminal determines the slave, the slave sends verification information to the host corresponding to the slave.
[0100] Specifically, after the connection is established, the slave needs to send verification information to its corresponding master to ensure that the two can exchange data safely and reliably. This verification process may include steps C1 to C5:
[0101] Step C1, Authentication: The slave may need to prove its identity to the master. This can be done by sending an encrypted key, digital certificate, or performing a challenge-response test.
[0102] Step C2, Synchronization: Ensure that the clocks or sequences between the master and slave are synchronized so that the transmitted data can be interpreted correctly.
[0103] Step C3, confirm the agreement: The two parties may negotiate a common communication protocol, which includes determining the data transmission format, error detection and correction mechanism, and flow control strategy.
[0104] Step C4, status report: The slave may report its current status to the master, including information such as available resources, task queues, and completed tasks.
[0105] Step C5, error detection: Before data transmission, the slave can perform a self-diagnostic check to ensure that all systems are operating normally and there are no hardware or software errors that affect the upcoming communication.
[0106] After completing the above verification work, the slave can start to operate according to the instructions of the master. This may include receiving new tasks, uploading data, adjusting operating parameters, etc. After the master receives the verification information from the slave and verifies that it is correct, it will return a confirmation signal to allow the slave to start or continue to execute the task.
[0107] After the terminal determines the slave, the process of the slave sending verification information to the slave's corresponding host is a complex but crucial sequence involving multiple links such as identity authentication, synchronization, protocol negotiation, status reporting and error detection. These steps ensure that a stable and secure communication environment can be established between the master and slave devices, thus laying a solid foundation for subsequent data exchange and task execution.
[0108] Furthermore, in some preferred embodiments of the present invention, after the terminal determines the slave, the slave sends pairing completion information and wheel information to the host corresponding to the slave.
[0109] Specifically, when the slave (wheel terminal) in the tire pressure monitoring system is identified by the host (cab terminal or wheel terminal), the next step involves the slave sending the pairing completion information and wheel information to the host. This process is critical to the function of the system because it ensures that the host can identify each slave and obtain their status data. Specifically, it includes:
[0110] Confirm pairing information: The slave will first generate a message containing pairing confirmation. This message usually includes the slave's identification code and a status code indicating successful pairing. This status code is a key message that tells the host that the slave is ready to exchange data and has been correctly identified and configured.
[0111] Integration of wheel information: The slave also collects various information about the tire status, such as tire pressure, temperature, etc. This information is crucial for the safe operation of the vehicle as it helps the driver understand the current condition of the tire.
[0112] Information transmission: The slave sends the pairing confirmation information and wheel status information to the master through wireless signals. This process may involve data encoding and modulation to ensure the stability and accuracy of the information during transmission.
[0113] The tire pressure monitoring system ensures that the information from each wheel terminal can be effectively sent to the cab terminal. This precise pairing and monitoring mechanism is the key to ensuring vehicle safety and performance. It not only improves the driver's understanding of the vehicle's condition, but also provides important data support for the long-term maintenance and management of the vehicle.
[0114] Furthermore, in some preferred embodiments of the present invention, the communication protocol between terminals includes: a data header, an ID, a function code, data, a pairing status, and a fixed table footer.
[0115] Exemplarily, the device communication protocol is shown in Table 1 below:
[0116] Table 1
[0117]
[0118] Among them, the function code includes: 01 represents the sent pairing instruction, 02 represents the received pairing instruction, 03 represents the slave sends the pairing completion instruction, 04 represents the master sends the pairing completion instruction, 05 represents the pairing end instruction, 06 represents the data collection instruction, 07 represents the collection data transmission, and 08 represents the error data transmission. The data length varies according to different function codes. It can be one bit to represent the number of transmissions, tire ID or RSSI strength data, or four bits CF, DB, C6, 41 to represent voltage stabilization data. There are two pairing situations: 01 represents paired, and 02 represents unpaired.
[0119] In some preferred embodiments of the present invention, see Figure 3The embodiment of the present invention shown in the figure provides a 22-wheel truck wheel position diagram, and the marked wheelbases are 12-14: 320cm; 14-16: 136cm; 16-18: 580cm; 18-20: 130cm; 20-22: 130cm; 13-14: 40cm; 3-13: 170cm; vehicle width: 250cm. The cab terminal is close to the left wheel to send a pairing instruction, and sends its own ID through multiple broadcasts. The device that receives the data returns the signal reception strength to the corresponding ID. The sending end obtains the device ID with the highest corresponding signal strength after calculation by judging the returned data, obtains the corresponding wheel position through the wheel position distribution map of the corresponding vehicle, and performs master-slave pairing with its ID. After the pairing is completed, the host sends a pairing completion instruction. Specifically, 1) Use the cab terminal to send a pairing instruction close to the left wheel 1, and send the central control's own ID through broadcasting. Since it is close to the 1st wheel, the 1st wheel has the strongest signal. Then the central control sends a pairing instruction to complete the pairing with the 1st wheel.
[0120] After receiving the pairing completion command, the slave continues to send its own ID through broadcasting. The device that receives the data returns the signal reception strength to the corresponding ID. The sending end obtains the device ID with the highest corresponding signal strength by judging the returned data, obtains the corresponding wheel position through the wheel position distribution map of the corresponding vehicle, and performs master-slave pairing with its ID. Specifically, after round 1 completes the pairing, it also sends its own ID through broadcasting. The device that receives the data returns the signal reception strength to the corresponding ID. It can be concluded from the data that the strongest signal strength is round 12, followed by rounds 2 and 3. Round 1 obtains the device ID with the highest corresponding signal strength as 12 by judging the returned data, thereby performing master-slave pairing with round 12. The sending end is the master and changes the pairing status of round 1 to 01 at the same time. The receiving end is the slave. After the pairing is completed, the corresponding host sends a completion command, and pairing is performed in sequence. When pairing 12 rounds, round 1 is the strongest, followed by rounds 14 and 13. However, since rounds 1 and 12 have already been paired as the master and slave, the program automatically ignores them. Therefore, round 12 is paired with round 14, and the following are rounds 13, 15, 16, 5, 4, 2, 3, 7, 6, 8, 9, 11, 10, 21, 22, 20, 19, 17, and 18.
[0121] After 22 pairings, the pairing data sent from the last slave is verified to be the master, which means the pairing is complete. After the pairing is completed, the pairing end instruction is sent to the master. After the master receives the pairing end instruction, it also sends it to its own master until it is sent to the terminal, thus completing the pairing of the entire link. Specifically, in the last 18 rounds of broadcasting to send its own ID, all the messages received are messages from paired devices, which means the pairing operation is completed. The pairing completion instruction is sent to its own master. After receiving it, the master also sends the corresponding instructions to its own master in sequence until it is sent to the terminal, thus completing the entire pairing operation. The workflow diagram is as follows Figure 4 A flow chart of another sensor calibration method provided by an embodiment of the present invention is shown.
[0122] Specifically, the sensor calibration method includes: the central control broadcasts and sends a sensor pairing instruction; the sensor returns data after receiving; the central control, as a host, processes the corresponding return signal and calculates the distance and then pairs with device 1; after the central control completes pairing with device 1, it verifies and sends a pairing completion instruction; after device 1 is paired, it broadcasts and sends a pairing instruction as a host; the sensor returns data after receiving; device 1, as a host, processes the corresponding return signal and calculates the distance and then pairs with the corresponding device 2; after device 1 and device 2 are paired, it verifies and sends a pairing completion instruction; ... after device 21 and device 2 are paired, they verify and send a pairing completion instruction; after all devices are paired, they send a pairing end instruction to the host in turn; the central control receives the pairing end instruction and the pairing is completed.
[0123] Furthermore, the solution for sensor failure is as follows: the central control sends the acquisition command for data transmission. The slaves corresponding to the central control are awakened in turn, and the corresponding status data is sent to the host in turn to complete the data acquisition. The awakened device will reply to the host to ensure the completion of the wake-up operation. When a sensor is damaged or the battery is exhausted and cannot complete the reply, the host will report the corresponding wheel position to the host to complete the alarm operation. The overall process Figure 5 A data transmission flow chart provided by an embodiment of the present invention is shown.
[0124] Furthermore, Bluetooth is normally in sleep mode. After data transmission, Bluetooth will enter sleep mode. Its sleep mode is controlled by the sensor chip. Specifically, there are two wake-up modes. The first wake-up mode is chip timed wake-up. After the initial pairing is completed, the timing of each sensor will be reset, so it will be awakened at the same time line and sleep again after completing data transmission. The second wake-up mode is acceleration sensor wake-up. Because the sensor is equipped with an ADXL375 acceleration sensor, when the car starts and moves, the acceleration will detect the signal and wake up at the same time.
[0125] Furthermore, for the case where the difference in signal strength between adjacent sensors is small: during the pairing process, the signal strengths of the transmitted signals are similar and cannot be distinguished. For example, when No. 4 is paired with No. 2, No. 3 may cause distance interference to it. In this case, the difference in the returned RSSI signal strength is less than the corresponding set threshold. At this time, the transmitter No. 4 will perform multiple pairings and complete the pairing operation only when its signal strength is the same after multiple tests.
[0126] Furthermore, regarding the situation of tire replacement: the tires of large vehicles are inevitably replaced. Usually tires 1 and 12 are driving wheels. New tires will be replaced after wear, and the tires will replace the driven tires behind. At this time, you only need to install the sensor of the replaced tire on the newly installed tire, and then send a re-pairing command through the terminal to perform re-pairing.
[0127] Furthermore, after the first pairing is completed, since the distance between each tire is a fixed value and the distances are different, the distance of the signal receiving end can be determined by simply judging the RSSI value of the receiving end, and then the wheel position can be determined according to the corresponding distance to complete the pairing.
[0128] Embodiment 3
[0129] Based on the above embodiments, the present invention provides a sensor calibration device, which is applied to a tire pressure monitoring system. The tire pressure monitoring system includes: a cab terminal and a plurality of wheel terminals; the wheel terminal is arranged on the wheel; Figure 6 The structure diagram of a sensor calibration device provided by an embodiment of the present invention is shown, and the device includes:
[0130] The first broadcast module 310 is used for broadcasting the first identification information to the cab terminal;
[0131] A signal strength acquisition module 320, configured to determine a first signal strength of the received first identification information after the wheel terminal receives the first identification information;
[0132] The second broadcast module 330 is used for the wheel terminal to send the first signal strength and the second identification information to the cab terminal; wherein the second identification information is the serial number of the wheel terminal;
[0133] A distance module 340, used for the cab terminal to determine a first distance between the wheel terminal and the cab terminal based on the first signal strength, the unit signal strength and a preset calibration parameter;
[0134] The wheel position determination module 350 is used to determine the position of the wheel corresponding to the wheel terminal based on the first distance and a preset wheel position map.
[0135] In some preferred embodiments of the present invention, the second identification information also represents whether the wheel terminal has completed pairing; the device also includes: a positioning module, used to determine the wheel terminal corresponding to the minimum first distance as the first slave of the cab terminal; the first slave broadcasts the second identification information corresponding to the first slave; after the wheel terminal receives the second identification information, it determines the second signal strength of the received second identification information; the wheel terminal sends the second signal strength and the second identification information to the first slave; the first slave determines the second distance between the wheel terminal and the first slave based on the second signal strength, the unit signal strength and the calibration parameters; determines the position of the wheel corresponding to the wheel terminal based on the second distance and a pre-set wheel position map; determines the wheel terminal corresponding to the minimum second distance and not completed pairing as the second slave of the first slave; the second slave broadcasts the second identification information corresponding to the second slave until all wheel terminals received by the second slave have completed pairing.
[0136] In some preferred embodiments of the present invention, the device further comprises: a data generating module, which is used for the slave to send pairing completion information and wheel information to the host corresponding to the slave after the terminal determines the slave.
[0137] In some preferred embodiments of the present invention, the distance between two terminals is determined based on the following formula: ;in, is the first distance or the second distance between the two terminals, is the first signal strength or the second signal strength, is the unit signal strength, is the calibration parameter.
[0138] In some preferred embodiments of the present invention, the device also includes: a calibration parameter processing module, used to fix the distance between the handheld terminal and the test terminal; obtain the strength of the test signal sent by the handheld terminal based on the test terminal; determine the calibration parameters based on the distance between the handheld terminal and the test terminal, the strength of the test signal and the unit signal strength.
[0139] In some preferred embodiments of the present invention, the distance module 340 is used to obtain the first signal strength multiple times; the first signal strength obtained multiple times is preprocessed and the average value is calculated to obtain the first average signal strength; the cab terminal determines the first distance between the wheel terminal and the cab terminal based on the first average signal strength, the unit signal strength and the pre-set calibration parameters.
[0140] In some preferred embodiments of the present invention, the communication protocol between terminals includes: a data header, an ID, a function code, data, a pairing status and a fixed table footer.
[0141] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the sensor calibration device described above can refer to the corresponding process in the aforementioned embodiment of the sensor calibration method, and will not be repeated here.
[0142] Embodiment 4
[0143] The embodiment of the present invention also provides an electronic device for executing the sensor calibration method; see Figure 7 The structural schematic diagram of an electronic device provided by an embodiment of the present invention is shown, and the electronic device includes a memory 400 and a processor 401, wherein the memory 400 is used to store one or more computer instructions, and the one or more computer instructions are executed by the processor 401 to implement the above-mentioned sensor calibration method.
[0144] Further, Figure 7 The electronic device shown further includes a bus 402 and a communication interface 403 , and the processor 401 , the communication interface 403 and the memory 400 are connected via the bus 402 .
[0145] The memory 400 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 403 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 402 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0146] The processor 401 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 401. The above processor 401 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 400, and the processor 401 reads the information in the memory 400 and completes the steps of the method of the above embodiment in combination with its hardware.
[0147] An embodiment of the present invention further provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned business recommendation method. The specific implementation can be found in the method embodiment, which will not be repeated here.
[0148] The computer program product of the sensor calibration method, device and electronic device provided in the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method in the previous method embodiment. The specific implementation can be found in the method embodiment, which will not be repeated here.
[0149] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and / or device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0150] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0151] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0152] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A sensor calibration method, characterized in that: Applied to a tire pressure monitoring system, the tire pressure monitoring system comprises: a cab terminal and a plurality of wheel terminals; the wheel terminals are arranged on wheels; the method comprises: The cab terminal broadcasts first identification information; After receiving the first identification information, the wheel terminal determines a first signal strength of the received first identification information; The wheel terminal sends the first signal strength and the second identification information to the cab terminal; wherein the second identification information is the serial number of the wheel terminal; The cab terminal determines a first distance between the wheel terminal and the cab terminal based on the first signal strength, the unit signal strength and a preset calibration parameter; Determine the position of the wheel corresponding to the wheel terminal based on the first distance and a preset wheel position map; The second identification information also indicates whether the wheel terminal has completed pairing; after the cab terminal determines a first distance between the wheel terminal and the cab terminal based on the first signal strength, the unit signal strength and a preset calibration parameter, the method further includes: Determine the wheel terminal corresponding to the smallest first distance as the first slave of the cab terminal; The first slave machine broadcasts the second identification information corresponding to the first slave machine; After receiving the second identification information, the wheel terminal determines a second signal strength of the received second identification information; The wheel terminal sends the second signal strength and the second identification information to the first slave; The first slave determines, based on the second signal strength, the unit signal strength and the calibration parameter, a second distance between the wheel terminal and the first slave; Determining the position of the wheel corresponding to the wheel terminal based on the second distance and a preset wheel position map; determining the wheel terminal corresponding to the smallest second distance and not yet paired as the second slave of the first slave; The second slave broadcasts the second identification information corresponding to the second slave until all the wheel terminals received by the second slave complete pairing.
2. The sensor calibration method according to claim 1, characterized in that: After the terminal determines the slave, the slave sends the pairing completion information and the wheel information to the host corresponding to the slave.
3. The sensor calibration method according to claim 1, characterized in that: The distance between two terminals is determined based on the following formula: ; in, is the first distance or the second distance between the two terminals, is the first signal strength or the second signal strength, is the unit signal strength, is the calibration parameter.
4. The sensor calibration method according to claim 3, characterized in that: The step of determining the calibration parameters comprises: Fix the distance between the handheld terminal and the test terminal; Acquiring, based on the test terminal, the strength of the test signal sent by the handheld terminal; The calibration parameter is determined based on the distance between the handheld terminal and the test terminal, the strength of the test signal and the unit signal strength.
5. The sensor calibration method according to claim 1, characterized in that: The cab terminal broadcasts the first identification information multiple times; the cab terminal determines a first distance between the wheel terminal and the cab terminal based on the first signal strength, the unit signal strength and a preset calibration parameter, comprising: acquiring the first signal strength multiple times; Calculate the average value of the first signal strengths obtained multiple times after preprocessing to obtain a first average signal strength; The cab terminal determines a first distance between the wheel terminal and the cab terminal based on the first average signal strength, the unit signal strength and a preset calibration parameter.
6. The sensor calibration method according to claim 1, characterized in that: The communication protocol between terminals includes: data header, ID, function code, data, pairing status and fixed footer.
7. A sensor calibration device, characterized in that: Applicable to a tire pressure monitoring system, the tire pressure monitoring system comprises: a cab terminal and a plurality of wheel terminals; the wheel terminals are arranged on the wheels; the device comprises: A first broadcast module, used for the cab terminal to broadcast first identification information; a signal strength acquisition module, configured to determine a first signal strength of the received first identification information after the wheel terminal receives the first identification information; A second broadcast module, used for the wheel terminal to send the first signal strength and the second identification information to the cab terminal; wherein the second identification information is the serial number of the wheel terminal; A distance module, used for the cab terminal to determine a first distance between the wheel terminal and the cab terminal based on the first signal strength, the unit signal strength and a preset calibration parameter; a wheel position determination module, configured to determine the position of the wheel corresponding to the wheel terminal based on the first distance and a preset wheel position map; The second identification information also represents whether the wheel terminal has completed pairing; the device also includes: a positioning module; the positioning module is used to determine the wheel terminal corresponding to the smallest first distance as the first slave of the cab terminal; the first slave broadcasts the second identification information corresponding to the first slave; after the wheel terminal receives the second identification information, it determines the second signal strength of the received second identification information; the wheel terminal sends the second signal strength and the second identification information to the first slave; the first slave determines the second distance between the wheel terminal and the first slave based on the second signal strength, the unit signal strength and the calibration parameter; determines the position of the wheel corresponding to the wheel terminal based on the second distance and a preset wheel position map; determines the wheel terminal corresponding to the smallest second distance and not completed pairing as the second slave of the first slave; the second slave broadcasts the second identification information corresponding to the second slave until all the wheel terminals received by the second slave have completed pairing.
8. An electronic device, characterized in that: The sensor calibration method comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the sensor calibration method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the sensor calibration method according to any one of claims 1 to 6.
