33: SIM settings
For devices that have dual-sim functionality, control which SIM is active and set APN parameters for SIM2
Header
| Field | Name | Description | Type |
|---|---|---|---|
| 5 | Method | Request a service to be perform an action Possible values:
| uint8 |
Payload
| Field | Name | Description | Type | Unit |
|---|---|---|---|---|
| 1 | Active SIM | Activate the specified SIM If SIM2 is selected, sending the APN settings is required Possible values:
| uint8 | |
| 2 | SIM2 APN | ascii | ||
| 3 | SIM2 APN Username | ascii | ||
| 4 | SIM2 APN Password | ascii | ||
| 8 | SIM2 ICCID | SIM2 ICCID if known, read-only | ascii |
Examples
Enable SIM2 with APN settings
📡 Real example from Generate tool on 2025-10-15Created using the generate tool, this was tested against an RH2 device, sent from Toit.
ACK SIM2 settings
📡 Real example from RH2 P1 v2296 on 2025-10-15This example is captured from an RH2 device as part of normal communications over I2C with the ESP32 co-processor, in response to the previous message.
GET request for SIM settings
Code
For convenience, the following constants can be used to reference this message type.