0

Adafruit feather 32u4 fona gets no connection
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit feather 32u4 fona gets no connection

by seaha on Mon Dec 25, 2017 6:04 pm

Hy iam using this feather to make an adafruit io project for measuring temp and humidity.
First i used the code from the examples with the huzzah and you can change in the config file that i wanna use a fona feather so i did this but nothing happend. Also the fona test sketch did nothin wright.
Alot of errors.
Iam using an prepaud card wich is 2g and 3g and 4g.
But what have i to do to work.
Iam also using and lipo wich is fully charged.
In the fona test sketch most of the time when i send a letter from the option menu it looks that the fona freezes and after tiping another Letter nothing is happen anymore.

Please help me
Attachments
20171225_215527-600x800.jpg
20171225_215527-600x800.jpg (101.39 KiB) Viewed 922 times
seaha
 
Posts: 17
Joined: Thu Mar 27, 2014 2:37 pm

Re: Adafruit feather 32u4 fona gets no connection

by adafruit_support_mike on Fri Dec 29, 2017 5:43 am

The output in the image says the microcontroller can talk to the GSM module, so the hardware seems to be working.

Check with your cell provider to see if they have a 2G network in your area. The "2G, 3G, 4G" description sounds like it might mean, "whatever is there".

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

Re: Adafruit feather 32u4 fona gets no connection

by seaha on Fri Dec 29, 2017 6:18 am

I already telephoned with the provide and yes the card is 2g
seaha
 
Posts: 17
Joined: Thu Mar 27, 2014 2:37 pm

Re: Adafruit feather 32u4 fona gets no connection

by adafruit_support_mike on Sun Dec 31, 2017 4:21 am

Okay, what output do you get when you select items 'i' and 'n' from the list of options?

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

Re: Adafruit feather 32u4 fona gets no connection

by seaha on Sun Dec 31, 2017 4:45 am

HI

so i got this
Code: Select all | TOGGLE FULL SIZE
FONA basic test
Initializing....(May take 3 seconds)
Attempting to open comm with ATs
   ---> AT
   <---
   ---> AT
   <---
   ---> AT
   <--- AT
   ---> AT
   <--- AT
   ---> ATE0
   <--- ATE0
   ---> ATE0
   <--- OK
   ---> AT+CVHU=0
   <--- OK
   ---> ATI
   <--- SIM800 R13.08

OK

RDY

+CFUN: 1

   ---> AT+GMM
   <--- SIMCOM_SIM800H

OK

   ---> AT+CPMS="SM","SM","SM"
   <--- ERROR
FONA is OK
Found FONA 800H
   ---> AT+GSN
   <--- 862877037268206

-------------------------------------
[?] Print this menu
[a] read the ADC 2.8V max (FONA800 & 808)
[b] read the Battery V and % charged
[C] read the SIM CCID
[U] Unlock SIM with PIN code
[i] read RSSI
[n] get Network status
[v] set audio Volume
[V] get Volume
[H] set Headphone audio (FONA800 & 808)
[e] set External audio (FONA800 & 808)
[T] play audio Tone
[P] PWM/Buzzer out (FONA800 & 808)
[f] tune FM radio (FONA800)
[F] turn off FM (FONA800)
[m] set FM volume (FONA800)
[M] get FM volume (FONA800)
[q] get FM station signal level (FONA800)
[c] make phone Call
[A] get call status
[h] Hang up phone
[p] Pick up phone
[N] Number of SMSs
[r] Read SMS #
[R] Read All SMS
[d] Delete SMS #
[s] Send SMS
[u] Send USSD
[y] Enable network time sync (FONA 800 & 808)
[Y] Enable NTP time sync (GPRS FONA 800 & 808)
[t] Get network time
[G] Enable GPRS
[g] Disable GPRS
[l] Query GSMLOC (GPRS)
[w] Read webpage (GPRS)
[W] Post to website (GPRS)
[S] create Serial passthru tunnel
-------------------------------------

FONA>
+CPIN: READY

Call Ready

SMS Ready
i
   ---> AT+CSQ
   <--- +CSQ: 22,0
RSSI = 22: -70 dBm
FONA> n
   ---> AT+CREG?
   <--- +CREG: 0,5
Network status 5: Registered roaming
FONA>


and i was also able to make a phone call with the fonatest sketch so it seems that its working but when i use the adafruitio_15_temp_humidity sketch and change the config.h to use the cellular network it shows up this
Code: Select all | TOGGLE FULL SIZE
Connecting to Adafruit IOAttempting to open comm with ATs
   ---> AT
   <---
   ---> AT
   <---
   ---> AT
   <--- AT
   ---> AT
   <--- AT
   ---> ATE0
   <--- ATE0
   ---> ATE0
   <--- OK
   ---> AT+CVHU=0
   <--- OK
   ---> ATI
   <--- SIM800 R13.08

OK

RDY

+CFUN: 1

   ---> AT+GMM
   <--- SIMCOM_SIM800H

OK

   ---> AT+CPMS="SM","SM","SM"
   <--- ERROR
   ---> AT+CGATT?
   <--- +CME ERROR: operation not allowed
   ---> AT+CIPSTATUS
   <--- +CME ERROR: operation not allowed
Connecting to TCP
   ---> AT+CIPSHUT
   <--- +CME ERROR: operation not allowed
.   ---> AT+CGATT?
   <--- +CGATT: 0
   ---> AT+CREG?
   <--- +CREG: 0,2
.   ---> AT+CGATT?
   <--- +CGATT: 0
   ---> AT+CREG?
   <--- +CREG: 0,2
.   ---> AT+CGATT?
   <--- +CGATT: 0
   ---> AT+CREG?
   <--- +CREG: 0,2
.   ---> AT+CGATT?
   <--- +CGATT: 0
   ---> AT+CREG?
   <--- +CREG: 0,2
.   ---> AT+CGATT?


please i really need your help dude i am out dont know what to do
seaha
 
Posts: 17
Joined: Thu Mar 27, 2014 2:37 pm

Re: Adafruit feather 32u4 fona gets no connection

by seaha on Mon Jan 01, 2018 12:24 pm

What else do i have too change when i will use the arduinoio temp humidity example code with the feather 32u4 fona.
In the whole internet stands that i only have to change the config file from this sketch to cellular that means only commend the wifi section and uncommand the cellular section and nothing else.
But i think thats not enough or?
seaha
 
Posts: 17
Joined: Thu Mar 27, 2014 2:37 pm

Re: Adafruit feather 32u4 fona gets no connection

by seaha on Tue Jan 02, 2018 7:34 am

Okay i got it dont know why but i changed the sim card toanother provider and now it seems to work.
But i got another problem.
It connects to adafruit io and send the temperature data but not the humidity, the feeds are correct but the bigger problem is that the data got send only once. When i look at the serial monitor i see its connecting to adafruit io than it send the temp data and than the serial monitor stands still and nothing is happen anymore.
Doesnt matter how long i wait.

Please help me
seaha
 
Posts: 17
Joined: Thu Mar 27, 2014 2:37 pm

Re: Adafruit feather 32u4 fona gets no connection

by adafruit_support_mike on Wed Jan 03, 2018 1:13 am

Now that you have a working network connection, let me move this thread to the adafruit.io forum. The folks there will have more information about making that work.

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

Re: Adafruit feather 32u4 fona gets no connection

by seaha on Wed Jan 03, 2018 5:56 am

I dont think thats a problem of the io part.
Because after sending the first data the fona freezes
seaha
 
Posts: 17
Joined: Thu Mar 27, 2014 2:37 pm

Re: Adafruit feather 32u4 fona gets no connection

by seaha on Wed Jan 03, 2018 6:49 am

Here is the serial monitor maybe you can see something.

Code: Select all | TOGGLE FULL SIZE
Connecting to Adafruit IOAttempting to open comm with ATs
   ---> AT
   <---
   ---> AT
   <---
   ---> AT
   <--- AT
   ---> AT
   <--- AT
   ---> ATE0
   <--- ATE0
   ---> ATE0
   <--- OK
   ---> AT+CVHU=0
   <--- OK
   ---> ATI
   <--- SIM800 R13.08

OK

RDY

+CFUN: 1

   ---> AT+GMM
   <--- SIMCOM_SIM800H

OK

+CPIN: READY

   ---> AT+CPMS="SM","SM","SM"
   <--- ERROR
   ---> AT+CGATT?
   <--- +CGATT: 0
   ---> AT+CREG?
   <--- +CREG: 0,2
.   ---> AT+CGATT?
   <--- +CGATT: 0
   ---> AT+CREG?
   <--- +CREG: 0,2
.   ---> AT+CGATT?
   <--- +CGATT: 0
   ---> AT+CREG?
   <--- +CREG: 0,2
.   ---> AT+CGATT?
   <--- +CGATT: 0
   ---> AT+CREG?
   <--- +CREG: 0,2
.   ---> AT+CGATT?
   <--- +CGATT: 0
   ---> AT+CREG?
   <--- +CREG: 0,2
.   ---> AT+CGATT?
   <--- +CGATT: 0
   ---> AT+CREG?
   <--- +CREG: 0,2
.   ---> AT+CGATT?
   <--- +CGATT: 0
   ---> AT+CREG?
   <--- +CREG: 0,2
.   ---> AT+CGATT?
   <--- +CGATT: 0
   ---> AT+CREG?
   <--- +CREG: 0,2
.   ---> AT+CGATT?
   <--- +CGATT: 0
   ---> AT+CREG?
   <--- +CREG: 0,2
.   ---> AT+CGATT?
   <--- +CGATT: 0
   ---> AT+CREG?
   <--- +CREG: 0,2
.   ---> AT+CGATT?
   <--- +CGATT: 0
   ---> AT+CREG?
   <--- +CREG: 0,2
.   ---> AT+CGATT?
   <--- +CGATT: 0
   ---> AT+CREG?
   <--- +CREG: 0,2
.   ---> AT+CGATT?
   <--- +CGATT: 0
   ---> AT+CREG?
   <--- +CREG: 0,2
.   ---> AT+CGATT?
   <--- +CGATT: 0
   ---> AT+CREG?
   <--- +CREG: 0,2
.   ---> AT+CGATT?
   <--- +CGATT: 0
   ---> AT+CREG?
   <--- +CREG: 0,2
.   ---> AT+CGATT?
   <--- +CGATT: 0
   ---> AT+CREG?
   <--- +CREG: 0,1
   ---> AT+CIPSHUT
   <--- SHUT OK
   ---> AT+CGATT=1
   <--- +CME ERROR: unknown
   ---> AT+CIPSTATUS
   <--- OK
   <--- STATE: IP INITIAL
Connecting to TCP
   ---> AT+CIPSHUT
   <--- SHUT OK
   ---> AT+CIPMUX=0
   <--- OK
   ---> AT+CIPRXGET=1
   <--- OK
AT+CIPSTART="TCP","io.adafruit.com","1883"
   <--- OK
   <--- CONNECT OK
Writing packet
   ---> AT+CIPSTATUS
   <--- OK
   <--- STATE: CONNECT OK
AT+CIPSEND=55
 0x10 0x35 0x0 0x4 0x4D 0x51 0x54 0x54 0x4 0xFFFFFFC2 0x1 0x2C 0x0 0x0 0x0 0x5 0x73 0x65 0x61 0x68 0x61 0x0 0x20 0x66 0x62 0x61 0x32 0x36 0x62 0x31 0x37 0x38 0x64 0x65 0x31 0x34 0x38 0x37 0x38 0x62 0x31 0x61 0x66 0x31 0x62 0x64 0x63 0x62 0x37 0x36 0x61 0x64 0x36 0x37 0x64
   <--- >
   <--- SEND OK
Reading data..
   ---> AT+CIPSTATUS
   <--- OK
   <--- STATE: CONNECT OK
   ---> AT+CIPSTATUS
   <--- OK
   <--- STATE: CONNECT OK
   ---> AT+CIPRXGET=4
   <--- +CIPRXGET: 4,4
4 bytes available
1 bytes read
 0x20
Read:   Reading data..
   ---> AT+CIPSTATUS
   <--- OK
   <--- STATE: CONNECT OK
   ---> AT+CIPSTATUS
   <--- OK
   <--- STATE: CONNECT OK
   ---> AT+CIPRXGET=4
   <--- +CIPRXGET: 4,3
3 bytes available
1 bytes read
 0x2
Read:   Reading data..
   ---> AT+CIPSTATUS
   <--- OK
   <--- STATE: CONNECT OK
   ---> AT+CIPSTATUS
   <--- OK
   <--- STATE: CONNECT OK
   ---> AT+CIPRXGET=4
   <--- +CIPRXGET: 4,2
2 bytes available
2 bytes read
 0x0 0x0
Read:   Writing packet
   ---> AT+CIPSTATUS
   <--- OK
   <--- STATE: CONNECT OK
AT+CIPSEND=30
 0xFFFFFF82 0x1C 0x0 0x0 0x0 0x17 0x73 0x65 0x61 0x68 0x61 0x2F 0x66 0x2F 0x74 0x65 0x6D 0x70 0x65 0x72 0x61 0x74 0x75 0x72 0x65 0x2F 0x63 0x73 0x76 0x0
   <--- >
   <---
Failed to send packet.
.   ---> AT+CGATT?
   <--- +CGATT: 1
   ---> AT+CIPSTATUS
   <--- OK
   <--- STATE: CONNECT OK

Adafruit IO connected.
   ---> AT+CIPSTATUS
   <--- OK
   <--- STATE: CONNECT OK
Reading data..
   ---> AT+CIPSTATUS
   <--- OK
   <--- STATE: CONNECT OK
   ---> AT+CIPSTATUS
   <--- OK
   <--- STATE: CONNECT OK
   ---> AT+CIPRXGET=4
   <--- +CIPRXGET: 4,0
0 bytes available
   ---> AT+CIPSTATUS
   <--- OK
   <--- STATE: CONNECT OK
celsius: 25.00C
fahrenheit: 77.00F
Writing packet
   ---> AT+CIPSTATUS
   <--- OK
   <--- STATE: CONNECT OK
AT+CIPSEND=82
 0x30 0x50 0x0 0x17 0x73 0x65 0x61 0x68 0x61 0x2F 0x66 0x2F 0x74 0x65 0x6D 0x70 0x65 0x72 0x61 0x74 0x75 0x72 0x65 0x2F 0x63 0x73 0x76 0x32 0x2E 0x35 0x30 0x30 0x30 0x30 0x30 0x30 0x65 0x2B 0x30 0x31 0x2C 0x30 0x2E 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x65 0x2B 0x30 0x30 0x2C 0x30 0x2E 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x65 0x2B 0x30 0x30 0x2C 0x30 0x2E 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x65 0x2B 0x30 0x30
   <--- >
   <--- SEND OK
humidity: 32.00%
seaha
 
Posts: 17
Joined: Thu Mar 27, 2014 2:37 pm

Re: Adafruit feather 32u4 fona gets no connection

by adafruit_support_mike on Tue Jan 09, 2018 1:15 am

Sorry for the delay.

I don't see anything too far out of the ordinary in those messages. The series of messages like this:

Code: Select all | TOGGLE FULL SIZE
.   ---> AT+CGATT?
   <--- +CGATT: 0
   ---> AT+CREG?
   <--- +CREG: 0,2
show the phone waiting for a connection to the network. The phone does connect though, and makes a network connection to the adafruit.io server.

There's a message about a packet failing to send, but that appears to happen between the phone company's computer and the adafruit.io server.

Overall, the FONA's hardware seems to be working. It would probably be good to step back and do a basic network try connecting to a simple URL like this one to see if the end-to-end network connection is working:

http://adafruit.com//testwifi/index.html

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

Re: Adafruit feather 32u4 fona gets no connection

by seaha on Tue Jan 09, 2018 1:35 am

I found the problem.
Dont know why this happen but i describe it maybe you have a solution.
I use the adafruitio temp and humidity sketch.
It only sends the temp once to the adafruit io and than nothing happens anymore.
If i delete all the parts in the code with the humidity and try it again it works perfect. (Without humidity measurings)
Then i receive temperature feeds every 5 seconds. But when i put the humidity sections back in the code i get the issue again.
The code is original and i changed only the part with the fona.
seaha
 
Posts: 17
Joined: Thu Mar 27, 2014 2:37 pm

Re: Adafruit feather 32u4 fona gets no connection

by adafruit_support_mike on Fri Jan 12, 2018 2:48 am

That sounds like a formatting issue.

Try sending the kind of string you'd expect to use foe humidity data without actually pulling data from the sensor.. just hardcode some fixed value. If that causes the same problem, try modifying the string to see what part makes the problem occur.

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

Re: Adafruit feather 32u4 fona gets no connection

by seaha on Fri Jan 12, 2018 3:29 am

I am not a pro. So would you please explane me how to do it. Or a little example pleae
seaha
 
Posts: 17
Joined: Thu Mar 27, 2014 2:37 pm

Please be positive and constructive with your questions and comments.