Hi,
I've been trying to use Arduino + Libelium GPRS to create a TCP connection and transfer some data to a remote server.
I SEEM to be establishing a connection, but when I try to sniff (Ethernet Sniffer) at the "remote" server (my own machine), I see no TCP SYN or any other frames coming from the Arduino.
The commands I send (from GPRS boot) are:
AT+CGATT=1"
AT+CGACT=1,1
AT+CGPADDR (I get an IP address which seems legitimate similar to IP that my iPhone gets for example from same cellular network)
AT+KCNXCFG=0,"GPRS","uinternet"
AT+KCNXPROFILE=0
AT+KTCPCFG=0,0,"x.x.x.x",80 (x.x.x.x being my IP address)
AT+KTCPCNX=1 (a short pause is observed, and then I get "OK")
AT+KTCPSND=1,10 (I get a "CONNECT" prompt, then I enter my data and terminate the string)
I then get a "+KTCP_NOTIF: 1,8" notification (which seems to indicate data WAS sent).
I then close the connection with "AT+KTCPCLOSE=1,0", followed by "A+KTCPDEL=1".
Can this be an issue with settings? (like APN/user/pass)?
Can someone please post FULL sequence of establishing a TCP connection? (I tried using samples from the latest PDF of Sagem AT Commands Edition 5.0 from Jan15, but no luck).
No luck = Nothing is observed in my sniffer.
I did verify that I am NOT behind a firewall or any other issue as I am able to browse to the "remote" server from my iPhone.
I also tried the same GPRS settings as in my iPhone( "uinternet","orange","orange" - for Orange Israel, btw).
I will be VERY glad if someone could give my ANY kind of pointers.
I am out of ideas at the moment.
I am using "SAGEM HiC,A.004.06" (ATI3)
Thanks!
Liq604
UPDATE: Sorry guys I was an ass. I had Norton AntiVirus on my computer, that's why I didn't see the GPRS connection.
Now I get the SYN frame, but no data afterwards.
I tried using a simple TCP server listening application, but I can't figure out HOW EXACTLY to send the data.
- Do I need parenthesis ("") surrounding my text?
- The manual suggests using Hardware flow control, but the Arduino only has TX/RX legs (no CTS/RTS). How is hardware flow control possible then?
- If I start sending "AT" (after I see the "CONNECT" message), then data is flowing and I see all the data I send, but If I don't start with "AT", I get nothing?!?
Please help!