Thanks MacArthur, Ian (SELEX GALILEO, UK), the serial code seems to work ok.
> Now we will see what Matthias says. Thanks anyway.
> >
> > > int res;
> > > const unsigned char artst[4]=3D{1,2,3,4};
> > >=20
> > > { Flio_Serial_Port* o =3D new Flio_Serial_Port(30,440,70,120);
> > > res =3D o-> open("COM1", 19200);
> > > printf ("\n\n\n COM1 =3D %d",res); //returns 0 so ok
> > > printf ("\nDisp: %s",dispchar);
> > > res =3D o-> write(artst,sizeof(artst));
> > > printf ("\n\n\n COM1 =3D %d",res); //returns -1
> > > }
> > >=20
> > > I am doing something wrong when i am using the 'write'=20
> > > command. Please help.
> >
> > Don't know.
> > Looks OK but I'm not sure what Matthias' code does "behind the scenes".
> > I'd try sending some "ASCII safe" values to see if that was any better -
> > any byte value less than 0x20 *might* be getting interpreted as a
> > control character somewhere along the way...
> >
> >
> >
> >
> > SELEX Sensors and Airborne Systems Limited
> > Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex=
> > SS14 3EL
> > A company registered in England & Wales. Company no. 02426132
> > ********************************************************************
> > This email and any attachments are confidential to the intended
> > recipient and may also be privileged. If you are not the intended
> > recipient please delete it from your system and notify the sender.
> > You should not copy it or use it for any purpose nor disclose or
> > distribute its contents to any other person.
> > ********************************************************************
> >
>
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev