Error "An established connection was aborted, possibly due to a data transmission" | Telit Cinterion IoT Developer Community
March 12, 2015 - 4:29pm, 5547 views
I am trying to establish tcp connection by using your tutorial (https://iot-developer.thalesgroup.com/tutorial/concept-board-internet-se...).
This is my configuration:
at^scfg?
^SCFG: "Call/ECC","0"
^SCFG: "GPRS/AutoAttach","enabled"
^SCFG: "Gpio/mode/ASC1","std"
^SCFG: "Gpio/mode/DAI","gpio"
^SCFG: "Gpio/mode/DCD0","std"
^SCFG: "Gpio/mode/DSR0","std"
^SCFG: "Gpio/mode/DTR0","std"
^SCFG: "Gpio/mode/FSR","gpio"
^SCFG: "Gpio/mode/HSIC","rsv"
^SCFG: "Gpio/mode/PULSE","gpio"
^SCFG: "Gpio/mode/PWM","gpio"
^SCFG: "Gpio/mode/RING0","std"
^SCFG: "Gpio/mode/SPI","rsv"
^SCFG: "Gpio/mode/SYNC","gpio"
^SCFG: "Ident/Manufacturer","Cinterion"
^SCFG: "Ident/Product","EHS6"
^SCFG: "MEShutdown/Fso","0"
^SCFG: "MEopMode/SoR","off"
^SCFG: "Radio/Band","511"
^SCFG: "Radio/OutputPowerReduction","4"
^SCFG: "Serial/Interface/Allocation","1","1"
^SCFG: "Serial/USB/DDD","0","0","0409","1E2D","0058","Cinterion Wireless Modules","EHx",""
^SCFG: "Tcp/IRT","3"
^SCFG: "Tcp/MR","10"
^SCFG: "Tcp/OT","6000"
^SCFG: "Tcp/WithURCs","on"
^SCFG: "Trace/Syslog/Otap","0"
^SCFG: "URC/Ringline","local"
^SCFG: "URC/Ringline/ActiveTime","2"
^SCFG: "Userware/Autostart","1"
^SCFG: "Userware/Autostart/Delay","0"
^SCFG: "Userware/DebugInterface","0.0.0.0","0.0.0.0","0"
^SCFG: "Userware/DebugMode","on"
^SCFG: "Userware/Passwd",
^SCFG: "Userware/Stdout","null",,,,"off"
^SCFG: "Userware/Watchdog","0"
OK
at^sics?
^SICS: 0,"conType","GPRS0"
^SICS: 0,"user","*****"
^SICS: 0,"passwd","*****"
^SICS: 0,"apn","testipaddress.com"
^SICS: 1,"conType",""
^SICS: 2,"conType",""
^SICS: 3,"conType",""
^SICS: 4,"conType",""
^SICS: 5,"conType",""
OK
at^siss?
^SISS: 0,"srvType",""
^SISS: 1,"srvType",""
^SISS: 2,"srvType","Socket"
^SISS: 2,"conId","0"
^SISS: 2,"address","socktcp://x.x.x.x:p"
^SISS: 2,"tcpMR","10"
^SISS: 2,"tcpOT","6000"
^SISS: 3,"srvType",""
^SISS: 4,"srvType",""
^SISS: 5,"srvType",""
^SISS: 6,"srvType",""
^SISS: 7,"srvType",""
^SISS: 8,"srvType",""
^SISS: 9,"srvType",""
After command at^siso=2, I always get "OK".
But, if I type "at^siso?", srvState is always 3 (which means connecting)
After some time I get an error "An established connection was aborted, possibly due to a data transmission".
But, if I now type "at^siso?", srvState is 6 (which means down)
What am I doing wrong?
If you want I can post you Java code which opens socket connection which works good for me on BGS5t.
You may ignore this problem.
I mistyped "apn".
Hi,
The APN from the log seems incorrect. So I assume that with the proper APN everything is OK.
Regards,
Bartłomiej
I'm getting the same error message when trying to establish a TCP/IP connection. PortForward.com says that the port is open. Connection seems fine: ^SICI: 0,2,1,"10.20.15.92" I'm just wondering what can cause this message, as the ^SISI? command suggests no data has been sent or received? The spam filter rejects my comment if there is too many AT commands in it!
Hello,
Could you write more details and ATI1 reply. Does it also happen when you connect to other sites?
Please try to paste the log.
If there's a problem with spam filter please send me the log by email. I'll try to paste it and check what is wrong.
Regards,
Bartłomiej
Hi,
Thanks for your response. My client is rather security conscious so I can't reveal their connection details, and my simcard is restricted to their private network, so I can't actually test it outside their network either. I suspect that it is some sort of authorisation problem, but just wondered if there is any more detail available on those error codes and messages? I've since found a workaround by setting my EHS6 up as a listener, and accepting incoming socket requests. I'll email you a redacted log. ATI1:
Cinterion<\r><\n>
EHS6<\r><\n>
REVISION 03.001<\r><\n>
A-REVISION 00.000.14<\r><\n>
Thanks,
David
Hello,
There's a newer firmware version with A-REVISION 23 available.
According to the new log you have sent to me:
^SYSSTART
+PBREADY
AT^SICS=0,apn,someApnAddr
OK
AT^SICS=0,conType,GPRS0
OK
AT^SISS=1,srvType,"Socket"
OK
AT^SISS=1,conId,0
OK
AT^SISS=1,address,"socktcp://***.yyy.zzz.aa:ppppp"
OK
AT^SICS=0,user,******
OK
AT^SICS=0,passwd,******
OK
AT^SISO=1
OK
^SISW: 1,1
^SIS: 1,0,48,"Remote peer has closed the connection"
^SISR: 1,2
it seems that the server is closing the connection for some reason.
There's AT^SISE command which displays internet service error reports but it will probably not show more.
If the server is closing the connection then the answer should be on the server.
Or the cause could be also in the communication logic after connection establishment.
Do you have any other device that connects successfully to their server?
You could try to use some public SIM and connect to some other public server. That should succeed.
Regards,
Bartłomiej
OK, thanks. I'll try that and see how it goes.
Regards,
David