|
| 1 | +# Troubleshooting |
| 2 | + |
| 3 | +## Receiver |
| 4 | + |
| 5 | +### WiFi scan button does nothing |
| 6 | +The receiver uses APSTA mode for scanning. If scan still fails, try rebooting the receiver. |
| 7 | + |
| 8 | +### Captive portal doesn't appear |
| 9 | +After connecting to the "TankSync" WiFi, try opening `http://192.168.4.1` manually. iOS/Android auto-redirect is supported but may not work on all devices. |
| 10 | + |
| 11 | +### OLED shows "NO DATA" |
| 12 | +No transmitter is paired yet. Go to the receiver's web UI and press "Start Pairing", then power on the transmitter. |
| 13 | + |
| 14 | +### MQTT shows "disconnected" |
| 15 | +- Check WiFi is connected (receiver web UI -> System tab) |
| 16 | +- Verify MQTT broker host and port are correct |
| 17 | +- If using TLS (port 8883), ensure `use_tls` is enabled |
| 18 | +- Check MQTT username and password |
| 19 | + |
| 20 | +### OTA update fails |
| 21 | +- Ensure the `.bin` file matches your board (ESP32 DevKit vs ESP32-C3) |
| 22 | +- File must be under 1.5MB (OTA partition limit) |
| 23 | +- Try uploading via the web UI at `http://<receiver-ip>/api/ota/upload` |
| 24 | + |
| 25 | +## Transmitter |
| 26 | + |
| 27 | +### Transmitter won't pair |
| 28 | +- Ensure transmitter and receiver are using the same LoRa frequency and network ID |
| 29 | +- Transmitter must be powered on within 60 seconds of pressing "Start Pairing" on the receiver |
| 30 | +- Try power cycling the transmitter |
| 31 | + |
| 32 | +### Battery shows 0% |
| 33 | +- Check the battery voltage divider wiring |
| 34 | +- The ADC calibration assumes a 100K/100K divider on GPIO 0 |
| 35 | +- If using a different divider ratio, adjust in `config.h` |
| 36 | + |
| 37 | +### Distance reading is stuck or wrong |
| 38 | +- SR04T sensor needs a clear line of sight to the water surface |
| 39 | +- Minimum distance: 25cm, maximum: 400cm |
| 40 | +- Check sensor wiring (TRIG and ECHO pins) |
| 41 | + |
| 42 | +## TankSync Cloud |
| 43 | + |
| 44 | +### Can't sign up (captcha fails) |
| 45 | +- Disable VPN or ad blockers temporarily |
| 46 | +- Try a different browser |
| 47 | +- Clear cookies and try again |
| 48 | + |
| 49 | +### Email verification code not received |
| 50 | +- Check spam/junk folder |
| 51 | +- Emails come from `onboarding@resend.dev` (or `noreply@smartghar.org` if domain verified) |
| 52 | +- Click "Resend code" (rate limited to 3 per 5 minutes) |
| 53 | + |
| 54 | +### QR code scan doesn't work |
| 55 | +- Ensure your phone and the TankSync Cloud server are on the same network as the receiver |
| 56 | +- The QR code contains the receiver's local IP — it must be reachable from the server |
| 57 | +- If on a different network, manually enter MQTT details in the receiver's web UI |
| 58 | + |
| 59 | +### Dashboard shows stale data |
| 60 | +- Check receiver's MQTT connection status in its web UI |
| 61 | +- If using TankSync Cloud, verify the receiver is connected to `mqtt.smartghar.org:8883` |
| 62 | +- The transmitter sends data every sleep interval (default 5 minutes) |
| 63 | + |
| 64 | +### Push notifications not working |
| 65 | +- Install the app as a PWA (Add to Home Screen) |
| 66 | +- Enable notifications when prompted |
| 67 | +- VAPID keys must be configured in the server's `.env` file |
| 68 | + |
| 69 | +## Hardware |
| 70 | + |
| 71 | +### LoRa range is poor |
| 72 | +- Ensure antennas are attached to both RYLR998 modules |
| 73 | +- Higher mounting = better range |
| 74 | +- Avoid metal obstructions between transmitter and receiver |
| 75 | +- Try increasing spreading factor in LoRa settings (higher SF = longer range, slower speed) |
| 76 | + |
| 77 | +### Solar charging not working |
| 78 | +- TP4056 module needs direct sunlight on the panel |
| 79 | +- Check that the solar panel output is 5-6V |
| 80 | +- The charge LED on TP4056 should be red when charging |
0 commit comments