Serial. Sierra Wireless AirLink device
Oglas
Oglas
Serial
Table F-27: Serial > Port Configuration Commands
Command Description
MD
*S23
Default power-up mode for the serial port: When the device is power-cycled, the serial port enters the mode specified by this command after 5 seconds. On startup, typing ATMD0 within 5 seconds changes the mode to normal (AT command) mode. See also S53 to set the port for UDP.
•
hh (hex byte)=00 : Normal
•
hh=01 : SLIP
•
hh=02 : PPP
•
hh=03 : UDP
•
hh=04 : TCP
•
hh=07 : PassThru
•
hh=0F : MP MDT
•
hh=13 : Modbus ASCII
•
hh=23 : Modbus RTU (Binary)
•
hh=33 : BSAP
•
hh=63 : Variable Modbus
•
hh=73 : Reliable UDP
•
hh=83 : UDP Multicast
Configure Serial Port
Format: [speed],[data bits][parity][stop bits]
Valid speeds are 300–115200, data bits: 7 or 8, parity: O,E,N,M, stop bits: 1,1.5,2
\Q
Serial Port Flow Control
E
S50
S51
*DPORT
Set or query the serial port flow control setting. n=0 : No flow control is being used.
n=1 : RTS/CTS hardware flow control is being used. n=4 : Transparent software flow control. Uses escaped XON and XOFF for flow control.
XON and XOFF characters in data stream are escaped with the @ character (0x40). @ in data is sent as @@.
Toggle AT command echo mode.
•
n=0 : Echo Off.
•
n=1 : Echo On.
With more than one connection types (serial, and Telnet, and USB) the echo command can be set differently on each interface.
Data forwarding idle time-out. If set to 0, a forwarding time-out of 10ms is used. Used in
UDP or TCP PAD mode.
•
n=tenths of a second
PAD data forwarding character. ASCII code of character that will cause data to be forwarded. Used in UDP or TCP PAD mode.
•
n=0 : No forwarding character.
The device's Device Port which the device is listening on for inbound packets/data/polls.
Can also be set with the command S110.
•
n=1–65535
Rev. 6 May.13
275
ALEOS User Guide
Table F-27: Serial > Port Configuration Commands (Continued)
Command Description
S53
This AT Command applies to:
•
Destination Address
•
Destination Port
•
Default Dial Code
&S
&C
+CTSE
&D
Q
Destination IP address, port, and method. These are used as defaults for the D (Dial) AT command.
•
method= P : UDP
•
method=T : TCP
•
method=N : Telnet
•
d.d.d.d=IP address or domain name
•
ppppp=the port address
Examples:
ATS53=T192.168.100.23/12345
ATS53=foo.earlink.com
Telnet to the specified IP at port 12345.
ATS53=192.168.100.23/12345
Query the specified IP at port 12345.
ATS53=/12345
Query port 12345.
Set DSR mode.
•
n=0 : Always assert DSR (Default).
•
n=1 : Assert DSR when in a data mode (UDP, TCP, PPP, or SLIP) (Default).
•
n=2 : Assert DSR when the device has network coverage.
S211 can also be used to request that DSR is always asserted. If S211 is set to 3 and &S is changed to a non-zero value, S211 will be changed to 1.
Assert DCD
Clear To Send Enable: This feature asserts CTS when there is a network connection.
•
n=0 : Disabled (Default).
•
n=1 : Enable assertion of CTS when there is network coverage.
RS232 voltage levels:
•
Positive = Network coverage.
•
Negative = No coverage.
Flow control (AT\Q) will override this indication, so if you want to use CTS to indicate network coverage, flow control has to be off (AT\Q0).
Set DTR mode. n=0 : Ignore DTR, same effect as HW DTR always asserted (same as S211=1). n=2 : Use hardware DTR (same as S211=0).
The AT quiet-mode setting. If quiet mode is set, there will be no responses to AT commands except for data queried.
•
n=0 : Off (Default).
•
n=1 : Quiet-mode on.
276 4112515
Table F-27: Serial > Port Configuration Commands (Continued)
Command Description
V
X
*NUMTIOP
*DATZ
IPL
S0
Command Response Mode.
•
n=0 : Terse (numeric) command responses
•
n=1 : Verbose command responses (Default).
Call Progress Results mode
•
n=0; Off (Default)
•
n=1; On
Converts 12-digit number to an IP address
For example, converts 111222333444 to 111.222.333.444
Enables or disables reset on ATZ.
•
n=0 : Enable Reset (Default).
•
n=1 : Disable Reset on ATZ.
Allows access to the Modbus IP address list using the first two digits of the dial string. E.g.,
ATD12345 would imply ID index 12 on the Modbus address list and use the associated IP address as the destination.
This register determines how the device responds to an incoming TCP connection request.
The device remains in AT Command mode until a connection request is received. DTR must be asserted (S211=1 or &D0) and the device must be set for a successful TCP connection.
The device will send a “RING” string to the host. A “CONNECT” sent to the host indicates acknowledgement of the connection request and the TCP session is established.
•
n=0 : Off (Default).
•
n=1 : On.
•
n=2 : Use Telnet server mode on TCP connections.
•
n=3 : With a Telnet connection, overrides the client's default echo, allowing the server on the host port to perform the echo. CRLF sequences from the telnet client will also be edited to simply pass CRs to the server on the host port.
S7
TCPT
TCPS
S60
S221
TCP Connect Timeout
Sets the number of seconds to try to establish an outbound TCP connection
Interval to terminate a TCP connection when no in or outbound traffic. This value affects only the TCP connection in TCP PAD mode.
•
n=interval
TCP connection time-out (TCPS) units. Specifies a time interval upon which if there is no in or outbound traffic through a TCP connection, the connection will be terminated.
•
n=0 : minutes
Telnet Client Echo Mode.
•
n=0 : No Echo
•
n=1 : Local Echo (Default)
•
n=2 : Remote Echo
Connect Delay: Number of seconds to delay the “CONNECT' response upon establishing a
TCP connection. OR Number of tenths of seconds to delay before outputting ENQ on the serial port after the CONNECT when the ENQ feature is enabled.
•
n=0–255
Rev. 6 May.13
277
ALEOS User Guide
Table F-27: Serial > Port Configuration Commands (Continued)
Command Description
*ENQ
S82
S83
UDPLAST
AIP
Outputs an ENQ [0x05] after the TCP CONNECT delayed by the Delay Connect Response time (S221).
•
n=0 : Disabled (Default).
•
n=1 : Enable ENQ on CONNECT.
Enables UDP auto answer (half-open) mode.
•
n=0 : Normal mode
•
n=2 : Enable UDP auto answer mode.
Set or query UDP auto answer idle time-out. If no data is sent or received before the timeout occurs, the current UDP session will be terminated. While a session is active, packets from other IP addresses will be discarded (unless *UALL is set).
•
n=0 : No idle time-out (Default).
•
n=1–255 : Time-out in seconds.
If enabled, sets S53 to the last accepted IP address through UDP auto answer. This can be used in conjunction with MD3 so that when there is no UDP session, new ethernet host data will cause a connection to be restored to the last IP accepted through UDP auto answer.
•
n=0 : Does not change S53 setting. (Default).
•
n=1 : Set S53 to the last accepted IP.
Allow IP address.
•
n=0 : Allow only the IP address specified in S53 to connect when UDP auto answer is enabled (S82=2).
•
n=1 : Allow any incoming IP address to connect when UDP auto answer is enabled
(S82=2).
Always subject to any Friends filters that may be defined.
*UALL
HOR
Accepts UDP packets from any IP address when a UDP session is active. If there is no UDP session active, an incoming UDP packet will be treated according to the UDP auto answer and AIP settings.
•
n=0 : No effect (Default).
•
n=1 : Accept UDP data from all IP addresses when in a UDP session.
Half-Open Response — In UDP auto answer (half-open) mode.
•
n=0 : No response codes when UDP session is initiated.
•
n=1 : RING CONNECT response codes sent out serial link before the data from the first UDP packet.
*DU
Note: Quiet Mode must be Off.
The dial command always uses UDP, even when using ATDT.
•
n=0 : Dial using the means specified (default).
•
n=1 : Dial UDP always, even when using ATDT.
Note: When this parameter is set you cannot establish a TCP PAD connection.
278 4112515
Table F-27: Serial > Port Configuration Commands (Continued)
Command Description
*USD
S211
Waits the specified delay before sending the first UDP packet and the subsequent UDP packets out to the port Ethernet.
•
n=0 : No UDP packet delay (Default).
•
n=1–255 : Delay in 100ms units, from 100 ms to 25.5 sec.
For applications or situations where hardware control of the DTR signal is not possible, the device can be configured to ignore DTR. When Ignore DTR is enabled, the device operates as if the DTR signal is always asserted.
•
n=0 : Use hardware DTR. (default).
•
n=1 : Ignore DTR.
•
n=3 : Ignore DTR and assert DSR. This value is deprecated, and it is recommended to use &S to control the DSR instead. When this value is set to 3, &S will automatically be set to 0. See also: &D and &S.
D[method] [d.d.d.d]
[/ppppp] or
D[method] [[@]name]
[/ppppp]
Dial a connection to a remote IP and Port using either UDP, TCP, or Telnet.
method =
P — Establish a UDP connection
T — Establish a TCP connection
N — Establish a Telnet connection
d.d.d.d = IP address to establish connection to
name = domain name to establish connection to
ppppp = IP port to establish connection to
Examples:
ATD — Dial (establish) default connection per S53
ATDPnnn.nnn.nnn.nnn[/ppppp] — Dial (establish) UDP session to the specified IP address/port.
If the method, IP address, or port is omitted, the values from S53 are used. If a
Telnet connection is requested (N) and the port is not supplied, port 23 will be used instead of the value from S53.
Several special dialing numbers exist to make it easy to establish a PPP or SLIP connection with the modem. ATD#19788 or ATDT#19788 will establish a PPP connection (see \APPP), and ATDT#7547 will establish a SLIP connection (see
\ASLIP).
If a domain name is specified, the ‘@’ symbol can be used to explicitly indicate the start of the name. For example, if “ATDPHONY” is issued, this will be interpreted as dial a UDP connection to “HONY”. To dial using the default method to host
“PHONY”, one would issue “ATD@PHONY”.
To end the connection, issue the +++ escape sequence or drop the DTR line (if
Ignore DTR S211=0 or &D2).
Note: The source port of the session is the Device Port (set by S110 or *DPORT).
Rev. 6 May.13
279
Prenesi
Oglas