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] USB serial interface

2006-12-26 Thread Marco van de Voort
> Am Dienstag, 26. Dezember 2006 18:57 schrieb Marco van de Voort: > > > The best USB-serial Interfaces for Linux are the ones with FTDI Chip > > > inside. http://www.ftdichip.com/ > > > http://www.ftdichip.com/Products/EvaluationKits/USB-Serial.htm > > > > Do they have the same latency as a normal

Re: [fpc-pascal] USB serial interface

2006-12-26 Thread Andreas Berger
We tried USB converters with prolific chipset and it hangs up then, so FTDI chips would be better. I read also somewhere a lack of latency. May be it is also a question of the Kerneldriver and the driver will improve more in the future. I have two Prolific 2303 serial converters without p

[fpc-pascal] How to choose a free software license (was LGPL vs MPL)

2006-12-26 Thread Graeme Geldenhuys
Hi, I finally found a website that describes the licenses in plain English which is easy to understand. I always struggle to understand the different licenses and how to decide on a license for my software I develop. Hope others will find the link useful. http://www.dina.kvl.dk/~abraham/rants/

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] USB serial interface

2006-12-26 Thread John Coppens
On Tue, 26 Dec 2006 20:23:56 +0100 Rainer Stratmann <[EMAIL PROTECTED]> wrote: > We tried USB converters with prolific chipset and it hangs up then, so > FTDI chips would be better. I read also somewhere a lack of latency. > May be it is also a question of the Kerneldriver and the driver will > im

Re: [fpc-pascal] USB serial interface

2006-12-26 Thread Rainer Stratmann
Am Dienstag, 26. Dezember 2006 18:57 schrieb Marco van de Voort: > > The best USB-serial Interfaces for Linux are the ones with FTDI Chip > > inside. http://www.ftdichip.com/ > > http://www.ftdichip.com/Products/EvaluationKits/USB-Serial.htm > > Do they have the same latency as a normal serial port

Re: [fpc-pascal] USB serial interface

2006-12-26 Thread Marco van de Voort
> The best USB-serial Interfaces for Linux are the ones with FTDI Chip inside. > http://www.ftdichip.com/ > http://www.ftdichip.com/Products/EvaluationKits/USB-Serial.htm Do they have the same latency as a normal serial port? I've tried several usb-serial ports, and they all have horrible latencie

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

[fpc-pascal] USB serial interface

2006-12-26 Thread Rainer Stratmann
The best USB-serial Interfaces for Linux are the ones with FTDI Chip inside. http://www.ftdichip.com/ http://www.ftdichip.com/Products/EvaluationKits/USB-Serial.htm Rainer ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal

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

[fpc-pascal] Linux serial interface

2006-12-26 Thread 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? Rainer With USB-to serial Converter the program works (!), but not with the standard 9P serial connector on the mainboard (te