Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

UART 2 only works after mos CLI has been connected?

I have a sensor which is attached to UART2 on an ESP32. If I just let the ESP32 start up itself while attached to my laptop's USB then the UART reads corrupted data over the UART (I use UDP to monitor its logging). However, if I run a mos CLI command then the UART immediately begins to read the data correctly. Any mos command seems to do it (e.g., mos config-get). It's just the action of interacting over the USB which somehow sorts the UART out. Does anyone know what the mos CLI might be doing to kick UART 2 into action?

thanks,

dan.

Comments

Sign In or Register to comment.