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

arty
Posts: 5
Joined: Mon Feb 01, 2021 10:57 am
Has thanked: 5 times

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

Unread post 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 3988 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?
ToothbrushThreepwood
Posts: 89
Joined: Sun May 24, 2020 8:39 pm
Has thanked: 30 times
Been thanked: 32 times

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

Unread post 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
User avatar
kathleen
Top Contributor
Posts: 409
Joined: Fri Jun 26, 2020 4:23 am
Location: Belgium
Has thanked: 224 times
Been thanked: 131 times

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

Unread post by kathleen »

It seems that such a cable/adapter exists : https://www.crestron.com/Products/Inter ... -RS232KM-6

かすりん

bbond007
Top Contributor
Posts: 519
Joined: Tue May 26, 2020 5:06 am
Has thanked: 85 times
Been thanked: 198 times

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

Unread post 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.....
arty
Posts: 5
Joined: Mon Feb 01, 2021 10:57 am
Has thanked: 5 times

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

Unread post 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.
ToothbrushThreepwood
Posts: 89
Joined: Sun May 24, 2020 8:39 pm
Has thanked: 30 times
Been thanked: 32 times

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

Unread post 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.
User avatar
emmadness
Posts: 29
Joined: Sun May 24, 2020 6:48 pm
Location: Argentina
Been thanked: 1 time
Contact:

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

Unread post 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.
User avatar
kathleen
Top Contributor
Posts: 409
Joined: Fri Jun 26, 2020 4:23 am
Location: Belgium
Has thanked: 224 times
Been thanked: 131 times

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

Unread post 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/

かすりん

User avatar
emmadness
Posts: 29
Joined: Sun May 24, 2020 6:48 pm
Location: Argentina
Been thanked: 1 time
Contact:

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

Unread post 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.
User avatar
kathleen
Top Contributor
Posts: 409
Joined: Fri Jun 26, 2020 4:23 am
Location: Belgium
Has thanked: 224 times
Been thanked: 131 times

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

Unread post 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.

かすりん

DrLilo
Posts: 1
Joined: Sun May 24, 2020 10:54 pm

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

Unread post 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.

Post Reply