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.

[PIC] SIM800 GSM Modem for Remote Monitoring

Status
Not open for further replies.

desgin

Full Member level 1
Joined
Apr 7, 2017
Messages
96
Helped
1
Reputation
2
Reaction score
1
Trophy points
8
Activity points
813
Hello All,

I am working with PIC micro controller & SIM800 GSM Module.
My requirement is to send data continuously to server by GSM Modulle.
I am using Docklight software for the serial communication.
While connecting with TCP its showing Connection failed.
Below are the commands which i used.

1. AT// RESPONSE IS OK

2. AT + CIPSHUT // RESPONSE IS OK

3. AT + CIPMUX = 0 // RESPONSE IS OK

4. AT + CGATT = 1// RESPONSE IS OK

5. AT + CSTT = "APN", "", "" // RESPONSE IS OK

6. AT +CIICR // RESPONSE IS OK

7. AT + CIFSR // RESPONSE IS some ip number

8. AT + CIPSTART = "TCP". " PUBLIC IP", "PORT" // showing me OK TCP CLOSED

So till 7th Step, everything is OK but for 8th, its problem so unable to send the data.
Can anybody help me for this.

Thanks in advance
Design
Pune, India
 

hi

please make sure status of server port should be open, pls go through tcp/ip application note

- - - Updated - - -

hi

please make sure status of server port should be open, pls go through tcp/ip application note. your getting this problem because your not able to make connection with the server
 

Thanks tasuki for the response

Ya, i am doing following steps.
If anything wrong, please correct me!!

1. I am Opening dummy server, where adding port number.
2. Then, Opening the serial communication software (Docklight)
3. Writing all Commands as i shown above i.e., step 1 to 8
4. Till Step 7, GSM responding perfectly alright with proper response.
But at the when i am sending AT +CIPSTART = "TCP", "my public address number", "port number what i entered in dummy server"
I am getting response as;
Ok
State TCP CLOSED
CONNECTION FAILED


Can you please correct my mistake ?
Thanks in advance!!
 

hi

instead of dummy port use proper IP port (actual IP server port )
 

Tasuki,

I am using dummy server, not dummy port.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top