DIY SERIAL MOUSE

Nagging hardware related question? Post here!
tcat
Super Gold Card
Posts: 633
Joined: Fri Jan 18, 2013 5:27 pm
Location: Prague, Czech Republic

DIY SERIAL MOUSE

Post by tcat »

Hi all,

I bought an old serial mouse in a sale, and I wish to connect it to SER1 port.
I use SER2 for Linux connection.

This is a short quote from Simon Goodwin's DIY TOOLKIT mouse document describing proper connection assuming SER2 is used as mouse port.

"Only four connections are needed. This explanation has been updated since my QL World article, and assumes you're wiring a six-pin QL plug for SER2 in place of a nine-pin D-type supplied with the PC mouse. Join QL pin 6, the power connection, to pin 7 on the D-type. QL pins 4 and 5 are unused. Link QL pin 3 to mouse pin 2. QL pin 2 goes to mouse pin 3, and QL pin 1 makes the ground connection to mouse pin 5."

Can anyone advise about serial mouse pin wiring for SER1?
Many thanks in advance

TCAT


User avatar
dilwyn
Mr QL
Posts: 2761
Joined: Wed Dec 01, 2010 10:39 pm

Re: DIY SERIAL MOUSE

Post by dilwyn »

tcat wrote:Hi all,

I bought an old serial mouse in a sale, and I wish to connect it to SER1 port.
I use SER2 for Linux connection.

This is a short quote from Simon Goodwin's DIY TOOLKIT mouse document describing proper connection assuming SER2 is used as mouse port.

"Only four connections are needed. This explanation has been updated since my QL World article, and assumes you're wiring a six-pin QL plug for SER2 in place of a nine-pin D-type supplied with the PC mouse. Join QL pin 6, the power connection, to pin 7 on the D-type. QL pins 4 and 5 are unused. Link QL pin 3 to mouse pin 2. QL pin 2 goes to mouse pin 3, and QL pin 1 makes the ground connection to mouse pin 5."

Can anyone advise about serial mouse pin wiring for SER1?
Many thanks in advance

TCAT
This is from the SMSQ/E manual on my website, page 76:

Code: Select all

Cable Connector

Mouse with pin name or QL SER1 QL SER2 QL SER1 QL SER2
SUB D25    function    SUB D9  SUB D9  BT      BT
------------------------------------------------------
2          TxD         3       2       3       2
3          RxD         2       3       2       3
4          +12V        9       9       6       6
7          GND         7       7       1       1

Mouse with pin name or QL SER1 QL SER2 QL SER1 QL SER2
SUB D9     function    SUB D9  SUB D9  BT      BT
------------------------------------------------------
2          TxD         2       3       2       3
3          RxD         3       2       3       2
5          GND         7       7       1       1
7          +12V        9       9       6       6

or

Mouse with pin name or QL SER1 QL SER2 QL SER1 QL SER2
SUB D25    function    SUB D9  SUB D9  BT      BT
------------------------------------------------------
1          GND         1       1       1       1
2          TxD         3       2       3       2
3          RxD         2       3       2       3
4          GND         1       1       1       1
7          GND         1       1       1       1
20         +12V        9       9       6       6

Mouse with pin name or QL SER1 QL SER2 QL SER1 QL SER2
SUB D9     function    SUB D9  SUB D9  BT      BT
------------------------------------------------------
2          TxD         2       3       2       3
3          RxD         3       2       3       2
4          +12V        9       9       6       6
5          GND         7       7       1       1
7          +12V        9       9       6       6


tcat
Super Gold Card
Posts: 633
Joined: Fri Jan 18, 2013 5:27 pm
Location: Prague, Czech Republic

Re: DIY SERIAL MOUSE

Post by tcat »

Dilwyn,

Thank you, I see there are even more options than I thought.
I have got the Genious My Mouse model, using pins 2-3-5-7, I beleive I need to take the second option from your list.

Sorry about the Rusian, the only picture I found on the net.
Genius MyMouse.png
I wonder if the DIY TOOLKIT by Simon Goodwin will accept this particular three button type of mouse.

Many thanks so far
Tom


afx
Trump Card
Posts: 171
Joined: Tue Dec 28, 2010 10:23 pm

Re: DIY SERIAL MOUSE

Post by afx »

tcat wrote: ... I use SER2 for Linux connection.
(( Sorry, ... off topic: How do you connect linux with QL? What software do you use on the QL side?
Is it via terminal emulation? How is the linux configuration? ))


tcat
Super Gold Card
Posts: 633
Joined: Fri Jan 18, 2013 5:27 pm
Location: Prague, Czech Republic

Re: DIY SERIAL MOUSE

Post by tcat »

Afx,

I use stty command to set terminal line settings, then cat or cp files over /dev/ttyS1.
You can follow my earlier posts here,

http://www.qlforum.co.uk/viewtopic.php? ... 3651#p3651

and here,
http://www.qlforum.co.uk/viewtopic.php? ... 4805#p4805

TCAT


afx
Trump Card
Posts: 171
Joined: Tue Dec 28, 2010 10:23 pm

Re: DIY SERIAL MOUSE

Post by afx »

Thanks tcat !!

About the serial mouse.

I use these connections http://sinclairql.speccy.org/articulos/ ... rs232.html

I use these retro-mouse (these are not PC mouse).
afxQLR1x.JPG
afxQLR1x.JPG (20.23 KiB) Viewed 9125 times
afxQLR2x.JPG
afxQLR2x.JPG (22.71 KiB) Viewed 9125 times
In my boot file I load the driver
LRESPR D_SerMouse

From the SuperBASIC command line
SERMON

(SERMOFF disables the mouse)

And here's the mouse in action in my QL (GoldCard + RomDisQ + SerialMouse):
http://www.youtube.com/watch?v=N0VGlRl3S-8


tcat
Super Gold Card
Posts: 633
Joined: Fri Jan 18, 2013 5:27 pm
Location: Prague, Czech Republic

Re: DIY SERIAL MOUSE

Post by tcat »

Hi Afx,

I have done the connections, and tried simple copying mouse packets to the screen
copy ser1 to scr

It puts out a lot of garbage on the screen upon the mouse moves and clicks, so I believe connections are good. Also tested the mouse works under Linux.
Genius MyMouse
Genius MyMouse
However so far I cannot get it working with DIY mouse TOOLKIT by S.Goodwin.
Any ideas?

TCAT


tcat
Super Gold Card
Posts: 633
Joined: Fri Jan 18, 2013 5:27 pm
Location: Prague, Czech Republic

Re: DIY SERIAL MOUSE

Post by tcat »

Afx,

It seems I need to learn PC mouse protocol and try to find out how the mouse packets are processed.
I wish to also try your sermouse driver, but I was not able to find it at Dilwyns site or anywhere on the net.

Can you help?

Many thanks

TCAT


User avatar
tofro
Font of All Knowledge
Posts: 2702
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: DIY SERIAL MOUSE

Post by tofro »

SerMouse used to be (most probably still is?) commercial software sold by Albin Hessler in Germany. It worked best together with (Super)Hermes as the QL's native serial ports are somewhat whacky.
If you're lucky, you'll find an used copy somewhere. I don't think Albin is still around.

Tobias


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
afx
Trump Card
Posts: 171
Joined: Tue Dec 28, 2010 10:23 pm

Re: DIY SERIAL MOUSE

Post by afx »

Other comments:

Sermouse NOT work in my QL: with standard PC mouse, Amiga mouse or Atari mouse.

My Genius mouse has a "switch" to work with "PC mode" or "Genius mode" (??), my QL with SerMouse only works with "Genius mode".


Post Reply