voodootikigod/node-serialport — pull request #102 by rhasson (2012-10-24 22:58:02+00:00)
Title: corrected list under Unix for multiple devices with the same ID

In a case where several identical devices are connected they show up with the same device-id therefore /dev/serial/by-id only detects one device. Looking at /dev/serial/by-path reveals the actual number of devices.

the listUnix() function only accounts for by-id. This pull request modifies the logic to query by by-id and by-path, compare the lengths. If length is the same default to using the contents of by-id since it has meaningful device names. if lengths are not the same use the contents of by-path.

I noticed this issue when I connected multiple USB 56K modems to a single server via a USB hub.

Roy