-
-
Notifications
You must be signed in to change notification settings - Fork 104
Logging & Debugging
Wolfgang edited this page Mar 16, 2024
·
3 revisions
DroneBridge for ESP32, like all other ESP32 projects, logs data via the serial output. In case of bugs or errors you can read those logs in real time.
For officially supported boards just connect the USB port of the board to your computer. Alternatively you can connect a serial to USB adapter to the debugging port of the board (TX & RX pins).
Any serial monitor application will work, however for ease of use I do recommend esptool-js or the ESPHome WebTools. This will only work on Chrome based browsers (e.g. Google Chrome or Microsoft Edge).
- Connect the ESP32 board to your computer (USB or serial to USB adapter)
- Go to esptool-js using Chrome or Edge as a browser
- Under
Console
click connect selecting115200
as the baud rate - Select the connected serial device
- Once the console opens click
Reset
to reboot the esp32 and start logging
- Connect the ESP32 board to your computer (USB or serial to USB adapter)
- Go to ESPHome WebTools using Chrome or Edge as a browser
- Under "Try a live demo" Click connect and select the serial device that represents your ESP32 board
The button will be invisible if your browser is not Chrome-based - Select Logs & Console
- Click "Reset Device" on the bottom right corner to trigger a reboot an start logging
Now you can observe the startup sequence of the device and check for any errors!