Telematics SDK - Interface Specification
v1.46.62
|
Data Structures | |
class | telux::tel::IRemoteSimListener |
A listener class for getting remote SIM notifications. More... | |
class | telux::tel::IRemoteSimManager |
IRemoteSimManager provides APIs for remote SIM related operations. This allows a device to use a SIM card on another device for its WWAN modem functionality. The SIM provider service is the endpoint that interfaces with the SIM card (e.g. over bluetooth) and sends/receives data to the other endpoint, the modem. The modem sends requests to the SIM provider service to interact with the SIM card (e.g. power up, transmit APDU, etc.), and is notified of events (e.g. card errors, resets, etc.). This API is used by the SIM provider endpoint to provide a SIM card to the modem. More... | |
This section contains APIs related to Remote SIM operations.
class telux::tel::IRemoteSimListener |
A listener class for getting remote SIM notifications.
The methods in listener can be invoked from multiple different threads. The implementation should be thread safe.
Public Member Functions | |
virtual void | onApduTransfer (const unsigned int id, const std::vector< uint8_t > &apdu) |
virtual void | onCardConnect () |
virtual void | onCardDisconnect () |
virtual void | onCardPowerUp () |
virtual void | onCardPowerDown () |
virtual void | onCardReset () |
virtual | ~IRemoteSimListener () |
![]() | |
virtual void | onServiceStatusChange (ServiceStatus status) |
virtual | ~IServiceStatusListener () |
|
virtual |
Destructor of IRemoteSimListener
|
virtual |
This function is called when the modem wants to transmit a command APDU.
[in] | id | Identifier for a command and response APDU pair |
[in] | apdu | APDU request sent to the control point (max size = 261, per ETSI TS 102 221, section 10.1.4) |
|
virtual |
This function is called when the modem wants to establish a connection.
|
virtual |
This function is called when the modem wants to tear down a connection.
|
virtual |
This function is called when the modem wants to power up the card.
|
virtual |
This function is called when the modem wants to power down the card.
|
virtual |
This function is called when the modem wants to warm reset the card.
class telux::tel::IRemoteSimManager |
IRemoteSimManager provides APIs for remote SIM related operations. This allows a device to use a SIM card on another device for its WWAN modem functionality. The SIM provider service is the endpoint that interfaces with the SIM card (e.g. over bluetooth) and sends/receives data to the other endpoint, the modem. The modem sends requests to the SIM provider service to interact with the SIM card (e.g. power up, transmit APDU, etc.), and is notified of events (e.g. card errors, resets, etc.). This API is used by the SIM provider endpoint to provide a SIM card to the modem.
|
virtual |
Destructor of IRemoteSimManager
|
pure virtual |
Checks the status of remote SIM subsystem and returns the result.
|
pure virtual |
Wait for remote SIM subsystem to be ready.
|
pure virtual |
Send reset command to the modem to reset state variables.
[out] | callback | Callback function pointer to get the response of sendReset. |
|
pure virtual |
Send connection available event to the modem.
[out] | callback | Callback function pointer to get the response. |
|
pure virtual |
Send connection unavailable event to the modem.
[out] | callback | Callback function pointer to get the response. |
|
pure virtual |
Send card reset event to the modem.
[in] | atr | Answer to Reset bytes (max size = 32, per ISO/IEC 7816-3:2006 section 8.1). |
[out] | callback | Callback function pointer to get the response of sendCardReset. |
|
pure virtual |
Send card error event to the modem.
[in] | cause | Card Error cause. |
[out] | callback | Callback function pointer to get the response of sendCardError. |
|
pure virtual |
Send card inserted event to the modem.
[in] | atr | Answer to Reset bytes (max size = 32, per ISO/IEC 7816-3:2006 section 8.1). |
[out] | callback | Callback function pointer to get the response of sendCardInserted. |
|
pure virtual |
Send card removed event to the modem.
[out] | callback | Callback function pointer to get the response of sendCardRemoved. |
|
pure virtual |
Send card wakeup event to the modem.
[out] | callback | Callback function pointer to get the response of sendCardWakeup. |
|
pure virtual |
Sends an APDU message to the modem, in response to a previous APDU sent by the modem.
[in] | id | Identifier for command and response APDU pair. |
[in] | apdu | Response APDU (max size = 1024). |
[in] | isSuccess | Whether APDU transaction completed successfully. |
[in] | totalSize | Total length of the APDU message (used when the response is larger than 1024 bytes and must be passed in multiple segments). |
[in] | offset | Offset of this APDU segment in the original message. |
[out] | callback | Callback function pointer to get the response of sendApdu. |
|
pure virtual |
Register a listener for specific updates from the modem.
[in] | listener | Pointer of IRemoteSimListener object that processes the notification |
|
pure virtual |
Deregister the previously added listener.
[in] | listener | Previously registered IRemoteSimListener that needs to be deregistered |
|
pure virtual |
Get associated slot ID for the RemoteSimManager
|
strong |