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.

Problem with GPRS TCP/IP data send

Status
Not open for further replies.

israelmerchand

Newbie level 1
Joined
Mar 31, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,292
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.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top