ConnectData

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command establishes data session on the specified GSM port, using previously configured data parameters, such as APN, User Name, Password... Command waits until data session is established or optional timeout (set by SetDataParameters command) expired, or general timeout expired. If data session is already established command will return actual IP parameters. An optional timeout (in seconds) can be specified. If timeout is not specified or is greater than general timeout, general timeout will be used.


COMMAND

Command Input arguments Returns
ConnectData Port index IP address, in the case of error, Error Code

All error messages are available in Data Commands Status Message list


EXAMPLE

~# ConnectData 0
DATA UP:
IP Address: 10.10.145.33
IP Netmask: 255.255.0.0
IP Default Gateway: 10.10.1.1
IP DNS1: 10.10.1.130
IP DNS2: 10.10.1.131

~# ConnectData 1
TIMEOUT EXPIRED

~# ConnectData 4
DATA NOT SUPPORTED