Tcp socket autoconnect commands, Wtcpconnect – tcp socket link control, Wtcpmode – tcp client server select – Westermo GDW-11 User Manual

Page 260

Advertising
background image

260 TCP SOCKET AUTOCONNECT Commands

6615-2220

TCP SOCKET AUTOCONNECT Commands

*WTCPCONNECT – TCP socket link control

Description:

This command is used to enable or disable the TCP socket link control. When enabled, the
modem will automatically after power on, set up connections to a packet switched network
and start working either as a TCP server or a client (depending on configuration).

Syntax:

AT*WTCPCONNECT=<mode>

Parameters:

<mode>

1= enabled
0=disabled

Command example

Possible responses

Note

AT*WTCPCONNECT=1 OK

Enable TCP link control

AT*WTCPCONNECT? *WTCPCONNECT:

1

Show

value

OK

AT*WTCPCONNECT=?

*WTCPCONNECT: (0,1)

Show range

OK

*WTCPMODE – TCP client server select

Description:

This command is used to select if the modem shall act as a client or server in a TCP
socket link.

Syntax:

AT*WTCPMODE=<mode>

Parameters:

<mode>

1= server
0=client

Command example

Possible responses

Note

AT*WTCPMODE =1

OK

Set modem to work in
server mode

AT*WTCPMODE? *WTCPMODE:

1

Show

value

OK

AT*WTCPMODE =?

WTCPMODE: (0,1)

Show range

OK

Advertising
This manual is related to the following products: