This paper introduces an in-vehicle information collection system for electric vehicles: multi-slave machine collects information, and multi-machine communication using serial communication between the slave and the host, and then the host sends the communication data to the LCD display. It solves the difficulty of the vehicle information and the complicated wiring of the body and the difficulty in collecting data.
This article refers to the address: http://
1 Introduction
As an important communication technology, serial communication has been widely used in the field of PC communication and industrial field control online detection [1]. The vehicle information collection system designed in this paper is a structural system including data acquisition, data transmission and data display. It is a design process for collecting, transmitting and displaying the vehicle information of a new type of electric vehicle: the vehicle information passes the sensor (analog form) The switch form is taken from the MCU, the main MCU and the MCU through the serial communication for data transmission, and the host sends the data to the LCD panel for display.
2 bus type master-slave multi-machine system
Considering a large number of in-vehicle information and serial port multi-machine communication capabilities involved in electric vehicles, the design uses a bus-type master-slave multi-machine communication mode, and the standard bus for data transmission is selected as the most common and practical. RS-485. The bus-type master-slave multi-machine communication system mode is as follows:
The serial communication protocol is not introduced here.
3 car information acquisition system hardware design
The object studied by this system is the vehicle information of an electric car. The author divides the information into two categories: analog quantity and switching quantity. The analog quantity includes: battery pack (battery) temperature, battery pack (battery) voltage, battery pack (battery) capacity, vehicle speed (mileage), total current, etc.; switch quantity refers to various operating states, including: lamp (series) Status, gear switch, brake status, limit switch status, etc.
Due to the large amount of information involved and the wide range of distribution around the body, the author uses AMOS's single-chip microcomputer - ATMEGA8L. This is a small-sized microcontroller with sufficient acquisition and communication capabilities: in terms of acquisition, it contains 8 channels of A/D conversion and up to 23 programmable I/O ports; in terms of data communication, it contains one The programmed serial USART interface supports synchronous, asynchronous and multi-machine communication automatic address recognition [3]. An important advantage of ATMEGA8L over 8051 or other microcontrollers is that the peripheral circuits required by the microcontroller are relatively simple (taking into account the body wiring, the simpler the circuit, the better). The LCD display module uses the dot matrix liquid crystal of MGLS240128T with built-in T6963C. It is characterized by simple interface circuit with single-chip microcomputer and powerful display function.
The hardware framework of the vehicle information collection system designed in this paper is as follows:
The analog quantity is sampled by a specific sensor, converted into a voltage signal and enters the A/D channel of the slave. The slave performs A/D conversion and stores the data; the switch sends the level signal to the I/O port of the slave through the relay. The slave also processes the signal. Data is transmitted between the master and the slave through serial communication, and the host sends reasonable data to the LCD for display.
4 car information acquisition system software design
The multi-machine communication protocol based on serial communication can be performed as follows: 1. All slaves are in the listening state. 2. The host first sends a synchronization character (ie, the start character, here is E8H), and then sends an identifier (defines different values ​​according to the information category, such as the identifier of the current value is defined as 14H), and converts the communication state. Is the receiving status (RXD=1). 3. When the slave defined by the identifier (such as slave 1 responsible for current data acquisition) listens to the identifier (14H), the slave changes to the transmission status and prepares the prepared data (current value) and The end character (here set to CEH) is passed to the host, the end character is passed, and the slave communication state is converted to the listening state. 4. After receiving the end character, the host sends the data to the LCD display. 5. The host sends a sync character and sends an identifier (such as voltage 15H).
Therefore, the data frame format can be listed as: start character (E8H) + identifier + data string + terminator (CEH), all specific characters are selected to distinguish from the ASCII code (30H–39H) of the number in the data string. Open.
The following is the host and slave program flow:
The host queries the slave in a loop-by-point manner. The slave to the name responds and transmits the collected data or signal to the host. The host sends the data to the LCD for display and then enters the next loop. The baud rate of serial communication is 9600, and the data format is defined as 8 data bits plus one stop bit. The serial port initialization procedure is as follows:
Voidinit_usart(void)//serial port initialization
{
UCSRB|=0x18;//Data transmission permission and reception permission
UBRRL=(fosc/16/(baud+1))%256;//Set the baud rate register low byte
UBRRH=(fosc/16/(baud+1))/256;//Set the baud rate register high byte
UCSRC=0x86; / / 8 data bits + 1 stop bit
}
Both the master and the slave receive and send data in a polling manner:
Voidtransmit(unsignedchardata)//data transmission
{
While(!(UCSRA&(1<
UDR=data;//send data
}
Unsignedcharreceive(void)//data reception
{
While(!(UCSRA&(1<
returnUDR; / / receive data
}
5 Conclusion
This paper successfully designed the structure of the vehicle information acquisition system for an electric vehicle. On the one hand, it uses multiple slaves to collect vehicle information to solve the problem that the vehicle information is numerous and difficult to collect. The principle of multi-machine communication with simple serial communication avoids the body. There is a lot of trouble in the surrounding wiring. On the other hand, the liquid crystal display vehicle information is used to provide users with a friendly interface, and at the same time, the vehicle status can be accurately and accurately grasped. From the perspective of the data display and data refreshing effect of the liquid crystal, the in-vehicle information collecting system based on serial communication has a good application prospect.
Abs Fiber Optic Trays are an essential component in fiber optic networks. They are designed to securely hold and protect fiber optic cables, connectors, and splices. These trays are made of ABS plastic, a thermoplastic polymer that is known for its strength and durability. They come in various sizes, shapes, and configurations to accommodate different fiber optic applications.
One of the key features of ABS Fiber Optic Trays is their ability to organize and manage fiber optic cables. The trays have multiple slots or compartments that can hold individual cables or cable bundles. This helps to prevent tangling, twisting, and damage to the cables, which can lead to signal loss and network downtime. The trays also have built-in cable management features, such as cable ties and clips, that further enhance cable organization and protection.
Another important function of ABS Fiber Optic Trays is to house fiber optic connectors and splices. The trays have specialized compartments or adapter panels that can hold different types of connectors, such as SC, LC, ST, and MTP. These compartments are designed to provide a secure and stable connection between the connectors and the fiber optic cables. The trays also have splice trays or fusion splice holders that allow for easy and efficient splicing of fiber optic cables.
ABS Fiber Optic Trays are also designed with ease of installation and maintenance in mind. They can be mounted on racks, cabinets, or walls using various mounting options, such as screws, brackets, or adhesive pads. The trays have removable covers or doors that provide easy access to the cables, connectors, and splices for installation, inspection, and maintenance. The covers or doors also protect the contents of the trays from dust, debris, and other environmental factors.
In addition to their functional features, ABS Fiber Optic Trays are also aesthetically pleasing. They have a sleek and modern design that blends well with other network equipment and infrastructure. The trays come in different colors, such as black, white, and gray, to match the color scheme of the network environment.
Overall, ABS Fiber Optic Trays are an essential and versatile component in fiber optic networks. They provide a secure and organized way to manage fiber optic cables, connectors, and splices, while also being easy to install and maintain. With their strength, durability, and aesthetic appeal, ABS Fiber Optic Trays are a reliable and cost-effective solution for any fiber optic network.
Abs Fiber Optic Trays,Aluminum cable trays in data room,Abs Optic Fiber Cable Tray,Grid cable trays in data room,PVC Fiber Optic Cable Trays
Rayhot Technology Group Co.,Ltd , https://www.cnrayhot.com