0

FONA with a Pi and an Arduino?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

FONA with a Pi and an Arduino?

by jeremygp on Tue Feb 02, 2021 2:57 pm

Hi,

I think this should be similar to the topic using FONA with two feathers https://forums.adafruit.com/viewtopic.php?f=54&t=174652 but I am not entirely sure.

I am planning to use a FONA https://www.adafruit.com/product/2542
along with a raspberry pi https://www.adafruit.com/product/3055
and an arduino https://www.adafruit.com/product/4806.

The FONA has a USB and RX/TX lines which I'm planning to use concurrently.

Q: Can the FONA communicate with the Pi through USB and the Arduino through the TX/RX lines concurrently?
The FONA-Pi USB connection is to give remote access to the Pi through PPP.
While FONA-Arduino RX/TX connection controls a GPIO line in the Arduino.

I don't want the Pi to control the Arduino because in the case the Pi crashes for some reason, the Arduino can still work through FONA.

Regards,
Jeremy

jeremygp
 
Posts: 1
Joined: Tue Feb 02, 2021 11:17 am

Re: FONA with a Pi and an Arduino?

by adafruit_support_mike on Thu Feb 04, 2021 1:12 am

jeremygp wrote:]Q: Can the FONA communicate with the Pi through USB and the Arduino through the TX/RX lines concurrently?

It should work, but could easily get confusing.

Both interfaces can change the state of the phone.. starting and stopping network connections, making and disconnecting phone calls, changing settings.. without the other one knowing it. If the RasPi and Arduino don't keep in sync with each other, it would be hard for either one to guess what state the FONA is in.

adafruit_support_mike
 
Posts: 62768
Joined: Thu Feb 11, 2010 2:51 pm

Re: FONA with a Pi and an Arduino?

by EPD on Sat Feb 20, 2021 10:40 am

sorry its a bit late, ive done some testing of my own and found that the 3g module becomes very confused and spits data out of both connections at random, id put a data wire between the arduino and raspberry pi (using a level converter if arduino is 5v as raspberry pi is 3.3v only) and use that wire to signal if either the arduino or raspberry pi are currently using the 3g module.

EPD
 
Posts: 6
Joined: Fri Feb 19, 2021 6:01 pm

Please be positive and constructive with your questions and comments.