1. ATTENTION FOR GPS:

      SimCom provides us with a system of AT Command commands to control the GPS. The important thing is the ability to apply commands to each application we want.

      Here are some AT Command commands you can refer to:

        1.1 Overview:

 

         Command

                     Description

AT+CGPSPWR

điều khiển nguồn GPS

AT+CGPSRST

đặt lại chế độ GPS(Hot/Warm/Cold)

AT+CGPSINF

nhận thông tin vị trí GPS hiện tại

AT+CGPSOUT

điều khiển dữ liệu ra NMEA GPS

AT+CGPSSTATUS

Tình trạng GPS

AT+CGPSIPR

set tốc độ baudrate

 

     1.2 AT+CGPSPWR:

 a. Test command:

 

     AT+CGPSPWR=?

 

      Feedback: +CGPSPWR

 

 b. Read command:

 

     AT+CGPSPWR?

 

    Feedback:+CGPSPWR:[mode]

 

  c. The order of recording:

 

    AT+CGPSPWR=[mode]

 

    [mode]: 0 Power off GPS

 

    [mode]: 1 Power on GPS

 

     1.3 AT+CGPSRST:

 

    a. Test command:

 

     AT+CGPSRST=?

 

    Feedback: +CGPSRST:(danh sách các mode)

 

     a. Read command:

 

     AT+CGPSRST?

 

     Feedback:  +CGPSRST:[mode]

 

    c. The order of recording:

 

     AT+CGPSRST=[mode]

 

     [mode]: 0 reset GPS in COLD start mode

 

     [mode]: 1 auto mode 

 

      COLD mode is recommended for the first time

 

      1.4 AT+CGPSINF:

 

      a. Test command:

 

     AT+CGPSINF=?

 

     Feedback:  +CGPSINF:(0,2,4,8,16,32,64,128)

 

    b. Read command:

 

     AT+CGPSINF=[mode]

 

    If [mode] is 0: 

 

    Feedback:

 

  [mode], [latitude], [height], [UTC time], [TTFF], [num], [speed], [course]

 

     If [mode] is:

 

    21: Parameters see appendix A.1 “$GPGGA” [1]

 

    22: Parameters see appendix A.2 “GPGLL” [1]

 

    23: Parameters see appendix A.3 “GPGSA” [1]

 

    24: Parameters see appendix A.4 “GPGSV” [1][2]

 

    25: Parameters see appendix A.5 “GPRMC” [1]

 

    26: Parameters see appendix A.6 “GPVTG” [1]

 

    27: Parameters see appendix A.7 “GPZDA” [1]

 

    [1] Excluding parameters: ”massage ID”, “checksum”, “[CR][LF]”

 

    [2] includes parameters:

 

Satellites in view

Satellites ID

elevation

azimuth

SNR(C/N0)

 

    1.5 AT+CGPSOUT:

     a. Test command

 

     AT+CGPSOUT=?

 

      Feedback:  +CGPSOUT:(0-255)

 

     b. Read command

 

    AT+CGPSOUT?

 

    Feedback: +CGPSOUT:[mode]

 

    c. The order of recording:

 

    AT+CGPSOUT=[mode]

 

    If is 0: Minimize GPS NMEA output information from Debug UART

 

    If:

 

    Bit1=1, For NMEA $ GPGGA output data, see annex A.1

 

    Bit2=1, For NMEA $ GPGGA output data, see annex A.2

 

    Bit3=1, For NMEA $ GPGGA output data, see annex A.3

 

    Bit4=1, For NMEA $ GPGGA output data, see annex A.4

 

    Bit5=1, For NMEA $ GPGGA output data, see annex A.5

 

     Bit6=1, For NMEA $ GPGGA output data, see annex A.6

 

     Bit7=1, For NMEA $ GPGGA output data, see annex A.7

 

    1.6 AT+CGPSSTATUS:

 

    a. Test command

 

    AT+CGPSSTATUS=?

 

    Feedback: +CGPSSTATUS:(danh sách các mode )

 

     b.Read command:

 

     AT+CGPSSTATUS?

 

    Feedback:  +AT+CGPSSTATUS: [mode]

    GPS MODE RESET parameters

 

      [mode] is a string value

 

      "Location UnKnown": GPS is not running

 

      "Location Not Fix": GPS is running and not fixed

 

       "Location 2D Fix": Fixed 2D GPS status

 

      "Location 3D Fix": GPS fixed 3D position

     1.7 AT+CGPSIPR:

 

    a. Test command:

 

   AT+CGPSIPR=?

 

  Feedback: +CGPSIPR:(danh sách mode)

 

   b.Read command:

 

   AT+CGPSIPR:[mode]

 

  c. The order of recording:

 

   AT+CGPSIPR=[mode]

 

   [mode]: 4800,9600,19200,38400,57600,115200,230400,460800

    2.GPS APPLICATION:

     AT-COM shows you how we can get GPS coordinates from satellites and display them on the LCD. Based on that, you can develop higher-level applications with ease.

    Hardware block diagram as star:

 


 

   

       The processor block uses the microprocessor to control the sim908 module and to process the sim module signal returned. Also, when receiving a microprocessor coordinate signal, it will display the content to the LCD.

       Sim 908 can receive the signal sent by the satellite thanks to the GPS antenna.

 

 

   

  This signal will be transmitted continuously down the processor if we use the sim's GPS.

      Diagram of each block principle:

 

 

 

 

                                                                                                    KHỐI MAX232

 

 

Some pictures of the actual operation of the circuit: