Re: [Freedos-user] USB for FreeDos

2009-08-16 Thread jvp
Hi all

Sorry for the delay in response, but have been away from office.

Eric Auer wrote:
 If you run cwsdpmi like that, it will probably not
 stay in RAM? Apps made with FreeBASIC will just load
 cwsdpmi themselves while they are running and will
 unload it afterwards :-). In short: Things should
 work at least equally well without that line...

   
I didnt realise that, but after testing I have confirmed you are correct.
 cd\usb
 usbuhci IRQ 11 DisableLegacySupport
 

 I assume the IRQ can also be set automatically?

   
Yes, just leave the line as usbuhci only
 usbprint
 usbmouse
 C:\Dos32\ctmouse
 

 Cute :-) Does it support more advanced PS/2 commands
 as well, in other words, can things like third button
 and wheel be enabled by the ctmouse usbmouse combo?

   
I believe it does, but I have no use for it, so didnt test it.
 ... 10 Micro Sec on a 533Mhz Industrial Board, with
 a FreeBasic / CGUI app.
 Previously I used a 2 button mouse pad on ps2.
 Using the usb mouse driver with a Microsoft mouse didnt change the 
 timing at all, which I am very pleased about.
 

 Great news :-) I remember running something with 1 msec
 TSC based time measurements on a classic Athlon a few
 years ago - there the BIOS USB driver did cause delays
 big enough to make me switch to real PS/2 mice again.

 Eric

   
In real time control, any delay is painfull.

I am re-testing with FreeDos again after a problem was discovered.
Brett tells me he has listed it, but I couldnt find it. However in a 
Nutshell
the stacks statement was considered to be the problem.
So, now re-testing with Stacks=0,0


Anyone interested in reading the thread on the usb forum, here is the link
http://bretjohnson.us/forum/viewtopic.php?f=5t=107sid=10c1bc11c54b8f19084a65a8dd54f6d2

Regards

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] USB for FreeDos

2009-08-14 Thread Eric Auer

Hi JVP, thanks for testing the Bret Johnson USB drivers :-)

 ... usb mouse attached to my FreeBasic/FreeDos application

 C:\Dos32\DosLFN.com
 C:\Dos32\cwsdpmi.exe

If you run cwsdpmi like that, it will probably not
stay in RAM? Apps made with FreeBASIC will just load
cwsdpmi themselves while they are running and will
unload it afterwards :-). In short: Things should
work at least equally well without that line...

 cd\usb
 usbuhci IRQ 11 DisableLegacySupport

I assume the IRQ can also be set automatically?

 usbprint
 usbmouse
 C:\Dos32\ctmouse

Cute :-) Does it support more advanced PS/2 commands
as well, in other words, can things like third button
and wheel be enabled by the ctmouse usbmouse combo?

 ... 10 Micro Sec on a 533Mhz Industrial Board, with
 a FreeBasic / CGUI app.
 Previously I used a 2 button mouse pad on ps2.
 Using the usb mouse driver with a Microsoft mouse didnt change the 
 timing at all, which I am very pleased about.

Great news :-) I remember running something with 1 msec
TSC based time measurements on a classic Athlon a few
years ago - there the BIOS USB driver did cause delays
big enough to make me switch to real PS/2 mice again.

Eric



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] USB for FreeDos

2009-08-14 Thread Bret Johnson
 Hi JVP, thanks for testing the Bret Johnson USB drivers :-)

{snip}

 cd\usb
 usbuhci IRQ 11 DisableLegacySupport

 I assume the IRQ can also be set automatically?

Yes, the IRQ is normally set automatically, either by the BIOS or by 
USBUHCI{L}.  The reason JVP needed to change it was because the BIOS configured 
the USB Host Controller to use IRQ 12, which conflicts with the PS2 mouse 
software.  IRQ 12 is supposed to be dedicated to the PS2 mouse, and is never 
supposed to be used for anything else.

 usbprint
 usbmouse
 C:\Dos32\ctmouse

 Cute :-) Does it support more advanced PS/2 commands
 as well, in other words, can things like third button
 and wheel be enabled by the ctmouse usbmouse combo?

USBMOUSE supports three different mouse protocols: the regular PS2 protocol 
(max 3 buttons, no wheels), the IntelliMouse protocol (max 3 buttons, 1 wheel), 
and the IntelliMouse2 protocol (max 5 buttons, 2 wheels).  CTMOUSE currently 
supports the first two protocols, so if your USB mouse has a wheel it will work 
just fine with CTMOUSE and USBMOUSE.  If CTMOUSE is ever upgraded to support 
the IntelliMouse2 protocol, and your mouse has 5 buttons and/or 2 wheels, 
USBMOUSE already supports it and everything will work just fine.

USBMOUSE also supports multiple mice at the same time, including a real PS2 
mouse.  So, you can have a right-handed USB mouse, a left-handed USB mouse, a 
USB trackball, and a real PS2 mouse of some sort on the same computer and 
switch back and forth between them (or even use them all at the same time) if 
you want.  It also supports plug-and-play for the USB mice, so if you have 
more than one USB mouse but don't have enough hub ports to plug them all in at 
the same time, you can simply unplug and swap them around any time you want 
without needing to reboot.

USBPRINT allows you to print to USB printers from real DOS, without needing 
to do it from a DOS box underneath Windows (which is the normal way everybody 
does it now).  USBPRINT also allows two-way communication to both USB and 
parallel printers, so you can download configuration data (such as printer 
identification and ink level information) from the printers.  This would also 
allow someone to create a DOS application to use the scanner and fax functions 
on a multi-function printer (such an applications has not yet been developed, 
but it is very possible to do).  USBPRINT also has several other features that 
should make printing better in DOS, both for USB printers and parallel 
printers.  You don't actually need a USB printer for USBPRINT to be useful to 
you.

 ... 10 Micro Sec on a 533Mhz Industrial Board, with
 a FreeBasic / CGUI app.
 Previously I used a 2 button mouse pad on ps2.
 Using the usb mouse driver with a Microsoft mouse didnt change the 
 timing at all, which I am very pleased about.

 Great news :-) I remember running something with 1 msec
 TSC based time measurements on a classic Athlon a few
 years ago - there the BIOS USB driver did cause delays
 big enough to make me switch to real PS/2 mice again.

 Eric


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] USB for FreeDos

2009-07-06 Thread Larry

Could that lead to the use of USB network interfaces?



--- On Mon, 7/6/09, jvp j...@compu-weigh.com.au wrote:

 From: jvp j...@compu-weigh.com.au
 Subject: [Freedos-user] USB for FreeDos
 To: freedos-user@lists.sourceforge.net
 Date: Monday, July 6, 2009, 4:08 PM
 Hi all
 
 I have tested the recently released usb interface for Dos
 by Bret Johnson
 and now have a usb mouse attached to my FreeBasic /FreeDos
 application.
 Although I have seen the discussion on this, I thought I
 would share my
 experience.
 
 This is a really welcome development for FreeDos users, as
 the 
 availability of ps2 and serial devices is starting to dry
 up
 It is my intention to swap the mouse for a joystick with a
 single thumb 
 button.
 For those that are interested, this is the Autoexec.bat
 extract which 
 works for me.
 
 Path C:\dos32;
 C:\Dos32\DosLFN.com
 C:\Dos32\cwsdpmi.exe
 cd\usb
 usbuhci IRQ 11 DisableLegacySupport
 usbprint
 usbmouse
 cd\
 C:\Dos32\ctmouse
 C:\Dos32\LBACache
 
 My app has a loop timer in micro sec's, and it allows me to
 keep track 
 of changes that cause longer than expected execution
 times.
 It runs at 10 Micro Sec on a 533Mhz Industrial Board, with
 a FreeBasic / 
 CGUI app.
 Previously I used a 2 button mouse pad on ps2.
 Using the usb mouse driver with a Microsoft mouse didnt
 change the 
 timing at all, which I am very pleased about.
 
 Regards
 
 
 --
 ___
 Freedos-user mailing list
 Freedos-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/freedos-user
 


  


--
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] USB for FreeDos

2009-07-06 Thread jvp
Hi

Larry wrote:
 Could that lead to the use of USB network interfaces?

   
Havent even dreamt of that, I have only just completed cURL on FreeDos
using Ethernet.

Regards


--
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user