system calls on Windows XPSP3 don't trigger serial port

Discussions related to using VirtualBox on Linux hosts.
Post Reply
lemmel
Posts: 1
Joined: 18. Feb 2009, 19:16

system calls on Windows XPSP3 don't trigger serial port

Post by lemmel »

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
panossio
Posts: 1
Joined: 27. Feb 2009, 17:46

Problem

Post by panossio »

Hi
When i try to download large amount of data (write flash ) PC to touch screen (weintek.com) then i receive time out error.
This problem does not exist when i use usb to serial cable
Any idea?
Panagiotis
Post Reply