jit_singh_tara
Full Member level 6
- Joined
- Dec 22, 2006
- Messages
- 325
- Helped
- 9
- Reputation
- 18
- Reaction score
- 4
- Trophy points
- 1,298
- Location
- Delhi , India
- Activity points
- 4,295
Dear Friends ,
I want to remote monitor some alarms ,i.e pins of microcontroller status ( low or high) and some adc data , via a remote location using gprs data as medium....
1. I.e hardware will be connected to sim 800 module , it will send status based on request from some location .
2. The data will communicate over TCP/IP protocol . for that my hardware will act as client and say my laptop will act as server .
My network is shown as follows :
The problem is :
when i run socket test application on my laptop , where i configure my laptop as server and start listening on port 350 .I haVe configured my router(ROUTER ADDRESS 192.168.1.1) to port forward 350 for TCP.
even after port forwarding my router , i am still not able to connect the sim800 module via AT+CIPSTART="TCP","PUBLIC IP ADDRESS","PORT"
It shows following pattern :
ATOK
AT+CIPSHUT
SHUT OK
AT+CIPMUX=0
OK
AT+CGATT=1
OK
AT+CSTT="www","",""
OK
AT+CIICR
OK
AT+CIFSR
100.107.139.150
AT+CIPSTART="TCP","139.5.241.161","350"
OK
STATE: TCP CLOSED
CONNECT FAIL
Please tell me how to connect my gsm modem to server listening to a port.
If i get to connect this command so that socket test shows connected , i can proceed further .
I want to know where i am wrong.......
I want to remote monitor some alarms ,i.e pins of microcontroller status ( low or high) and some adc data , via a remote location using gprs data as medium....
1. I.e hardware will be connected to sim 800 module , it will send status based on request from some location .
2. The data will communicate over TCP/IP protocol . for that my hardware will act as client and say my laptop will act as server .
My network is shown as follows :
The problem is :
when i run socket test application on my laptop , where i configure my laptop as server and start listening on port 350 .I haVe configured my router(ROUTER ADDRESS 192.168.1.1) to port forward 350 for TCP.
even after port forwarding my router , i am still not able to connect the sim800 module via AT+CIPSTART="TCP","PUBLIC IP ADDRESS","PORT"
It shows following pattern :
ATOK
AT+CIPSHUT
SHUT OK
AT+CIPMUX=0
OK
AT+CGATT=1
OK
AT+CSTT="www","",""
OK
AT+CIICR
OK
AT+CIFSR
100.107.139.150
AT+CIPSTART="TCP","139.5.241.161","350"
OK
STATE: TCP CLOSED
CONNECT FAIL
Please tell me how to connect my gsm modem to server listening to a port.
If i get to connect this command so that socket test shows connected , i can proceed further .
I want to know where i am wrong.......