Just to refresh, I am using an Industrial cpu board with on board usb controller,which I have tested with a mouse.
I have two issues.
1.Joystick not recognised
=====================
My Joystick is connected to a usb gamecontroller that is configurable for buttons and Axis.Here is the link.
http://www.u-hid.com/index.php?option=c ... &Itemid=19
Autoexec.bat
usbuhci
usbprint
usbjstik (have also tried usbmouse here)
C:\Dos32\ctmouse
UsbDevice output:
- Code: Select all
USBDEVIC 0.05, (C) 2008, Bret E. Johnson.
Program to display information about Devices attached to the USB Host(s).
DEVICE ADDRESSES
ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
Host Index: 0 Host Type: UHCI Bus Type: PCI IRQ#: 10 Root Hub Ports: 2
Vendor: 1106h = VIA Technologies Inc Product: 3038h
ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
DEVICES INTERFACES
ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
L C I A O
ADRS o P o n l w
ÍÍÍÍ (hex) S o BUS n t t n
Test VEND PROD Sub Pro p USB HUB r POWR f f I e Sub Pro
RWak ID ID Cls Cls col d VER ADR t (mA) g c n DESCRIPTION d Cls Cls col
ÍÍÍÍ ÍÍÍÍ ÍÍÍÍ ÍÍÍ ÍÍÍ ÍÍÍ Í ÍÍÍ ÍÍÍ Í ÍÍÍÍ Í Í Í ÍÍÍÍÍÍÍÍÍÍÍÍÍÍ Í ÍÍÍ ÍÍÍ ÍÍÍ
1 1106 3038 9 0 0 . 1.0 ... . s 0 1 0 0*Root Hub Y 9 0 0
VIA Technologies Inc
ÄÄÄÄ ÄÄÄÄ ÄÄÄÄ ÄÄÄ ÄÄÄ ÄÄÄ Ä ÄÄÄ ÄÄÄ Ä ÄÄÄÄ Ä Ä Ä ÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Ä ÄÄÄ ÄÄÄ ÄÄÄ
2 D209 1501 0 0 0 . 2.0 1 1 500 1 0 0*Human Intf Dvc . 3 0 0
No Matching Record Found 1 0*Human Intf Dvc . 3 0 0
2 0*Human Intf Dvc . 3 0 0
3 0*Mouse . 3 1 2
Basically there is no response at all, so my questions:
i) To use the Joystick as a mouse, what configuration do I need.It is worth pointing out that the designer
of the interface made these comments.
When I asked if the controller could connect to the ps2 port via an adapterUsage in DOS raises all kinds of questions. The DOS driver must be capable
of supporting a USB game controller device. I am not sure if such software
is available. The user program would require special API calls to
interface with the DOS driver, if such a thing exists.
I have tested the controller on XP, and it basically works.There is no way to pass analog 12 but data packets over a PS/2 connection
and there is n such thing as a USB to PS/2 game controller converter.
2. usbmouse Hangs computer.
=========================
As I have said previously, the usbmouse works perfectly, However after leaving it running for a few hours it hangs the computer.
Initially I suspected other issues, (updated to latest FreeDos, updated FreeBasic compiler, etc) but after a process of careful elimination
the usb port or the usb programs are to blame. Simply disabling the usb mouse and plugging it into the ps2 port via an adapter
makes the problem go away. I have even tried not touching the mouse at all, still after an hour or so it hangs the computer.
At one stage there was an error message on the dos screen ??fatal exception in Ring0. Stopped.
Because this happens during the execution of my gui interface, I cant see what happens, so I will test again in the dos prompt.
Any suggestions appreciated.
Regards
UPDATE: After 1 hour or so of running the usbmouse in ps2mtest the following error:
Invalid opcode at 00A8 0006 3406 0353 004D 0600 0000 0000 0000 0000 0000 0000 4150
Will do another test with minimum drivers installed.
If DisableLegacySupport used,(default IRQ) the error happens within seconds.
If usbuhcil IRQ 11, lasted for 1.5 hours,(occasionally moved mouse) then same error as above.
UPDATE: After 3 hours and 50 minutes I had a failure with the following Autoexec.bat
Disabling Cwsdpmi made the computer lockup in minutes, but no error message showing.C:\Dos32\cwsdpmi.exe
usbuhcil IRQ 10 DisableLegacySupport
usbprint
usbmouse
cd\
C:\Dos32\ctmouse
c:\usb\ps2mtest