[fpc-pascal]Serial Port Programming under LINUX...

Rainer Hantsch rainer at hantsch.co.at
Fri Apr 26 09:06:37 CEST 2002


Thanks!

I had a look on this code right now, but I am afraid that this code will not
supply me a buffered input. (I mean: If I currently do NOT read the arriving
data, the data must be buffered in some kind of FIFO, and I must be able to
check if there are characters available before(!) doing a read operation.
(important, because otherwise my program will hang until something comes in!)

Is this done with this code?


On Fri, 26 Apr 2002, Stefan Becker wrote:

> Hi,
> I don't know if there is a fossile interface (unit) for linux but
> Brad Campbell's (bcampbel at omen.net.au) unit helped me
> alot.
> I put it on http://home.t-online.de/home/yukonho/seriell.pp
> 
> Stefan
> 
> 
> -----Urspr√ľngliche Nachricht-----
> Von: Rainer Hantsch <rainer at hantsch.co.at>
> An: Free Pascal Group <fpc-pascal at lists.freepascal.org>
> Datum: Donnerstag, 25. April 2002 10:26
> Betreff: [fpc-pascal]Serial Port Programming under LINUX...
> 
> 
> >Hello, all!
> >
> >I do really hope that there is somebody here who has real EXPERIENCE with
> >programming serial communications in FPC and for Linux. - I am totally
> unhappy
> >because I find no WORKING solution for this. Please, if you can help, leave
> me
> >a message. -- THANKS!
> >
> >What I had in the past:
> >-----------------------
> >When I was programming in TP/BP for DOS, I used the FOSSIL/X00 TSR-driver
> to
> >communicate with serial devices. This TSR driver did all low level stuff
> >for me, including a ring buffer, handshaking (both, XON/XOFF and/or
> RTS/CTS),
> >..., so I only had to write a relatively simple unit, to make "Fossil" more
> >user friendly.
> >With this simple task I had the possibility to send/receive _buffered_,
> >flush/purge the buffer contents, rise/lower DTR, ask if chars were received
> >_without_ actually reading them in,... -- EXCELLENT.
> >
> >What I am looking for:
> >----------------------
> >Since my change to Linux and FreePascal, I am really unhappy because there
> >seems to be nothing similar available here. Well, There are some units
> >available for FPC, but most of them are for DOS or WIN32. The only one
> which
> >appears to be very useful, is OBJCOM.
> >But this unit has an unacceptable BUG inside: It stops any further
> >communication when the DCD is dropped by the modem when the connection
> >breaks. It seems that this causes a total loss of the internal file handle!
> >Sadly to say, but it appears as if nobody is working on this ObjCOM any
> >longer, including M.Kiesel who contributed ObjCom, so this appears to be a
> >dead end...
> >
> >
> >If somebody has a unit which works with FOSSIL (DOS), WIN32 *AND* LINUX and
> >gives me an acceptable control to the data communication, I will be happy
> to
> >know about that, even if this is a commercial unit.
> >
> >
> >Thanks in advance,
> >
> >mfg
> >
> >  Ing. Rainer Hantsch
> >
> >--
> >      \\|//           Ing. Rainer HANTSCH  -  Hardware + Software
> >      (o o)           Forget Windoze! -- We focus on L-I-N-U-X...
> >--oOOo-(_)-oOOo--------------------------------------------------
> >Ing. Rainer HANTSCH  |  e-Mail: office at hantsch.co.at
> >Khunngasse 21/20     |  www   : http://www.hantsch.co.at
> >A-1030 Vienna        |  Tel.  : ++43 - 1 - 7988538 0
> >---------------------|  Fax   : ++43 - 1 - 7988538 18
> >** AUSTRIA **        |  Mobile: ++43 - 664 - 9194382
> >-----------------------------------------------------------------
> >
> >
> >
> >
> >_______________________________________________
> >fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> >http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> >
> 
> 
> 
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> 


mfg

  Ing. Rainer Hantsch

-- 
      \\|//           Ing. Rainer HANTSCH  -  Hardware + Software
      (o o)           Forget Windoze! -- We focus on L-I-N-U-X...
--oOOo-(_)-oOOo--------------------------------------------------
Ing. Rainer HANTSCH  |  e-Mail: office at hantsch.co.at
Khunngasse 21/20     |  www   : http://www.hantsch.co.at
A-1030 Vienna        |  Tel.  : ++43 - 1 - 7988538 0 
---------------------|  Fax   : ++43 - 1 - 7988538 18
** AUSTRIA **        |  Mobile: ++43 - 664 - 9194382
-----------------------------------------------------------------





More information about the fpc-pascal mailing list