Go Down

Topic: IDE support for Ai-Thinker A9G GPRS + GPS board (Read 13820 times) previous topic - next topic

zeemankay

Jan 22, 2018, 05:47 pm Last Edit: Jan 22, 2018, 05:52 pm by zeemankay
Hi,

Anybody have IDE support for Ai-Thinker A9G board?
http://wiki.ai-thinker.com/gprs/a9g/boards

They already provide C SDK but not sure how to integrate to Arduino IDE.
https://github.com/Ai-Thinker-Open/GPRS_C_SDK

Any guide to create the hardware driver to connect to IDE is much appreciated.


Cheers...

pert

Here's the definitive reference:
https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5-3rd-party-Hardware-specification

I recommend you also use other hardware packages as a guide.

You might also find this useful if you want to add support for Boards Manager installation:
https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.6.x-package_index.json-format-specification

As you work through the process feel free to come back here with specific questions.

mrrcomp

Hi
I'm about to get the a9g module . Did you get this working in the ide?  Any info / code you have on integrating it with arduino that you can share will be greatly appreciated.

Regards

Meir

jumpjack

any news?
I purchased a dev board with SD-Card but without documentation, any tip?
https://www.ebay.de/itm/AI-Thinker-GPS-BDS-GPRS-A9G-Board-32Mbit-C-SDK-GPIO-UART-ADC-I2C-SPI-MQTT-TFCard-/282891177801

vidalv

Hello users of the 32u4-A9G, to use this module with the Arduino IDE, you can select the Arduino Leonardo card, it uses an ATmega32u4 identical to that of the A9G card.
Then you can take inspiration from the codes of the Hackaday website: https://hackaday.io/search?term=A9G.
I translated AI-Thiker's A9G datasheet from Chinese to French, but it's easily retranslatable into English for those interested.
The most important thing in using this product is that for it to work well you have to wait for the A9G to start (several seconds) the best is to test your code with a command AT.
Good debug!
Vincent.
 :)

dr3x

I got this board; I think it is similar:

A9G Module GPRS GSM GPS BDS Development Board Quad-Band 800/900/1800 / 1900MHz SMS Voice Wireless Data Transmission IOT with Antenna Geekstory
https://www.amazon.com/gp/product/B07BQZ8T9B/

Do you know if it needs a CP2102 or equivalent USB to UART to access from the Arduino IDE?  Not seeing the COM port in the list when connected to the USB (and another board - the Wemos D1 mini does appear so prob not the cable or IDE)










pert

From what I can decipher from the listing links provided by zeemankay, jumpjack, and dr3x, none of those boards can be used with the Arduino IDE unless someone has gone through a lot of work to create a hardware package for the A9G.

I think vidalv's statement will be misleading to anyone with one of those common A9G boards. You can not use those boards as a Leonardo. What vidalv is talking about is a different type of board which has the A9G module, but also an ATmega32U4. It is the ATmega32U4 which you will be programming via the Arduino IDE on those boards. You will not be programming the A9G directly. This is what the ATmega32U4 + A9G boards look like:

The large black chip is the ATmega32U4.

From the Hackaday link, there is also an A9G board with a SAMD21 chip on it that you can program with the Arduino IDE as a Zero:
https://www.makerfabs.com/index.php?route=product/product&path=90_117_119&product_id=552

geisha

#7
Apr 28, 2019, 07:40 pm Last Edit: Apr 28, 2019, 07:41 pm by geisha
To be precise, the A9G module is bundled with Chinese SDK

https://github.com/Ai-Thinker-Open/GPRS_C_SDK

which, in principle, could be embedded into Arduino IDE. Unfortunately, the Chinese SDK is not just binary blobs and makefiles, but also a separate GUI tool, so some reverse engineering is definitely needed.

Instead, I would like to advertise my project porting micropython to this module:

https://github.com/pulkin/micropython

Of course, it is designed to work without any ATmegas onboard, google for the reference board "pudding a9g". Help, PRs and likes are welcome.

pert

Nice work geisha! I'm biased to C++, but making these chips more accessible is a great contribution, no matter which language is used.

Do you expect that the support you've added for this chip will eventually be merged into mainline MicroPython?

geisha

Sure: I do not see any problems merging. It is organized nicely such that I do not need to edit anything outside my port folder.

bugcreater

A9G demo code on github . Could find it's GitHub link on wiki

https://makerfabs.com/wiki/index.php?title=Maduino_Zero_A9G#GPRS_DEMO

jumpjack

Any new about direct Arduino IDE support for bare A9G?

Go Up