> 2.17.3 | RSA connection via serial interface

> This section comprises the subsections Description, Used AT Commands, Flow Chart, Hints and Example. To move to these subsections please use the Navigation Frame or the appropriate buttons on the toolbar.

> 2.17.3.1 | Description

> This chapter describes how to activate and terminate the RSA connection between two ME via serial interface. One of them acts as SAP server, the other as SAP client. Both are connected to the PC, which runs the application “ComBridge” [13]. This application connects two serial interfaces (left I/O and right I/O) of the PC in such a way, that the output of left I/O is forwarded to the input of the right I/O and vice versa.
> Figure 169: Remote SIM Access (XSAP)
> The example below describes the steps, which are required to enable and disable the RSA connection (SAP client and SAP server).

> • | The AT+COPS command is used to query or select the network operator.

> • | An RSA session can be activated or terminated with the AT^SRSA command. Please note that as the ME acts as SAP server or SAP client different parameters are required for this command:

> - | SAP Client activation: AT^SRSA=2,2,3,0

> - | SAP Server activation: AT^SRSA=1,1,3,0

> If the connection is started successfully the URC ^SRSA: 2,2,0 for client and ^SRSA:2,1,0 for server is issued. After connecting to an SAP peer the URC will be ^SRSA: 2,2,1 for client and ^SRSA: 2,1,1 for server.
> There are two different ways to terminate the SAP connection. The first option is to disable the SAP connection but the ME remains in SAP mode and is ready to re-establish a connection (AT^SRSA=2,0,,,,0). Furthermore, the SAP connection is disabled and the ME returns to the local SIM mode (AT^SRSA=2,0,,,,1). In this case all calls or active GRPS contexts via a remote SIM will be terminated. This command is identical for client and server.

> • | After activation of RSA connection you must enter the SAP server SIM PIN (See Section 2.5 for details).

> 2.17.3.2 | Used AT commands

> Command | Explanation
> AT+COPS | Operator selection
> AT+CPIN | Enter PIN
> AT^SRSA | Remote SIM Access Activation
> AT^SCKS | Query SIM and chip card holder status

> For further details about the commands see [2].

> 2.17.3.3 | Flow chart

> Figure 170: RSA Connection via serial interface part 1
> Figure 171: RSA Connection via serial interface part 2

> 2.17.3.4 | Hints

> • | Note, that all RSA URC’s will be displayed on all active serial channels.

> 2.17.3.5 | Example

> ***************************************
> Comment Remote SIM Access (RS232)
> Comment
> Comment reset client
> ***************************************
> Subscr 1 Send: AT+CMEE=2
> Subscr 1 Receive: AT+CMEE=2
> Subscr 1 Receive: OK
> Subscr 1 Send: AT^SCKS=1
> Subscr 1 Receive: AT^SCKS=1
> Subscr 1 Receive: OK
> ***************************************
> Comment reset server
> ***************************************
> Subscr 2 Send: AT^SCKS=1
> Subscr 2 Receive: AT^SCKS=1
> Subscr 2 Receive: OK
> ***************************************
> Comment client: Request current operator
> ***************************************
> Subscr 1 Send: AT+COPS?
> Subscr 1 Receive: AT+COPS?
> Subscr 1 Receive: +COPS: 0
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment client: Query RSA status and SAP connection
> ***************************************
> Subscr 1 Send: AT^SRSA?
> Subscr 1 Receive: AT^SRSA?
> Subscr 1 Receive:
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment server: Query SIM status
> ***************************************
> Subscr 2 Send: AT^SCKS?
> Subscr 2 Receive: AT^SCKS?
> Subscr 2 Receive: ^SCKS: 1,1
> Subscr 2 Receive:
> Subscr 2 Receive: OK
> ***************************************
> Comment client: Query SIM status
> ***************************************
> Subscr 1 Send: AT^SCKS?
> Subscr 1 Receive: AT^SCKS?
> Subscr 1 Receive: ^SCKS: 1,0
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment Activation of RSA as server
> ***************************************
> Subscr 2 Send: AT^SRSA=2,1,3,0
> Subscr 2 Receive: AT^SRSA=2,1,3,0
> Subscr 2 Receive: ^SRSA: 0
> Subscr 2 Receive:
> Subscr 2 Receive: OK
> Subscr 2 Receive:
> Subscr 2 Receive: ^SRSA: 2,1,0
> ***************************************
> Comment Activation of RSA as client
> ***************************************
> Subscr 1 Send: AT^SRSA=2,2,3,0
> Subscr 1 Receive: AT^SRSA=2,2,3,0
> Subscr 1 Receive: ^SRSA: 0
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> Subscr 1 Receive:
> Subscr 1 Receive: ^SRSA: 2,2,0
> Subscr 2 Receive:
> Subscr 2 Receive: ^SCKS: 0
> Subscr 2 Receive:
> Subscr 2 Receive: ^SRSA: 2,1,1
> Subscr 1 Receive:
> Subscr 1 Receive: ^SRSA: 2,2,1
> Subscr 1 Receive:
> Subscr 1 Receive: ^SCKS: 1
> ***************************************
> Comment client: Request current operator
> ***************************************
> Subscr 1 Send: AT+COPS?
> Subscr 1 Receive: AT+COPS?
> Subscr 1 Receive: +COPS: 0
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment client: Query current SIM PIN status. Now SAP Server SIM PIN is required.
> ***************************************
> Subscr 1 Send: AT+CPIN?
> Subscr 1 Receive: AT+CPIN?
> Subscr 1 Receive: +CPIN: SIM PIN
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment client: Enter current SIM PIN (now SAP server SIM PIN is required).
> ***************************************
> Subscr 1 Send: AT+CPIN=0000
> Subscr 1 Receive: AT+CPIN=0000
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> Subscr 1 Receive:
> Subscr 1 Receive: +CREG: 2
> ***************************************
> Comment client: Request current operator
> ***************************************
> Subscr 1 Send: AT+COPS?
> Subscr 1 Receive: AT+COPS?
> Subscr 1 Receive: +COPS: 0,0,”T-Mobile D”
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment client: Query RSA status and SAP connection
> ***************************************
> Subscr 1 Send: AT^SRSA?
> Subscr 1 Receive: AT^SRSA?
> Subscr 1 Receive: ^SRSA: 2,2,1,3,0,6
> Subscr 1 Receive:
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment server: Query RSA status and SAP connection
> ***************************************
> Subscr 2 Send: AT^SRSA?
> Subscr 2 Receive: AT^SRSA?
> Subscr 2 Receive: ^SRSA: 2,1,1,3,0,6
> Subscr 2 Receive:
> Subscr 2 Receive:
> Subscr 2 Receive: OK
> ***************************************
> Comment client: Deactivation of RSA.
> ***************************************
> Subscr 1 Send: AT^SRSA=2,0,,,,1
> Subscr 2 Receive:
> Subscr 2 Receive: ^SRSA: 2,1,0
> Subscr 2 Receive:
> Subscr 2 Receive: ^SCKS: 1
> Subscr 1 Receive: AT^SRSA=2,0,,,,1
> Subscr 1 Receive: ^SRSA: 0
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> Subscr 1 Receive:
> Subscr 1 Receive: ^SCKS: 0
> Subscr 1 Receive:
> Subscr 1 Receive: ^SRSA: 2,2,0
> Subscr 1 Receive:
> Subscr 1 Receive: ^SRSA: 2,0,0
> ***************************************
> Comment server: Turn off EXTERNAL SIM ACCESS, terminate the SAP operation.
> ***************************************
> Subscr 2 Send: AT^SRSA=2,0,,,,1
> Subscr 1 Receive:
> Subscr 1 Receive: ^SCKS: 1
> Subscr 2 Receive: AT^SRSA=2,0,,,,1
> Subscr 2 Receive: ^SRSA: 0
> Subscr 2 Receive:
> Subscr 2 Receive: OK
> Subscr 2 Receive:
> Subscr 2 Receive: ^SRSA: 2,0,0
> ***************************************
> Comment client: Request current operator
> ***************************************
> Subscr 1 Send: AT+COPS?
> Subscr 1 Receive: AT+COPS?
> Subscr 1 Receive: +COPS: 0
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> Subscr 1 Receive:
> Subscr 1 Receive: ^SCKS: 0
> Subscr 1 Receive:
> Subscr 1 Receive: +CREG: 0