Anti-theft system for truck fuel tank and using method of anti-theft system
Through the STM32G0 intelligent fuel tank monitoring system and face recognition technology, real-time monitoring and abnormal alarm of truck fuel tanks are realized, solving the problem of fuel tanks being easily damaged and unable to provide real-time warnings in the existing technology, and providing more efficient fuel tank safety guarantees.
Patent Information
- Application Number
- CN202411815222.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2025-01-10
AI Technical Summary
The anti-theft device of the existing truck fuel tank is easily damaged and cannot provide real-time early warning. It lacks remote notification and evidence retention, making it difficult to ensure oil safety.
The STM32G0 intelligent fuel tank monitoring system is adopted to combine sensor detection and face recognition technology to take pictures through the camera and upload text messages to realize real-time monitoring of fuel tank status and abnormal alarm.
Even if the fuel tank is stolen, the system can promptly discover and inform the car owner, record pictures of strangers in advance, narrow the scope of suspect investigation, improve the safety and efficiency of truck transportation, and provide car owners with more reliable fuel tank safety guarantees.
Smart Images

Figure CN119283814A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of electronic anti-theft systems, and in particular relates to an anti-theft system for a truck fuel tank and a use method thereof. Background Art
[0002] Nowadays, transportation is becoming more and more developed, and the total freight volume is increasing year by year. Road freight accounts for three quarters of it. However, long-distance freight is very hard work. It is a common problem that truck drivers are stolen when they are resting. It not only causes significant economic losses, but also affects freight plans and vehicle safety. At present, many truck fuel tank anti-theft devices have been proposed, which mainly rely on mechanical locks and simple alarm devices. There are still many defects, such as: (1) Mechanical locks are easy to be damaged, or bypass the mechanical locks to directly damage the fuel tank body, then the anti-theft device will lose its effect; (2) It is usually triggered after the theft, and cannot provide real-time warning, resulting in insufficient driver reaction time; (3) Existing alarm devices usually only provide local alarms and cannot realize remote notification; (4) The location where the fuel tank is stolen is usually outdoors and lacks monitoring. Suspects can only be found through limited physical evidence such as fingerprints, and the anti-theft device lacks evidence retention. Therefore, traditional fuel tank security measures are difficult to meet the needs of ensuring fuel safety, and a smarter and more efficient solution is urgently needed. Summary of the invention
[0003] The present invention aims at the problems existing in the prior art mentioned above, and proposes an anti-theft system for truck fuel tanks and a method for using the same. The anti-theft system of the present invention adopts the STM32G0 intelligent fuel tank monitoring system, and combines sensor detection and face recognition technology to realize real-time monitoring of the fuel tank status and abnormal alarm functions to ensure fuel safety. By capturing pictures through face recognition, uploading them to the network and sending text messages, it helps prevent fuel tank theft, improve the safety and efficiency of truck transportation, and provide car owners with more reliable fuel tank safety protection.
[0004] The present invention discloses an anti-theft system for a truck fuel tank, the anti-theft system comprising: a bottom layer STM32G0 main control board for collecting sensor data and transmitting alarm information, a middle layer Raspberry Pi main control board and an upper layer camera unit; The bottom layer STM32G0 main control board is installed on the top outer surface of the first connection component, the middle layer Raspberry Pi main control board is installed on the upper surface of the second connection component, and the upper layer camera unit is installed on the upper surface of the third connection component; the bottom layer STM32G0 main control board and the Raspberry Pi main control board are electrically connected through a DuPont line, and the Raspberry Pi main control board and the upper layer camera unit are electrically connected through a flexible flat cable; The first connecting component is configured as a cover-shaped structure that can fit with the fuel tank cover, the top inner surface corresponding to the top outer surface is in close contact with the fuel tank cover, and the top outer surface is provided with at least 3 first grooves that are evenly arranged; the annular inner side surface of the first connecting component is provided with a slot that fits with the fuel tank cover; The second connecting assembly and the third connecting assembly both include a bearing plate and a leg fixedly connected to the lower surface of the bearing plate, and a protrusion is provided at the bottom of the leg; the number and position of the legs of the second connecting assembly correspond to the first groove one by one, the protrusion of the second connecting assembly is a first protrusion, and the first protrusion is combined with the first groove by mortise and tenon; The upper surface of the bearing plate of the second connecting component is provided with at least three second grooves which are evenly arranged, the number and position of the legs of the third connecting component correspond to the second grooves one by one, the protrusion of the third connecting component is a second protrusion, and the second protrusion is connected with the second groove by mortise and tenon joints; The bottom layer STM32G0 main control board includes a main control module STM32G030F6P6, a buzzer module for alarming, a vibration sensor for detecting vibration of the fuel tank, an OLED display module for displaying data, a water depth sensor for monitoring the liquid level in the fuel tank, and a solid-state relay for controlling the power supply of the bottom layer STM32G0 main control board; The vibration sensor, water depth sensor and solid-state relay are all connected to the input end of the main control module STM32G030F6P6; the Raspberry Pi main control board, the buzzer module and the OLED display module are all connected to the output end of the main control module STM32G030F6P6.
[0005] In the present invention, the main control module STM32G030F6P6 collects sensor data and performs status judgment. If there is an abnormality, the information is sent to the Raspberry Pi and the buzzer module is activated.
[0006] Further, in the anti-theft system of the present invention, the main control module STM32G030F6P6 is provided with a PA0 pin, a PA4 pin, a PA5 pin, a VCC pin, a GND pin, a PA2 pin, a PA3 pin, a PA1 pin, a PA13 pin and a PA14 pin; Among them, the PA0 pin is connected to the vibration sensor, the PA4 pin and the PA5 pin are connected to the water depth sensor, the VCC pin and the GND pin are connected to the solid-state relay, the PA2 pin and the PA3 pin are connected to the Raspberry Pi main control board, the PA1 pin is connected to the buzzer module, and the PA13 pin and the PA14 pin are connected to the OLED display module.
[0007] Furthermore, in the anti-theft system described in the present invention, the output end of the vibration sensor module continuously outputs a low level when vibration is detected, and the water depth sensor continuously detects the liquid pressure value at the bottom of the oil tank and sends it to the main control module STM32G030F6P6 through the IIC protocol.
[0008] Furthermore, in the anti-theft system described in the present invention, the input end of the Raspberry Pi main control board is connected to an accelerometer for monitoring the current motion state of the vehicle, as well as a communication module and a camera module; the output end of the Raspberry Pi main control board is connected to a cloud server, the solid-state relay and the communication module, the communication module supports 4G Internet access and SMS sending, the Raspberry Pi main control board is connected to the Internet through the communication module, and the Raspberry Pi main control board finally uploads the pictures taken by the camera module to the server.
[0009] In the present invention, the model of the communication module may be Quectel EC200A.
[0010] Furthermore, in the anti-theft system described in the present invention, GPIO2 and GPIO3 of the Raspberry Pi main control board are connected to an acceleration sensor module for monitoring the current motion state of the vehicle.
[0011] Furthermore, in the anti-theft system of the present invention, the water depth sensor sends the liquid pressure value at the bottom of the oil tank to the main control module STM32G030F6P6 via the IIC protocol.
[0012] In the present invention, whether the current state is abnormal can be determined by judging the short-time pressure drop value.
[0013] Furthermore, in the anti-theft system described in the present invention, the relay module is powered by a battery module provided by a solar charging module, and the Raspberry Pi main control board is powered by a power bank.
[0014] Furthermore, in the anti-theft system described in the present invention, the monitoring error of the water depth sensor is within plus or minus 2%.
[0015] On the other hand, the present invention further provides a method for using any of the above-mentioned anti-theft systems, the method comprising: The anti-theft system is nested and installed on the oil cap of the truck's fuel tank. The Raspberry Pi main control board performs initialization operations and connects to the cloud server through the 4G network. The current motion state of the truck is determined based on the feedback data of the accelerometer. When the truck is stationary, the camera module sends the captured picture to the Raspberry Pi main control, which uses the OPENCV image processing library to process the camera image. If there is a face that has not been recorded in the image, the current image will be recorded first, and the image will be uploaded to the cloud server through the 4G network. Then, the solid-state relay is turned on to power on the underlying STM32G0 main control board. After the solid-state relay is turned on, the bottom STM32G0 main control board starts to receive data from the vibration sensor and the water depth sensor and determines the state of the fuel tank; The method for judging the state of the fuel tank is as follows: when the data sent by the vibration sensor changes at a high frequency, the fuel tank is being physically damaged and is in an abnormal state; or, when the data of the water depth sensor drops rapidly, it is judged that the state of the fuel tank is in an abnormal state; The fuel tank status is sent to the Raspberry Pi main control, and the buzzer sounds at the same time, and the Raspberry Pi main control makes a phone call or sends a text message to remind the truck driver.
[0016] In the present invention, if a face is not recorded for a long time in the picture provided by the camera module or the communication with the underlying STM32G0 main control board is lost, the underlying STM32G0 main control board will ring the buzzer module and the Raspberry Pi main control will make a call or send a text message to remind the truck driver; if a face has been recorded or no one appears for a long time, the relay module will be turned off to save electricity.
[0017] Compared with the prior art, the present invention has the following beneficial technical effects: When the anti-theft system described in the present invention is used, even if the oil thief bypasses the anti-theft system and directly damages the oil tank, it can be discovered in time and the owner can be informed by detecting the vibration frequency of the oil tank and the oil pressure in the oil tank; and if a stranger exists in front of the oil tank for a long time, the owner will be reminded, and it is not limited to being reminded only when the theft occurs; the driver can remotely know the safety status of the oil tank through a mobile phone; in addition, the anti-theft system of the present invention can record all strangers who appear in front of the oil tank in advance and store them in the cloud server. Even if the anti-theft system is the first to be destroyed and loses its effect during the theft, the picture will not be lost. After the theft, the investigation range can be greatly narrowed, which greatly increases the probability of finding the suspect.
[0018] The anti-theft system described in the present invention realizes the real-time monitoring of the fuel tank status and abnormal alarm function, ensuring the safety of fuel; through face recognition, pictures are captured and uploaded to the network and text messages are sent, which prevents the theft of the fuel tank, improves the safety and efficiency of truck transportation, and provides car owners with more reliable fuel tank safety protection. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1It is a schematic diagram of the overall structure of the anti-theft system of the present invention; Figure 2 is a system block diagram of the anti-theft system of the present invention; Figure 3 This is a schematic diagram of the structure of the main control module STM32G030F6P6 of the present invention; Figure 4 It is a schematic diagram of the three-dimensional structure of the first connecting component of the present invention; Figure 5 It is a schematic diagram of the internal three-dimensional structure of the first connecting component of the present invention; Figure 6 is a schematic diagram of the three-dimensional structure of the second connecting component of the present invention; Figure 7 It is a schematic diagram of the three-dimensional structure of the third connecting component of the present invention when it is flipped; Figure 8 This is a schematic diagram of the overall structure of the first connecting component, the second connecting component and the third connecting component of the present invention; Wherein: 100, first connecting component, 101, top outer surface, 102, top inner surface, 103, first groove, 104, card slot; 200 second connecting assembly, 201, upper surface, 202, bearing plate of the second connecting assembly, 203, legs of the second connecting assembly, 204, first protrusion, 205, second groove; 300. A third connecting component; 302. A bearing plate of the third connecting component; 303. A leg of the second connecting component; 304. A second protrusion. DETAILED DESCRIPTION
[0020] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, the specific implementation methods of the present invention are now described in detail with reference to the accompanying drawings. The described embodiments are only some embodiments of the present invention, not all embodiments. 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. If no specific conditions are specified in the specific implementation method, it shall be carried out under normal conditions or conditions recommended by the manufacturer. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described exemplarily below do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the attached claims. Specific implementation method 1
[0021] like Figures 1 to 7The anti-theft system for a truck fuel tank of the present invention includes: a bottom layer STM32G0 main control board for collecting sensor data and transmitting alarm information, a middle layer Raspberry Pi main control board and an upper layer camera unit; The bottom layer STM32G0 main control board is installed on the top outer surface 101 of the first connection component 100, the middle layer Raspberry Pi main control board is installed on the upper surface 201 of the second connection component 200, and the upper layer camera unit is installed on the upper surface of the third connection component; the bottom layer STM32G0 main control board and the Raspberry Pi main control board are electrically connected through a DuPont line, and the Raspberry Pi main control board and the upper layer camera unit are electrically connected through a flexible flat cable; The first connecting component 100 is configured as a cover-shaped structure that can fit with the fuel tank cap. The top inner surface 102 corresponding to the top outer surface 101 is in close contact with the fuel tank cap. The top outer surface 101 is provided with at least three first grooves 103 that are evenly arranged. The annular inner side surface of the first connecting component 100 is provided with a clamping groove 104 that fits with the fuel tank cap. The second connecting assembly 200 and the third connecting assembly 300 both include a supporting plate 202, 302 and supporting legs 203, 303 fixedly connected to the lower surface of the supporting plate, and the bottom of the supporting legs is provided with a protrusion; the number and position of the supporting legs 203 of the second connecting assembly 200 correspond to the first groove 103 one by one, and the protrusion of the second connecting assembly 200 is a first protrusion 204, and the first protrusion 204 is connected to the first groove 103 by mortise and tenon joints; The upper surface 201 of the carrier plate 202 of the second connecting component 200 is provided with at least three second grooves 205 arranged evenly, the number and position of the legs 303 of the third connecting component 300 correspond one-to-one to the second grooves 205, the protrusion of the third connecting component 300 is a second protrusion 304, and the second protrusion 304 is connected with the second groove 205 by mortise and tenon joints; The bottom layer STM32G0 main control board includes a main control module STM32G030F6P6, a buzzer module for alarm, a vibration sensor for detecting vibration of the oil tank, an OLED display module for displaying data, a water depth sensor for monitoring the liquid level in the oil tank, and a solid-state relay for controlling the power supply of the bottom layer STM32G0 main control board; The vibration sensor, water depth sensor and solid-state relay are all connected to the input end of the main control module STM32G030F6P6; the Raspberry Pi main control board, the buzzer module and the OLED display module are all connected to the output end of the main control module STM32G030F6P6.
[0022] The main control module STM32G030F6P6 collects sensor data and makes status judgments. If there is an abnormality, the information is sent to the Raspberry Pi and the buzzer module is activated.
[0023] In some embodiments, the main control module STM32G030F6P6 is provided with a PA0 pin, a PA4 pin, a PA5 pin, a VCC pin, a GND pin, a PA2 pin, a PA3 pin, a PA1 pin, a PA13 pin, and a PA14 pin; Among them, the PA0 pin is connected to the vibration sensor, the PA4 pin and the PA5 pin are connected to the above-mentioned water depth sensor, the VCC pin and the GND pin are connected to the above-mentioned solid-state relay, the PA2 pin and the PA3 pin are connected to the above-mentioned Raspberry Pi main control board, the PA1 pin is connected to the above-mentioned buzzer module, and the PA13 pin and the PA14 pin are connected to the above-mentioned OLED display module.
[0024] In some implementations, the output terminal of the vibration sensor module continuously outputs a low level when vibration is detected, and the water depth sensor continuously detects the liquid pressure value at the bottom of the oil tank and sends it to the main control module STM32G030F6P6 via the IIC protocol.
[0025] In some embodiments, the input end of the above-mentioned Raspberry Pi main control board is connected to an accelerometer for monitoring the current motion state of the vehicle, as well as a communication module and a camera module; the output end of the Raspberry Pi main control board is connected to a cloud server, the solid-state relay and the communication module, the communication module supports 4G Internet access and SMS sending, the Raspberry Pi main control board is connected to the Internet through the communication module, and the Raspberry Pi main control board finally uploads the pictures taken by the camera module to the server.
[0026] In some implementations, GPIO2 and GPIO3 of the Raspberry Pi main control board are connected to an acceleration sensor module for monitoring the current motion state of the vehicle.
[0027] In some embodiments, the water depth sensor sends the liquid pressure value at the bottom of the oil tank to the main control module STM32G030F6P6 via the IIC protocol. By judging the short-time pressure drop value, it can be known whether it is in an abnormal state.
[0028] In some embodiments, the relay module is powered by a battery module provided by a solar charging module, and the Raspberry Pi main control board is powered by a power bank.
[0029] In some embodiments, the monitoring error of the water depth sensor is within plus or minus 2%. Specific implementation method 2
[0030] A method for using the anti-theft system described in the first specific embodiment of the present invention comprises: The first connection component of the anti-theft system is nested and installed on the oil cap of the truck's oil tank. The Raspberry Pi main control board is initialized and connected to the cloud server through the 4G network. The current motion state of the truck is determined based on the feedback data of the accelerometer. When the truck is stationary, the camera module sends the captured image to the Raspberry Pi main control, which uses the OPENCV image processing library to process the camera image. If there is a face that has not been recorded in the image, the current image will be recorded first, and the image will be uploaded to the cloud server through the 4G network. Then, the solid-state relay is turned on to power on the underlying STM32G0 main control board. After the solid-state relay is turned on, the bottom STM32G0 main control board starts to receive data from the vibration sensor and the water depth sensor and judge the state of the fuel tank; The above-mentioned method for judging the state of the fuel tank is as follows: when the data sent by the above-mentioned vibration sensor jumps at a high frequency, the fuel tank is being physically damaged and is in an abnormal state; or, when the data of the above-mentioned water depth sensor drops rapidly, it is determined that the state of the fuel tank is in an abnormal state; The fuel tank status is sent to the Raspberry Pi master control, and the buzzer sounds at the same time, and the Raspberry Pi master control makes a phone call or sends a text message to remind the truck driver.
[0031] In addition, if there is no face recorded in the picture provided by the camera module for a long time or the communication with the underlying STM32G0 main control board is lost, the underlying STM32G0 main control board will ring the buzzer module and the Raspberry Pi main control will make a call or send a text message to remind the truck driver; if there is a face recorded or no one appears for a long time, the relay module will be turned off to save energy.
[0032] The present invention is further described in detail below in conjunction with specific embodiments. Example 1
[0033] The present invention discloses an anti-theft system for a truck fuel tank and a method of using the system.
[0034] The anti-theft system of the present invention comprises: a bottom layer STM32G0 main control board for collecting sensor data and transmitting alarm information, a middle layer Raspberry Pi main control board and an upper layer camera unit; like Figures 1 to 7As shown, the bottom STM32G0 main control board is installed on the top outer surface 101 of the first connection component 100, the middle Raspberry Pi main control board is installed on the upper surface 201 of the second connection component 200, and the upper camera unit is installed on the upper surface of the third connection component; the bottom STM32G0 main control board and the Raspberry Pi main control board are electrically connected through a DuPont line, and the Raspberry Pi main control board and the upper camera unit are electrically connected through a flexible flat cable; The first connecting component 100 is configured as a cover-shaped structure that can fit with the fuel tank cap. The top inner surface 102 corresponding to the top outer surface 101 is in close contact with the fuel tank cap. The top outer surface 101 is provided with at least three first grooves 103 that are evenly arranged. The annular inner side surface of the first connecting component 100 is provided with a clamping groove 104 that fits with the fuel tank cap. The second connecting assembly 200 and the third connecting assembly 300 both include a bearing plate 202, 302 and legs 203, 303 fixedly connected to the lower surface of the bearing plate, and a protrusion is provided at the bottom of the legs; the number and position of the legs 203 of the second connecting assembly 200 correspond to the first groove 103 one by one, and the protrusion of the second connecting assembly 200 is a first protrusion 204, and the first protrusion 204 is connected to the first groove 103 by mortise and tenon joints; The upper surface 201 of the carrier plate 202 of the second connecting component 200 is provided with at least three second grooves 205 arranged evenly, the number and position of the legs 303 of the third connecting component 300 correspond one-to-one to the second grooves 205, the protrusion of the third connecting component 300 is the second protrusion 304, and the second protrusion 304 is connected with the second groove 205 by mortise and tenon joints; The bottom STM32G0 main control board includes the main control module STM32G030F6P6, a buzzer module for alarm, a vibration sensor for detecting the vibration of the fuel tank, an OLED display module for displaying data, a water depth sensor for monitoring the liquid level in the fuel tank, and a solid-state relay for controlling the power supply of the bottom STM32G0 main control board; The vibration sensor, water depth sensor and solid-state relay are all connected to the input end of the main control module STM32G030F6P6; the Raspberry Pi main control board, buzzer module and OLED display module are all connected to the output end of the main control module STM32G030F6P6.
[0035] The main control module STM32G030F6P6 has PA0 pin, PA4 pin, PA5 pin, VCC pin, GND pin, PA2 pin, PA3 pin, PA1 pin, PA13 pin and PA14 pin; Among them, the PA0 pin is connected to the vibration sensor, the PA4 pin and the PA5 pin are connected to the water depth sensor, the VCC pin and the GND pin are connected to the solid-state relay, the PA2 pin and the PA3 pin are connected to the Raspberry Pi main control board, the PA1 pin is connected to the buzzer module, and the PA13 pin and the PA14 pin are connected to the OLED display module.
[0036] The vibration sensor module continuously outputs a low level at its output end when vibration is detected. The water depth sensor continuously detects the liquid pressure value at the bottom of the tank and sends it to the main control module STM32G030F6P6 through the IIC protocol.
[0037] The input end of the Raspberry Pi main control board is connected to an accelerometer for monitoring the current motion state of the vehicle, as well as a communication module and a camera module; the output end of the Raspberry Pi main control board is connected to a cloud server, the solid-state relay and the communication module, the communication module supports 4G Internet access and SMS sending, the Raspberry Pi main control board is connected to the Internet through the communication module, and the Raspberry Pi main control board finally uploads the pictures taken by the camera module to the server.
[0038] The GPIO2 and GPIO3 of the Raspberry Pi main control board are connected to the acceleration sensor module for monitoring the current motion state of the vehicle.
[0039] The water depth sensor sends the liquid pressure value at the bottom of the tank to the main control module STM32G030F6P6 through the IIC protocol.
[0040] The relay module is powered by the battery module provided by the solar charging module, and the Raspberry Pi main control board is powered by a power bank.
[0041] The monitoring error of the water depth sensor is within plus or minus 2%.
[0042] In this embodiment 1, the vibration sensor adopts the SW-18010P vibration sensor, the water depth sensor adopts the MS5837 water depth sensor, and the acceleration sensor adopts the MPU6050 acceleration sensor.
[0043] When the anti-theft system of this embodiment is used, the first connection component of the anti-theft system is nested and installed on the oil cap of the truck's fuel tank, the Raspberry Pi main control board performs initialization operations, and connects to the cloud server through the 4G network, and determines the current motion state of the truck based on the feedback data of the accelerometer; when the truck is in a stationary state, the camera module sends the captured picture to the Raspberry Pi main control, and the Raspberry Pi main control uses the OPENCV image processing library to process the camera image. If there is an unrecorded face in the image, the current image will be recorded first, and the image will be uploaded to the cloud server through the 4G network, and then the relay module will be turned on to power on the underlying STM32G0 main control board. After the relay module is turned on, the main control module starts to receive the vibration sensor. The data from the vibration sensor and the water depth sensor are used to judge the status of the fuel tank. The high-frequency jump of the data sent by the vibration sensor means that the fuel tank is being physically damaged, and the rapid drop of the data from the water depth sensor means that the oil is losing quickly. They are all judged as abnormal status and sent to the Raspberry Pi main control, and then the buzzer module is sounded, and the Raspberry Pi main control makes a call or sends a text message to remind the truck driver; in addition, if there is no face recorded in the picture for a long time or the communication with the underlying STM32G0 main control board is lost, the underlying STM32G0 main control board will sound the buzzer module and the Raspberry Pi main control will make a call or send a text message to remind the truck driver; if there is a face that has been recorded or no one appears for a long time, the relay module will be turned off to save energy.
[0044] The present invention is described by the above-mentioned specific implementation methods and embodiments, and it should be understood by those skilled in the art that various changes and equivalent substitutions may be made to the present invention without departing from the scope of the present invention. The parts not described in detail in the present specification are known to those skilled in the art. In addition, various modifications may be made to the present invention for specific situations or specific circumstances without departing from the scope of the present invention. Therefore, the present invention is not limited to the disclosed specific embodiments, but should include all implementation methods falling within the scope of the claims of the present invention.
Claims
1. An anti-theft system for a truck fuel tank, characterized in that: The anti-theft system includes: a bottom-layer STM32G0 main control board for collecting sensor data and transmitting alarm information, a middle-layer Raspberry Pi main control board and an upper-layer camera unit; The bottom layer STM32G0 main control board is installed on the top outer surface of the first connection component, the middle layer Raspberry Pi main control board is installed on the upper surface of the second connection component, and the upper layer camera unit is installed on the upper surface of the third connection component; the bottom layer STM32G0 main control board and the Raspberry Pi main control board are electrically connected through a DuPont line, and the Raspberry Pi main control board and the upper layer camera unit are electrically connected through a flexible flat cable; The first connecting component is configured as a cover-shaped structure that can fit with the fuel tank cover, the top inner surface corresponding to the top outer surface is in close contact with the fuel tank cover, and the top outer surface is provided with at least 3 first grooves that are evenly arranged; the annular inner side surface of the first connecting component is provided with a slot that fits with the fuel tank cover; The second connecting assembly and the third connecting assembly both include a bearing plate and a leg fixedly connected to the lower surface of the bearing plate, and a protrusion is provided at the bottom of the leg; the number and position of the legs of the second connecting assembly correspond to the first groove one by one, the protrusion of the second connecting assembly is a first protrusion, and the first protrusion is combined with the first groove by mortise and tenon; The upper surface of the bearing plate of the second connecting component is provided with at least three second grooves which are evenly arranged, the number and position of the legs of the third connecting component correspond to the second grooves one by one, the protrusion of the third connecting component is a second protrusion, and the second protrusion is connected with the second groove by mortise and tenon joints; The bottom layer STM32G0 main control board includes a main control module STM32G030F6P6, a buzzer module for alarming, a vibration sensor for detecting vibration of the fuel tank, an OLED display module for displaying data, a water depth sensor for monitoring the liquid level in the fuel tank, and a solid-state relay for controlling the power supply of the bottom layer STM32G0 main control board; The vibration sensor, water depth sensor and solid-state relay are all connected to the input end of the main control module STM32G030F6P6; the Raspberry Pi main control board, the buzzer module and the OLED display module are all connected to the output end of the main control module STM32G030F6P6.
2. The anti-theft system according to claim 1, characterized in that: The main control module STM32G030F6P6 is provided with a PA0 pin, a PA4 pin, a PA5 pin, a VCC pin, and a GND pin. PA2 pin, PA3 pin, PA1 pin, PA13 pin and PA14 pin; Among them, the PA0 pin is connected to the vibration sensor, the PA4 pin and the PA5 pin are connected to the water depth sensor, the VCC pin and the GND pin are connected to the solid-state relay, the PA2 pin and the PA3 pin are connected to the Raspberry Pi main control board, the PA1 pin is connected to the buzzer module, and the PA13 pin and the PA14 pin are connected to the OLED display module.
3. The anti-theft system according to claim 2, characterized in that: The output end of the vibration sensor module continuously outputs a low level when vibration is detected, and the water depth sensor continuously detects the liquid pressure value at the bottom of the oil tank and sends it to the main control module STM32G030F6P6 through the IIC protocol.
4. The anti-theft system according to claim 3, characterized in that: The input end of the Raspberry Pi main control board is connected to an accelerometer for monitoring the current motion state of the vehicle, as well as a communication module and a camera module; the output end of the Raspberry Pi main control board is connected to a cloud server, the solid-state relay and the communication module, the communication module supports 4G Internet access and SMS sending, the Raspberry Pi main control board is connected to the Internet through the communication module, and the Raspberry Pi main control board finally uploads the pictures taken by the camera module to the server.
5. The anti-theft system according to claim 4, characterized in that: The GPIO2 and GPIO3 of the Raspberry Pi main control board are connected to an acceleration sensor module for monitoring the current motion state of the vehicle.
6. The anti-theft system according to claim 5, characterized in that: The water depth sensor sends the liquid pressure value at the bottom of the oil tank to the main control module STM32G030F6P6 through the IIC protocol.
7. The anti-theft system according to claim 6, characterized in that: The relay module is powered by a battery module provided by a solar charging module, and the Raspberry Pi main control board is powered by a power bank.
8. The anti-theft system according to claim 7, characterized in that: The monitoring error of the water depth sensor is within plus or minus 2%.
9. A method for using the anti-theft system according to any one of claims 4 to 8, characterized in that: The method of use includes: The anti-theft system is nested and installed on the oil cap of the truck's fuel tank. The Raspberry Pi main control board performs initialization operations and connects to the cloud server through the 4G network to determine the current motion state of the truck based on the feedback data of the accelerometer. When the truck is stationary, the camera module sends the captured picture to the Raspberry Pi main control, which uses the OPENCV image processing library to process the camera image. If there is a face that has not been recorded in the image, the current image will be recorded first, and the image will be uploaded to the cloud server through the 4G network. Then, the solid-state relay is turned on to power on the underlying STM32G0 main control board. After the solid-state relay is turned on, the bottom STM32G0 main control board starts to receive data from the vibration sensor and the water depth sensor and determines the state of the fuel tank; The method for judging the state of the fuel tank is as follows: when the data sent by the vibration sensor changes at a high frequency, the fuel tank is being physically damaged and is in an abnormal state; or, when the data of the water depth sensor drops rapidly, it is judged that the state of the fuel tank is in an abnormal state; The fuel tank status is sent to the Raspberry Pi main control, and the buzzer sounds at the same time, and the Raspberry Pi main control makes a phone call or sends a text message to remind the truck driver.