HTTP POST using 4G library fails - error code 17

Wireless communications in Waspmote, topologies, node types...
B2L_steve
Posts: 18
Joined: Mon Jun 17, 2019 4:26 am
Company: Bio2Lab Pty Ltd

Re: HTTP POST using 4G library fails - error code 17

Post by B2L_steve » Fri Jul 05, 2019 4:36 am

Further diagnostics:

H#
Bridge between USB port and SOCKET1
AT
OK

//Active PDP protocol
AT+CGACT?
+CGACT: 1,1

//IP address
AT+CGPADDR= 1
+CGPADDR: 1,"10.116.53.224"
OK
// Device capabilities
AT+GCAP
+GCAP: +CGSM,+DS,+FCLASS,+MS,+ES
OK

// Device functionality
AT+CFUN?
+CFUN: 1
OK

// Carrier configuration
AT+CBST?
+CBST: 0,0,1
OK

// Radio protocol parameters
AT+CRLP?
+CRLP: 61,61,48,6,0
OK

//USSD configuration
AT+CUSD?
+CUSD: 0
OK

//Service reporting
AT+CR?
+CR: 0
OK

//Signal strength
AT+CSQ
+CSQ: 23,1
OK

//Module time
AT+CCLK?
+CCLK: "19/07/05,12:22:55+40"
OK

// Module serial number
AT+CGSN
358173069984238
OK

// Character set in use
AT+CSCS?
+CSCS: "IRA"
OK

//Available indicator values
AT+CIND=?
+CIND: (("battchg",(0-5,99)),("signal",(0-7,99)),("service",(0,1)),("sounder",(0,1)),("message",(0,1)),("call",(0,1)),("roam",(0,1)),("smsfull",(0,1)),("rssi",(0-5,99)))
OK

//What are the current indicator values?
AT+CIND?
+CIND: 0,3,1,0,0,0,0,0,4

//Device profile
AT&V

DTE SPEED : 115200
DTE FORMAT : 8N1
GSM DATA MODE : Not Transparent
AUTOBAUD : +IPRxxx00=NO
COMMAND ECHO : E1=YES
RESULT MESSAGES : Q0=YES
VERBOSE MESSAGES : V1=YES
EXTENDED MESSAGES : X1=YES
LINE SPEED : F0=autodetect
CONSTANT DTE SPEED : YES
FLOW CONTROL OPTIONS : &K3=HW bidirect.
ERROR CORRECTION MODE : RLP
CTS (C106) OPTIONS : &B2=OFF while disc.
DSR (C107) OPTIONS : &S3=PHONE ready->ON
DTR (C108) OPTIONS : &D0=ignored
DCD (C109) OPTIONS : &C1=follows carrier
RI (C125) OPTIONS : \R1=OFF dur. off-hk
C108/1 OPERATION : &D0=NO
POWER SAVING ON DTR : +CFUN:1=NO
DEFAULT PROFILE : &Y0=user profile 1

OK

B2L_steve
Posts: 18
Joined: Mon Jun 17, 2019 4:26 am
Company: Bio2Lab Pty Ltd

Re: HTTP POST using 4G library fails - error code 17

Post by B2L_steve » Fri Jul 05, 2019 6:10 am

So, after downloading the new IDE and confirming that I am using v

running example _4G_06_http_get v3.0.

Still having the same issue, serial output as follows:

H#
Start program
********************************************************************
GET method to the Libelium's test url
You can use this php to test the HTTP connection of the module.
The php returns the parameters that the user sends with the URL.
********************************************************************
*****************************
APN: telstra.m2m
LOGIN:
PASSWORD:
*****************************
[LE910] ==> ERROR CODE: operation not supported
1. 4G module ready...
2. Getting URL with GET method...[LE910] CREG: 0,1
[LE910] CGREG: 0,1
[LE910] GPRS context activation:1
[LE910] IP address:10.116.77.150
Failed. Error code: 17
3. Switch OFF 4G module
4. Enter deep sleep...

B2L_steve
Posts: 18
Joined: Mon Jun 17, 2019 4:26 am
Company: Bio2Lab Pty Ltd

Re: HTTP POST using 4G library fails - error code 17

Post by B2L_steve » Fri Jul 05, 2019 6:20 am

That should be IDE v06.16 and API v042 above :oops:

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: HTTP POST using 4G library fails - error code 17

Post by libelium-dev » Fri Jul 05, 2019 8:57 am

Hi,

Please perform the test again but adding the AT+CMEE=2 command to get more information about the error
  • AT
  • AT+CMEE=2
  • AT+CGDCONT=1,"IP","telstra.m2m"
  • AT+CREG? //to send up to module will return CREG: 0,1 or CREG: 0,5
  • AT+CGREG? //to send up to module will return CGREG: 0,1 or CREG: 0,5
  • AT#GPRS=1
  • AT#HTTPCFG=0,"test.libelium.com",80
  • AT#HTTPSND=0,0,"/test-get-post.php?",6
  • varA=1
Also please fill the RMA form and we will contact you to connect to your node remotely through TeamViewer.
https://www.libelium.com/contact/#rma

Regards

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest