Chapter 13 Device Logic (Pawn)
13.2.15 External SIM
13.2.15.1 Arrays with symbolic indices
TrM2M_SIMCfg
Configuration data of an external SIM card
// pin
Pin code for the external SIM card
// apn
Access point (APN) that should be used for the connection
// username
Username to dial up via the access point
// password
Password to dial up via the access point
#define TrM2M_SIMCfg[.pin{8}, .apn{40}, .username{40}, .password{40}]
13.2.15.2 Functions
native rM2M_SetExtSimCfg(cfg[TrM2M_SIMCfg], len=sizeof cfg);
Saves the transferred configuration data for the external SIM card in the device. Setting the
configuration data switches to the external SIM card. To switch back to the internal SIM chip, a
structure, in which all of the fields are set to 0, must be transferred when setting the configuration data.
Note:
The chargeable feature "Activation code VPN SIM (300539)" must be released to be
able to use the external SIM card.
Parameter
Explanation
cfg
Structure that contains the configuration data for the external SIM card (see
"TrM2M_SIMCfg" in chapter "Arrays with symbolic indices" on page 187)
len
Size (in cells) of the structure that contains the configuration data - OPTIONAL
Explanation
Return value
l
Size (in cells) of the structure used to store the configuration data
l
ERROR if the address and/or length of the info structure are invalid
(outside the script data memory)
native rM2M_GetExtSimCfg(cfg[TrM2M_SIMCfg]=0, len=sizeof cfg);
Provides the current configuration data stored for the external SIM card
Parameter
Explanation
cfg
Structure to store the configuration data saved for the external SIM card (see
"TrM2M_SIMCfg" in chapter "Arrays with symbolic indices" on page 187)
len
Size (in cells) of the structure to store the saved configuration data - OPTIONAL
Explanation
Return value
l
Size (in cells) of the structure used to store the configuration data
l
ERROR, if one of the following errors occurs
l
Address and/or length of the cfg structure is invalid (outside the
script data memory)
l
No valid configuration data available for the external SIM card
Rev. 05
187
Summary of Contents for myDatalogEASY V3
Page 2: ......
Page 13: ...Chapter 2 Declaration of conformity Chapter 2 Declaration of conformity Rev 05 13 ...
Page 14: ......
Page 42: ......
Page 76: ......
Page 88: ......
Page 102: ......
Page 110: ......
Page 116: ......
Page 234: ......
Page 244: ......
Page 252: ......
Page 254: ......
Page 266: ......
Page 276: ......