📶 Configure WiFi
Guide to configure WiFi as an alternative communication channel in Rinho IoT devices.
🤔 What is WiFi for?
The WiFi module allows:
- 🔄 Alternative channel: If cellular fails, data is sent via WiFi
- ⚡ Fast download: Download buffered reports via WiFi (faster than GPRS)
- 📵 SIM-free operation: Function with WiFi only if there’s no cellular coverage
- 📡 Simultaneous sending: Send via both channels at the same time
- 🛰️ Global coverage: Connect to Starlink or other satellite routers to operate in areas without cellular coverage
WiFi works as automatic backup. If the cellular channel is not available, the device tries to send via WiFi.
🔍 Check if the device has WiFi
Step 1: Verify hardware
First, confirm that your device includes the WiFi module with QVR:
>QVR<If it has WiFi, the response will include WIFI:
>RVR RINHO IOT v1.09.16 SP EG915U LC86G 16MB WIFI 2025-12-12 14:52:18;ID=865413053386354;*37<If the response does NOT say WIFI, your device doesn’t have the module and this guide doesn’t apply.
Step 2: Check WiFi status
>QWIF<Response with WiFi off:
>RWIF,0,0,0,,0,0;ID=...Response with WiFi connected:
>RWIF,1,0,0,VERA AP 5,-58,3;ID=...| Field | Example | Meaning |
|---|---|---|
| Enabled | 1 | WiFi on |
| Mode | 0 | Station (connected to network) |
| Index | 0 | Network configured at position 0 |
| SSID | VERA AP 5 | Connected network name |
| RSSI | -58 | Signal strength (dBm) |
| Level | 3 | Signal bars (0-4) |
📶 Signal levels
| Level | Quality | Typical RSSI |
|---|---|---|
| 4 | Excellent | > -50 dBm |
| 3 | Good | -50 to -60 dBm |
| 2 | Average | -60 to -70 dBm |
| 1 | Weak | -70 to -80 dBm |
| 0 | No connection | < -80 dBm |
⚙️ Step-by-step configuration
Configure WiFi network
Use the APW command to save the credentials:
>SAPW00VERA AP 5,32055136<| Parameter | Value | Description |
|---|---|---|
00 | Index | Position 0-9 (up to 10 networks) |
VERA AP 5 | SSID | Network name |
32055136 | Password | Password |
Response:
>RAPW00VERA AP 5,32055136,,,;ID=...You can configure up to 10 WiFi networks. The device will rotate between them if it can’t connect to one.
Enable WiFi
Use the CXWIF command:
>SCXWIF1,0,1<| Parameter | Value | Description |
|---|---|---|
1 | Enable | 1=Turn on, 0=Turn off |
0 | Mode | 0=Station (connect to network) |
1 | Download | 1=Enable download channel |
Response:
>RCXWIF1,0,1;ID=...Verify connection
>QWIF<Connected response:
>RWIF,1,0,0,VERA AP 5,-58,3;ID=...If you see the network name and negative RSSI, it’s connected.
🧪 Test WiFi transmission
To force sending a specific report via WiFi, add @WIF to the command:
>GCQ00H;@WIF<To force via cellular:
>GCQ00H;@GPRS<Response:
>GOK;ID=...In the debug log you’ll see:
[WIF] TX UDP MAIN -> 170.78.73.32:04031 >RCQ00...
[WIF] RX UDP MAIN <- >ACK;#000A;ID=...The [WIF] prefix indicates the report was sent via WiFi. [CEL] indicates cellular.
🤖 Automatic operation
Once configured, the device automatically decides which channel to use:
| Scenario | Channel used |
|---|---|
| Cellular OK, WiFi OK | Cellular (primary) |
| Cellular FAILS, WiFi OK | WiFi (backup) |
| Cellular OK, WiFi FAILS | Cellular |
| Both FAIL | Buffer (stores until reconnection) |
Log example
Sending via cellular:
[CEL] TX MAIN -> >RCQ00311225224043...
[CEL] RX MAIN <- >ACK;#0006;ID=...If cellular is turned off, switches to WiFi:
[CEL] Modem Hard Power OFF
[WIF] TX UDP MAIN -> 170.78.73.32:04031 >RCQ00...
[WIF] RX UDP MAIN <- >ACK;#000D;ID=...🎮 Control commands
📱 Turn cellular off/on
>SSSCELPWR00< // Turn cellular off
>SSSCELPWR11< // Turn cellular on📶 Turn WiFi off/on
>SSSWIFPWR00< // Turn WiFi off
>SSSWIFPWR11< // Turn WiFi on📊 Check cellular status
>QSSCEL<| Response | Meaning |
|---|---|
RSSCEL00 | Cellular off |
RSSCEL11 | Cellular on |
📝 Complete example
// 1. Configure WiFi network
>SAPW00MyWiFiNetwork,password123<
// 2. Enable WiFi as Station with download
>SCXWIF1,0,1<
// 3. Verify connection
>QWIF<
>RWIF,1,0,0,MyWiFiNetwork,-45,3;ID=...
// 4. Test sending via WiFi
>GCQ00H;@WIF<
>GOK;ID=...
// 5. Check in debug
>SDB1<
[WIF] TX UDP MAIN -> ... >RCQ00...
[WIF] RX UDP MAIN <- ... >ACK;...📖 Command summary
| Command | Function | Reference |
|---|---|---|
>QWIF< | WiFi status | WIF |
>SAPW00ssid,pass< | Configure network | APW |
>SCXWIF1,0,1< | Enable WiFi Station | CXWIF |
>GCQ00H;@WIF< | Force sending via WiFi | G Command |
>SSSWIFPWR00< | Turn WiFi off | SS |
>SSSWIFPWR11< | Turn WiFi on | SS |
🔧 Troubleshooting
| Problem | Possible cause | Solution |
|---|---|---|
RWIF,0,0,0,,0,0 | WiFi off | >SCXWIF1,0,1< |
| RSSI = 0 | Not connected | Verify SSID and password |
| Doesn’t send via WiFi | No IP configured | Check >QIP0< |
🎯 Next steps
- 🚀 Getting Started - Basic configuration
- 🧠 Event Engine - Create advanced rules