Menu

#144 Serial Port Config to allow non /dev locations

open
nobody
None
1
2019-12-28
2019-12-28
J Beggs
No

Please allow the serial directive to be pointed at files outside of /dev (on linux).
Right now, it looks only in the /dev directory for ports. This is fine for real hardware ports, probably, but problematic when someone is using socat to facilitate virtual ports and doesn't want to create them in root and twiddle with the perms.

Secondly, it's probably more standard in linux/unix to refer to ports as /dev/portnn (whatever your ports are named, usually ttySn and so on), so insisting on dropping the /dev/ is a little strange, to me.

Example:
serial1 = directserial realport:ttyS0
should be:
serial1 = directserial realport:/dev/ttyS0

For a real example, here's the serial line I had to use:
serial1 = directserial realport:virtcom0

This is what I would hope to be able to use:
serial1 = directserial realport:/tmp/virtcom0

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.