Hi
I have some problems with the serial port support; I'm currently migrating a software from Visual Basic to C++, which roughly just use the serial port. This software runs perfectly but in the virtualbox image.
I checked if the serial port was correctly activated by using I/O ninja and spying the output via :
socat UNIX-CONNECT:/home/lemmel/SOCKET/toto - (given that I specified the software pipe on the host : /home/lemmel/SOCKET/toto)
I saw all of the characters sended on the serial port: so I/O Ninja seems running perfectly.
I made some code, and I saw:
- all the characters sended through WriteFile are correctly received
- when SetCommBreak/ClearCommBreak/EscapeCommFunction/SetCommState system calls nothing is done
In the last case, those system calls might be not visible via the socat trick, but when I connect the virtualbox directly to the serial port [1], nothing appears to gear.
Is someone having an idea ?
[1]
the serial port seems to run perfectly for I can initialize a modem on it.
right access :
ls -lh /dev/ttyS0 : crw-rw-rw- 1 root dialout 4, 64 fév 18 18:07 /dev/ttyS0