fs-uae icon indicating copy to clipboard operation
fs-uae copied to clipboard

uaeser_setparams is not implemented

Open thomas-touhey opened this issue 6 months ago • 0 comments

Context

Cahute is a C library and set of command-line utilities to communicate with CASIO calculators over serial and USB. For the former, there exists specific USB-serial cables, that present themselves as /dev/ttyUSB[0-9] devices on Linux.

In order to test the port of Cahute for AmigaOS 3.x, I used FS-UAE with the serial_option option set to /dev/ttyUSB0, and my command-line utilities are attempting to communicate with the calculator using Protocol 7.00, for which the communication settings need to be set to 9600N2 (9600 bauds, none parity, 2 stop bits).

Issue

If I plug in the USB serial device then run FS-UAE, the command-line utilities won't connect. This is because when setting the serial params using SDCMD_SETPARAMS on the serial device, the underlying function, uaeser_setparams, fails silently (as a stub).

Workaround

Currently, in order to test my command-line utilities with FS-UAE, I need to set the serial parameters on the host first, then use FS-UAE to read and write to the device, which works.

Expected

I should be able to do this with my utilities within FS-UAE entirely.

See cahute#26 for more information, if need be.

thomas-touhey avatar Jun 13 '25 08:06 thomas-touhey