Design and Implementation of Vehicle Anti-theft Alarm Based on LIN Node

With the rapid development of the automotive industry, there are more and more electronic control units on the body. Traditional body harnesses not only increase manufacturing costs, but also reduce system reliability and maintainability. As a result, the car body bus came into being. The body bus design not only simplifies the wiring, saves manufacturing costs, improves reliability, but also saves system maintenance costs. The vehicle anti-theft alarm module is part of the body control unit (BCM). Because it has low real-time and speed requirements for bus communication, it is connected to the low-speed bus LIN.

LIN bus

The LIN bus is mainly used for low-speed systems that do not require CAN performance, speed and complexity. It is a low-cost serial communication network that uses a master node and several slave nodes, based on a common UART/SCI hardware interface. The maximum rate can reach 20kb/s.

The LIN bus transmits data through message frames. A complete message frame includes a frame header and an information response. The header includes an interval field, a sync field, and a marker field. The interval field consists of a sustained dominant level (0) of at least 13 bits, marking the beginning of a message frame during a data communication. The sync field contains clock synchronization information, and its format is 0x55. After all slave nodes correctly receive the sync byte field, the baud rate of the data to be sent by the host node is accurately calculated, and the baud rate is used as the next step or The baud rate setting value of the data is received, thereby synchronizing the clock between the slave node and the host node. The flag field defines the content and length of the message. The message response is sent by the host node or the slave node according to the information of the flag field, and is composed of 2, 4 or 8 bytes of data and a 1-byte checksum. The verification is obtained by calculating all the bytes of the data for the correctness of the data of the receiver.

Car alarm system

Figure 1 complete LIN information frame

Functional description

The vehicle anti-theft alarm module is a slave node of the body control module. The main functions are as follows: one is to maintain communication connection with the BCM and report the status information of the anti-theft alarm module; the second is to receive the command of the body control module and drive the speaker to issue The alarm sound; the third is to monitor whether the power line, ground line and LIN line between the connection anti-theft alarm module and the BCM are cut off and an alarm sounds.

Implementation plan

1 device selection

The two main components of the system are LIN transceivers and microprocessors. Since the burglar alarm module is a battery-powered LIN node, it is necessary to consider low-power devices when selecting devices. The LIN transceiver selects the TJA1020, which is the physical media connection between the body controller and the burglar alarm module, and is the interface between the LIN master/slave protocol controller and the LIN transmission medium. The transmit data stream of the protocol controller input pin TXD is converted to a bus signal by the LIN transceiver, and the level flip rate and waveform are limited to reduce electromagnetic radiation. The receiver of the TJA1020 detects the data stream on the LIN bus and passes it to the protocol controller via the RXD pin. The TJA1020 features a low-power management mode that consumes little current in sleep mode and reduces power consumption in error mode. Therefore, the TJA1020 is ideal for battery-powered LIN nodes such as theft detection module. The system uses STMicroelectronics' 8-bit microprocessor STM8S105K4 as the master microcontroller. When running on the internal 128kHz clock, the static power consumption can be as low as 0.6mA. Meet the system's low power requirements while having a LIN controller and battery charge detection 10-bit ADC function.

2 Information frame classification and system state definition

The communication information frame between the body control system and the burglar alarm module is defined as follows:

State transition diagram

The wake-up command is used to wake the system from sleep to the unarmed state, and the sleep command is used to instruct the system to go to sleep. The contents of the command information frame include fortification, defense, alarm commands, and definitions of alarm status such as alarm period, number of times, and so on. The state transition of the system is shown in Figure 2.

System Block Diagram

Figure 2 state transition diagram

USB To HDMI Adapter

Shenzhen Guan Chen Electronics Co., Ltd. is a High-tech enterprise that integrates R&D, design, manufacture of computer peripheral products.The products include Thunderbolt Docking Station,USB Docking Station,USB Hubs,USB Adapter, Thunderbolt Cable , SSD Enclosure , HDD Enclosure . Our company adheres to the principle and motto of Being sincere, Responsible, Practical to meet the needs of markets and customers with high quality technology and management. We commit ourselves to new product development and also stress the exploring of international markets.

Our company owns a professional production team and establishes strict quality control standard, so we can provide high quality products and service for customers. We have Grapgic designer,3D Deisnger and Electronic designer to provides professional OEM/ODM service. Our factory covers an area of 1,000-2000 spare meters, which houses 100-200 workers, so our production capacity reaches 50,000 pieces every day.With more than 10 engineers focusing on research and development, our private model attracts much among different markets. Over 100 new designed models are released per year.There are also 3 lean production lines to fullfill small quatity orders production for variety of models.

Our Thunderbolt 3 Docking Station has passed thunderbolt certified by intel and apple.Our product also all can meet with CE, RoHS, UL, FCC and other related certification.And our factory also meets legal environmental standards ensuring your order is delivered. We have a very good reputation at home and abroad. Our products are mainly exported to Europe, USA and Southeast Asia. We provide one-stop-service and promote customers achieve rapidly development. Customer comes First, Quality Ranks First, and Reasonable Price.Guanchen will be your faithful partner from China.

Usb To Hdmi Adapter,Type C Hub Adapter,4-In-1 Usb Type C Hub Adapter,Type-C To Usb 3.0 Hub Adapter

Shenzhen GuanChen Electronics Co., Ltd. , https://www.gcneotech.com