Answer the question
In order to leave comments, you need to log in
Unable to open COM port on linux
I'm trying to open a COM port using the following code:
hComDevice = open(portName.toAscii().data(), O_RDWR | O_NOCTTY | O_NDELAY);
if (hComDevice < 0)
return false;
dmesg | grep tty
[ 0.000000] console [tty0] enabled
[ 0.826790] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 0.847317] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 0.867827] serial8250: ttyS2 at I/O 0x3e8 (irq = 4) is a 16550A
[ 0.888346] serial8250: ttyS3 at I/O 0x2e8 (irq = 3) is a 16550A
[ 0.909101] 00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 0.940506] 00:07: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 0.972505] 00:08: ttyS2 at I/O 0x3e8 (irq = 10) is a 16550A
[ 1.004516] 00:09: ttyS3 at I/O 0x2e8 (irq = 11) is a 16550A
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question