> 21.2 | AT^SJNET Set Dialup Network Access Parameters

> The AT^SJNET write command allows to create a profile which contains all parameters needed for automated network access through a dialup connection.
> Syntax

> Test Command AT^SJNET=?
> Response(s)
> ^SJNET:("csd"|"gprs"), ("Tel. num."|"access point name"), ("login"), ("password"), ("dns"), (list of supported <timeout>s)
> OK

> Read Command AT^SJNET?
> Response(s)
> ^SJNET: <bearer service>, <entry point>, <login>, <password>, <dns>, <timeout>
> OK
> ERROR
> +CME ERROR: <err>

> Write Command AT^SJNET=<bearer service>, <entry point>, <login>, <password>[<dns>][, <timeout>]
> Response(s)
> ^SJNET: <bearer service>, <entry point>, <login>, <password>, <dns>, <timeout>
> OK
> ERROR
> +CME ERROR: <err>

> Reference(s) |  | PIN |  | ASC0 | ASC1 | USB | MUX1 | MUX2 | MUX3 |  |  | Charge | Q | Last
> SIEMENS |  | - |  | + | + | + | + | + | + |  |  | - | + | -

> Parameter Description

> <bearer service>(str)(+CSCS)

> “none“(P)
> No bearer specified
> “csd“
> Dialup access uses Circuit Switched Data connection
> “gprs“
> Dialup access via GPRS

> <entry point>(str)(+CSCS)

> ““(P)
> The content of parameter <entry point> depends on <bearer service>. The parameter is global for all interfaces, volatile and will not be reset by AT&F.

> • | If <bearer service> is "csd", then parameter specifies the dialup phone number. The phone number can be modified to select between ISDN and anlaog call and to choose a bitrate. See also examples below.

> - | The first character added to the phone number selects the mode: i = ISDN call, a = analog call (default). If omitted the default setting "analog" applies.

> - | The last character appended to the phone number determines the bitrate. If omitted the default setting "9600 bps" applies. h = 14400 bps m = 9600 bps (default) l = 4800 bps s = 2400 bps

> • | If <bearer service> is "gprs", then parameter specifies the GPRS access point name.

> <login>(str)(+CSCS)

> ““(P)
> Specifies the login name for access to the dialup network. The login name consists of maximal 31 characters.
> Parameter is global for all interfaces, volatile and will not be reset by AT&F.

> <password>(str)(+CSCS)

> ““(P)
> Specifies the password for access to the dialup network.
> Parameter is global for all interfaces, volatile and will not be reset by AT&F.

> <dns>(str)(+CSCS)

> ““(P)
> Specifies the Primary DNS server (Nameserver) for the dialup network. The server address has to be specified in dotted IP address format (e.g. 145.146.147.148). If the parameter is omitted, the DNS assigned by the network is used.
> It is recommended to set manual DNS server addresses rather than using automatic DNS assignment. This avoids problems in case the network is unable to properly handle the automatic DNS service.
> Parameter is global for all interfaces, volatile and will not be reset by AT&F.

> <timeout>(num)

> Idle Timeout in seconds
> 0(P)...[30]...21600
> Specifies the Java network idle timeout, which is the number of seconds to wait before the network connection is terminated automatically when no data transfer or other network activities take place. The value 0 means no timeout at all (you have to terminate a Circuit Switched Data connection using ATH and a GPRS connection using AT+CGATT=0).
> We recommend to use values greater than 10 seconds because otherwise you may get unintentional timeouts for slow network connections.
> Parameter is global for all interfaces, volatile and will not be reset by AT&F.
> Note

> • | The authentication mode for CSD and GPRS is always PAP.

> Examples

> EXAMPLE 1 | This example illustrates how to configure a profile for circuit switched network access: The dialup phone number is +49800654321, user name is "user1", password is "dialup123", and the primary DNS has IP address "145.146.147.148". The phone number does not contain additional characters, therefore the destination is an analog device (default) and the bitrate is 9600 bps (default).

> AT^SJNET="CSD", "+49800654321", "user1", "dialup123", "145.146.147.148"
> ^SJNET: "csd","+49800654321","user1","dialup123","145.146.147.148",30
> OK

> EXAMPLE 2 | Same example as above, but the phone number contains additional characters for ISDN and 14400bps.

> AT^SJNET="CSD", "i+49800654321h", "user1", "dialup123", "145.146.147.148"
> ^SJNET: "csd","i+49800654321h","user1","dialup123","145.146.147.148",30
> OK