Shop OBEX P1 Docs P2 Docs Learn Events
optic mouse problem — Parallax Forums

optic mouse problem

GuyvoGuyvo Posts: 21
edited 2007-10-16 14:30 in Propeller 1
Props,

I tried the demo programs with mouse but I have only an optic mouse connected with USB cable and·converter to PS/2 connector and this doesn't work. I checked with the present function and I get zero so mouse isn't reconized. Is this normal behaviour for the default spin mouse driver ? Normally I would expect this to be a transparent interface with PS/2.

Anyone experienced the same problems yet?

Thanks
Guy

Comments

  • Graham StablerGraham Stabler Posts: 2,507
    edited 2007-10-13 20:32
    It depends on the mouse some may not have a legacy mode, the same goes for keyboards.

    Graham
  • SapiehaSapieha Posts: 2,964
    edited 2007-10-13 20:52
    Hi Graham.

    I have the same problem with one my optical mouse.
    But from what I checked up this initial in mouse.spin does not give advice to itself with such.
    In PC function well



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nothing is impossible, there are only different degrees of difficulty.

    Sapieha
  • Graham StablerGraham Stabler Posts: 2,507
    edited 2007-10-13 20:56
    It has nothing to do with the fact the mouse is optical only that it is a mouse connected via usb adapter.

    Graham
  • SapiehaSapieha Posts: 2,964
    edited 2007-10-13 21:07
    Hi Graham.

    But in future has with that mouse.spin has a problem with initiator on some mouse with connect through an adapter.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nothing is impossible, there are only different degrees of difficulty.

    Sapieha
  • Graham StablerGraham Stabler Posts: 2,507
    edited 2007-10-13 21:17
    I don't really understand what you are saying

    As far as I can tell it is the mouse that has the problem not mouse.spin

    Some keyboards and mice will not work through an adapter, or are you saying your mouse works through an adapter with your PC?

    Graham
  • SapiehaSapieha Posts: 2,964
    edited 2007-10-13 21:26
    Hi Graham.

    My mouse works through an adapter with your PC and Keyboard/mouse Router 4PC to one Monitor/Keyboard-mouse
    ·with connect through an adapter.
    Only with prop board have problem. I have test it and it init corect in PC on adapter for PS2 but in prop it not shift to PS2 mode.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nothing is impossible, there are only different degrees of difficulty.

    Sapieha
  • Graham StablerGraham Stabler Posts: 2,507
    edited 2007-10-13 22:47
    I have no idea what makes a USB mouse flip to PS/2 mode, if you can find that out then the driver could be modified.

    I assume the adapter you use is just the simple through wired type.

    Graham
  • Graham StablerGraham Stabler Posts: 2,507
    edited 2007-10-13 22:49
    Here is a test:

    1. Boot the PC with a PS/2 mouse connected.
    2. Remove the PS/2 mouse
    3. Insert the USB mouse with adapter

    Does the USB mouse still work?

    Graham
  • GuyvoGuyvo Posts: 21
    edited 2007-10-14 07:52
    Graham,

    That test I can't do at least not at home because my laptop doesn't have PS/2 anymore. Be aware of the fact that if you step into a store these days you will not find any PS/2 mouses anymore.
    I tried my wirless microsoft optic mouse also same problem. But when I try a wireless mouse still with trackball of my friend that was ok. All these tests are done using the USB2PS/2 connector. I would expect tranparancy in this way of connecting but maybe the legacy thing interferes.

    Anyway I will try my optic mouse (EDNET) at work where I have still PS2 connector and see if the optic mouse is taken via the USB2PS/2 connector too.

    Do you have an optic mouse that works on the prop ?

    Cheers
    Guy
  • ColeyColey Posts: 1,110
    edited 2007-10-14 09:37
    Hi Guyvo,

    I have three different USB Microsoft Optical Mice and they all work with my Prop PS/2 connectors through the supplied Microsoft adapter.

    So I guess I would say it's the mouse that is at fault.

    Regards,

    Coley
  • Graham StablerGraham Stabler Posts: 2,507
    edited 2007-10-14 13:09
    Guy, the test was for Sapieha to try and as I said the optical nature of the mouse has nothing to do with the issue.

    Coley, this is exactly as I thought. I have a usb keyboard that works fine through an adapter but the tiny usb keyboard I have does not with a PC or a prop.

    What confuses me is why Sapieha has a mouse that will work through an adapter with his PC but not the prop.

    Graham
  • ColeyColey Posts: 1,110
    edited 2007-10-14 20:53
    Graham,

    I've checked my usb to ps/2 converters and they all have a mouse symbol on them, I've just tried them with a USB keyboard and they didn't work.

    Maybe they are mouse specific....tongue.gif

    Regards,

    Coley
  • Graham StablerGraham Stabler Posts: 2,507
    edited 2007-10-14 21:23
    Or the keyboard doesn't have legacy
  • GuyvoGuyvo Posts: 21
    edited 2007-10-15 07:16
    I did some googling on the legacy subject and this article is quit good:

    http://en.wikipedia.org/wiki/Legacy_system

    In other words it means:

    "legacy mode" refers more specifically to backward compatibility.

    So if a modern HID like·a USB (or even wirless)·mouse or keyboard doesn't provide backwards compatibility to the older PS/2 interface than the mouse.spin object will not work of course. Maybe this is something that can be considered to be upgraded providing a second USB port interface on the PROP2 in the future. But some devices still offer the PS/2 fall back mode so there must be a method to dedect the interface difference working with USB only or using a USB2PS/2 connector how I don't know. It's also important I think to consider the serial speed over data+/data lines for PS/2 : Serial data at 10 to 16 kHz with 1 stop bit, 1 start bit, 1 parity bit (odd) in respect to the much higher speeds on USB.

    Guy
  • SapiehaSapieha Posts: 2,964
    edited 2007-10-15 07:31
    Hi Guyvo.

    It is only init string i mouse.spin must be shifted for funktion properly

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nothing is impossible, there are only different degrees of difficulty.

    Sapieha
  • Graham StablerGraham Stabler Posts: 2,507
    edited 2007-10-15 09:09
    Sapieha,

    Have you done this or are you guessing?
  • GuyvoGuyvo Posts: 21
    edited 2007-10-15 10:45
    Sapieha,
    If I understand you well than you must have changed the mouse.spin file can you please·attach you mouse.spin where you did the shift modification.

    Thanks
    Guy

    ·
  • SapiehaSapieha Posts: 2,964
    edited 2007-10-15 11:45
    Hi Graham.

    I not questing. I tested in PC signals on it.

    Hi Guyvo.

    I not have adapted it yet.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nothing is impossible, there are only different degrees of difficulty.

    Sapieha
  • Graham StablerGraham Stabler Posts: 2,507
    edited 2007-10-15 11:46
    If you need any help let me know.

    Graham
  • SapiehaSapieha Posts: 2,964
    edited 2007-10-15 12:02
    Hi Graham.

    Thanks.
    If I have time to aplying it but I have my clients in first place.
    Must first document it. It is with start on mouse.spin it drop.
    I have tested at on start it must have info at it must shift to PS2 but I not look how yet.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nothing is impossible, there are only different degrees of difficulty.

    Sapieha
  • evanhevanh Posts: 15,428
    edited 2007-10-16 12:05
    There is a much better way - Throw out the uController and talk directly to the optical processor. They are all the same being an Agilent design and have full datasheets available. Failing that you could just wire directly into the quadrature signaling pins and treat it as an encoder.
  • evanhevanh Posts: 15,428
    edited 2007-10-16 12:06
    Make that two encoders. [noparse]:)[/noparse]
  • Graham StablerGraham Stabler Posts: 2,507
    edited 2007-10-16 12:57
    I would call that a much worse way
  • evanhevanh Posts: 15,428
    edited 2007-10-16 13:12
    The optical processor uses an SPI port with fully documented command set. I forgot to mention that.
  • evanhevanh Posts: 15,428
    edited 2007-10-16 14:30
    Current model: http://www.avagotech.com/products/optical_navigation_sensors/laserstream_sensors/adns-6010/

    Seems this newest model is now missing the dedicated quadrature pins. I assume it can be reconfigured with a different EPROM image that it now comes as an external requirement.
Sign In or Register to comment.