PS/2 to Microsoft Serialmouse Adapter Converter / Updated First Post / Firmware Update added

Discussion about old PC hardware.

Re: PS/2 to Microsoft Serialmouse Adapter Converter / Updated First Post / Firmware Update added

Postby matze79 » 2019-6-10 @ 11:58

Not currently, i already have a new version.. but no time :/
https://dosreloaded.de - The German Retro DOS PC Community
https://www.retroianer.de
matze79
Oldbie
 
Posts: 1508
Joined: 2014-12-12 @ 14:25
Location: Germany, Frankonia

Re: PS/2 to Microsoft Serialmouse Adapter Converter / Updated First Post / Firmware Update added

Postby Rio444 » 2019-6-10 @ 14:35

Dear matze79,
Let me give you some tips on the hardware and software of the converter, based on my personal experience. They will significantly improve compatibility with PS/2 mice.
First, I would recommend adding a controller pairing circuit with a mouse.
Image
It will be better to disconnect the internal pull-up resistors. They are too large. And you need to connect external, resistances of about 2k.
Also, to reduce noise, I recommend to put filter capacitors with a capacity of 150-470pF. I usually put 220pF.
Ferrite beads are optional, but desirable. They significantly reduce high-frequency noise and prevent self-excitation.

Secondly, there are small software tricks when interacting with the PS/2 mouse. When reading data from the mouse, when the Clock signal drops, it is necessary not to immediately read the Data signal, but to make a pause of 3-5 μS.
After turning on the power, do not start immediately initialize the mouse. Wait for about 1 second to make it work.
Thanks to the use of these actions, I don't have a single mouse that don't work. There are eight of them including modern USB mice through the adapter.
User avatar
Rio444
Member
 
Posts: 109
Joined: 2017-7-15 @ 07:17
Location: Russia, Rostov-on-Don

Re: PS/2 to Microsoft Serialmouse Adapter Converter / Updated First Post / Firmware Update added

Postby feipoa » 2019-6-10 @ 16:07

Rio444, do you have any tips for making 1200 baud work without lag thru a KVM using the serial-to-PS/2 conversion scheme?
User avatar
feipoa
l33t++
 
Posts: 6411
Joined: 2011-3-07 @ 13:54
Location: Canada

Re: PS/2 to Microsoft Serialmouse Adapter Converter / Updated First Post / Firmware Update added

Postby Rio444 » 2019-6-11 @ 09:23

feipoa wrote:Rio444, do you have any tips for making 1200 baud work without lag thru a KVM using the serial-to-PS/2 conversion scheme?

Unfortunately this is not possible.
At 1200 baud, always there will be delay and conversion errors. After all, in addition to the lower speed RS232, the data for each interface is not synchronized.
But there is good news.
A chain of Mouse -> Converter -> KVM -> Driver -> Application program is involved in the process. Each element of this chain introduces its delay. You will probably be surprised, but different PS/2 mice introduce a different delay. It can be almost invisible when the mouse connected to a real PS/2 interface. But, adding to others in the chain described above, already has an effect. The same applies to the driver and application program that uses the mouse. In my experience, the “slowest” program turned out to be the DOS game “Lines” (or “Balls”). Thus, the selection of the mouse and driver can give some effect.
Another news that you may be happy about is that for my serial to PS/2 converter I used a very advanced data decoding algorithm. Two buffers are used: for the X coordinate and Y coordinate, as is usually done. But the calculation of transmitted data to the serial port is made immediately before the transfer of each byte and not before transferring the whole packet of 3 bytes, as is usually done. This allows us to get time. It's most significantly for the 3rd byte which transmittes Y coordinate. When I finish with the ISA adapter, I could try to adapt my firmware for the matze79 converter.
User avatar
Rio444
Member
 
Posts: 109
Joined: 2017-7-15 @ 07:17
Location: Russia, Rostov-on-Don

Re: PS/2 to Microsoft Serialmouse Adapter Converter / Updated First Post / Firmware Update added

Postby feipoa » 2019-6-12 @ 02:11

I tried a few PS/2 mice with the matze79 converter + KVM, but there is still too much lag when the KVM is used. There is no noticable lag without the KVM.

I would be happy to test a prototype of your own design or an altered firmware for the matze79 adapter. I still have my Arduino setup as shown on the previous page of this thread.
User avatar
feipoa
l33t++
 
Posts: 6411
Joined: 2011-3-07 @ 13:54
Location: Canada

Re: PS/2 to Microsoft Serialmouse Adapter Converter / Updated First Post / Firmware Update added

Postby matze79 » 2019-7-09 @ 06:40

As i already wrote i have best experience with Logitech SBF96 Mouse.

It would be much easier to hack a driver for 9x which supports higher baudrates.

i will try the recommendations.
i run my adapter of first gen now since 2015 and it runs reliable.
Had no problems at all, except for kvm which is now solved (at least in msdos) for me.
Thanks to 19200 Baud Hack.
Also got it working in ReactOS now.
When i find some time i will try it on NT4/2k/XP.
https://dosreloaded.de - The German Retro DOS PC Community
https://www.retroianer.de
matze79
Oldbie
 
Posts: 1508
Joined: 2014-12-12 @ 14:25
Location: Germany, Frankonia

Re: PS/2 to Microsoft Serialmouse Adapter Converter / Updated First Post / Firmware Update added

Postby tabm0de » 2019-8-16 @ 19:49

matze79 wrote:Logitech C7 has arrived.

So we can now investigate 9k6 Baudmode


If intressing:
http://www.bitsavers.org/pdf/logitech/Logitech_Logimouse_C7_Firmware_Rev_3.0_Jan86.pdf

there are settings for "jumpers" well jumper does not exist so you have to brake and soldier points ;)

Jumpers 0, 1 and 2 specify the format and mode at power-up as follows:
1 1 1 Microsoft compatible protocol, Incremental Stream

Jumpers 3 and 4 specify the baud rate at power-up.
Baud Rate
1200 baud
2400 baud
4800 baud*
9600 baud

i did make my ms compatible but still didnt work in windows ;) only dos with ms mouse.com/exe
naa, nothing yet...
User avatar
tabm0de
Member
 
Posts: 225
Joined: 2016-12-18 @ 19:33
Location: Stockholm, Sweden

Re: PS/2 to Microsoft Serialmouse Adapter Converter / Updated First Post / Firmware Update added

Postby Overlord_Manny » 2019-9-11 @ 22:38

I actually stumbled across a page referencing the github and didn't realize Matze79 was making these to sell. I built my own board, but having issues with device's response when the RTS goes high when using the 1.0 firmware. Using protocol.com it looks like mouse clicks and movement are detected fine but cutemouse doesn't like the mouse ID response so it won't load. The 1.1 firmware detects my all of my mice (Green Light on) but does not detect movement or mouse clicks (No red light flicker). All I have are Logitech PS/2 mice to test with unfortunately.

Here's what my O-Scopes says using firmware 1.0

PS2-Serial.jpg


2 is receive (to the PC)
1 is transmit (from the PC)
0 is RTS (From the PC)

Matze79 when you have some more of these to sell can you put me on your list?

Edit: I figured out my issue. The original Hack-a-day post I had found said a 90s2313 was used, so that's what I used. I programmed up an attiny2313v with firmware 1.1 and set the configuration bits and all is working well now.
Last edited by Overlord_Manny on 2019-9-17 @ 16:21, edited 1 time in total.
Overlord_Manny
Newbie
 
Posts: 17
Joined: 2019-8-20 @ 14:48

Re: PS/2 to Microsoft Serialmouse Adapter Converter / Updated First Post / Firmware Update added

Postby matze79 » 2019-9-17 @ 16:20

Do you set right fuse bits ?

i currently have nothing to sell :/ simply had no time for it.
i was talking with dreamblaster some time ago if he wants to add this to his store as solder kits maybe but it still did not happen :)
https://dosreloaded.de - The German Retro DOS PC Community
https://www.retroianer.de
matze79
Oldbie
 
Posts: 1508
Joined: 2014-12-12 @ 14:25
Location: Germany, Frankonia

Re: PS/2 to Microsoft Serialmouse Adapter Converter / Updated First Post / Firmware Update added

Postby Overlord_Manny » 2019-9-17 @ 16:25

I got it going. I just edited my post. I think I'm going to rebuild my board to use the 5v line from the keyboard since I'm wanting to convert from 5pin din to 6pin mini-din anyway and I can do it all on one board. Thanks for this project. I'm inspired to make something myself now.
Overlord_Manny
Newbie
 
Posts: 17
Joined: 2019-8-20 @ 14:48

Previous

Return to General Old Hardware

Who is online

Users browsing this forum: Google [Bot] and 22 guests