| | Re: Can't open serial port in Linux
|
|
Check the permissions on /dev/ttyS1. I think the default is for it to be locked down to superuser only. If this is the case, then running nqc from a normal user account would cause the error you got. You'll need read/write rights to /dev/ttyS1 in (...) (25 years ago, 29-Dec-99, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Can't open serial port in Linux
|
|
Hi. I just got through fixing a similar problem with my linux box (the fix involved a lot of tedious changing IRQ's in the BIOS, with a lot of tedious rebooting in between). Beyond Dave's good advice, you might want to check out the linux serial (...) (25 years ago, 30-Dec-99, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Can't open serial port in Linux
|
|
(...) Currently there isn't any notion of an "error code" from the serial port class - opening the serial port just returns true/fals. I'm wary of adding error codes here because they'd need to be added in a portable manner (and across the Unix, (...) (25 years ago, 30-Dec-99, to lugnet.robotics.rcx.nqc)
|