0

Fona 808 with Raaspberry Pi 3
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Fona 808 with Raaspberry Pi 3

by mahamoodalam123 on Tue Oct 20, 2020 8:20 am

Hello,

I am using Fona 808 in serial connection with the Raspberry Pi 3. I have completed all the steps mentioned at https://learn.adafruit.com/fona-tetheri ... k?view=all

The problem is that the PPP connection is not getting established.

My cat /var/log/syslog | grep chat response is below,

Oct 20 15:04:12 raspberrypi chat[1444]: abort on (BUSY)
Oct 20 15:04:12 raspberrypi chat[1444]: abort on (VOICE)
Oct 20 15:04:12 raspberrypi chat[1444]: abort on (NO CARRIER)
Oct 20 15:04:12 raspberrypi chat[1444]: abort on (NO DIALTONE)
Oct 20 15:04:12 raspberrypi chat[1444]: abort on (NO DIAL TONE)
Oct 20 15:04:12 raspberrypi chat[1444]: abort on (NO ANSWER)
Oct 20 15:04:12 raspberrypi chat[1444]: abort on (DELAYED)
Oct 20 15:04:12 raspberrypi chat[1444]: abort on (ERROR)
Oct 20 15:04:12 raspberrypi chat[1444]: abort on (+CGATT: 0)
Oct 20 15:04:12 raspberrypi chat[1444]: send (AT^M)
Oct 20 15:04:12 raspberrypi chat[1444]: timeout set to 12 seconds
Oct 20 15:04:12 raspberrypi chat[1444]: expect (OK)
Oct 20 15:04:12 raspberrypi chat[1444]: AT^M^M
Oct 20 15:04:12 raspberrypi chat[1444]: OK
Oct 20 15:04:12 raspberrypi chat[1444]: -- got it
Oct 20 15:04:12 raspberrypi chat[1444]: send (ATH^M)
Oct 20 15:04:12 raspberrypi chat[1444]: expect (OK)
Oct 20 15:04:12 raspberrypi chat[1444]: ^M
Oct 20 15:04:12 raspberrypi chat[1444]: ATH^M^M
Oct 20 15:04:12 raspberrypi chat[1444]: OK
Oct 20 15:04:12 raspberrypi chat[1444]: -- got it
Oct 20 15:04:12 raspberrypi chat[1444]: send (ATE1^M)
Oct 20 15:04:12 raspberrypi chat[1444]: expect (OK)
Oct 20 15:04:12 raspberrypi chat[1444]: ^M
Oct 20 15:04:12 raspberrypi chat[1444]: ATE1^M^M
Oct 20 15:04:12 raspberrypi chat[1444]: OK
Oct 20 15:04:12 raspberrypi chat[1444]: -- got it
Oct 20 15:04:12 raspberrypi chat[1444]: send (AT+CGDCONT=1,"IP","web.qtel","",0,0^M)
Oct 20 15:04:12 raspberrypi chat[1444]: expect (OK)
Oct 20 15:04:12 raspberrypi chat[1444]: ^M
Oct 20 15:04:12 raspberrypi chat[1444]: AT+CGDCONT=1,"IP","web.qtel","",0,0^M^M
Oct 20 15:04:12 raspberrypi chat[1444]: OK
Oct 20 15:04:12 raspberrypi chat[1444]: -- got it
Oct 20 15:04:12 raspberrypi chat[1444]: send (ATD*99#^M)
Oct 20 15:04:12 raspberrypi chat[1444]: timeout set to 22 seconds
Oct 20 15:04:12 raspberrypi chat[1444]: expect (CONNECT)
Oct 20 15:04:12 raspberrypi chat[1444]: ^M
Oct 20 15:04:12 raspberrypi chat[1444]: ATD*99#^M^M
Oct 20 15:04:12 raspberrypi chat[1444]: CONNECT
Oct 20 15:04:12 raspberrypi chat[1444]: -- got it
Oct 20 15:04:12 raspberrypi chat[1444]: send (^M)

And the cat /var/log/syslog | grep ppp response is below

Oct 20 15:03:38 raspberrypi pppd[1262]: Serial connection established.
Oct 20 15:03:38 raspberrypi pppd[1262]: Using interface ppp0
Oct 20 15:03:38 raspberrypi pppd[1262]: Connect: ppp0 <--> /dev/ttyAMA0
Oct 20 15:03:39 raspberrypi pppd[1262]: PAP authentication succeeded
Oct 20 15:03:39 raspberrypi pppd[1262]: LCP terminated by peer
Oct 20 15:03:42 raspberrypi pppd[1262]: Connection terminated.
Oct 20 15:03:42 raspberrypi pppd[1262]: Modem hangup
Oct 20 15:04:12 raspberrypi pppd[1262]: Serial connection established.
Oct 20 15:04:12 raspberrypi pppd[1262]: Using interface ppp0
Oct 20 15:04:12 raspberrypi pppd[1262]: Connect: ppp0 <--> /dev/ttyAMA0
Oct 20 15:04:13 raspberrypi pppd[1262]: PAP authentication succeeded
Oct 20 15:04:13 raspberrypi pppd[1262]: LCP terminated by peer
Oct 20 15:04:16 raspberrypi pppd[1262]: Connection terminated.
Oct 20 15:04:16 raspberrypi pppd[1262]: Modem hangup
Oct 20 15:04:16 raspberrypi pppd[1262]: Exit.

Please guide me in finding the issue.

Thanks.

mahamoodalam123
 
Posts: 2
Joined: Wed Oct 14, 2020 2:19 am

Re: Fona 808 with Raaspberry Pi 3

by mikeysklar on Tue Oct 20, 2020 8:18 pm

@mahamoodalam123,

Could you post a photo of your wiring. I'd like to confirm you have the FONA key to FONA GND in place which is not in the diagram.

Did you need to unlock your SIM card with a PIN? The log file shows you being disconnected within 3 seconds of starting a PPP session which makes me think this is an authentication issue.

mikeysklar
 
Posts: 3415
Joined: Mon Aug 01, 2016 8:10 pm

Re: Fona 808 with Raaspberry Pi 3

by mahamoodalam123 on Wed Oct 21, 2020 1:39 pm

I forgot to mention above that I was using Adafruit FONA 808 Shield - Mini Cellular GSM + GPS for Arduino and not the breakout module.

The wiring I made is

1) connected RX(pin 2) of Fona 808 to TxD(pin 8) of Raspberry pi.
2) connected TX(pin 3) of Fona 808 to RxD(pin 10) of Raspberry pi.
3) Connected GND of Fona to GND of Raspberry pi.
4) Powered the Fona 808 shield with a 3.8V input.

I have observed that the voltage at Vio pin is 3.7V and the Key input is connected to GND pin by default.

However, when I closely observed the code I came to know that the APN for my SIM should be gprs.qtel and not web.qtel. Changed the APN and it connected to the network. So now I have a Adafruit FONA 808 Shield - Mini Cellular GSM + GPS connected to a Raspberry Pi 3 board.

Thanks for the help.

mahamoodalam123
 
Posts: 2
Joined: Wed Oct 14, 2020 2:19 am

Re: Fona 808 with Raaspberry Pi 3

by mikeysklar on Fri Oct 23, 2020 2:03 pm

Nice troubleshooting @mahamoodalam123. Thank you for getting back to us with your APN rename solution for your SIM service.

APN for my SIM should be gprs.qtel and not web.qtel

mikeysklar
 
Posts: 3415
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.