Programming Method of LCD Chinese Display in GSM/GPS Vehicle System

Publisher:Qingliu2022Latest update time:2014-12-12 Source: eefocusKeywords:GPS Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
  The GPS vehicle dispatch system is a monitoring system that uses the global positioning system GPS (Global Positioning System) and is based on the GSM mobile communication network to locate, track and monitor vehicles in the network through short message communication.

  At present, in many industries (such as public security, public transportation and banks, etc.), the GPS vehicle dispatch system has become quite popular, and the relevant research on the GPS vehicle dispatch system has also become a hot topic in the industry. This article uses a coding method for LCD Chinese display. This is the method used by the author when designing the GPS vehicle terminal communication system.

  1 Problem statement

  A GPS vehicle terminal mainly includes the following parts in hardware:

  GPS receiving module, used to receive GPS positioning signals sent back by GPS satellites.
  GSM communication module, used to realize wireless communication between the terminal module and the monitoring center.
  Central control unit, which controls signal reception, short message communication and human-computer interaction.
  Keyboard and display unit, used for human-computer interaction, display the commands of the monitoring center.

  In the development process of the GPS vehicle terminal system, most designers will choose a cheap, low-end LCD display for comprehensive consideration of system functions and product costs. Since the GSM short message encoding method is incompatible with ordinary LCD displays, many GPS vehicle terminals do not support the display of Chinese information, which is a technical difficulty in the design.

  GSM short messages are usually sent and received in PDU mode. In this mode, the module receives a string of Unicode characters. Unicode is a unified code. It is a character encoding method used on computers. It sets a unified and unique binary code for each character in different languages ​​to meet the requirements of cross-language and cross-platform text conversion and processing. For example, when the monitoring center sends a dispatch message such as "Quickly return to the center" to the GPS vehicle terminal, the terminal will receive the Unicode string "0698 E698 1E18 06FE".

  However, most LCD displays do not support this encoding. To display this information on the terminal, it must be converted to the GB code supported by the LCD, that is, the string "CBD9 BBD8 D6D0 DOC4".

  To perform such a conversion, there are usually two methods:

  ① Find the operational relationship between the two encoding methods and convert them through formulas;

  ② Establish two code tables for Unicode and GB respectively, and convert them by looking up the table. However, since Unicode and GB are two independent encoding methods, there is no connection between them, and there is no operational relationship between them, so the first method is not feasible. As for the second method, it is completely feasible in theory, and it can be implemented on a PC through a high-level language function call; but for a single-chip microcomputer with extremely limited memory, it is obviously unimaginable to establish such two huge code tables. Even if a memory is added and there is enough storage space, the entry and correspondence of the code table is also a tedious task. Therefore, a practical design that can realize Chinese display is particularly important.

  2 Design of the solution

  In order to solve the above problems, the author has specially designed an encoding method based on the dispatch center sending GB code strings in the TEXT mode of the GSM module. The

  TEXT mode (text mode) of the GSM short message is the same as the PDU mode, and it is also an interface protocol that uses AT commands to transmit data. The difference is that during the information transmission process, the network transmits ASCII internal codes such as English or numbers, so this mode is suitable for non-intelligent terminals, terminal emulators and some V. 25ter automatic calling/automatic answering application software. For example, send character A to the module, and read the SIM card content to the microcontroller memory through the AT command. The ASCII code shown in Figure 1 can be observed through the DTAE window of the Weifu simulator.


  After translating the ASCII code in the memory, the following information can be obtained:





  Since all GB codes are composed of uppercase English letters and numbers, both of which are ASCII internal codes, the GB code of the dispatch information can be sent to the vehicle terminal in the form of ASCII internal code characters. For example, still the short message "Quickly return to the center", the GB code of these four Chinese characters can be obtained by looking up the GB-2312 table as "CBD9 BBD8D6D0 DOC4". Send this string to the vehicle terminal, and the information received by the terminal is shown in Figure 2.




  The memory unit 70H~7FH in Figure 2 stores this information. Since only a string of English and digital characters is received at this time, it must be restored to GB code to display it on the LCD (that is, the two characters are converted into a corresponding 2-bit hexadecimal number and stored in a memory unit). The above string is converted and merged, and the data stored in the memory unit starting with BOH is shown in Figure 3. [page]




  In Figure 3, the GB code of the short message "Quickly return to the center" is stored in the BOH~BSH memory unit. The software implementation flow chart is shown in Figure 4. The




  program for restoring to GB code is implemented as follows:


  After the above process, the GB code of the four words "Quickly return to the center" is stored in the display buffer. After these GB codes are sent to the LCD display memory DDRAM through the program, they can be displayed.

  Conclusion

  This paper uses some of the composition characteristics of the GB code to propose and implement a coding method for sending GB code strings. This method successfully solves the problem that the GSM short message coding method is incompatible with ordinary LCD displays, eliminates the disadvantages of many GPS vehicle terminals that do not support information, and has strong practicality.
Keywords:GPS Reference address:Programming Method of LCD Chinese Display in GSM/GPS Vehicle System

Previous article:MCU solutions for automotive instrumentation and CAN/LIN applications
Next article:Emulation Extension Chip (EEC) Simplifies Integration of High-Speed ​​Automotive Embedded Processors

Recommended ReadingLatest update time:2024-11-16 19:31

Patriot GPS+Handheld Digital TV Product Solution
The first company in China to successfully develop MP5 using Freescale MX31 ARM11. The first product solution in China to support RM/RMVB network video. 1 GPS+digital TV (DVB-T or terrestrial national standard DMB-TH) product solution picture 2 The functions of GPS + digital TV (DVB-T or terre
[Analog Electronics]
Design of Low Noise Amplifier for GPS Receiver
Low noise amplifier (LNA) is widely used in fields such as radio astronomy, satellite reception, radar communication, etc., where the receiver sensitivity is high. Its main function is to amplify the weak signal received, reduce noise, and enable the system to demodulate the required information data. As an importan
[Analog Electronics]
Design and implementation of GPS vehicle terminal based on single chip microcomputer
The command and dispatch of police vehicles, the monitoring and safety dispatch of cash transport vehicles, the operation and management of taxis and reasonable dispatch have become increasingly important issues in the public security, banking and public transportation systems. The emergence of GPS global positionin
[Microcontroller]
Design and implementation of GPS vehicle terminal based on single chip microcomputer
Design of GPS positioning system based on MAX3100 and OLED
0 Introduction In the single-chip microcomputer application system, serial data communication usually uses the chip "8251", but because the communication baud rate of 8251 is not high, it cannot be used in the system with high crystal oscillator. This makes it impossible to use the 8251 chip to send and rec
[Security Electronics]
Design of GPS positioning system based on MAX3100 and OLED
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号