Re: [hatari-devel] Deadlock while closing serial port |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Deadlock while closing serial port
- From: Christian Zietz <czietz@xxxxxxx>
- Date: Sat, 30 Apr 2022 11:45:59 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1651311960; bh=weZTUJMiIOEbiDWzj/nwUic6fzu5fXndjC6/aP1YjiM=; h=X-UI-Sender-Class:Date:To:References:From:Subject:In-Reply-To; b=cKwAsxu+jQEsKuARqGFiuhuXvhYRtI+n46pvgedO2WCXoN44HPR7JvHXrRLtW3rwL oxCt5sY9vX9CyaPTjw2jeWflkWX2uSv42jTpFgimDO5oFYOpQA13A160nQXQAFs+dL B5ZU9V7M+4HsmaphwaSEqL0XrBwWR9Ix9wsXVc3w=
Thomas Huth schrieb:
(I'm not sure whether the RS232 stuff works on Windows at all anymore,
so that maybe wouldn't be a big loss anyway).
It is indeed almost non-functional under Windows when used with actual
serial ports. Apparently (but I did not investigate further) you seem to
open the port exclusively; and thus the same port cannot be used as
input and output. For example...
hatari.exe --rs232-in com4 --rs232-out com4
.... leads to "Failed to open input file [...] RS232 input or output file
open failed. RS232 support disabled."
Also, the functions to set bit rate, number of data bits, etc. rely on
functions from termios.h, which do not exist under Windows. Hence, the
Atari side cannot control the serial port parameters.
The only thing I have used Hatari's serial port support for under
Windows is logging debug output from a program that puts it on the
serial port, like so:
hatari.exe --rs232-in nul --rs232-out log.txt
Otherwise, if someone requires serial port support under Windows, sadly
the best suggestion I can give is to use Steem.
Regards
Christian
--
Christian Zietz - CHZ-Soft - czietz@xxxxxxx
WWW: https://www.chzsoft.de/
PGP/GnuPG-Key-ID: 0x52CB97F66DA025CA / 0x6DA025CA