Gemalto is now part of the Thales Group, find out more.

You are here

BGS5T TCP Connection Issue.

Mikkel1996DK

August 29, 2018 - 11:59am, 209 views

Hello.

We're a small development team trying to connect to a web service using a non-transparent tcp socket on our BGS5T. Prior to reading the rest of this post it should of course be noted that we don't have much experience with Gemalto's Java Terminals. The full list of AT Commands we run from our Java ME MIDlet prior to opening the interent service is as follows:

Setup the connection profile:
AT^SICS=0,"conType","gprs0"
AT^SICS=0,"apn","internet"

Setup the service profile:
AT^SISS=2,"srvType","Socket"
AT^SISS=2,"address","socktcp://x.x.x.x:p"
AT^SISS=2,"conId",0

Open the service profile:
AT^SISO=2

The issue is however, that when opening the specified service profile we can only sometimes establish a connection. Some of the time it will respond with:
^SISW: 2,1

The response above is to my understanding the one we want, however seemingly at random it will respond with:
^SIS: 2,0,15 "Remote host has reset the connection"
or
^SIS: 2,0,94 "PDP: Connection failed"

We're tried using PacketSender to send packets to the backend from a PC in order to test if it was our backend that had the issue (As the error message "Remote host has reset the connection" sounds like it could be a backend issue as well), however that worked perfectly fine.

Here's our ATI, AT^SCFG?, AT^SICS? and AT^SISS? responses:
ATI:
Cinterion
BGS5
REVISION 01.100
OK

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/PULSE","gpio"
^SCFG: "Gpio/mode/PWM","gpio"
^SCFG: "Gpio/mode/RING0","std"
^SCFG: "Gpio/mode/SPI","rsv"
^SCFG: "Gpio/mode/SYNC","std"
^SCFG: "Ident/Manufacturer","Cinterion"
^SCFG: "Ident/Product","BGS5"
^SCFG: "MEShutdown/Fso","0"
^SCFG: "MEopMode/SoR","on"
^SCFG: "Radio/Band","15"
^SCFG: "Radio/OutputPowerReduction","4"
^SCFG: "Serial/Interface/Allocation","1","1"
^SCFG: "Serial/USB/DDD","0","0","0409","1E2D","0059","Cinterion Wireless Modules","Cinterion BGx USB Com Port",""
^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/Passwd",
^SCFG: "Userware/Stdout","asc0",,,,"off"
^SCFG: "Userware/Watchdog","0"
OK

AT^SICS?:
^SICS: 0,"conType","GPRS0"
^SICS: 0,"apn","internet"
^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",""
OK

We've been stuck on this for a few days, and it's starting to seem like a lost cause. Any help would be highly appriciated :-)

Best Regards,
Mikkel1996DK.