Page 1 of 1

RS-232 (9 pin) serial mouse connection to MiSTer running ao486

Posted: Mon Feb 01, 2021 11:03 am
by arty
Hi!
I'm going to buy the Mitsumi mouse - exactly the same model I had back in 1997 on my first PC.

It has COM (Serial rs-232) 9pin port connection:

412YMPfBBoL._AC_SX466_.jpg
412YMPfBBoL._AC_SX466_.jpg (10.38 KiB) Viewed 4184 times

I wonder if there's a way to connect it to MiSTer (possibly via RS232 to USB converter)? Is there any risk of damaging the board?
Will it work at all with ao486 core like the "regular" USB mouse does?

Re: RS-232 (9 pin) serial mouse connection to MiSTer running ao486

Posted: Mon Feb 01, 2021 11:46 am
by ToothbrushThreepwood
I think with a proper converter to USB it should work like any other USB HID. The de10-nano is a finicky USB host though, so maybe it won’t.

I’ve been wondering if it would be possible to use the UART-interface for inputting serial mouse input to the ao486 core (similar to midilink and modem)? There’s a program to use a pi (or maybe the ARM on the de10-nano, with a few modifications) to convert usb mouse input to serial mouse output. Could be cool for two-player mode in settlers 1/2: https://github.com/mborjesson/USB-Mouse-to-Serial

Re: RS-232 (9 pin) serial mouse connection to MiSTer running ao486

Posted: Mon Feb 01, 2021 11:48 am
by kathleen
It seems that such a cable/adapter exists : https://www.crestron.com/Products/Inter ... -RS232KM-6

Re: RS-232 (9 pin) serial mouse connection to MiSTer running ao486

Posted: Tue Feb 02, 2021 12:40 am
by bbond007
This is possible with the reorganized UART OSD and new version of MidiLink I'm working on --> viewtopic.php?p=17394#p17394

You would set UART:USBSER

I think serial mice operate at 9600 so you'd want to add:

Code: Select all

[AO486]
USBSER_BAUD = 9600
in '/media/fat/linux/MidiLink.INI'

support for the FT232 is built into the Kernel so I would suggest one with that chipset.

This is the one I just got. --> https://www.ebay.com/itm/5Ft-USB-2-0-to ... 3104025639

Please let me how it works.
I can't find a PS/2 to serial adapter otherwise I'd try it here... I probably like like 5 of them....... somewhere.....

Re: RS-232 (9 pin) serial mouse connection to MiSTer running ao486

Posted: Wed Feb 03, 2021 11:07 am
by arty
Thanks to all of you for so much valuable feedback!
I'll check the suggested scheme to see how it works and follow up with the results.

Re: RS-232 (9 pin) serial mouse connection to MiSTer running ao486

Posted: Thu Feb 11, 2021 1:20 pm
by ToothbrushThreepwood
bbond007 wrote: Tue Feb 02, 2021 12:40 am This is possible with the reorganized UART OSD and new version of MidiLink I'm working on --> https://misterfpga.org/viewtopic.php?p=17394#p17394

You would set UART:USBSER

I think serial mice operate at 9600 so you'd want to add:

Code: Select all

[AO486]
USBSER_BAUD = 9600
in '/media/fat/linux/MidiLink.INI'

support for the FT232 is built into the Kernel so I would suggest one with that chipset.

This is the one I just got. --> https://www.ebay.com/itm/5Ft-USB-2-0-to ... 3104025639

Please let me how it works.
I can't find a PS/2 to serial adapter otherwise I'd try it here... I probably like like 5 of them....... somewhere.....
Wow! Impressive work! I can’t wait to try this out (I’ll have to dig through my parents’ basement and see if I can’t find an old serial mouse).
This should work with the usb-to-serial-to-usb pi program as well, right? I’ll have to try that out.

Re: RS-232 (9 pin) serial mouse connection to MiSTer running ao486

Posted: Wed Jun 15, 2022 5:48 pm
by emmadness
Sorry for the off, but I ask: is it possible that this adapter:

https://www.aliexpress.com/item/4000680055332.html

work in MiSTer? I am looking for a joystick like the Sega Genesis or Famicom clones to work on the system and allow me to map the buttons on each core.

I know there are options like SNAC or DIY something with Arduino, but I just have to make an Ali purchase at a store that has that adapter and if it's useful, I'll buy it.

Re: RS-232 (9 pin) serial mouse connection to MiSTer running ao486

Posted: Wed Jun 15, 2022 6:16 pm
by kathleen
emmadness wrote: Wed Jun 15, 2022 5:48 pm Sorry for the off, but I ask: is it possible that this adapter:

https://www.aliexpress.com/item/4000680055332.html

work in MiSTer? I am looking for a joystick like the Sega Genesis or Famicom clones to work on the system and allow me to map the buttons on each core.

I know there are options like SNAC or DIY something with Arduino, but I just have to make an Ali purchase at a store that has that adapter and if it's useful, I'll buy it.
This is an adaptor USB -> RS232, so not for Joystick. Why not buying directly an USB SNES/Genesic pad clone, I've one on my Mister and it works fine.

https://fr.aliexpress.com/item/32987224556.html

The other option (maybe because I know it works on PC but never tested on Mister) is this adaptor : https://www.tindie.com/products/retroni ... k-adapter/

Re: RS-232 (9 pin) serial mouse connection to MiSTer running ao486

Posted: Wed Jun 15, 2022 6:49 pm
by emmadness
Thanks for your prompt response, but I prefer to take advantage of the old clone joysticks from the late 80's and 90's which are much better quality than modern usb joysticks.

Re: RS-232 (9 pin) serial mouse connection to MiSTer running ao486

Posted: Thu Jun 16, 2022 4:57 am
by kathleen
emmadness wrote: Wed Jun 15, 2022 6:49 pm Thanks for your prompt response, but I prefer to take advantage of the old clone joysticks from the late 80's and 90's which are much better quality than modern usb joysticks.
I agree with you, so to me the only way to avoid latency is to use the SNAC adaptor with original joysticks (which is also my preferable option even if I often use the clones by ease on PC or other FPGA's) , because I'm not sure that the converter that I proposed you (DB9 -> USB from Tindle) has the same behaviour in terms of latency.

Re: RS-232 (9 pin) serial mouse connection to MiSTer running ao486

Posted: Thu Mar 30, 2023 11:37 pm
by DrLilo

Looking forward to trying this. I have a CRT with a touch screen that connects through serial, my suspicion is it's probably treated as a serial mouse... Be cool to try it this way.