Page 1 of 1

Serial port communication

Posted: Thu Jan 15, 2004 5:43 pm
by Mirko
Hi,

a few days ago i downloaded the trial of PB because i have to code a few small programms under linux and PB seems to be the right language for that task.

Normaly i do not work under linux but write my programms with c++ under windows. Don't ask why i do not write the software with c++ under linux, there are a few reasons for that.

ok, now my question. How do i write a non-blocking serial communication under linux. OpenFile is not usefull for my task, as ReadByte waits for a result which might never arrive (at least it did so in my tests).

Is there a library under linux to do that? If so, how do i use such a library with PB under linux.

I am not a newbie on programming, but a newbie to linux (please consider that in your replay ;-)

Thanxx in advance for any help.

Greetings from the black forrest / germany

Mirko