Page 1 of 1

Driver for Adafruit GSM FONA module

Posted: Thu Jan 22, 2015 12:43 pm
by Damien
This topic is to discuss development of a uPy driver for the Adafruit FONA module, using the SIM800L GSM chip. See http://www.adafruit.com/products/1963.

I have managed so far to send an SMS from the pyboard using this module. Here are some notes how to do it:

1. Insert SIM card, connect charged Lipo battery. Note: the battery can be charged over USB using the provided micro USB port, but it draws about 500mA so needs a dedicated USB port.

2. Connections from FONA to pyboard: GND to GND, Vio to 3V3, RX to X1, TX to X2 (or you can use a different UART bus on the pyboard, here we use UART(4)).

3. Get a uPy REPL prompt.

4. Make UART object:
ua = pyb.UART(4, 115200, timeout_char=1, read_buf_len=1000)

5. Check that everything works by sending ATI command:
ua.write('ATI\r\n')
ua.read(100)
--> you should get a string saying the version number

6. Check that you're connected to a network:
ua.write('AT+COPS?\r\n')
ua.read(100)
--> you should get a string with the network name

7. Send an SMS:
ua.write('AT+CMGS="+447xxxxxxxxx"\r\nHello from pyboard!\x1a')
ua.read(100)
--> this will send the message "Hello from pyboard"! to the given cell number. The "\x1a" is ctrl-Z and signals end of message.

Re: Driver for Adafruit GSM FONA module

Posted: Wed Jan 20, 2016 5:32 pm
by JimTal001
Hello Damien,

Any further work on the FONA or other similar module? Did you develop a driver for it?

Thanks

Re: Driver for Adafruit GSM FONA module

Posted: Tue Apr 05, 2016 6:18 am
by joskal
Hello
Just bumping this thread since I am also very interested in this subject.
regards
Josef

Re: Driver for Adafruit GSM FONA module

Posted: Sun Sep 11, 2016 9:12 pm
by nickovs
Has there been any progress on a network/socket driver for the FONA module? The device supports abstracted TCP and UDP connections as well as DNS lookup, so much of the work is already done in the module. I can't find any documentation regarding how to write network drivers but if someone can give me some pointers I'll take a look.