Design of automotive "black box" based on ARM

Publisher:jingwenLatest update time:2021-02-06 Source: eefocusKeywords:ARM Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Figure 5 Hardware connection between HOLUXGR285 and TMS470R1A256


3.6 Communication between TMS470R1A256 and Benq M22

Benq M22 is an embedded TCP/IP protocol stack that supports GSM/GPRS CLASS4, can work at EGSM900MHz, DCS 1800MHz, PCS 1900MHz, and can support transparent and non-transparent transmission of data services. In terms of packaging, M22 uses a connector interface, and the module comes with an MMCX antenna connector. Because it supports GPRS and even has embedded TCP/IP, it can be used in car driving recorders with high real-time requirements, relatively large data volumes, and relatively fast transmission speeds.


The communication data interface between Benq M22 and the host computer is UART, the level is TTL/CMOS, and the baud rate is a nominal adaptive baud rate of 300~115200bps. As long as it is the nominal baud rate in this range, the module automatically recognizes it without user intervention, and it can be connected to a full serial port or a half serial port for communication. The so-called full serial port means that all nine lines of DB9 need to be connected, and the so-called half serial port only connects RXD, TXD and GND for communication. This system adopts half-duplex mode, so the module's RXD can be directly connected to the TXD of TMS470R1A256, and the module's TXD can be directly connected to the RXD of TMS470 R1A256, as shown in Figure 6.

Figure 6 Hardware connection between M22 and TMS470R1A256


4 System Software Design

After the system is powered on, it will be initialized first, and then self-checked, including data storage, clock and I/O ports. After the self-check, the relevant information will be displayed on the monitor according to the self-check results.


If the self-test fails, "Self-test abnormal" and an error code are displayed.


After the self-check is passed, the driver identity authentication is entered. After passing, the LCD displays the relevant data and waits for the data to be refreshed. The main program flow chart of the system is shown in Figure 7.

Figure 7 System main program flow chart


4.1 Data Collection

After the recorder reads the raw data, it can calculate the total accumulated mileage, the accumulated mileage in the last two calendar days, the accumulated mileage in the last 360 hours, the speed every 200 milliseconds and the speed per minute based on the pulse volume and vehicle characteristic coefficient.


The pulses collected by the recorder come from the speed sensor, which generates 8 pulses per revolution. The number of revolutions that the vehicle makes the speed sensor rotate per kilometer is determined by the vehicle characteristic coefficient. The recorder can obtain the mileage of the vehicle based on the number of pulses recorded.


The driving speed is calculated from the number of pulses. Just calculate the mileage from the number of pulses and then divide it by the time to get the speed.


4.2 GPRS Design

M22 supports GPRS CLASS4, which means the downlink speed is 42.8 Kbps and the uplink speed is 21.4 Kbps. At the same time, M22 also supports the embedded TCP/IP protocol. This embedded TCP/IP protocol solves a relatively complicated process from command mode to data transmission mode.


Because of the embedded TCP/IP, a large amount of car record data can be transmitted in real time, and the operation of the vehicle can be monitored in real time. When using the TCP protocol for data communication, it must go through three stages. The first stage is the connection establishment stage, the second stage is the data sending and receiving stage, and the third stage is the connection release stage.


The PDU mode is used to send short messages in this system, because it not only supports Chinese short messages, but also English short messages. There are three encodings for sending and receiving short messages in PDU mode: 72bit, 82bit and UCS2 encoding.


5 Conclusion

This design adds GPS and GPRS modules to the traditional recorder, and the result of testing the system is that it can realize functions such as precise positioning (civilian standard), remote monitoring, electronic dog and data transmission, realizing the integration of basic recorder and GPS navigation, and meeting the design requirements of the system.


[1] [2]
Keywords:ARM Reference address:Design of automotive "black box" based on ARM

Previous article:Arm system architecture knowledge summary
Next article:ARM11 learning based on S3C6410 (XVI) External interrupt

Recommended ReadingLatest update time:2024-11-16 09:29

Understanding of ARM core and architecture
1. ARM core: From ARM7, ARM9 to Cortex-A7, A8, A9, A12, A15, and then to Cortex-A53, A57, etc., in short, different versions of ARM have different ideas. For example, Cortex A8 and A9 designed for high speed are both ARMv7a architecture; Cortex M3 and M4 are ARMv7m architecture; the former is the core, and the latter
[Microcontroller]
Official announcement of new car technology! Arm sees automotive industry as important driver of growth
On March 14, Arm Holdings Co., Ltd. (hereinafter referred to as "Arm") joined hands with ecosystem partners to launch the latest Arm Automotive Enhancement (AE) processor and virtual prototyping platform, allowing the automotive industry to apply for software development at the beginning of development. Help shorten d
[Automotive Electronics]
Official announcement of new car technology! Arm sees automotive industry as important driver of growth
ARM's FIQ (Fast Interrupt) IRQ (Interrupt)
IRQ, FIQ definition: This is a normal interrupt. When our program defines this interrupt and an IRQ interrupt occurs when the program is running, the chip will run like this: the interrupt handler uses the IRQ request line to high-speed ARM, and ARM knows that an IRQ interrupt has come, and then ARM switches to IRQ mo
[Microcontroller]
ARM and the US Defense Advanced Research Projects Agency sign a three-year cooperation agreement
The official website of British chip design company ARM announced on August 20 that ARM has signed a three-year cooperation agreement with the US Defense Advanced Research Projects Agency (DARPA). Image source: eenewseurope The agreement is also part of the Electronics Resurgence Initiative (ERI), which was launched
[Mobile phone portable]
ARM and the US Defense Advanced Research Projects Agency sign a three-year cooperation agreement
CC3220R Main Features Introduction Single-Chip Wireless ARM MCU Solution
TI's CC3220R is a SimpleLink™ Wi-Fi® and Internet of Things (IoT) single-chip wireless MCU platform, including Wi-Fi, Bluetooth® low energy, Sub-1 GHz and main MCU and a rich tool portfolio. The application processor ARM® Cortex®-M4 MCU (operating frequency 80MHz) has a user-dedicated 256KB RAM and an optional 1MB XIP
[Microcontroller]
CC3220R Main Features Introduction Single-Chip Wireless ARM MCU Solution
ARM series: "What is architecture"
After studying the book "Embedded Systems - Using Open Source and StrongARM/XScale Processors", I have a more comprehensive and in-depth understanding of the ARM core architecture, which corrected many of my previous misunderstandings. Now, with the ARM core architecture as the main line, I will summarize the relevant
[Microcontroller]
Overview of the ARM microprocessor instruction set (IV) - the difference between MOV and LDR
1 Let's look at a piece of assembly code first LDR R0,=0x56000010 #R0 is set to be register GPBCON and is used to select pin function for Port B  #in,out special function and others  MOV R1,#0x00004000  STR R1, #pin GPB7 is set to be output port The function of the above three assembly statements is to store the value
[Microcontroller]
Renesas Electronics to Demonstrate First RA Series MCU Based on Cortex M85 Core
Renesas Electronics announced today that it will demonstrate a microcontroller (MCU) based on the Arm Cortex-M85 core live at Embedded World 2022 in Nuremberg in June. Renesas Electronics launched the RA (Renesas Advanced) series of MCUs based on Arm Cortex-M in October 2019, entering the general Arm-Cort
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号