/dev/tty vs /dev/serial/by-id and stability? #167
Replies: 2 comments 1 reply
-
Hi @lurendrejer - Hope your well. I'm not aware of the path being used having an affect on performance, however, I won't be surprised, maybe the OS handles it differently - @AlCalzone, any thought on this? For what its worth, I have always used /dev/serial/by-id/ - as it never changes /dev/tty* can change its name after a reboot. As for listing serial ports, we're not doing this our self, its provided by the serialports package - which is cross-platform. /dev/serial/by-id/ Obviously isn't possible on window, and I want to avoid implementing host specifics if possible, allowing the serialports package to take care of it. This is the reason I added the custom path option - to be able to do this type of reference if the host provides it. |
Beta Was this translation helpful? Give feedback.
-
No, they are just symlinks to the same serial device. Without seeing driver logs however, I can't say what's going on here. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
Just did an observation - I have always been using the path that the plugin suggests /dev/tty* and everything has seemingly been fine.
I removed a handful of devices and wanted to do a full heal of the network, but it failed on multiple nodes every time over a span of several days.
A post on some random zwaveJS post mentioned problems in HA when using /dev/tty instead of /dev/serial/by-id as the path to the controller.
I tried changing my path to (/dev/serial/by-id/usb-0658_0200-if00) - and lo and behold, healing finished in the first run.
Does /dev/tty and /dev/serial handle queues of messages in different ways? what is this?
And, maybe with some further testing - the plugin should show the devices in /dev/serial/ insted of /dev/tty, who knows what other problems might be due to this 'problem' if my experience really just isn't at complete coincidence.
For the record: tried healing upwards of ten times over a span of three days.
tried three times today, the last one with the new path and it suddenly worked.
Beta Was this translation helpful? Give feedback.
All reactions