israelmerchand
Newbie level 1
Hi i am working with AT Commands. I have a problem when i want to send data.
I run a simple server code on java and start the conexion with server its ok but when i try to send data with command AT^SISW i just get an error. It open the socket but it give me an error when i send any string of data. Here´s the command i order
AT^sics=0,conType,GPRS0
AT^sics=0,inactTO,20
AT^sics=0,dns1,195.235.30.34
AT^sics=0,user,webgprs
AT^sics=0,passwd,webgprs2002
AT^sics=0,apn,internet.itelcel.com
AT^siss=0,srvType,socket
AT^siss=0,conID,0
AT^siss=0,address, socktcp://187.145.XX.XXX:1500
AT^siso?
AT^siso=0
AT^siso?
Until here it appers to work well, but when i write the commands
AT^sisW=0,18
GET / HTTP/1.1
The server's console saids "Exception creating new Input/output Streams: java.io.StreamCorruptedException: invalid stream header: 41545E73"
this mean that the code breaks in this line "Sinput = new ObjectInputStream(socket.getInputStream());"
i don´t figure out what is happening, please help me because i if i don´t run this soon i'll get fired.
Thanks in advance.
I run a simple server code on java and start the conexion with server its ok but when i try to send data with command AT^SISW i just get an error. It open the socket but it give me an error when i send any string of data. Here´s the command i order
AT^sics=0,conType,GPRS0
AT^sics=0,inactTO,20
AT^sics=0,dns1,195.235.30.34
AT^sics=0,user,webgprs
AT^sics=0,passwd,webgprs2002
AT^sics=0,apn,internet.itelcel.com
AT^siss=0,srvType,socket
AT^siss=0,conID,0
AT^siss=0,address, socktcp://187.145.XX.XXX:1500
AT^siso?
AT^siso=0
AT^siso?
Until here it appers to work well, but when i write the commands
AT^sisW=0,18
GET / HTTP/1.1
The server's console saids "Exception creating new Input/output Streams: java.io.StreamCorruptedException: invalid stream header: 41545E73"
this mean that the code breaks in this line "Sinput = new ObjectInputStream(socket.getInputStream());"
i don´t figure out what is happening, please help me because i if i don´t run this soon i'll get fired.
Thanks in advance.