> 2.17.2 | RSA Connection via Bluetooth

> 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.2.1 | Description

> This chapter describes how to activate and terminate the RSA connection between a ME which acts as SAP client and an SAP server which communicates with the application via Bluetooth.
> The example below describes the steps, which are required to enable and disable the RSA connection (SAP client):

> • | 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 since the ME can act as SAP Server or SAP Client, different parameters are required for this command:

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

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

> If the connection is started successfully the URC ^SRSA: 2,2,0 is issued. After connecting to an SAP peer the URC will be ^SRSA: 2,2,1.
> There are 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).

> - | The second option is to disable the SAP connection and make the ME return 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.

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

> 2.17.2.2 | Used AT commands

> Command | Explanation
> AT+COPS | Operator selection
> AT+CPIN | Enter PIN
> AT^SRSA | Remote SIM Access Activation

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

> 2.17.2.3 | Flow chart

> Figure 167: RSA Connection via Bluetooth part 1
> Figure 168: RSA Connection via Bluetooth part 2

> 2.17.2.4 | Hints

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

> 2.17.2.5 | Example

> ***************************************
> Comment: Remote SIM Access (Bluetooth)
> ***************************************
> ***************************************
> Comment: Request current operator.
> ***************************************
> Subscr 3 Send: AT+COPS?
> Subscr 3 Receive: AT+COPS?
> Subscr 3 Receive: +COPS: 0,0,"CC 234 NC 05"
> Subscr 3 Receive:
> Subscr 3 Receive: OK
> ***************************************
> Comment: Query RSA status and SAP connection .
> ***************************************
> Subscr 3 Send: AT^SRSA?
> Subscr 3 Receive: AT^SRSA?
> Subscr 3 Receive:
> Subscr 3 Receive:
> Subscr 3 Receive: OK
> ***************************************
> Comment: Activation of RSA.
> ***************************************
> Subscr 3 Send: AT^SRSA=2,2,3,1
> Subscr 3 Receive: AT^SRSA=2,2,3,1
> Subscr 3 Receive: ^SRSA: 0
> Subscr 3 Receive:
> Subscr 3 Receive: OK
> Subscr 3 Receive:
> Subscr 3 Receive: ^SRSA: 2,2,0
> Subscr 3 Receive:
> Subscr 3 Receive: +CREG: 0
> Subscr 3 Receive:
> Subscr 3 Receive: ^SRSA: 2,2,1
> Subscr 3 Receive:
> Subscr 3 Receive: ^SCKS: 0
> Subscr 3 Receive:
> Subscr 3 Receive: ^SCKS: 1
> ***************************************
> Comment: Request current operator.
> ***************************************
> Subscr 3 Send: AT+COPS?
> Subscr 3 Receive: AT+COPS?
> Subscr 3 Receive: +COPS: 0
> Subscr 3 Receive:
> Subscr 3 Receive: OK
> ***************************************
> Comment: Query current SIM PIN status.
> ***************************************
> Subscr 3 Send: AT+CPIN?
> Subscr 3 Receive: AT+CPIN?
> Subscr 3 Receive: +CPIN: SIM PIN
> Subscr 3 Receive:
> Subscr 3 Receive: OK
> ***************************************
> Comment: Enter current SIM PIN (now SIM PIN from the mobile phone is requiered).
> ***************************************
> Subscr 3 Send: AT+CPIN=2529
> Subscr 3 Receive: AT+CPIN=2529
> Subscr 3 Receive:
> Subscr 3 Receive: OK
> Subscr 3 Receive:
> Subscr 3 Receive: +CREG: 2
> Subscr 3 Receive:
> Subscr 3 Receive: +CREG: 1
> Subscr 3 Receive:
> Subscr 3 Receive: ^SSIM READY
> ***************************************
> Comment: Request current operator.
> ***************************************
> Subscr 3 Send: AT+COPS?
> Subscr 3 Receive: AT+COPS?
> Subscr 3 Receive: +COPS: 0,0,"T-Mobile D"
> Subscr 3 Receive:
> Subscr 3 Receive: OK
> ***************************************
> Comment: Query RSA status and SAP connection .
> ***************************************
> Subscr 3 Send: AT^SRSA?
> Subscr 3 Receive: AT^SRSA?
> Subscr 3 Receive: ^SRSA: 2,2,1,3,1,6
> Subscr 3 Receive:
> Subscr 3 Receive:
> Subscr 3 Receive: OK
> ***************************************
> Comment: Deactivation of RSA.
> ***************************************
> Subscr 3 Send: AT^SRSA=2,0,,,,0
> Subscr 3 Receive: AT^SRSA=2,,,,0
> Subscr 3 Receive: ^SRSA: 0
> Subscr 3 Receive:
> Subscr 3 Receive: OK
> Subscr 3 Receive:
> Subscr 3 Receive: ^SCKS: 0
> Subscr 3 Receive:
> Subscr 3 Receive: ^SRSA: 2,2,0
> Subscr 3 Receive:
> Subscr 3 Receive: ^SRSA: 2,0,0
> Subscr 3 Receive:
> Subscr 3 Receive: +CREG: 0
> Subscr 3 Receive:
> Subscr 3 Receive: ^SCKS: 1
> Subscr 3 Receive:
> Subscr 3 Receive: ^SCKS: 1
> Subscr 3 Receive:
> Subscr 3 Receive: +CREG: 2
> Subscr 3 Receive:
> Subscr 3 Receive: +CREG: 1
> ***************************************
> Comment: Request current operator.
> ***************************************
> Subscr 3 Send: AT+COPS?
> Subscr 3 Receive: AT+COPS?
> Subscr 3 Receive: +COPS: 0,0,"CC 234 NC 05"
> Subscr 3 Receive:
> Subscr 3 Receive: OK