Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Sim7000 http /TCP Connection fail

FeliSteck

Newbie
Newbie level 2
Joined
Jan 30, 2025
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
12
Hello guys,
I am currently working on a project using a simcom Module to send and recieve data from a firebase database via http requests.
I am currently at the point that most things i try with at commands are working. I got it to send an sms to my phone. But as soon as
I try something regarding http requests. It doesnt work.
The last thing i tried is this
AT+CFUN=1,1 // Reboot module
AT+CPIN? // Ensure SIM is ready
AT+CSQ // Signal strength (must be >10)
AT+CREG? // Network registration
AT+CGDCONT=1,"IP","apn" // Set APN
AT+CGACT=1,1 // Activate PDP context
AT+CIPSTART="TCP","google.com",80 // Test connection
OK //response
STATE: PDP DEACT //response
CONNECT FAIL //response

I also tried
AT+CGACT=1,1
OK
AT+HTTPINIT
OK
AT+HTTPPARA="URL","http://httpbin.org/put"
OK
AT+HTTPPARA="CONTENT","application/json"
OK
AT+HTTPPARA="CID",1
OK
AT+HTTPDATA=15,10000
DOWNLOAD
//Here i should be able to enter text/ key value pairs but it doesnt work
OK
I dont know what to do anymore, maybee someone here has an example walkthrough code or some suggestion or thing i could try.
I would greatly apreciate your help.
Thanks in advance Felix Steck
 
Last edited by a moderator:
Try the following sequence of AT commands:

Code:
AT+CFUN=1,1 // Restart module
AT+CPIN? // Ensure SIM is ready (should return "READY")
AT+CSQ // Check signal quality (must be >10)
AT+CREG? // Check network registration (should return 1 or 5)
AT+CGATT=1 // Attach to GPRS
AT+CGDCONT=1,"IP","your_apn" // Replace 'your_apn' with correct APN
AT+CGACT=1,1 // Activate PDP context
AT+COPS? // Check the registered network
AT+CIPSTATUS // Check current IP connection status
AT+CIFSR // Get local IP address (should return an IP)

If the AT+CGACT=1,1 fails, you likely have an incorrect APN or network issue.
Double-check your APN with your mobile provider.
 
Lack of CODE or SYNTAX Tags: Added by moderator
Try the following sequence of AT commands:

Code:
AT+CFUN=1,1 // Restart module
AT+CPIN? // Ensure SIM is ready (should return "READY")
AT+CSQ // Check signal quality (must be >10)
AT+CREG? // Check network registration (should return 1 or 5)
AT+CGATT=1 // Attach to GPRS
AT+CGDCONT=1,"IP","your_apn" // Replace 'your_apn' with correct APN
AT+CGACT=1,1 // Activate PDP context
AT+COPS? // Check the registered network
AT+CIPSTATUS // Check current IP connection status
AT+CIFSR // Get local IP address (should return an IP)

If the AT+CGACT=1,1 fails, you likely have an incorrect APN or network issue.
Double-check your APN with your mobile provider.
Thanks for your fast response,
I tried it and I get this in return, I dont really know what the response to CIPSTATUS means and CIFSR returns an error
Code:
AT+CPIN?
+CPIN: READY
OK

AT+CSQ
+CSQ: 21,99
OK

AT+CREG?
+CREG: 0,5
OK

AT+CGATT=1
OK

AT+CGDCONT=1,"IP","hologram"
OK

AT+CGACT=1,1
OK

AT+COPS?
+COPS: 0,0,"vodafone IT Hologram",3
OK

AT+CIPSTATUS
OK
STATE: IP INITIAL

AT+CIFSR
ERROR
 
Last edited by a moderator:


Write your reply...

LaTeX Commands Quick-Menu:

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top