SL8092 open TCP Socket

Hi,
i have this chip. How to open, with AT command, a tcp socket with a APN and a PORT. “10.20.30.32”, 9940

thanks

Hi,

To configure APN and setup a TCP client socket on SL8092, you just need minimum of three AT commands.
+CGDCONT, !PADSETUP, !PADCONN

Below example, for detailed explanation and configuration, please refer to AT command guide or related doc.

AT+CGDCONT=1,"IP","APN"
AT!PADSETUP=1,2,10.20.30.32,0,9940,0,1
AT!PADCONN=1

BTW, just to remind you that 10.20.30.32 is an internal IP and network dependence.
Hope this helps.
L

where is this AT command on the guides? i not find them.

  • GDCONT what is?

i have an error with

at!padconn=1
ERROR

i must set a profile =1 before? and how?

my apn is web.omnitel.it
and server have 9940 port
I create a virtual server on my pc with a modem with ip 2.197.127.95

thanks

Hi,

Are you sure the SL809x module was registered to network?
And did you set the APN correctly?

Below was modified for the network scenario you mentioned, can you try and let me know the response?

AT+CGDCONT=1,"IP","web.omnitel.it"
AT!PADSETUP=1,2,2.197.127.95,0,9940,0,1
AT+CREG?;+CGREG?
AT!PADCONN=1

Thanks.
L

at
OK
AT+CGDCONT=1,“IP”,“web.omnitel.it”
OK
AT!PADSETUP=1,2,2.197.73.123,0,9940,0,1
OK
AT+CREG?;+CGREG?
+CREG: 0,0

+CGREG: 0,0

OK
AT!PADCONN=1
ERROR

how register it?
:neutral_face:

Hi,
From the response you got,

+CREG: 0,0
+CGREG: 0,0

clearly no network registration so TCP socket failed…
Can you check if the SIM and antenna is working and also network coverage in your area?

Please also send AT+CPIN? to the module and share the response.
thx.
L

at+cpin?
+CPIN: READY

ok

at+csq
+CSQ: 99,99

but if i open AirCard Watcher Programm and after

at+csq
+CSQ: 8,99

Good, seem like the module is on flight mode before you start Watcher.

Please send AT+CFUN=1 to enable RF so the module should start network registration.

Also, on watcher, go to “User Options”->“General”->“Startup/Shutdown”->“On exit”
Select “Do Nothing”.
This should disable the flight mode.

Hi, I open Socket correclty but now how i can send a string like “W001” to server?
Hyper terminal is locked after:
CONNECT PAD: 1,0

i can’t write more…

Thanks for your help…

Hi,
SL8092 should be connected with server and in data mode after

CONNECT PAD: 1,0

So, whatever you type after this, it should sent to TCP server. And likewise, whatever server response back, it will be displayed on the terminal.

Are you able to find the data you typed/sent on server’s port?
Also, you can type “+++” sequence (with short pause between) to quit data mode and return to AT cmd mode.
For details, please refer to doc.

Thanks.
L