[fpc-pascal] serial.pp - I can't talk to modem
Frank McCormick
fmccormick at videotron.ca
Wed Jan 2 15:08:33 CET 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, 02 Jan 2008 15:49:47 +0200
Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:
> On 02/01/2008, Michael Van Canneyt <michael at freepascal.org> wrote:
> > > begin
> > > serialhandle := SerOpen('/dev/ttyS0'); // COM1 under Linux
> > > // SerSetParams(serialhandle, 2400, 8, NoneParity, 1, []);
> >
> > Shouldn't you set at least RtsCtsFlowControl ?
> > As far as I know, you must at least set some options, such as the
> > baud rate and so on, sersetparams seems to do most of the needed
> > actions ?
>
>
> Even if I uncomment the 'SerSetParams(...)' line shown above, it makes
> no difference. :-(
What are the permissions on /dev/ttyS0 ? Have you tried running it
as root ?
- --
Cheers
Frank
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFHe5rkzWG7ldLG6fIRAop1AJ9LpSzKnUTbs7remMdw2Onum9RTmgCgkc/q
uikrl+oEokCZMRQzMNezWpM=
=EcYK
-----END PGP SIGNATURE-----
More information about the fpc-pascal
mailing list