On 03/01/2008, Michael Müller <[EMAIL PROTECTED]> wrote:
>
> Why not adding an overloaded SerWrite() that simply expects a string?
Funny you mention that. I was actually thinking the same thing -
adding a helper method which takes a string parameter and auto adds
the CR (#13) character to the end
Am 02.01.2008 um 15:39 schrieb Bernd Mueller:
Graeme Geldenhuys wrote:
SerWrite(serialhandle, s, Length(s));
SerWrite(serialhandle, s[1], Length(s));
Why not adding an overloaded SerWrite() that simply expects a string?
procedure SerWrite(handle, string);
begin
SerWrite(handle, strin
Graeme Geldenhuys wrote:
Uh, it works!!! Thanks a million Bernd. If you ever come to South
Africa, look me up, I owe you a beer. :)
thanks four your invitation, unfortunately I am not living around the
corner (Germany). So don't expect me in the next couple of days ;-))
Regards, Bernd.
On 02/01/2008, Marco van de Voort <[EMAIL PROTECTED]> wrote:
>
> I'm waiting till I have a serial device to test. (must have a cable soldered
> at work first)
I had to search for my cable and Courier modem in the attic! :) [I
still remember paying a small fortune for the damn modem - years ago]
On 02/01/2008, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
> >
> > SerWrite(serialhandle, s[1], Length(s));
>
> Duh ! We all should have spotted that one !! :(
Tell me about it!!
Thanks again to everybody that tried to help. I have a few extra grey
hairs, but I'll live. ;-)
Regards,
- Gr
On 02/01/2008, Bernd Mueller <[EMAIL PROTECTED]> wrote:
> Graeme Geldenhuys wrote:
>
> > SerWrite(serialhandle, s, Length(s));
>
> SerWrite(serialhandle, s[1], Length(s));
Uh, it works!!! Thanks a million Bernd. If you ever come to South
Africa, look me up, I owe you a beer. :)
Regards,
On Wed, 2 Jan 2008, Bernd Mueller wrote:
> Graeme Geldenhuys wrote:
>
> > SerWrite(serialhandle, s, Length(s));
>
> SerWrite(serialhandle, s[1], Length(s));
Duh ! We all should have spotted that one !! :(
Michael.
___
fpc-pascal maillist - fpc-
On 02/01/2008, John Coppens <[EMAIL PROTECTED]> wrote:
>
> I seem to recall (vaguely) that modem comms were (by default) Even
> parity, and 7 bits. Can't recall default speed though. Could that be the
> reason?
>From my days of running a BBS, before the Internet, it was 99% of the
time 8N1. When
Graeme Geldenhuys wrote:
SerWrite(serialhandle, s, Length(s));
SerWrite(serialhandle, s[1], Length(s));
Regards, Bernd.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> On 02/01/2008, Frank McCormick <[EMAIL PROTECTED]> wrote:
> >
> >What are the permissions on /dev/ttyS0 ? Have you tried running it
> > as root ?
>
> The first thing I checked! The user is part of the 'dialout' group
> which has access to the modem. 'minicom' was a test of this and works.
>
On Wed, 2 Jan 2008 16:15:33 +0200
"Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote:
> > SerSetParams(serialhandle, 2400, 8, NoneParity, 1,
> > [RtsCtsFlowControl]);
Hi...
I seem to recall (vaguely) that modem comms were (by default) Even
parity, and 7 bits. Can't recall default speed though. Could
On 02/01/2008, Frank McCormick <[EMAIL PROTECTED]> wrote:
>
>What are the permissions on /dev/ttyS0 ? Have you tried running it
> as root ?
The first thing I checked! The user is part of the 'dialout' group
which has access to the modem. 'minicom' was a test of this and works.
I also ran my
On 02/01/2008, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
>
> Yes, but it should be
>
> SerSetParams(serialhandle, 2400, 8, NoneParity, 1, [RtsCtsFlowControl]);
>
> No ?
I have no idea! :-)
OK, I changed the code to the following... I it should do, is take
the modem off the hook... nothing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Wed, 02 Jan 2008 15:49:47 +0200
Graeme Geldenhuys <[EMAIL PROTECTED]> wrote:
> On 02/01/2008, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
> > > begin
> > > serialhandle := SerOpen('/dev/ttyS0'); // COM1 under Linux
> > > // SerSetParams(seri
On Wed, 2 Jan 2008, Graeme Geldenhuys wrote:
> On 02/01/2008, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
> > > begin
> > > serialhandle := SerOpen('/dev/ttyS0'); // COM1 under Linux
> > > // SerSetParams(serialhandle, 2400, 8, NoneParity, 1, []);
> >
> > Shouldn't you set at least RtsCts
On 02/01/2008, Michael Van Canneyt <[EMAIL PROTECTED]> 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
On Wed, 2 Jan 2008, Graeme Geldenhuys wrote:
> Hi,
>
> I've created a simple console application for Linux and Windows. It's
> a port of older Win32 API code I wrote years ago. All I'm trying to
> do is dial a phone number and then later hang-up the phone.
>
> I've got a external USRobotics C
Hi,
I've created a simple console application for Linux and Windows. It's
a port of older Win32 API code I wrote years ago. All I'm trying to
do is dial a phone number and then later hang-up the phone.
I've got a external USRobotics Courier V.Everything V.90 X2 connected
to COM1 (/dev/ttyS0). T
18 matches
Mail list logo