vesper
2008-08-28, 02:21 PM CDT
Hi, everybody!
I've made a program to communicate with a device connected to the ttyS0.
In the beginning, I was not managing to communicate with the device sending
commands through the port. Every time I used the RS232 port, the program aborted, with the following error:
"Possible I/O"
I manage to solve partially this problem, including my user in the uucp group.
It was a permission problem, I thought.
Now, when I send a command to the device, it works perfectly. The device executes it ok.
But, that's the problem, if I send a requisition (a question) the device executes it,
showing the answer on the display and the program a is interrupted with the same old message:
"Possible I/O"
So, I can't understand why it always works when I just send commands (with no return) and why
it always fails when data should return to the program?
And the most incredible part: It works perfectly in any machine with debian.
So I believe the problem is not in my code.
I use Fedora8 and I've tested in Fedora Core7 and Connectiva 10, with no success.
Thanks for your attention, and sorry about my poor english...
I've made a program to communicate with a device connected to the ttyS0.
In the beginning, I was not managing to communicate with the device sending
commands through the port. Every time I used the RS232 port, the program aborted, with the following error:
"Possible I/O"
I manage to solve partially this problem, including my user in the uucp group.
It was a permission problem, I thought.
Now, when I send a command to the device, it works perfectly. The device executes it ok.
But, that's the problem, if I send a requisition (a question) the device executes it,
showing the answer on the display and the program a is interrupted with the same old message:
"Possible I/O"
So, I can't understand why it always works when I just send commands (with no return) and why
it always fails when data should return to the program?
And the most incredible part: It works perfectly in any machine with debian.
So I believe the problem is not in my code.
I use Fedora8 and I've tested in Fedora Core7 and Connectiva 10, with no success.
Thanks for your attention, and sorry about my poor english...