Beruflich Dokumente
Kultur Dokumente
COM
Acoptex.com
About Us
•
Contact Us
•
Donate
•
New version
ARDUINO
RASPBERRY PI
ARDUINO PROJECTS
ARDUINO ROBOTIX
RASPBERRY PROJECTS
SONOFF
DRIVERS / SOFTWARE
IOT PROJECTS
AI PROJECTS
BOOKS / NOTES / INSTRUCTIONS
VISUAL STUDIO PROGS
ANDROID APPS
C# ASP.NET WebForms
C# BASICS
« Home
Navigation
Seen recently
acoptex.com/project/15083/basics-project-101a-ai-thinker-a9g-gprs-gps-development-board-at-acoptexcom/#sthash.gT8iQ0R6.148zhKZz.dpbs 1/24
29/12/2019 Basics: Project 101a Ai Thinker A9G GPRS GPS development board at Acoptex.com / ACOPTEX.COM
acoptex.com/project/15083/basics-project-101a-ai-thinker-a9g-gprs-gps-development-board-at-acoptexcom/#sthash.gT8iQ0R6.148zhKZz.dpbs 2/24
29/12/2019 Basics: Project 101a Ai Thinker A9G GPRS GPS development board at Acoptex.com / ACOPTEX.COM
4 1 0 0 0 0 0 0 29
1
Google + Like Vkontakte Odnoklassniki mail.ru
members
Tags: A9G, A9G GPRS GPS, A9G GPRS GPS development board, ai thinker, Ai Thinker, pudding board, A9G pudding board
Attachments: none
In this project, you needed these parts (Dear visitors. You can support our project buy clicking on the links of parts and buying them or
donate us to keep this website alive. Thank you):
1. A9G GPRS GPS development board with GSM/GPRS antenna and GPS antenna 1 pc
acoptex.com/project/15083/basics-project-101a-ai-thinker-a9g-gprs-gps-development-board-at-acoptexcom/#sthash.gT8iQ0R6.148zhKZz.dpbs 3/24
29/12/2019 Basics: Project 101a Ai Thinker A9G GPRS GPS development board at Acoptex.com / ACOPTEX.COM
acoptex.com/project/15083/basics-project-101a-ai-thinker-a9g-gprs-gps-development-board-at-acoptexcom/#sthash.gT8iQ0R6.148zhKZz.dpbs 4/24
29/12/2019 Basics: Project 101a Ai Thinker A9G GPRS GPS development board at Acoptex.com / ACOPTEX.COM
General
We will learn about the A9G GPS GPRS development board and how to upload firmware to it.
acoptex.com/project/15083/basics-project-101a-ai-thinker-a9g-gprs-gps-development-board-at-acoptexcom/#sthash.gT8iQ0R6.148zhKZz.dpbs 5/24
29/12/2019 Basics: Project 101a Ai Thinker A9G GPRS GPS development board at Acoptex.com / ACOPTEX.COM
A9
The A9 is a complete quad-band GSM / GPRS module in a compact design SMD package. Its stable performance, the appearance of compact,
cost-effective, could meet the diverse needs of customers.
The A9 can be used in a wide range of IoT applications and is ideal for IoT applications for home automation, industrial wireless control, wearable
electronics, wireless location sensing devices, wireless location system signals and other IoT applications. A9 SMD package, through the standard
SMT equipment to achieve rapid production of products, especially for automation, large-scale, low-cost modern production methods for the
convenience of a variety of Internet of Things hardware terminal applications.
Features:
You can find the A9 product specification here and A9G -here.
(A9Tracker related functions, A9 module uses base station positioning function, A9G module can choose to set base station positioning function
or GPS positioning function, upload current position information to WeChat or app regularly, when indoor positioning, because GPS signal is too
weak, it is recommended Set to base station positioning function. Refer to the following documents for details:
A9/A9G ten-minute docking machine Zhiyun created a tutorial of its own products.
Note: The prototype that Anxin can initially send to the customer (not purchased by Taobao) cannot use the above functions. The customer can
send the IMEI value of the module to the sales. We solve this problem remotely.
A9G
The A9G is a complete quad-band GSM/GPRS+GPRS/GPS module. Compared with A7, A9G has higher integration and lower cost of core chip,
which makes the whole solution more cost-effective. Convenient for a variety of IoT hardware terminal applications.
Once the GPS receiver has transmitted the NMEA sentences to the Arduino, and they have been properly read and stored in nice and "simple
format", then what follows?
There are several options to convert the "simple format" data into more general format (GPX, KMZ, etc.). For instance:
1. GPS Visualizer is a free online utility "that creates maps and profiles from geographic data". You can input a CSV or tabbed file, a
spreadsheet, or drag and drop the data. The appearance of the page is a bit odd but the content is good.
2. GPS Prune is intended to view, edit and convert GPS data. It allows to load text files as well as NMEA files, among quite a number of other
options.
acoptex.com/project/15083/basics-project-101a-ai-thinker-a9g-gprs-gps-development-board-at-acoptexcom/#sthash.gT8iQ0R6.148zhKZz.dpbs 7/24
29/12/2019 Basics: Project 101a Ai Thinker A9G GPRS GPS development board at Acoptex.com / ACOPTEX.COM
NH Royal Pavillon
Ad Disfruta de sus amplias habitaciones
y vive la experiencia social y nocturna…
NH Hotels
RESERVA AHORA
3. GPS Babel seems to be the most known GPS data converter. It reads text files with NMEA sentences.
The u‑center GNSS evaluation software for automotive, mobile terminal and infrastructure applications provides a powerful tool for evaluation,
performance analysis and configuration of u‑blox GNSS receivers. Its unique flexibility makes the u‑center GNSS evaluation software an
invaluable tool for evaluation, analysis and configuration of u‑blox GNSS receivers. u‑blox GNSS receivers can be configured using the u‑center
evaluation software.
See more details here. On request from our visitors we will publish the link to previous version of u-center which we used for this project - you
can download it here.
acoptex.com/project/15083/basics-project-101a-ai-thinker-a9g-gprs-gps-development-board-at-acoptexcom/#sthash.gT8iQ0R6.148zhKZz.dpbs 8/24
29/12/2019 Basics: Project 101a Ai Thinker A9G GPRS GPS development board at Acoptex.com / ACOPTEX.COM
A9 chip pinout:
acoptex.com/project/15083/basics-project-101a-ai-thinker-a9g-gprs-gps-development-board-at-acoptexcom/#sthash.gT8iQ0R6.148zhKZz.dpbs 9/24
29/12/2019 Basics: Project 101a Ai Thinker A9G GPRS GPS development board at Acoptex.com / ACOPTEX.COM
SD_D3 - SD serial data pin
VBAT - lithium battery pin, connect external power supply to this pin 3.5V-4.2V, the max supply current should be not less than 2A
RESET - Module hardware reset pin. When this pin used the LOW level is <0.05V and the current is around 70 mA. Must use NMOS tube
control and ground can not have leakage when it is working normally, otherwise it will cause the module to be unstable and difficult to register to
the network.
IO29 - special function pin. After the module is working normally with the AT command, pull the pin LOW to enter the shutdown mode.
IO26 - General purpose IO pin. Do not add a pull-up resistor, the level can not be HIGH at power-on. Remark: it is low-power indicator pin - if
there is data, SMS, or wake-up call it will be a 50 ms pulse.
NH Royal Pavillon
Ad Disfruta de sus amplias habitaciones y
vive la experiencia social y nocturna…
NH Hotels
RESERVA AHORA
IO27 - General purpose IO pin. Do not add a pull-up resistor, the level can not be HIGH at power-on. Remark: the default is 0 as the network
status indicator.
GPS_RF - The GPS antena pin can be connected to antenna. If the circuit is connected to the PCB please pay attention to the 50 Ohm trace on the
PCB (valid for A9G only)
IO28 -General purpose IO pin. Do not add a pull-up resistor, the level can not be HIGH at power-on. Remark: default as GPS status indicator IO
pin.
IO25 - General purpose IO pin. Low-power pin and when LOW signal enters to low-power mode.
acoptex.com/project/15083/basics-project-101a-ai-thinker-a9g-gprs-gps-development-board-at-acoptexcom/#sthash.gT8iQ0R6.148zhKZz.dpbs 10/24
29/12/2019 Basics: Project 101a Ai Thinker A9G GPRS GPS development board at Acoptex.com / ACOPTEX.COM
MIC_P - Microphone positive (+) pin
HST_TXD - firmware upload pin (transmit pin). pin level 2.8V, compatible with 3V3 (5V not compatible)
HST_RXD - firmware upload pin (receive pin). pin level 2.8V, compatible with 3V3 (5V not compatible)
VIO - Output 3V. Remarks: If it's not in use will be left floating, The load drive current does not exceed 10 mA.
GPRS_RF - the antenna pin can be connected to the antenna. If the circuit is connected to the PCB pay attentian to the 50 Ohm trace on the PCB.
NH Royal Pavillon
Ad Disfruta de sus amplias habitaciones y
vive la experiencia social y nocturna…
NH Hotels
RESERVA AHORA
(A9) UART2_RTS - UART2 serial port RTS pin. pin level 2.8V, compatible with 3V3 (5V not compatible)
(A9) UART2_CTS - UART2 serial port CTS pin. pin level 2.8V, compatible with 3V3 (5V not compatible)
(A9) UART2_RXD - UART2 serial port RXD (receive) pin. pin level 2.8V, compatible with 3V3 (5V not compatible)
(A9) UART2_TXD - UART2 serial port TXD (transmit) pin. pin level 2.8V, compatible with 3V3 (5V not compatible)
The float control functions of A9 and A9G are temporary not supported.
UART1_RTS - AT serial port RTS pin. pin level 2.8V, compatible with 3V3 (5V not compatible)
UART1_CTS - AT serial port CTS pin. pin level 2.8V, compatible with 3V3 (5V not compatible)
UART1_RXD - AT commands serial port RXD (receive) pin. pin level 2.8V, compatible with 3V3 (5V not compatible)
UART1_TXD - AT commands serial port TXD (transmit) pin. pin level 2.8V, compatible with 3V3 (5V not compatible)
Wiring
1. AT communication
acoptex.com/project/15083/basics-project-101a-ai-thinker-a9g-gprs-gps-development-board-at-acoptexcom/#sthash.gT8iQ0R6.148zhKZz.dpbs 11/24
29/12/2019 Basics: Project 101a Ai Thinker A9G GPRS GPS development board at Acoptex.com / ACOPTEX.COM
2. Unploading firmware
acoptex.com/project/15083/basics-project-101a-ai-thinker-a9g-gprs-gps-development-board-at-acoptexcom/#sthash.gT8iQ0R6.148zhKZz.dpbs 12/24
29/12/2019 Basics: Project 101a Ai Thinker A9G GPRS GPS development board at Acoptex.com / ACOPTEX.COM
acoptex.com/project/15083/basics-project-101a-ai-thinker-a9g-gprs-gps-development-board-at-acoptexcom/#sthash.gT8iQ0R6.148zhKZz.dpbs 13/24
29/12/2019 Basics: Project 101a Ai Thinker A9G GPRS GPS development board at Acoptex.com / ACOPTEX.COM
For using this USB to UART Converter you need a software tool. Most of the development tools like MikroC Pro, Arduino has a UART Tool
along with it. You can use different software tools: Terminal, USR-TCP232-Test
V1.4, AiThinker_Serial_Tool_V1.2.3, coolterm, sscom3.2 , KiTTY, putty,tera term, Access port and so on. We recommend you to
use AiThinker_Serial_Tool_V1.2.3 or sscom3.2, as you can save your AT commands and it's very easy to use.
1. Do wiring.
2.
3. Attach GSM/GPRS antenna to A9G GPS GPRS development board.
4. Attach GPS antenna to A9G GPS GPRS development board.
5. Insert a valid unlocked Micro SIM card to SIM card slot of A9 GPS GPRS development board.
6. Insert the Micro CD card to Micro SD card slot.
7. Plug your USB to TTL converter into your PC USB port.
8. You can power up A9G GPS GPRS development board Lithium Ion battery V_BAT (3.5-4.2VDC) or use power supply from USB to TTL
converter.
9. Press PWR button for 2 seconds. Status indication (blue LED) will be ON.
acoptex.com/project/15083/basics-project-101a-ai-thinker-a9g-gprs-gps-development-board-at-acoptexcom/#sthash.gT8iQ0R6.148zhKZz.dpbs 14/24
29/12/2019 Basics: Project 101a Ai Thinker A9G GPRS GPS development board at Acoptex.com / ACOPTEX.COM
10. Open AiThinker Serial Tool V1.2.3 program. Set the baud rate 115200, data bits 8, parity bits none, stop bits one. Click on Open Serial
button.
11. First you need to check if AT commands are working - enter "AT" and click on Send button.This would print "OK" which signifies of
working connection and operation of the module.
12. Requests TA serial number identification. Enter "AT+GSN" and press Send button. Returns "867959034205087 OK" .
IMEI 867959034205087
13. Checks fixed local rate. Enter "AT+IPR?" and press Send button. Returns "+IPR: 115200 OK" /115200 bps/
14. Requests TA model identification. Enter "AT+GMM" and press Send button. Returns "A9/A9G OK".
15. Requests TA revision identification. Enter "AT+GMR" and press Send button. Returns "V02.02.20180825R OK". This is the firmware
version.
16. Requests TA manufacturer identification. Enter "AT+GMI" and press Send button. Returns "Ai_Thinker_Co._Ltd. OK".
17. Requests manufacturer specific information about the TA. Enter "ATI" and press Send button. Returns "Ai_Thinker_Co._Ltd. A9/A9G
V02.02.20180825R OK".
18. Reboots the module. Enter "AT+RST=1" and press Send button.
19.
20. Call Control Commands. If you call the cell number of Micro Sim Card then message RING will be shown. 1) Answer a call. Enter
"ATA" and press Send button. Returns "+CIEV: "CALL",1 CONNECT"; 2) Make a call. Enter number to call "ATD+37163055289" and
press Send button. Returns "ATD+37163055289 OK +CIEV: "CALL",1 +CIEV: "SOUNDER",1 "; 3) Disconnect existing call. Enter
"ATH" and press Send button. Returns "+CIEV: "CALL",0 OK";4) Insert the headset into the headphone/earphone jack, enter
"AT+SNFS=0" and press Send button to enable them. Returns "OK" ("AT+SNFS=1" used for loudspeaker selection).
21. SMS Commands. If you send SMS, for example, with Test word to A7 GPS GSM GPRS module you will get this info "+CIEV:
"MESSAGE",1 +CMT: "+3712345678",,"2018/03/18,15:33:08+02",145,17,0,0,"+37068499190",145,4 Test". 1) Select SMS message
format Enter "AT+CMGF=1" and press Send button. Returns "OK". This is to read and write SMS messages as strings instead of
hexadecimal characters. 2) Send SMS message. Enter "AT+CMGS=”+37163058092”" and press Enter button. Replace the above phone
number with your own cell phone number. The modem will respond with: > You can now type the message text and send the message using
the - key combination: TEST After some seconds the modem will respond with the message ID of the message, indicating that the message
was sent correctly: "+CMGS: 62". The message will arrive on the mobile phone shortly.
22. GPS commands. By default this mode is OFF. You need to enable GPS every time (if you power off the module GPS will switch off too).
1) Sets GPS on. Enter "AT+GPS=1" and press Send button. Returns "OK"; 2) Get GPS information. Enter "AT+GPSRD=1" and
press Send button. Returns "OK" and sends GPS NMEA data to serial port. If you want to stop sending data to serial port enter
"AT+GPSRD=0" and press Send button. Returns "OK" .
acoptex.com/project/15083/basics-project-101a-ai-thinker-a9g-gprs-gps-development-board-at-acoptexcom/#sthash.gT8iQ0R6.148zhKZz.dpbs 15/24
29/12/2019 Basics: Project 101a Ai Thinker A9G GPRS GPS development board at Acoptex.com / ACOPTEX.COM
23.
24. Check the list of all AT GPRS commands here and GPS commands here and here.
acoptex.com/project/15083/basics-project-101a-ai-thinker-a9g-gprs-gps-development-board-at-acoptexcom/#sthash.gT8iQ0R6.148zhKZz.dpbs 16/24
29/12/2019 Basics: Project 101a Ai Thinker A9G GPRS GPS development board at Acoptex.com / ACOPTEX.COM
Follow the steps as described above. Check your module firmware version. Enter “AT+GMR” and press Send button.
Always make sure that you have your firmware version on hands so you can restore previous version if next firmware version is bad.
Read all information about firmware update available on Web.
Just think if you realy need to do it as it is a risk to damage the module!!!
If you decided to do it make sure that the next firmware version which you are planing to upload is not older than existing.
Firmware download links: GPRS firmware release, GPS firmware release.
Note: A9 and A9G are different modules, but the same version of firmware is used.
1. Do wiring for firmware update. Use the USB-TTL converter to connect the download serial port of the GPRS series module to your PC
USB port. GPRS series modules generally have two serial ports, one AT serial port and one download serial port. We will use
the HST_TXD, HST_RXD pin to upload the firmware.
acoptex.com/project/15083/basics-project-101a-ai-thinker-a9g-gprs-gps-development-board-at-acoptexcom/#sthash.gT8iQ0R6.148zhKZz.dpbs 17/24
29/12/2019 Basics: Project 101a Ai Thinker A9G GPRS GPS development board at Acoptex.com / ACOPTEX.COM
2.
3. Attach GSM/GPRS antenna to A9 GPS GPRS development board.
4. Attach GPS antenna to A9 GPS GPRS development board.
5. Insert a valid unlocked Micro SIM card to SIM card slot of A9 GPS GPRS development board.
6. Insert the Micro CD card to Micro SD card slot.
7. Plug your USB to TTL converter into your PC USB port.
8. You can power up A9 GPS GPRS development board Lithium Ion battery V_BAT (3.5-4.2VDC) or use power supply from USB to TTL
converter.
9. Press PWR button for 2 seconds. Status indication (blue LED) will be ON.
10. Download the GPS and GPRS firmwares - ai-thinker_a9_a9g_at_v02.02.20181011r.7z and gk9501_release_gb_1.4_20180224.zip ,
firmware burning tool here. The link to download website instructions is here.
11. Unzip the firmwares' and firmware burning tool ZIP packages and double-click on fpupgrade.exe file.
12.
13. Click on the button to select the FWH - GPRS firmware and GPS - GPS firmware to be uploaded. Click on Open buttons.
acoptex.com/project/15083/basics-project-101a-ai-thinker-a9g-gprs-gps-development-board-at-acoptexcom/#sthash.gT8iQ0R6.148zhKZz.dpbs 18/24
29/12/2019 Basics: Project 101a Ai Thinker A9G GPRS GPS development board at Acoptex.com / ACOPTEX.COM
14.
15.
16. Click on Start button. The software will automatically detect the serial port for download.
acoptex.com/project/15083/basics-project-101a-ai-thinker-a9g-gprs-gps-development-board-at-acoptexcom/#sthash.gT8iQ0R6.148zhKZz.dpbs 19/24
29/12/2019 Basics: Project 101a Ai Thinker A9G GPRS GPS development board at Acoptex.com / ACOPTEX.COM
17.
18.
acoptex.com/project/15083/basics-project-101a-ai-thinker-a9g-gprs-gps-development-board-at-acoptexcom/#sthash.gT8iQ0R6.148zhKZz.dpbs 20/24
29/12/2019 Basics: Project 101a Ai Thinker A9G GPRS GPS development board at Acoptex.com / ACOPTEX.COM
19.
20. Click on Exit button. Congrats!!!You did it. Let's check the version of firmware in your A9 GPS GPRS development board now.
21. Unplug the USB to TTL converter from your PC USB port and do wiring for AT communication.
22. Attach GSM/GPRS antenna to A9 GPS GPRS development board.
23. Attach GPS antenna to A9 GPS GPRS development board.
24. Insert a valid unlocked Micro SIM card to SIM card slot of A9 GPS GPRS development board.
25. Insert the Micro CD card to Micro SD card slot.
26. Plug your USB to TTL converter into your PC USB port.
27. You can power up A9 GPS GPRS development board Lithium Ion battery V_BAT (3.5-4.2VDC) or use power supply from USB to TTL
converter.
28. Press PWR button for 2 seconds. Status indication (blue LED) will be ON.
29. Open AiThinker Serial Tool V1.2.3 program. Set the baud rate 115200, data bits 8, parity bits none, stop bits one. Click on Open
Serial button.
30. First you need to check if AT commands are working - enter "AT" and click on Send button.This would print "OK" which signifies of
working connection and operation of the module.
31. Requests TA revision identification. Enter "AT+GMR" and press Send button. Returns "V02.02.20181011R OK". This is the firmware
version.
32. Sets GPS on. Enter "AT+GPS=1" and press Send button. Returns "OK".
33. Get GPS information. Enter "AT+GPSRD=1" and press Send button. Returns "OK" and sends GPS NMEA data to serial port.
34. If you want to stop sending data to serial port enter "AT+GPSRD=0" and press Send button. Returns "OK" .
acoptex.com/project/15083/basics-project-101a-ai-thinker-a9g-gprs-gps-development-board-at-acoptexcom/#sthash.gT8iQ0R6.148zhKZz.dpbs 21/24
29/12/2019 Basics: Project 101a Ai Thinker A9G GPRS GPS development board at Acoptex.com / ACOPTEX.COM
35.
Summary
We have learnt about the A9G GPS GPRS development board and how to upload firmware to it.
Notes:
It takes for about half a minute or one to read the data by the GPS module initially when you run it, so do not panic for this it’s very usual.
It happens in some case that it is unable to detect the data that might be the issue with antenna, so unplug the antenna( if it is detachable) and
attach it again.
If, code says “Check Connection”, then you should definitely check it twice, before giving up. Also, sometimes interchanging the TX and
RX pins is preferable and surprisingly works.
You can check the GPS data logged with GPS Visualizer, an online utility that creates maps and profiles from geographic data. It is free and easy
to use, yet powerful and extremely customizable. Input can be in the form of GPS data (tracks and waypoints), driving routes, street addresses, or
simple coordinates. Use it to see where you've been, plan where you're going, or quickly visualize geographic data (scientific observations, events,
business locations, customers, real estate, geotagged photos, etc.).
GPS Visualizer can read data files from many different sources, including but not limited to: GPX (a standard format used with many devices and
programs, including Garmin's eTrex, GPSMAP, Oregon, Dakota, Colorado, & Nüvi series), Google Earth (.kml/.kmz), Google Maps routes
(URLs), FAI/IGC glider logs, Fugawi (.trk/.wpt), Furuno, Garmin Fitness (.fit), Garmin Forerunner (.xml/.hst/.tcx), Garmin
MapSource/BaseCamp/HomePort (.gdb), Geocaching.com (.loc), Google Spreadsheets, IGN Rando (.rdn), iGO (.trk), Lowrance (.usr), Microsoft
Excel, NMEA 0183 data, OziExplorer (.plt/.wpt), Suunto X9/X9i (.sdf), Timex Trainer, TomTom (.pgl), U-blox (.ubx), XML feeds, and of course
tab-delimited or comma-separated text.
Libraries
None
Script
acoptex.com/project/15083/basics-project-101a-ai-thinker-a9g-gprs-gps-development-board-at-acoptexcom/#sthash.gT8iQ0R6.148zhKZz.dpbs 22/24
29/12/2019 Basics: Project 101a Ai Thinker A9G GPRS GPS development board at Acoptex.com / ACOPTEX.COM
None
Acoptex.com
21 likes
« Go back to category
Is this project fake? Report it!
Recommend to a friend
Published at 23-11-2019
Viewed: 564 times
SITE LINKS:
About Us
Contact Us
Privacy Policy
How to post project/information / or comment it
acoptex.com/project/15083/basics-project-101a-ai-thinker-a9g-gprs-gps-development-board-at-acoptexcom/#sthash.gT8iQ0R6.148zhKZz.dpbs 23/24
29/12/2019 Basics: Project 101a Ai Thinker A9G GPRS GPS development board at Acoptex.com / ACOPTEX.COM
Members A-Z
Boards/Modules/Shields A-Z
Sitemap
Donate
Copyright 2017-2019. All rights reserved. ACOPTEX.COM
acoptex.com/project/15083/basics-project-101a-ai-thinker-a9g-gprs-gps-development-board-at-acoptexcom/#sthash.gT8iQ0R6.148zhKZz.dpbs 24/24