From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a24:d205:: with SMTP id z5-v6mr20905369itf.35.1534835368903; Tue, 21 Aug 2018 00:09:28 -0700 (PDT) X-Received: by 2002:aca:d551:: with SMTP id m78-v6mr36986oig.1.1534835368720; Tue, 21 Aug 2018 00:09:28 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!feeder4.usenet.farm!feed.usenet.farm!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!w19-v6no488427itb.0!news-out.google.com!g5-v6ni665iti.0!nntp.google.com!g24-v6no493186iti.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 21 Aug 2018 00:09:28 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=165.255.63.4; posting-account=orbgeAkAAADzWCTlruxuX_Ts4lIq8C5J NNTP-Posting-Host: 165.255.63.4 References: <8e67da71-4f34-497e-9593-d2409c6ba7e0@googlegroups.com> <924e2695-87a2-46e3-ad3c-637cc0d6d31f@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: file descriptor of a serial port From: jan.de.kruyf@gmail.com Injection-Date: Tue, 21 Aug 2018 07:09:28 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:54203 Date: 2018-08-21T00:09:28-07:00 List-Id: On Monday, August 20, 2018 at 9:26:57 PM UTC+2, Dmitry A. Kazakov wrote: > On 2018-08-20 21:10, jan.....com wrote: > > On Monday, August 20, 2018 at 6:36:31 PM UTC+2, Dmitry A. Kazakov wrote= : > >> On 2018-08-20 16:33, jan......com wrote: > >>> On Monday, August 20, 2018 at 4:21:20 PM UTC+2, J-P. Rosen wrote: > >>>> Le 20/08/2018 =C3=A0 15:56, jan.....com a =C3=A9crit : > >>>>> Hallo, > >>>>> > >>>>> I try to set up a custom baudrate on a serial port, which I believe > >>>>> is done with the C ioctl procedure. > >>>>> > >>>> GNAT.Serial_Communications has a Set procedure to set various > >>>> parameters, including baud rate. No need to play with the low level. > >>>> > >>>> --=20 > >>>> J-P. Rosen > >>>> Adalog > >>>> 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX > >>>> Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 > >>>> http://www.adalog.fr > >>> > >>> Pity, does not work. > >> > >> How do you know it does not? The call goes right to the OS, at least > >> under Windows. There is little one could do wrong or differently to th= e > >> GNAT implementation. > >> > >> Maybe the settings you are using are incorrect or the way you are > >> reading from the port. >=20 > E.g. depending on the settings and how poorly the other party was=20 > designed, which quite frequently quite poorly, you must be always=20 > reading the next byte from the COM port in order to prevent deadlock.=20 > Sometimes you have to read out all garbage before sending anything to=20 > the other side etc. >=20 > --=20 > Regards, > Dmitry A. Kazakov > http://www.dmitry-kazakov.de Dmitry good morning to you, I think you still misunderstand the requirement. I need a very non-standard= baud-rate which Gnat does not cater for, most likely because Linux can onl= y be persuaded by a big roundabout to have a non-standard baud rate on a po= rt. So I was hoping to test the big roundabout to see if it will work with the = FTDI driver in Linux. If not I will have to write a complete new serial por= t driver based on the proprietary FDTI driver from the chip manufacturers. Cheers, j.