Board index » delphi » free pascal and serial ports under linux

free pascal and serial ports under linux

Hi all,
Im just trying to find possibilities to read/write from serial ports under
linux with free pascal. I was surfing the net and all I found are thousands
of Windows and DOS-working units, but nothing to be used with Linux. I am
using Red Hat 7.2 and free pascal and I would really appreciate if someone
could give me at least little hints on how to talk to my serial port ...

thanks a lot for any help
Andreas

 

Re:free pascal and serial ports under linux


Quote
"Andreas Badjura" <badj...@banet.at> wrote:
> Im just trying to find possibilities to read/write from serial ports under
> linux with free pascal. I was surfing the net and all I found are thousands
> of Windows and DOS-working units, but nothing to be used with Linux. I am
> using Red Hat 7.2 and free pascal and I would really appreciate if someone
> could give me at least little hints on how to talk to my serial port ...

This is not a Delphi question nor a database question. Perhaps you
would be better off asking in a more appropriate forum? Anybody got
any ideas? Are there FreePascal newsgroups?

Paul...

Quote
> Andreas

--

plinehan__AT__yahoo__DOT__com

Re:free pascal and serial ports under linux


Quote
Andreas Badjura wrote:
> Hi all,
> Im just trying to find possibilities to read/write from serial ports
> under linux with free pascal. I was surfing the net and all I found are
> thousands of Windows and DOS-working units, but nothing to be used with
> Linux. I am using Red Hat 7.2 and free pascal and I would really
> appreciate if someone could give me at least little hints on how to talk
> to my serial port ...

> thanks a lot for any help

I agree that this is not the best forum to post the question, but the simple
answer is that in Linux "everything is a file."  You'll find a file under
the "/dev" directory which corresponds to the serial port device.  The name
can vary from system to system.

It's a "character" (vs. a "block") device because the data passing through
is viewed as "a stream of bytes."

Re:free pascal and serial ports under linux


Sorry for the wrong posting - but this hint solved my problem!

thx
Andreas

"Sundial Services" <info_...@sundialservices.com> schrieb im Newsbeitrag
news:ulb903babvmu78@corp.supernews.com...

Quote
> Andreas Badjura wrote:

> > Hi all,
> > Im just trying to find possibilities to read/write from serial ports
> > under linux with free pascal. I was surfing the net and all I found are
> > thousands of Windows and DOS-working units, but nothing to be used with
> > Linux. I am using Red Hat 7.2 and free pascal and I would really
> > appreciate if someone could give me at least little hints on how to talk
> > to my serial port ...

> > thanks a lot for any help

> I agree that this is not the best forum to post the question, but the
simple
> answer is that in Linux "everything is a file."  You'll find a file under
> the "/dev" directory which corresponds to the serial port device.  The
name
> can vary from system to system.

> It's a "character" (vs. a "block") device because the data passing through
> is viewed as "a stream of bytes."

Other Threads