nesnes / teleplot

Ridiculously-simple telemetry viewer. Plots charts in browser from any apps (bash, C++, and more!)
MIT License
90 stars 15 forks source link

Teleplot on VScode, RTS and DTR signals #29

Open sasensio opened 5 months ago

sasensio commented 5 months ago

Hi, First of all nice job with the application, very useful.

My issue is next, I am using an ESP32 board called ESP32-EVB from Olimex: https://www.olimex.com/Products/IoT/ESP32/ESP32-EVB/open-source-hardware

This board has Ethernet and the connections are made that GPIO0 is used for the Ethernet PHY and also controlled from the USB to Serial IC (RTS signal in this case).

With the Vscode serial monitor I am able to use Ethernet and Serial monitor without problem but when I try with Teleplot Ethernet PHY is reset, I think it happens because RTS and DTR changes, but I do not find how to setup the logic levels for this signals.

Thanks for your time.

nesnes commented 5 months ago

Hi! Teleplot does not explicitly control the RTS DTR signals, however it asks for the serial port to get open which might trigger things in the OS/Driver. I have no idea why the behavior differs from the other serial monitor! An option would be to find an hardware/software solution to disconnect PHY reset from the ESP. Another would be, (if the Ethernet is connected to the same network than the PC) to send your Teleplot telemetry in the format of UDP packets. As explained in the readme, both serial and UDP can be used with Teleplot.

esp32 boards often gets creative with pin mapping creating those funny side effects!