Safety belt structure control method, safety belt structure and equipment
By combining a magnet sensor and an MCU, the electrical signal changes that alter the distance between the magnet and the sensor through the rotation of the locking pin. Combined with filtering and threshold judgment, this solves the problems of false alarms and missed alarms in traditional seat belt systems, ensuring accurate judgment of the seat belt status.
Patent Information
- Application Number
- CN202511753806.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-26
- Publication Date
- 2026-02-10
AI Technical Summary
Traditional seatbelt reminder systems are prone to false alarms or missed alarms due to poor mechanical contact or failure, and they cannot provide feedback on the health status of the buckle.
By combining a magnet sensor and an MCU, the distance between the magnet and the sensor is changed by the rotation of the locking pin, and different electrical signals are output. Combined with filtering and threshold judgment, the seat belt status is accurately judged.
It avoids poor contact caused by long-term use or environmental influences, improves the accuracy of seat belt status judgment, and reduces false alarms and missed alarms.
Smart Images

Figure CN121492848A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of automotive passive safety, and more particularly to the field of seat belt structure control technology. Background Technology
[0002] Seat belts are the most basic and important passive safety device in a vehicle. To remind occupants to fasten their seat belts, modern cars are generally equipped with seat belt reminder systems. Traditional seat belt reminder systems typically include a simple switch-type sensor installed inside the buckle. When the seat belt latch is inserted into the buckle, a mechanical mechanism triggers the switch, opening or closing the circuit, which the ECU (Electronic Control Unit) uses to determine that the seat belt is fastened; otherwise, it triggers an audible and visual alarm.
[0003] However, mechanical switches are prone to poor contact or failure due to long-term use, dust, liquid intrusion, etc., which may lead to false alarms (such as alarms even when the switch is on) or missed alarms (such as alarms even when the switch is not on).
[0004] In addition, existing seat belts are unable to provide feedback to the ECU on the health status of the buckle itself (such as sensor failure, abnormal electrical connection, etc.). Summary of the Invention
[0005] This disclosure provides a method, apparatus, device, and storage medium for controlling seat belt structure.
[0006] According to a first aspect of this disclosure, a seatbelt structure control method is provided. The seatbelt structure includes: a locking mechanism, a buckle housing, and a locking pin. The locking mechanism is installed in the buckle housing, and the locking pin is installed in the locking mechanism. A magnet is mounted on the locking pin. The seatbelt structure further includes a circuit board. The circuit board and the locking pin are respectively installed on both sides of the locking mechanism. A sensor and a microcontroller (MCU) are mounted on the circuit board. The sensing surface of the sensor faces the magnet. When the locking tongue of the seatbelt structure inserts into and removes from the locking mechanism, it pushes the locking pin to rotate. The magnet fixed on the locking pin moves accordingly, and the distance between the magnet and the sensor changes, causing the sensor to output different electrical signals to the MCU. The method is applicable to the MCU and includes: Acquire the electrical signal collected by the sensor in the locking mechanism; filter the electrical signal to obtain the filtered electrical signal; Obtain the electrical signal threshold; The filtered electrical signal is compared with the electrical signal threshold to determine whether the locking tongue of the seat belt structure is inserted into the locking mechanism.
[0007] In addition to the aspects described above and any possible implementations, a further implementation is provided in which the electrical signal threshold includes a first electrical signal threshold and a second electrical signal threshold, wherein the first electrical signal threshold is greater than the second electrical signal threshold; The step of comparing the filtered electrical signal with the electrical signal threshold to determine whether the locking tongue of the seat belt structure is inserted into the locking mechanism includes: Determine whether the filtered electrical signal is greater than the first electrical signal threshold; If the filtered electrical signal is greater than the first electrical signal threshold, it is determined that the locking tongue of the seat belt structure is not inserted into the locking mechanism; Determine whether the filtered electrical signal is less than the second electrical signal threshold; If the filtered electrical signal is less than the second electrical signal threshold, it is determined that the locking tongue of the seat belt structure has been inserted into the locking mechanism.
[0008] In addition to the aspects described above and any possible implementations, a further implementation is provided in which the first electrical signal threshold and the second electrical signal threshold vary depending on the temperature of the sensor and the duration of use of the magnet.
[0009] In addition to the aspects and any possible implementations described above, a further implementation is provided in which comparing the filtered electrical signal with the electrical signal threshold includes: Determine whether the filtered electrical signal undergoes a high-low state transition; If the filtered electrical signal undergoes a high-low state transition, it is determined whether the filtered electrical signal stabilizes in the transition state within a first preset time period. If the filtered electrical signal remains stable in the state after the transition within the first preset time period, then the state after the transition is confirmed to be valid. The state after the transition is compared with the electrical signal threshold. The method further includes: If the filtered electrical signal does not stabilize in the state after the transition within the first preset time period, then the state after the transition is deemed invalid.
[0010] In addition to the aspects and any possible implementations described above, a further implementation is provided, wherein the method further includes: When the MCU is powered on, it is determined whether the filtered electrical signal is continuously at the power supply voltage or continuously at the ground level within a second preset time period; If the filtered electrical signal remains at the power supply voltage or at ground level for a second preset time period, the sensor is determined to be faulty.
[0011] In addition to the aspects and any possible implementations described above, a further implementation is provided, wherein the method further includes: Obtain the effective signal range of the sensor; Determine whether the filtered electrical signal is within the effective signal range of the sensor; If the filtered electrical signal is not within the effective signal range of the sensor, the sensor is determined to be faulty.
[0012] In addition to the aspects and any possible implementations described above, a further implementation is provided, wherein the method further includes: Determine whether a preset event occurs between the latch and the locking mechanism within a third preset time period, wherein the preset event is that the latch is inserted into the locking mechanism and then pulled out within the third preset time period, or that the latch is pulled out from the locking mechanism and then inserted again within the third preset time period; If the preset event occurs within the third preset time period, the preset event will be uploaded.
[0013] According to a second aspect of this disclosure, a seatbelt structure is provided, comprising: a locking mechanism, a buckle housing, and a locking pin. The locking mechanism is installed in the buckle housing, and the locking pin is installed in the locking mechanism. A magnet is mounted on the locking pin. The seatbelt structure further includes a circuit board, with the circuit board and the locking pin respectively installed on both sides of the locking mechanism. A sensor and an MCU are mounted on the circuit board. The sensing surface of the sensor faces the magnet. When the locking tongue of the seatbelt structure inserts into and removes from the locking mechanism, it pushes the locking pin to rotate. The magnet fixed on the locking pin moves accordingly, and the distance between the magnet and the sensor changes, causing the sensor to output different electrical signals to the MCU. The MCU is specifically used for: Acquire the electrical signals collected by the sensors in the locking mechanism; The electrical signal is filtered to obtain a filtered electrical signal; Obtain the electrical signal threshold; The filtered electrical signal is compared with the electrical signal threshold to determine whether the locking tongue of the seat belt structure is inserted into the locking mechanism.
[0014] According to a third aspect of this disclosure, an electronic device is provided. The electronic device includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the program to implement the method described above.
[0015] According to a fourth aspect of this disclosure, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the method according to a first aspect of this disclosure.
[0016] In this disclosure, when the electrical signal collected by the sensor is acquired, it can be determined whether the locking tongue is inserted into the locking mechanism based on the electrical signal. The electrical signal is filtered and compared with the electrical signal threshold before determining whether the locking tongue of the seat belt structure is inserted into the locking mechanism. This avoids the risk of false alarms (such as alarms when the seat belt is fastened) or missed alarms (no alarms when the seat belt is not fastened) caused by poor contact or failure of the seat belt structure due to long-term use, dust, liquid intrusion, etc. This ensures that the changes in the electrical signal on the sensor can be used to accurately determine whether the seat belt is fastened.
[0017] It should be understood that the description in the Summary of the Invention is not intended to limit the key or essential features of the embodiments of this disclosure, nor is it intended to restrict the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0018] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. The drawings are provided for a better understanding of the invention and are not intended to limit the scope of this disclosure. In the drawings, the same or similar reference numerals denote the same or similar elements, wherein: Figure 1 A flowchart of a seatbelt structure control method according to an embodiment of the present disclosure is shown; Figure 2 A structural diagram of a seatbelt structure according to an embodiment of the present disclosure is shown; Figure 3 A schematic cross-sectional view of a seatbelt structure according to an embodiment of the present disclosure is shown; Figure 4 A flowchart of another seatbelt structure control method according to an embodiment of the present disclosure is shown; Figure 5 A block diagram of an exemplary electronic device capable of implementing embodiments of the present disclosure is shown.
[0019] The correspondence between structure and labeling will be explained below: 1-Locking mechanism; 2-Locking pin; 3-Magnet; 4-PCB board; 5-Hall sensor; 6-MCU; 7-LIN transceiver; 8-Power management chip (power supply and protection circuit); 9-Lock housing. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.
[0021] Furthermore, the term "and / or" in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0022] Figure 1 A flowchart of a seatbelt structure control method 100 according to an embodiment of the present disclosure is shown. Figure 2 and Figure 3 As shown, the seat belt structure includes: a locking mechanism 1, a buckle housing 9, and a locking pin 2. The locking mechanism 1 is installed in the buckle housing 9, and the locking pin 2 is installed in the locking mechanism 1. Method 100 may include: A magnet 3 is mounted on the locking pin. The seat belt structure also includes a circuit board 4. The circuit board 4 and the locking pin 2 are respectively mounted on both sides of the locking mechanism 1. A sensor 5 and an MCU 6 are mounted on the circuit board. like Figure 3 As shown, the sensing surface of the sensor faces the magnet. When the locking tongue of the seatbelt structure inserts into and removes from the locking mechanism, it pushes the locking pin to rotate. The magnet fixed on the locking pin moves accordingly, and the distance between the magnet and the sensor changes, causing the sensor to output different electrical signals to the MCU. The method is applicable to the MCU and includes: Step 110: Acquire the electrical signal collected by the sensor in the locking mechanism; filter the electrical signal to obtain the filtered electrical signal; Step 120: Obtain the electrical signal threshold; Step 130: Compare the filtered electrical signal with the electrical signal threshold to determine whether the locking tongue of the seat belt structure is inserted into the locking mechanism.
[0023] Since the sensing surface of the sensor on the circuit board faces the magnet, when the locking tongue of the seat belt structure inserts into and pulls out of the locking mechanism, it will push the locking pin to rotate. The magnet fixed on the locking pin will move accordingly, and the distance between the magnet and the sensor will change, causing the sensor to output different electrical signals to the MCU. Therefore, when the electrical signal collected by the sensor is obtained, it can be determined whether the locking tongue is inserted into the locking mechanism based on the electrical signal. By filtering the electrical signal and comparing the filtered electrical signal with the electrical signal threshold, it is possible to determine whether the locking tongue of the seat belt structure is inserted into the locking mechanism. This avoids the risk of false alarms (such as alarming when the seat belt is fastened) or missed alarms (not alarming when the seat belt is not fastened) caused by poor contact or failure of the seat belt structure due to long-term use, dust, liquid intrusion, etc., ensuring that the seat belt is fastened can be accurately determined by the change of the electrical signal on the sensor.
[0024] In some embodiments, the electrical signal threshold includes a first electrical signal threshold and a second electrical signal threshold, wherein the first electrical signal threshold is greater than the second electrical signal threshold; The step of comparing the filtered electrical signal with the electrical signal threshold to determine whether the locking tongue of the seat belt structure is inserted into the locking mechanism includes: Determine whether the filtered electrical signal is greater than the first electrical signal threshold; If the filtered electrical signal is greater than the first electrical signal threshold, it is determined that the locking tongue of the seat belt structure is not inserted into the locking mechanism; the first electrical signal threshold is a high threshold, and the second electrical signal threshold is a low threshold.
[0025] Determine whether the filtered electrical signal is less than the second electrical signal threshold; If the filtered electrical signal is less than the second electrical signal threshold, it is determined that the locking tongue of the seat belt structure has been inserted into the locking mechanism.
[0026] By determining whether the filtered electrical signal is greater than the first electrical signal threshold, it can be accurately determined that the locking tongue of the seat belt structure is not inserted into the locking mechanism when the filtered electrical signal is greater than the first electrical signal threshold; and when the filtered electrical signal is less than the second electrical signal threshold, it can be accurately determined that the locking tongue of the seat belt structure has been inserted into the locking mechanism, thereby accurately determining whether the seat belt locking tongue is inserted into the locking mechanism.
[0027] In some embodiments, the first electrical signal threshold and the second electrical signal threshold vary depending on the temperature of the sensor and the duration of use of the magnet.
[0028] Due to temperature changes or magnet aging, the sensor reference value may change slowly. The MCU can remain in a stable state for a long time, and therefore, the judgment threshold can be fine-tuned to adapt to these changes, thereby improving long-term reliability.
[0029] In some embodiments, comparing the filtered electrical signal with the electrical signal threshold includes: Determine whether the filtered electrical signal undergoes a high-low state transition; If the filtered electrical signal undergoes a high-low state transition, it is determined whether the filtered electrical signal stabilizes in the transition state within a first preset time period. If the filtered electrical signal remains stable in the state after the transition within the first preset time period, then the state after the transition is confirmed to be valid. The state after the transition is compared with the electrical signal threshold. The method further includes: If the filtered electrical signal does not stabilize in the state after the transition within the first preset time period, then the state after the transition is deemed invalid.
[0030] If the filtered electrical signal undergoes a high-low transition, it is determined whether the filtered electrical signal stabilizes in the transition state within a first preset time period. If the filtered electrical signal stabilizes in the transition state within the first preset time period, it indicates that the transition state is relatively stable. Therefore, the transition state is valid. The transition state can be compared with the electrical signal threshold to improve the accuracy of the seat belt status. If the filtered electrical signal does not stabilize in the state after the jump within the first preset time period, it indicates that the electrical signal is jumping back and forth and is not very stable. Therefore, it can be confirmed that the state after the jump is invalid.
[0031] In some embodiments, the method further includes: When the MCU is powered on, it is determined whether the filtered electrical signal is continuously at the power supply voltage or continuously at the ground level within a second preset time period; If the filtered electrical signal remains at the power supply voltage or at ground level for a second preset time period, the sensor is determined to be faulty.
[0032] When the MCU is powered on, it can be determined whether the filtered electrical signal is continuously at the power supply voltage or continuously at the ground level within a second preset time period. If the filtered electrical signal is continuously at the power supply voltage within the second preset time period, it may be a power supply fault. If the filtered electrical signal is continuously at the ground level within the second preset time period, it may be a short circuit to ground or an open circuit. Therefore, the sensor fault can be determined, so that the seat belt can reflect its own health status.
[0033] In some embodiments, the method further includes: Obtain the effective signal range of the sensor; Determine whether the filtered electrical signal is within the effective signal range of the sensor; If the filtered electrical signal is not within the effective signal range of the sensor, the sensor is determined to be faulty.
[0034] After obtaining the effective signal range of the sensor, it can be determined whether the filtered electrical signal is within the effective signal range of the sensor. If the filtered electrical signal is not within the effective signal range of the sensor, it indicates that the filtered electrical signal is abnormal. Therefore, the sensor can be determined to be faulty, thereby avoiding misjudgment of the seat belt status.
[0035] In some embodiments, the method further includes: Determine whether a preset event occurs between the latch and the locking mechanism within a third preset time period, wherein the preset event is that the latch is inserted into the locking mechanism and then pulled out within the third preset time period, or that the latch is pulled out from the locking mechanism and then inserted again within the third preset time period; If the preset event occurs within the third preset time period, the preset event will be uploaded.
[0036] By determining whether a preset event occurs between the latch and the locking mechanism within a third preset time period, the preset event can be uploaded after it occurs within the third preset time period, i.e., such invalid events are uploaded.
[0037] The following will combine Figures 2 to 4 Further explanation of the technical solution of the present invention: See Figure 2 The seatbelt structure of this invention mainly consists of the following parts: a locking mechanism 4, a Hall sensor 5 (status sensing module), an MCU 6, a LIN transceiver 7 (part of the digital communication interface), and a PCB board composed of a power management chip 8 (power supply and protection circuit), and a buckle housing 9. A standard automotive electrical connector provides power (+12V) and ground (GND) to the entire module, and connects to the vehicle network via the LIN bus of the LIN transceiver 7.
[0038] See Figure 3 The locking mechanism 1 contains a locking pin 2. When the bolt (not shown in the figure) is inserted, it pushes the locking pin 2 to rotate, causing the magnet 3 fixed on the locking pin 2 to move accordingly. The Hall sensor 5 is fixedly mounted on the PCB board 4, with its sensing surface facing the movement trajectory of the magnet 3. When the bolt is inserted and removed, the distance between the magnet 3 and the Hall sensor 5 changes, resulting in a change in the magnetic field strength. The Hall sensor 5 outputs different voltage signals to the MCU 6.
[0039] See Figure 4After powering on, MCU6 first performs a self-test. If the self-test fails, a DTC error is reported; if the self-test succeeds, it continuously acquires the signal from Hall sensor 5 and performs filtering and status determination using software algorithms. The MCU packages the determination result (e.g., 0 = unfastened, 1 = fastened) and the self-test status into a data frame conforming to the LIN protocol and periodically sends it to the bus via a LIN transceiver. The vehicle ECU subscribes to this message to know the status of the seat belt and decides whether to trigger the alarm based on the status.
[0040] Among them, the built-in logic of the MCU is as follows Figure 4 As shown: 1. Signal Acquisition and Preprocessing Algorithms Analog-to-digital conversion (ADC): If the sensor (such as a Hall sensor) outputs an analog signal, the MCU converts it into a digital signal using its built-in ADC module at a specific sampling rate (e.g., once every 1 ms).
[0041] Digital filtering: Applying software filters (such as moving average filtering or Kalman filtering) to the acquired digital signals to suppress transient noise caused by vehicle vibration, electromagnetic interference, etc., and improve signal stability.
[0042] Threshold Comparison: The program presets one or more thresholds. The filtered signal value is compared with the threshold as a preliminary basis for judging the status of the latch. For example, when the magnetic field strength signal value is higher than the threshold V_th_high, it is determined that "the latch is not inserted"; when it is lower than the threshold V_th_low, it is determined that "the latch is inserted".
[0043] 2. State determination and debouncing algorithm Finite State Machine (FSM) Model: The MCU uses a finite state machine model to manage the latch state. Typical states include: UNOCCUPIED (not inserted), OCCUPIED (inserted), DEBOUNCING (debouncing), and ERROR (error).
[0044] Software dejitter: Mechanical movements or signal jumps can cause jitter, generating a series of unstable pulses. Algorithms eliminate this jitter using a time-window dejitter method. When a signal is detected to transition from one state (e.g., "high") to another state (e.g., "low"), the MCU does not immediately acknowledge the state change. Instead, it starts a debounce timer (e.g., for 20ms).
[0045] Before the timer expires, the signal is continuously monitored. If the signal remains stable in the new state within the time window, the state transition is confirmed to be valid; if the signal jumps back to the original state within the time window, the transition is considered interference and is ignored.
[0046] This process effectively prevents false alarms caused by instantaneous vibrations.
[0047] 3. Self-diagnosis and health management algorithms Sensor diagnostics: Open / Short Circuit Detection: Periodically check the level of the sensor output pin. If the read signal is consistently the power supply voltage (which may be a short circuit to the power supply) or consistently ground (which may be a short circuit to ground or an open circuit), and is far outside the normal range, the MCU determines that the sensor is faulty and generates a corresponding Diagnostic Trouble Code (DTC), such as DTC_Sensor_Short_to_Vcc.
[0048] Signal validity check: Monitor whether the signal value is within the physically possible range (e.g., neither 0 nor the maximum value) to determine if the sensor is malfunctioning.
[0049] Circuit self-test (Power-on self-test): During the MCU power-on initialization phase, a self-test is performed on the internal memory, ADC module, etc., to ensure that its functions are normal.
[0050] Communication self-test: The MCU can receive diagnostic requests from the master control node via the LIN bus, or actively report its own status to achieve bidirectional communication diagnosis.
[0051] 4. Event Detection and Advanced Logic Algorithms Insertion-Removal Event Sequence Detection: The algorithm can record the sequence of state changes and timestamps. For example, if an insertion-removal sequence is detected within a very short time (e.g., within 2 seconds), it can be identified as a special event (e.g., an "invalid use event") and reported upwards via the bus. This is very useful for analyzing driver behavior or in certain commercial scenarios.
[0052] Environmental Adaptation: The algorithm can include learning or adaptive mechanisms, such as slow drift compensation. Due to temperature changes or magnet aging, the sensor reference value may change slowly. The MCU can fine-tune the judgment threshold while in a stable state for a long time to adapt to these changes and improve long-term reliability.
[0053] 5. Communication Protocol Processing Algorithm Message scheduling: The MCU periodically encapsulates status information into data frames according to a predefined scheduling table on the LIN bus. Each frame contains: Status bit: 1 byte, the least significant bit indicates the current status (0 = not connected, 1 = connected).
[0054] Diagnostic bits: 1 byte, used to report fault codes (0xFF=normal, 0x01=sensor fault, 0x02=internal error, etc.).
[0055] Counters and checksums: used to ensure the integrity and freshness of communication data and prevent the use of outdated data.
[0056] Command parsing: The MCU can parse commands from the master node, such as "Enter sleep mode to save quiescent current" or "Report detailed diagnostic information".
[0057] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this disclosure is not limited to the described order of actions, because according to this disclosure, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to this disclosure.
[0058] The above is an introduction to the method embodiments. The following describes the solution described in this disclosure further through device embodiments.
[0059] Figure 2 A block diagram of a seatbelt structure 200 according to an embodiment of the present disclosure is shown. Figure 2 As shown, the device 200 includes: The locking mechanism 1 comprises a locking housing 9 and a locking pin 2, wherein the locking mechanism 1 is installed in the locking housing 9, and the locking pin 2 is installed in the locking mechanism 1. The characteristic of this design is that... A magnet 3 is mounted on the locking pin 2. The seat belt structure also includes a circuit board. The circuit board and the locking pin 2 are respectively mounted on both sides of the locking mechanism 1. A sensor 5 and an MCU 6 are mounted on the circuit board. The sensing surface of the sensor 5 faces the magnet 3. When the locking tongue of the seat belt structure inserts into and pulls out of the locking mechanism 1, it pushes the locking pin 2 to rotate, and the magnet 3 fixed on the locking pin 2 moves accordingly. The distance between the magnet 3 and the sensor 5 changes, causing the sensor 5 to output different electrical signals to the MCU. The MCU 6 is specifically used for: Acquire the electrical signal collected by sensor 5 in the locking mechanism 1; The electrical signal is filtered to obtain a filtered electrical signal; Obtain the electrical signal threshold; The filtered electrical signal is compared with the electrical signal threshold to determine whether the locking tongue of the seat belt structure is inserted into the locking mechanism 1.
[0060] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the described module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0061] According to embodiments of the present disclosure, the present disclosure also provides an electronic device and a non-transitory computer-readable storage medium storing computer instructions.
[0062] Figure 5 A schematic block diagram of an electronic device 800 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0063] Device 800 includes a computing unit 801, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 802 or a computer program loaded from storage unit 808 into random access memory (RAM) 803. RAM 803 may also store various programs and data required for the operation of device 800. The computing unit 801, ROM 802, and RAM 803 are interconnected via bus 804. Input / output (I / O) interface 805 is also connected to bus 804.
[0064] Multiple components in device 800 are connected to I / O interface 805, including: input unit 806, such as keyboard, mouse, etc.; output unit 807, such as various types of monitors, speakers, etc.; storage unit 808, such as disk, optical disk, etc.; and communication unit 809, such as network card, modem, wireless transceiver, etc. Communication unit 809 allows device 800 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0065] The computing unit 801 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 performs the various methods and processes described above, such as method 100. For example, in some embodiments, method 100 may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of method 100 described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform method 100 by any other suitable means (e.g., by means of firmware).
[0066] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0067] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0068] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0069] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0070] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0071] Computing systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.
[0072] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.
[0073] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.
Claims
1. A method for controlling a seatbelt structure, wherein the seatbelt structure comprises: A locking mechanism, a latch housing, and a locking pin, wherein the locking mechanism is installed in the latch housing, and the locking pin is installed in the locking mechanism, characterized in that... A magnet is mounted on the locking pin. The seat belt structure also includes a circuit board. The circuit board and the locking pin are respectively mounted on both sides of the locking mechanism. A sensor and an MCU are mounted on the circuit board. The sensing surface of the sensor faces the magnet. When the locking tongue of the seatbelt structure inserts into and removes from the locking mechanism, it pushes the locking pin to rotate. The magnet fixed on the locking pin moves accordingly, and the distance between the magnet and the sensor changes, causing the sensor to output different electrical signals to the MCU. The method is applicable to the MCU and includes: Acquire the electrical signal collected by the sensor in the locking mechanism; filter the electrical signal to obtain the filtered electrical signal; Obtain the electrical signal threshold; The filtered electrical signal is compared with the electrical signal threshold to determine whether the locking tongue of the seat belt structure is inserted into the locking mechanism.
2. The method as described in claim 1, characterized in that, The electrical signal threshold includes a first electrical signal threshold and a second electrical signal threshold, wherein the first electrical signal threshold is greater than the second electrical signal threshold; The step of comparing the filtered electrical signal with the electrical signal threshold to determine whether the locking tongue of the seat belt structure is inserted into the locking mechanism includes: Determine whether the filtered electrical signal is greater than the first electrical signal threshold; If the filtered electrical signal is greater than the first electrical signal threshold, it is determined that the locking tongue of the seat belt structure is not inserted into the locking mechanism; Determine whether the filtered electrical signal is less than the second electrical signal threshold; If the filtered electrical signal is less than the second electrical signal threshold, it is determined that the locking tongue of the seat belt structure has been inserted into the locking mechanism.
3. The method as described in claim 2, characterized in that, The first electrical signal threshold and the second electrical signal threshold vary depending on the temperature of the sensor and the duration of use of the magnet.
4. The method as described in claim 1, characterized in that, The step of comparing the filtered electrical signal with the electrical signal threshold includes: Determine whether the filtered electrical signal undergoes a high-low state transition; If the filtered electrical signal undergoes a high-low state transition, it is determined whether the filtered electrical signal stabilizes in the transition state within a first preset time period. If the filtered electrical signal remains stable in the state after the transition within the first preset time period, then the state after the transition is confirmed to be valid. The state after the transition is compared with the electrical signal threshold. The method further includes: If the filtered electrical signal does not stabilize in the state after the transition within the first preset time period, then the state after the transition is deemed invalid.
5. The method as described in claim 1, characterized in that, The method further includes: When the MCU is powered on, it is determined whether the filtered electrical signal is continuously at the power supply voltage or continuously at the ground level within a second preset time period; If the filtered electrical signal remains at the power supply voltage or at ground level for a second preset time period, the sensor is determined to be faulty.
6. The method as described in claim 1, characterized in that, The method further includes: Obtain the effective signal range of the sensor; Determine whether the filtered electrical signal is within the effective signal range of the sensor; If the filtered electrical signal is not within the effective signal range of the sensor, the sensor is determined to be faulty.
7. The method according to any one of claims 1 to 6, characterized in that, The method further includes: Determine whether a preset event occurs between the latch and the locking mechanism within a third preset time period, wherein the preset event is that the latch is inserted into the locking mechanism and then pulled out within the third preset time period, or that the latch is pulled out from the locking mechanism and then inserted again within the third preset time period; If the preset event occurs within the third preset time period, the preset event will be uploaded.
8. A seatbelt structure, comprising: A locking mechanism, a latch housing, and a locking pin, wherein the locking mechanism is installed in the latch housing, and the locking pin is installed in the locking mechanism, characterized in that... A magnet is mounted on the locking pin. The seat belt structure also includes a circuit board. The circuit board and the locking pin are respectively mounted on both sides of the locking mechanism. A sensor and an MCU are mounted on the circuit board. The sensing surface of the sensor faces the magnet. When the locking tongue of the seatbelt structure inserts into and removes from the locking mechanism, it pushes the locking pin to rotate. The magnet fixed on the locking pin moves accordingly, and the distance between the magnet and the sensor changes, causing the sensor to output different electrical signals to the MCU. The MCU is specifically used for: Acquire the electrical signals collected by the sensors in the locking mechanism; The electrical signal is filtered to obtain a filtered electrical signal; Obtain the electrical signal threshold; The filtered electrical signal is compared with the electrical signal threshold to determine whether the locking tongue of the seat belt structure is inserted into the locking mechanism.
9. An electronic device, characterized in that, include: Memory and processor The memory stores a computer program, and when the processor executes the program, it implements the method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor corresponding to the electronic device, the electronic device is able to implement the seat belt structure control method as described in any one of claims 1-7.