Arduino Forum

Development => Other Hardware Development => Topic started by: zeemankay on Jan 22, 2018, 05:47 pm

Title: IDE support for Ai-Thinker A9G GPRS + GPS board
Post by: zeemankay on Jan 22, 2018, 05:47 pm
Hi,

Anybody have IDE support for Ai-Thinker A9G board?
http://wiki.ai-thinker.com/gprs/a9g/boards (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 (https://github.com/Ai-Thinker-Open/GPRS_C_SDK)

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


Cheers...
Title: Re: IDE support for Ai-Thinker A9G GPRS + GPS board
Post by: pert on Jan 22, 2018, 10:54 pm
Here's the definitive reference:
https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5-3rd-party-Hardware-specification (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 (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.
Title: Re: IDE support for Ai-Thinker A9G GPRS + GPS board
Post by: mrrcomp on Apr 02, 2018, 03:37 pm
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
Title: Re: IDE support for Ai-Thinker A9G GPRS + GPS board
Post by: jumpjack on Aug 12, 2018, 07:25 pm
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
Title: Re: IDE support for Ai-Thinker A9G GPRS + GPS board
Post by: vidalv on Jan 11, 2019, 07:56 am
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.
 :)
Title: Re: IDE support for Ai-Thinker A9G GPRS + GPS board
Post by: dr3x on Apr 09, 2019, 02:18 am
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)









Title: Re: IDE support for Ai-Thinker A9G GPRS + GPS board
Post by: pert on Apr 10, 2019, 02:10 pm
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 (https://www.makerfabs.com/index.php?route=product/product&path=90_117_119&product_id=552)
Title: Re: IDE support for Ai-Thinker A9G GPRS + GPS board
Post by: geisha on Apr 28, 2019, 07:40 pm
To be precise, the A9G module is bundled with Chinese SDK

https://github.com/Ai-Thinker-Open/GPRS_C_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 (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.
Title: Re: IDE support for Ai-Thinker A9G GPRS + GPS board
Post by: pert on Apr 30, 2019, 12:10 pm
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?
Title: Re: IDE support for Ai-Thinker A9G GPRS + GPS board
Post by: geisha on May 19, 2019, 07:55 pm
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.
Title: Re: IDE support for Ai-Thinker A9G GPRS + GPS board
Post by: bugcreater on May 24, 2019, 03:59 am
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
Title: Re: IDE support for Ai-Thinker A9G GPRS + GPS board
Post by: jumpjack on Jul 15, 2019, 09:32 am
Any new about direct Arduino IDE support for bare A9G?