Sitemap

【NB-IoT module】Ai-Thinker EC series firmware update tutorial

4 min readOct 11, 2024

--

#NB-IoT module

EC series modules is the NB-IoT modules develop and designed by Ai-Thinker team. The factory firmware is AT firmware and supports TCP, HTTP/S, MQTT and other network protocols.

Module introduction

NB-IoT module EC series currently has 3 modules designed, namely:

EC-01: EC-01 module and A9 are pin-to-pin packages, only support NB
EC-01G: EC-01G module and A9G are pin-to-pin packages, support NB, GPS
EC-01F: only support NB

Press enter or click to view image in full size

Development board introduction

In order to better let everyone debug the program, we have also designed three development boards, which are:

EC-01-Kit: equipped with EC-01 module
EC-01G-Kit: equipped with EC-01G module
EC-01F-Kit: equipped with EC-01F module
Among them, EC-01-Kit and EC-01G-Kit share the same baseboard.

Press enter or click to view image in full size

Flash software

Flash sofware download link:https://docs.ai-thinker.com/nb-iot

After upzip, run in the file: FlashTools.exe

CH340 driver download address: link
Unzip and install the CH340 driver. After plugging in the development board, the following information will be displayed in the device manager:

To re-burn the firmware, you need to prepare the above two software.

Hardware preparation

EC series development board + Micro USB data cable
EC series module + several Dupont cables + USB to TTL module
Wiring method
(1) Development board wiring
The wiring of the EC series development board is consistent, you only need to insert the Mirco-USB data cable.

Press enter or click to view image in full size

(2) Module wiring
The module wiring needs to be based on the module pins, and only four wires need to be soldered:

  • 3V3 :module power supply,connect to 3.3V of TTL module
  • GND:module power ground, connected to the GND of the TTL module
  • UART1_TXD: module UART1 TX is connected to the RXD of the TTL module
  • UART1_RXD: module UART1 RX is connected to the TXD of the TTL module
Press enter or click to view image in full size
Purple: TXD, Brown: RXD, Gray: Do not connect, Black: GND, White: 3V3

Burning steps

1. Open the software and select the chip configuration

Press enter or click to view image in full size

Operation demonstration:

Press enter or click to view image in full size

2. Select firmware

Get Tara Qiu’s stories in your inbox

Join Medium for free to get updates from this writer.

Usually has two firmware:

  • bootloader:Boot firmware, necessary firmware, responsible for booting the program, generally remains unchanged
  • system:System firmware, user programs
Press enter or click to view image in full size

Operation demonstration:

Press enter or click to view image in full size

3. Select port and burn

Press enter or click to view image in full size
1/Choose com port, 2/Click download

4. Burning process

Press enter or click to view image in full size

Flash success:

Press enter or click to view image in full size

5. Burning verification
Generally, the firmware we provide is AT firmware. After burning is completed, open the serial port debugging software. The serial port communication information is as follows:

Baud rate: 9600
Stop bit: 1bit
Data bit: 8bit
Check bit: None
After connecting to the development board, press the RST key on the development board, and the serial port will print information:

Press enter or click to view image in full size
Convert to English
Press enter or click to view image in full size

Send test command:AT\r\n

Press enter or click to view image in full size

After send, module return: OK, is firmware update success

Erase firmware

If you want to erase the program before burning, you can check the “Erase All…” option:

Press enter or click to view image in full size
  1. Erase All, included botloader
  2. If only erase, no program new firmware, can cancel seltect it.

Contact us

Official website: https://www.ai-thinker.com
Development materials: https://docs.ai-thinker.com/
Official forum: http://bbs.ai-thinker.com
Business cooperation: tara@aithinker.com
LinkedIn: Ai-Thinker official
Company address: Building C 410, Huafeng Smart Innovation Port, Gushu, Xixiang, Bao’an District, Shenzhen
Contact number: +86–15817421307

— — — — — — — — — — — — — — — — — —

Original link: https://blog.csdn.net/Boantong_/article/details/120757243

--

--

Tara Qiu
Tara Qiu

Written by Tara Qiu

IoT module&Antenna information sharing