Hi All,
Is the CH432 on the LG290P breakout board (GPS-26620) configurable in any way? Specifically what I would like to do is disable the disconnected UART so that it doesn’t enumerate when the device is connected. What I’ve found is that sometimes SERIAL-A comes up as ttyACM0
and sometimes it comes up as ttyACM1
. Usually this isn’t a problem, but last night my machine had an unexpected reboot and the interface was swapped when it came back up, meaning my NTRIP casting service failed to start.
I’ve used the SiLabs CP2102 in projects before, and there is a configuration utility available for them. I haven’t found one for the CH432, but thought I’d ask just in case.
In the event that I can’t, I figure I have two options:
- Connect UART2 or 3 to a USB-UART adapter that has only one port
- Use
/dev/serial/by-id/usb-1a86_USB_Dual_Serial_5932001932-if00
instead of ttyACM#
(probably the best option, realistically)
I’m curious to see if anyone else has any ideas.
Thanks!
Using /dev/serial/by-id/
:
This is an excellent option. Instead of relying on ttyACM0
or ttyACM1
, you can reference the device via its unique ID in /dev/serial/by-id/
. This method will avoid the issues you encountered with the port swapping after a reboot. You can call
/dev/serial/by-id/usb-1a86_USB_Dual_Serial_5932001932-if00
in your NTRIP casting service config…This way, even if the devices are enumerated differently across reboots, your system will always target the correct port because it’s identified by its unique USB ID.
Using an Additional USB-to-UART Adapter:
Connecting a second USB-to-UART adapter (e.g., FTDI or CP2102) to another UART might be useful if you need additional port management. But the approach involving /dev/serial/by-id/
would be simpler and more robust, especially if your concern is just keeping things consistent between reboots
I also found this ch432ser_linux/ch432.c at main · WCHSoftGroup/ch432ser_linux · GitHub which you might be able to edit directly, if anything further is needed? There are some notes here too ch432ser_linux/README.md at main · WCHSoftGroup/ch432ser_linux · GitHub
1 Like
That’s pretty much what I figured, thanks!
1 Like