You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run two waveshare adapters on one raspberry pi and noticed that the assignment of the device address after a reboot is random. This is unfortunate as the assigned hardware might get swapped after a reboot.
That is tricky indeed, I use udev to rename all my serial adapters to a fixed name. But they are different brands which makes it easier.
You could use the serial number or the devpath in case they are connected on two different USB hubs.
udevadm info /dev/hass-comfospot
E: ID_USB_SERIAL=FTDI_FT232R_USB_UART_AB0KNUJC
E: ID_USB_SERIAL_SHORT=AB0KNUJC
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/ttyUSB0/tty/ttyUSB0
You could possibly use one of the symlinks as show in udev info
I run two waveshare adapters on one raspberry pi and noticed that the assignment of the device address after a reboot is random. This is unfortunate as the assigned hardware might get swapped after a reboot.
I have no fix yet but assigning persistent device names on system level might solve this:
https://rolfblijleven.blogspot.com/2015/02/howto-persistent-device-names-on.html
Is there an easier way to connect to the serial adapter? e.g. by serial number instead of the device address?
The text was updated successfully, but these errors were encountered: