6835 views|3 replies

1148

Posts

0

Resources
The OP
 

Implementation of a two-way remote control door lock system for automobiles [Copy link]

Abstract: This paper introduces the framework, components, working mode and configuration method of the wireless transceiver system based on RF SoC nRF9E5. On this basis, a simple two-way remote control door lock display system consisting of nRF9E5 and 4-dot matrix LCD module is designed.
Keywords: two-way remote control door lock; wireless transceiver system; LCD

Introduction

Remote keyless entry (RKE) has become an indispensable part of the car. RKE is of great significance to improving the anti-theft and controllability of the car. The one-way RKE system designed in the past consists of a control end and an execution end. The biggest inconvenience of this system is that only the user sends information to the door, and the door cannot feedback its own information to the user, which makes it impossible for the user to know the status of the car, which brings hidden dangers to the safety of the car. In addition, since the system is powered by a battery, reducing power consumption is also a relatively large problem. In order to solve these two problems, this paper designs a two-way RKE system based on the wireless transceiver chip nRF9E5 and the LCD chip 12864-12.

nRF9E5 Function Introduction

nRF9E5 is a system-level RF chip launched by Nordic. It has a built-in nRF905 433/868/915 MHz transceiver, an 8051 compatible microcontroller and a 4-input 10-bit 80ksps ADC. Its built-in nRF905 transceiver is the same as the transceiver of the nRF905 chip, and can work in ShockBurst (automatically processing prefix, address and CRC) mode. The built-in voltage adjustment module suppresses noise to the maximum extent and provides the system with an operating voltage of 1.9 ~ 3.6V.

The on-chip microcontroller of nRF9E5 has a serial port that is the same as 8051, and timer 1 and timer 2 can be used as baud rate generators for asynchronous communication. The microprocessor contains 256B of data RAM and 512B of ROM. In addition, 2 data pointers are extended to facilitate reading data from the XRAM area. After power-on reset or software reset, the processor automatically executes the code in the ROM boot area. The user program is usually loaded from the EEPROM into a 4KB RAM under the guidance of the boot area. This 4KB RAM can also be used to store data.

The nRF9E5 chip integrates a transceiver, which can communicate with other modules through the internal parallel port or internal SPI, and has the same functions as the single-chip RF transceiver nRF905. The transceiver communicates with the microcontroller through the parallel port or SPI on the chip. The nRF9E5 transceiver consists of a complete frequency synthesizer, a power amplifier, a regulator and two receivers. The output power, channel and other RF parameters can be controlled by programming the special function register RADIO (0xA0). In the transmission mode, the RF current is 11mA and in the reception mode it is 12.5mA. In order to save energy, the on/off of the transceiver can be controlled by the program. Hardware

composition of the two-way RKE system

The two-way RKE system consists of two major parts: the data terminal and the main transceiver. The data terminal is carried by the user and can be understood as a remote control key, while the main transceiver is installed in the car door and is used to open the car door. The data communication between the data terminal and the main transceiver is carried out through nRF9E5. Since nRF9E5 has a built-in microcontroller and the amount of data transmitted is not large, there is no need to add an additional microcontroller or expand other memories in the RKE system, making the system hardware structure very simple. The entire two-way RKE system is shown in Figure 1.


Figure 1 Bidirectional RKE system composition

The main transceiver and the data terminal can be connected to the PC through the RS-232 or USB interface, and the communication between the PC and nRF9E5 can be realized. In this way, the characters (alarm information) to be displayed by the data terminal can be written into the memory of the data terminal in ASCII form through the PC. When the car needs to alarm, the data terminal will bring out these alarm information and then display them through the LCD. At the same time, all commands can be pre-solidified into the hardware through the PC, and then the user only needs to operate the keys in his hand to realize the two-way transmission of data.

In the data terminal at the user end, since the LCD used is a 4-dot matrix liquid crystal display, the control and driver inside this display module are composed of CMOS circuits. CMOS circuits are low-power devices, and nRF9E5 also uses CMOS structure, so the drive circuit between the microcontroller and the display module can be omitted, and the two can be directly connected. Its hardware interface connection is shown in Figure 2.


Figure 2 Schematic diagram of nRF9E5 and dot matrix LCD interface

According to the interface in the figure, when powered on, the LCD automatically resets to an 8-bit data bus and a single-line display mode, with the left 8 bits of the display lit and the right 8 bits off. In the initialization program, the LCD must be set to a 4-bit data bus and a double-line display mode with instructions, so that both the left and right 8 bits of the display are in working state.

In addition, for nRF9E5, its biggest advantage is the carrier detection function. When the transceiver is ready to send data, it first enters the receiving mode and detects whether the channel it is working on is idle. The standard for carrier detection is generally 5 dBm lower than the sensitivity. For example, when the sensitivity is -100 dBm, the carrier detection function detects carriers as low as -105 dBm. That is to say, when the carrier is lower than -105 dBm, the carrier detection signal is low (usually 0), and when it is higher than -95 dBm, the carrier detection signal is high (usually VDD). Between -105 and -95 dBm, the carrier detection signal may be low or high. This feature avoids collisions between data packets of different transmitters at the same operating frequency, and effectively prevents signal interference. Improve the stability of wireless key transmission and reception.

In addition, a simple buzzer needs to be added to the system. When the system needs to alarm, the buzzer will sound, and the alarm information will be displayed on the LCD.

System software design

communication protocol

To realize the locking/unlocking and security alarm functions, it is necessary to complete the wireless data communication between the data terminal and the main transceiver. All parts of the entire system serve the purpose of wireless data transmission. Therefore, in the software design of the entire system, the transmission of wireless data is the most important part. Wireless transmission is carried out in the form of data frames, and the format of the data frame is shown in Table 1.

The leading code is mainly used to prevent useful data from being interfered; the ID is mainly used to mark the information of a specific car for correct identification. If the ID does not match, the data frame will be ignored; the information code is used to indicate the user's operation, which includes locking, unlocking, displaying alarms, etc. When the user sends the corresponding command, locking and unlocking are executed respectively, and when the user exceeds the transceiver range, the main transceiver can automatically send a warning message; the check code is used to check whether the received data is correct. If it is incorrect, the data frame needs to be resent.

Software Flow

Since the communication between the data terminal and the main transceiver is duplex, the data transmission direction is constantly changing when the actual system is running. Therefore, to achieve coordinated communication between the two parties, a more suitable receiving and sending order must be designed. In order to better illustrate the program flow, the data terminal on the user's side is defined as the upper computer, and the main transceiver in the car is defined as the lower computer. The upper computer and the lower computer receiving and sending process are shown in Figures 3 and 4.


Figure 3 Host computer transceiver program flow


Figure 4 The lower computer receiving and sending program flow

Conclusion

The wireless data transmission part of the two-way RKE system composed of nRF9E5 does not require an external microcontroller or an external memory expansion; when connected to a dot matrix LCD, no external driver is required, which greatly reduces the complexity of the system. In addition, the system uses modules with low energy consumption, which to a certain extent achieves the low power consumption requirement of the system. The two-way RKE system designed in this paper can improve the security of data transmission, and the display can more intuitively reflect the status of the car. However, the system also has imperfections. If a DAC is added to the system and a speaker is added, the information of the car can be fed back to the user more intuitively. In addition, if a pressure sensor is added to the car door, it can greatly prevent the car from being damaged by human beings, further improving the safety of the car.
This post is from Automotive Electronics

Latest reply

I support it... But I don’t have money, so I can’t download this good stuff...  Details Published on 2009-8-4 11:08

265

Posts

0

Resources
2
 
DL-M Cluster Terminal Communication Protocol.pdf

DL-M群集终端通讯协议.pdf

209.46 KB, downloads: 5

This post is from Automotive Electronics
 
 

157

Posts

0

Resources
3
 
Good stuff first, thank you OP
This post is from Automotive Electronics
 
 
 

29

Posts

0

Resources
4
 
I support it... But I don’t have money, so I can’t download this good stuff...
This post is from Automotive Electronics
 
 
 

Guess Your Favourite
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list