[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: com change parameters
From: Malte Starostik <malte () kde ! org>
Date: 2002-07-29 18:10:41
[Download RAW message or body]
On Monday 29 July 2002 19:54, Lukas Obletter wrote:
> Hi,
> I don't know what I did wrong:
> The comport always use the default parameters.
> Why doesn't my program communicate with 2400bps?
> What did I wrong?
>
> program:
>
> #include "ezV24/ezV24.h"
#include <ezV24/ezV24.h>
> #include "iostream"
#include <iostream>
> #include "string"
#include <string>
> #include "stdio.h"
#include <stdio.h>
(gcc might find those files with quotes ("") instead of angle brackets (<>),
other compilers might fail. "" is for "local" files in the current directory,
<> for "global" files in one of the include paths.
> void main(void)
> {
>
> int i_temp1;
> v24_port_t *comport1=NULL;
>
> comport1=v24OpenPort("/dev/ttyS0",V24_DEBUG_ON);
> i_temp1=v24SetParameters(comport1,2400,7,0); /*there always Error 2 and
> parameters aren't changed.*/
> printf("\nfaul suzedu:%i\n",i_temp1);
> v24SetStopbits(comport1,2);
> v24Puts(comport1,"ciau co vala");
> v24ClosePort(comport1);
>
> }
There's a bug in line 42 of ezV24.h.
Seriously, you should ask this kind of question on some mailing list related
to ezV24, not kde-devel.
-Malte
[Attachment #3 (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic