Error 601 on HTTP_GET/HTTP_POST

Adafruit cellular platform - SMS and IoT over celluar

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
davilox
 
Posts: 2
Joined: Thu May 17, 2018 6:53 am

Error 601 on HTTP_GET/HTTP_POST

Post by davilox »

Hi, I´m experiencing the 601 error (Network error) on HTTP requests.

I'm using a FONA SIM808 V2 (R14.18) with an spanish Orange 4G SIM.

The SIM is without PIN and is set to run only on GSM network (not WCDMA).

If I use the SIM with a Samsung Galaxy Tab 8 (only GSM/WCDMA) and its able to browse any web via GPRS, why when I use it in the FONA SIM808 get this error?

Operator assures me he keep a 2G network and that the SIM is not choosing the network used, is always the device.

Thanks in advance.

Code: Select all

SERIAL MONITOR OUTPUT:

Attempting to open comm with ATs
	---> AT
	<--- OK
	---> ATE0
	<--- OK
	---> ATE0
	<--- OK
	---> AT+CVHU=0
	<--- OK
	---> ATI
	<--- SIM808 R14.18

OK

	---> AT+CPMS="SM","SM","SM"
	<--- +CPMS: 0,40,0,40,0,40
	---> AT+CGATT?
	<--- +CGATT: 1
GPRS Enabled
	---> AT+CREG?
	<--- +CREG: 0,1
Network status 1: Registered (home)
Dispositivo GPRS inicializado.
Found FONA 808 (v2)
	---> AT+GSN
	<--- 865067027146011
: 865067027146011
Inicializando GPS...
Esperando el parche de 3D del dispositivo GPS...
	---> AT+CGNSINF
	<--- +CGNSINF: 1,1,20180517110950.000,40.427737,-3.538577,594.200,0.22,145.4,1,,2.6,2.7,0.9,,6,5,,,42,,
	---> AT+CGNSINF
	<--- +CGNSINF: 1,1,20180517110950.000,40.427737,-3.538577,594.200,0.22,145.4,1,,2.6,2.7,0.9,,6,5,,,42,,
GPS lat:40.427734
GPS long:-3.538577
GPS speed KPH:0.22
GPS speed MPH:0.14
GPS heading:145.40
GPS altitude:594.20
URL destino:
http://88.16.168.196/xampp?LAT=40.43&LNG=-3.54
****
	---> AT+HTTPTERM
	<--- ERROR
	---> AT+HTTPINIT
	<--- OK
	---> AT+HTTPPARA="CID","1"
	<--- OK
	---> AT+HTTPPARA="UA","orange"
	<--- OK
	---> AT+HTTPPARA="URL","http://88.16.168.196/xampp?LAT=40.43&LNG=-3.54"
	<--- OK
	---> AT+HTTPACTION=0
	<--- OK
Status: 601
Len: 0
	---> AT+HTTPREAD
	<--- OK
El BANNED GET de http ha fallado!
Last edited by adafruit_support_mike on Fri May 18, 2018 12:30 am, edited 1 time in total.
Reason: added CODE tags

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Error 601 on HTTP_GET/HTTP_POST

Post by adafruit_support_mike »

What code are you running?

User avatar
kcuhc255
 
Posts: 20
Joined: Tue Nov 14, 2017 8:40 pm

Re: Error 601 on HTTP_GET/HTTP_POST

Post by kcuhc255 »

I also recently started to see 601's - driving a FONA 808 (w/gps) with a Feather M0 with BLE. It generally runs fine, but today I started to see it coming back with 601's. I cut and paste the exact same URL/Data from the serial monitor into Chrome and it posts correctly. I rebooted the Feather/FONA and all was well again. Is there an HTTP Reset function available? I realize that things can sometimes go into an undefined state and start failing. As long as I can restart the session or whatever, I'm happy, but I don't see anything. Here's the command that normally works just fine.....

if (!fona.HTTP_POST_start(dataBuffer, F("text/plain"), (uint8_t *) data, strlen(data), &statuscode, (uint16_t *)&dlength))

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Error 601 on HTTP_GET/HTTP_POST

Post by adafruit_support_mike »

The HTTP standard doesn't have a 601 error code, so it's probably something generated by the cellular network. At a guess, it means there was some kind of problem with the basic network connection.

User avatar
kcuhc255
 
Posts: 20
Joined: Tue Nov 14, 2017 8:40 pm

Re: Error 601 on HTTP_GET/HTTP_POST

Post by kcuhc255 »

I resolved this by turning GPRS off and then on after an error. That seemed to clear up the 601. However..... and I will be posting separately, there is another problem. The FONA sends an UNSOLICITED notification message when an SMS is received. If that comes while a GPRS function is taking place it causes an error because the library code is waiting for an "Ok" response and instead gets a "CMTI:" response as below. I don't see a way to disable these unsolicited notifications so I'm going to look at changing the library code to ignore them as they serve no useful purpose.

---> AT+HTTPPARA="URL"
<--- +CMTI: "SM",1

Locked
Please be positive and constructive with your questions and comments.

Return to “FONA”