Basics: Project 085b
Project name: Ai Thinker A6 GSM GPRS module – How to upload firmware
Tags: A6 GSM GPRS module, GSM GPRS module, A6, Ai Thinker, Upload firmware
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. Ai Thinker A6 GSM GPRS module 1 pc

2. USB to TTL/Serial adaptor/converter 1 pc

4. Jumper cables F-F

5. Micro USB cable 1 pc

6. Micro SIM card 1 pc (unlocked)

7. GSM GPRS antenna 1 pc
8. 5 VDC 2A power wall adapter 1pc
General
We will learn in this project how to upload firmware to the Ai Thinker A6 GSM GPRS module.
Understanding the USB to TTL converter
You can read more about them here.
Understanding the A6 GSM GPRS module
You can read more about it here.
You can find A6 datasheet, manuals, AT commands, schematics here.
Signals and connections of the A6 GSM GPRS module
A6 GPS/GPRS IC pinout:


EN – module power control enable pin (can control power switch, default high level enable)
VCC_IN – External power supply (3.4V-4.2V ) maximum power supply current 2A
PWR – used for turning module ON/OFF programmatically. For doing this you must pull it HIGH for a moment (less than 500 ms or around).
INT – used to control the module to enter low-power mode, high exit low level access, in this mode the standby current <1mA ( in this mode the serial port cannot be used)
GND – ground pin. this module has 2 ground pins
U_RXD – serial port for AT commands (receive pin)
U_TXD – serial port for AT commands (transmit pin)
H_TXD – firmware update pin (transmit pin), pin power level 2.8V
H_RXD – firmware update pin (receive pin), pin power level 2.8V
R232_TX – RS232 level control (transmit pin)
R232_RX – RS232 level control (receive pin)
MIC- – microphone –
MIC+ – microphone+
REC- – loudspeaker –
REC+ – loudspeaker +
Wiring
1.Firmware update

2.Using USB to TTL converter

You should be very careful to not to disconnect the GND before the VCC and always connect GND before VCC. Otherwise the module can use the low voltage serial pins as ground and can get destroyed instantly.
Step by Step instruction
VERY IMPORTANT NOTE:
Before doing firmware update:
- Follow the steps as described above. Check your module firmware version. Enter “AT+GMR” and press Send button. For example we have – V03.05.20170724017H17 .
- 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 really 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 link: GPRS firmware release.
- Be careful to connect your USB-To-serial module on the H_TXD and H_RXD pins instead of the U_TXD and U_RXD pins of the A6 GSM GPRS module.
Firmwares:
- Development version November 27, 2017 – a6-v03.06.20171127r.zip
- Stable version December 29, 2016 – a6_v03.03.20161229019h03.rar
- September 21, 2016 – a6_V03.03.20160921015H03.zip
- Do wiring for firmware update.
- Plug your USB to TTL converter into your PC USB port.
- Download the latest firmware file(development version a6-v03.06.20171127r.zip ) and unzip it (A6-V03.06.20171127R.afw).
- Download the AI thinker GSM and GPS download tool v02.01.01.
- Unzip the firmwarw_tool_v2.1.7z package and launch fpupgrade.exe.
- Select the latest firmware file which you want to upload to the A6 GSM GPRS module.
- Power up the A6 GSM GPRS module with the 5V DC 2A external power supply through the Micro USB port. The AI thinker GSM and GPS download tool should detect the COM port automatically (We have COM 8).
- Click on Start button.
- After 22-23 seconds, the firmware should be flashed! When a download finished click on Stop button and then click on Exit button to close the AI thinker GSM and GPS download tool. Let’s check the firmware in A6 GSM GPRS module now.
- Power off the A6 GSM GPRS module.




2. Checking the firmware version of the A6 GSM GPRS module with USB to TTL converter
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.
- Do wiring for Using USB to TTL converter.
- Power up the A6 GSM GPRS module with the 5V DC 2A external power supply through the Micro USB port.
- Plug your USB to TTL converter into your PC USB port.
- Set the baud rate on 57600 (our A6 GSM GPRS module responded on 57600 but your module can respond on other bound rate – try other baud rates), data bits 8, parity bits none,stop bits one and click on Open Serial button.
- First you need to check if AT commands are working – enter “AT” and press Send button.This would print “OK” which signifies of working connection and operation of the module.
- Requests TA revision identification. Enter “AT+GMR” and press Send button. Returns “V03.06.20171127R OK”. This is the firmware version.
- Change that baud rate to 9600. Enter “AT+IPR=9600” and press Send button. Returns “OK”. It is 9600 bps now.
- Click on Close serial button. Set the baud rate on 9600 , data bits 8, parity bits none,stop bits one and click on Open Serial button.
- First you need to check if AT commands are working – enter “AT” and press Send button.This would print “OK” which signifies of working connection and operation of the module.
- Requests TA revision identification. Enter “AT+GMR” and press Send button. Returns “V03.06.20171127R OK”. This is the firmware version.
- Checks fixed local rate. Enter “AT+IPR?” and press Send button. Returns “+IPR: 9600 OK” /9600 bps/
- Congrats!!!


Summary
We have learnt how to upload firmware to the Ai Thinker A6 GSM GPRS module.
Thank you for reading and supporting us.
Libraries:
- None
Project resources:
- See attachments on the beginning of this project description
Check for more DIY projects on Acoptex.lt and Acoptex.com!
If you are looking for high quality PCBs PCBWay is the best choice:

RELATED POSTS
Guide to LILYGO T-SIM7000G ESP32 development board -How to update a firmware
Guide to LILYGO T-SIM7000G ESP32 development board- AT communication
Basics project 085f Ai Thinker A6 GSM GPRS module – GPRS application and GSM initialization