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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: file descriptor of a serial port Date: Mon, 20 Aug 2018 18:36:24 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <8e67da71-4f34-497e-9593-d2409c6ba7e0@googlegroups.com> NNTP-Posting-Host: IzvqdhUtDGKIMCldyDtZ+w.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 X-Notice: Filtered by postfilter v. 0.8.3 Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:54192 Date: 2018-08-20T18:36:24+02:00 List-Id: On 2018-08-20 16:33, jan.de.kruyf@gmail.com wrote: > On Monday, August 20, 2018 at 4:21:20 PM UTC+2, J-P. Rosen wrote: >> Le 20/08/2018 à 15:56, jan.....com a écrit : >>> 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. >> >> -- >> 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 the GNAT implementation. Maybe the settings you are using are incorrect or the way you are reading from the port. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de