robertsLando / node-red-contrib-m-bus

Node-Red node for M-Bus protocol
MIT License
10 stars 6 forks source link

UDEV symlinks with /dev/ttyUSBx interfaces not working #17

Closed GOinfo-Ltd closed 2 years ago

GOinfo-Ltd commented 2 years ago

Hi there.

We use mini computers with node-red, and some of them have serial devices in them, while others don't.

We created a UDEV rule to always have our USB<->Serial MBUS interface have the same path (/dev/tty_mbus) but it seems this node doesn't support symlinks to the interface.

Is it possible to check/implement ?

Thank you !

robertsLando commented 2 years ago

The underlyinng library used is node-mbus, if the path provided isn't working the problem is there

GOinfo-Ltd commented 2 years ago

I think I figured out the issue. I was symlinking the /dev/bus/... (by having udev listen to subsystem USB rather than TTY).

Symlinking the TTY device properly seems to work. Sorry for bothering you!

robertsLando commented 2 years ago

No worries happy you fixed it :)