Troubleshooting
Edit on GitHubDiagnose common failures: no boot, no radio, display glitches, GPS and power problems
Troubleshooting
Overview
Common issues and solutions for Aegis-Beacon assembly and operation.
Radio Issues
SX1262 TX Init Failed
Symptom: [ERROR] SX1262 TX init FAILED: -2
Cause: SPI wiring or missing BUSY pin
Solution:
- Check GPIO 18/19/23/5 connections
- Verify BUSY pin (GPIO 21) is connected
- Test SPI continuity with multimeter
Warning
GPIO 21 (BUSY) is mandatory. Without it, firmware hangs on first radio call.
Radio Hangs on First Call
Symptom: Device freezes after boot
Cause: BUSY pin not wired
Solution:
- Wire BUSY to GPIO 21
- Verify connection with continuity test
- Re-flash firmware
Weak Signal / No Range
Symptom: Beacon not heard at expected distance
Cause: Antenna issue or low power
Solution:
- Verify antenna length (17.3cm for 433 MHz)
- Check SMA connection
- Increase TX power in CONFIG portal
- Test with SDR to verify transmission
Display Issues
OLED Blank
Symptom: No display output
Cause: Wrong SPI pins or soft-SPI conflict
Solution:
- Verify GPIO 15/13/4/16/17 connections
- Check 3.3V power to OLED
- Test with simple sketch
OLED Flickering
Symptom: Display flickers or shows artifacts
Cause: SPI bus contention
Solution:
- Ensure software SPI is used (not hardware)
- Check for loose connections
- Reduce SPI clock speed
GPS Issues
No GPS Fix After 2 Minutes
Symptom: GPS wait screen shows 0 satellites
Cause: Obstructed sky view or weak signal
Solution:
- Move outdoors with clear sky view
- Wait 5-15 minutes for cold start
- Check GPIO 22/12 connections
- Verify GPS module power
Wrong Coordinates
Symptom: Coordinates don’t match location
Cause: DDM format misread
Solution:
N4553= 45 53’ N, not 45.53E01230= 12 30’ E, not 12.30- Add decimal point at position 3
Battery Issues
Battery Reads 0% or 100% Stuck
Symptom: Battery percentage doesn’t change
Cause: Divider not connected or wrong GPIO
Solution:
- Check R3a/R3b divider on GPIO 36
- Verify BAT+ connection to TP4056
- Adjust
BAT_VREF_MVin config
Battery Drains Quickly
Symptom: Runtime much shorter than expected
Cause: High current draw or cold weather
Solution:
- Check for WiFi/BT left enabled
- Verify deep sleep is working
- Monitor serial for sleep messages
- Use LiFePO4 in cold weather
Audio Issues
No Audio Output
Symptom: No sound from earphone
Cause: Wrong pin or missing AC cap
Solution:
- Verify GPIO 25 connection
- Check 10uF cap orientation (+ to GPIO)
- Test with 100 Ohm resistor to GND
Audio Too Quiet
Symptom: Very low volume
Cause: Volume setting too low
Solution:
- Increase volume via UP/DN buttons
- Check VOL/WPM toggle (SEL button)
- Verify DAC1 configuration
Button Issues
Buttons Unresponsive
Symptom: No response to button presses
Cause: Missing pullup on input-only pins
Solution:
- Add 10k pullup to GPIO 34/35
- Verify button wiring to GND
- Check for stuck buttons
Factory Reset Not Working
Symptom: MODE+SEL at boot doesn’t reset
Cause: Not holding long enough
Solution:
- Hold both buttons for 5+ seconds
- Release after OLED shows reset message
- Device reboots with defaults
Software Issues
Upload Fails
Symptom: Failed to connect error
Cause: Wrong board or port selected
Solution:
- Select “ESP32 Dev Module” board
- Verify COM port in Device Manager
- Press BOOT button during upload
- Try different USB cable
NVS Empty Warning
Symptom: [WARN] NVS empty on boot
Cause: First boot or after factory reset
Solution:
- This is normal behavior
- Configure via CONFIG portal
- Settings save to NVS on first save
Performance Issues
Slow Display Updates
Symptom: OLED updates slowly
Cause: SPI clock too slow
Solution:
- Verify software SPI connections
- Check for bus contention
- Reduce update frequency
High Power Consumption
Symptom: Battery drains faster than expected
Cause: WiFi/BT not disabled
Solution:
- Verify WiFi/BT shutdown in beacon mode
- Check serial for WiFi messages
- Disable WiFi in CONFIG portal
Debug Output
Serial Monitor
Connect at 115200 baud for debug output:
[INFO ] Boot #1 reset_reason=1 heap=290244 B cpu=240MHz
[BAT ] Boot battery: 87% 4100mV charging=NO
[OK ] OLED ready -- SSD1309 128x64
[OK ] SX1262 CW TX ready: 433.500 MHz @ 17 dBmCommon Debug Tags
| Tag | Meaning |
|---|---|
[INFO ] | Normal operation |
[OK ] | Successful operation |
[WARN ] | Non-fatal warning |
[ERROR] | Hardware failure |
[SCAN ] | RSSI scan result |
[GPS ] | GPS engine |
[BAT ] | Battery reading |
Tip
Set DEBUG_VERBOSE 1 for per-symbol Morse timing and RadioLib state codes.