Sujet : Re: kForth serial port interface update
De : krishna.myneni (at) *nospam* ccreweb.org (Krishna Myneni)
Groupes : comp.lang.forthDate : 04. Nov 2024, 13:26:17
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vgaeh9$ueq8$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
On 11/1/24 09:18, Krishna Myneni wrote:
The RS232 serial port interface for kForth (-32/64 for Linux) has been updated to be able to provide user access to the modem bits e.g. DSR, CTS etc.
https://github.com/mynenik/kForth-64/blob/master/forth-src/serial.4th
...
serial.4th has been updated to open USB -> RS232 devices also. These have device names /dev/ttyUSB0 /dev/ttyUSB1 etc. The predefined port constants USBCOM1 and USBCOM2 map to these dev interfaces. A word of caution -- if you have more than one USB->RS232 adapters, they may not map to the same /dev/ttyUSBx interface each time the system is booted.
Also, please make sure to add the user to the dialout group in order to have permissions for read/write access to both the UART and USB serial interfaces (/dev/ttySx and /dev/ttyUSBx).
-- Krishna Myneni