Hi,
We have a Metro M0 Express and an Adafruit 3G cellular breakout (part no 3147) as well as a few sensors. My daughter is using CircuitPython to integrate these chips with the sensors and would like to be able to text a GPS location to a cell number or maybe just make a call. We are having trouble finding any examples of CircuitPython code for the FONA module. Do any such examples or libraries exist? I saw some older posts that seemed to indicate there is not support for FONA in CircuitPython, but am wondering if there has been any updates since then. If not, what do you suggest? Rewrite the project in C?
thanks!
FONA in circuitpython
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: FONA in circuitpython
No, we don't have any CircuitPython code to talk to the FONA.
Writing the code won't be too hard though. The FONA uses an AT-command control interface, so you're really just sending it strings that begin with the letters "AT-". The FONA library written in C++ has all the commands, so you can use it as a working design reference:
https://github.com/adafruit/Adafruit_FONA
The code also has a couple of utility functions that look for a specific response from the FONA, like .expectReply() and .sendCheckReply(). Those handle the repetitive work of sending a message and making sure you got the right answer.
Writing the code won't be too hard though. The FONA uses an AT-command control interface, so you're really just sending it strings that begin with the letters "AT-". The FONA library written in C++ has all the commands, so you can use it as a working design reference:
https://github.com/adafruit/Adafruit_FONA
The code also has a couple of utility functions that look for a specific response from the FONA, like .expectReply() and .sendCheckReply(). Those handle the repetitive work of sending a message and making sure you got the right answer.
Please be positive and constructive with your questions and comments.