Re: [fpc-pascal] Linux serial interface

2006-12-27 Thread John Coppens
On Tue, 26 Dec 2006 21:53:25 +0100 Rainer Stratmann <[EMAIL PROTECTED]> wrote: > How to do that? > The code for initialisation of the serial interface: Run stty --help with clocal you can disable all the modem control signals. (I believe the ioctl have an equivalent) John

Re: [fpc-pascal] Linux serial interface

2006-12-26 Thread Martin Schreiber
On Tuesday 26 December 2006 21.53, Rainer Stratmann wrote: > > How to do that? > The code for initialisation of the serial interface: > > const > iflagoff = BRKINT or INPCK or ISTRIP or IGNCR or INLCR or ICRNL or IUCLC > or IXON or IXANY or IXOFF or IMAXBEL; > iflagon = IGNBRK or IGNPAR; > ofla

Re: [fpc-pascal] Linux serial interface

2006-12-26 Thread Rainer Stratmann
Am Dienstag, 26. Dezember 2006 19:28 schrieb John Coppens: > On Tue, 26 Dec 2006 15:10:27 +0100 > > Rainer Stratmann <[EMAIL PROTECTED]> wrote: > > In my program it works for writing, but reading is not possible at the > > moment. > > Did you check if (hardware) handshaking is enabled? I've found q

Re: [fpc-pascal] Linux serial interface

2006-12-26 Thread John Coppens
On Tue, 26 Dec 2006 15:10:27 +0100 Rainer Stratmann <[EMAIL PROTECTED]> wrote: > In my program it works for writing, but reading is not possible at the > moment. Did you check if (hardware) handshaking is enabled? I've found quite regularly that one of the lines is stopping the input. If you have

Re: [fpc-pascal] Linux serial interface

2006-12-26 Thread Marc Santhoff
Am Dienstag, den 26.12.2006, 15:10 +0100 schrieb Rainer Stratmann: > How to open correct the serial interface ('/dev/ttyS0') > In my program it works for writing, but reading is not possible at the moment. > Has someone an idea or example code? You want to have a look at the serial.pp unit coming

Re: [fpc-pascal] Linux serial interface

2006-12-26 Thread Rainer Stratmann
Am Dienstag, 26. Dezember 2006 14:32 schrieb Johann Glaser: > Hi! > > Am Dienstag, den 26.12.2006, 15:38 +0100 schrieb Rainer Stratmann: > > Am Dienstag, 26. Dezember 2006 14:07 schrieb Michael Van Canneyt: > > > On Tue, 26 Dec 2006, Rainer Stratmann wrote: > > > > How to open correct the serial in

Re: [fpc-pascal] Linux serial interface

2006-12-26 Thread Daniël Mantione
Op Tue, 26 Dec 2006, schreef Michael Van Canneyt: > > > On Tue, 26 Dec 2006, Rainer Stratmann wrote: > > > How to open correct the serial interface ('/dev/ttyS0') > > As far as I know, this is a terminal, so the terminal emulator will mess up > the IO. You should open the raw device. The ra

Re: [fpc-pascal] Linux serial interface

2006-12-26 Thread Johann Glaser
Hi! Am Dienstag, den 26.12.2006, 15:38 +0100 schrieb Rainer Stratmann: > Am Dienstag, 26. Dezember 2006 14:07 schrieb Michael Van Canneyt: > > On Tue, 26 Dec 2006, Rainer Stratmann wrote: > > > How to open correct the serial interface ('/dev/ttyS0') > > > > As far as I know, this is a terminal, so

Re: [fpc-pascal] Linux serial interface

2006-12-26 Thread Daniël Mantione
Op Tue, 26 Dec 2006, schreef Rainer Stratmann: > How to open correct the serial interface ('/dev/ttyS0') > In my program it works for writing, but reading is not possible at the moment. > Has someone an idea or example code? What goes wrong while reading? Does strace give any clues? Daniël

Re: [fpc-pascal] Linux serial interface

2006-12-26 Thread Rainer Stratmann
Am Dienstag, 26. Dezember 2006 14:07 schrieb Michael Van Canneyt: > On Tue, 26 Dec 2006, Rainer Stratmann wrote: > > How to open correct the serial interface ('/dev/ttyS0') > > As far as I know, this is a terminal, so the terminal emulator will mess up > the IO. You should open the raw device. Isn

Re: [fpc-pascal] Linux serial interface

2006-12-26 Thread Michael Van Canneyt
On Tue, 26 Dec 2006, Rainer Stratmann wrote: > How to open correct the serial interface ('/dev/ttyS0') As far as I know, this is a terminal, so the terminal emulator will mess up the IO. You should open the raw device. > In my program it works for writing, but reading is not possible at the mo