Joystick Force Feedback problem

Dear all,

I’m developing force feedback driver for a USB Joystick. The Joystick is
very simple , just has 2 motors (left and right), the motors used Pluse
Width Modulation (PWM) to control the force(1 byte for each motor).

My driver need to simulate all the effect (sin, square , trangle ,
constant , damper …) by sending correct sequence of PWM signal to
motor. I modified the source from WINDDK (ffdrv1).

The driver is successfully simulate all the effect in the sample program
provided by Microsoft “fedit.exe”. However, in some games (MotoGP2 ,
RalliSport Challenge) , the force feedback doesn’t work !!

I checked that in “MotoGP2” , the game call my function “downloadEffect”
for downloading sine wave , but the flag given don’t have “start” signal
flag. So my driver won’t control the motor to rotate.

In “RalliSport Challenge”, the game even doesn’t call “downloadEffect”
function.

Finally , I bought another Joystick (saitek) with Force Feedback driver. The
driver and joystick work perfectly in both game !! (i already made all the
effect as the same as Saitek Joystick).

Are there any points that i missed to consider for my driver ? And are
there any special technique for my driver to due with the game ??
Or the hardware controller in the joystick for Force Feedback is very
important ?

Thank you very much !
Looking Forward for your help !!

Regards,
Yu Chi Wai

I’m not at all familiar with the interface of the FFJS, but I would think
that if it’s allowed to download a effect without a start, I’d also expect
there to be a separate call to say ‘Start this effect’, in one way or
another.

I’m sure all your questions can be solved by reading the specifications
and/or fully understanding the interface for these type of devices.


Mats

xxxxx@lists.osr.com wrote on 11/22/2004 12:06:41 PM:

Dear all,

I’m developing force feedback driver for a USB Joystick. The Joystick
is
very simple , just has 2 motors (left and right), the motors used Pluse
Width Modulation (PWM) to control the force(1 byte for each motor).

My driver need to simulate all the effect (sin, square , trangle ,
constant , damper …) by sending correct sequence of PWM signal to
motor. I modified the source from WINDDK (ffdrv1).

The driver is successfully simulate all the effect in the sample
program
provided by Microsoft “fedit.exe”. However, in some games (MotoGP2 ,
RalliSport Challenge) , the force feedback doesn’t work !!

I checked that in “MotoGP2” , the game call my function
“downloadEffect”
for downloading sine wave , but the flag given don’t have “start” signal
flag. So my driver won’t control the motor to rotate.

In “RalliSport Challenge”, the game even doesn’t call “downloadEffect”
function.

Finally , I bought another Joystick (saitek) with Force Feedback driver.
The
driver and joystick work perfectly in both game !! (i already made all
the
effect as the same as Saitek Joystick).

Are there any points that i missed to consider for my driver ? And are
there any special technique for my driver to due with the game ??
Or the hardware controller in the joystick for Force Feedback is very
important ?

Thank you very much !
Looking Forward for your help !!

Regards,
Yu Chi Wai


Questions? First check the Kernel Driver FAQ at http://www.
osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@3dlabs.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

ForwardSourceID:NT00007AEA

Thanks for your reply !

You’re right, the download a effect can without a start.
I’ve another routine “Start Effect” , but the game didn’t call this routine.

Regards,
Yu Chi Wai

“Mats PETERSSON” ??? news:xxxxx@ntdev…
>
>
>
>
>
> I’m not at all familiar with the interface of the FFJS, but I would think
> that if it’s allowed to download a effect without a start, I’d also expect
> there to be a separate call to say ‘Start this effect’, in one way or
> another.
>
> I’m sure all your questions can be solved by reading the specifications
> and/or fully understanding the interface for these type of devices.
>
> –
> Mats
>
> xxxxx@lists.osr.com wrote on 11/22/2004 12:06:41 PM:
>
> > Dear all,
> >
> > I’m developing force feedback driver for a USB Joystick. The Joystick
> is
> > very simple , just has 2 motors (left and right), the motors used Pluse
> > Width Modulation (PWM) to control the force(1 byte for each motor).
> >
> > My driver need to simulate all the effect (sin, square , trangle ,
> > constant , damper …) by sending correct sequence of PWM signal to
> > motor. I modified the source from WINDDK (ffdrv1).
> >
> > The driver is successfully simulate all the effect in the sample
> program
> > provided by Microsoft “fedit.exe”. However, in some games (MotoGP2 ,
> > RalliSport Challenge) , the force feedback doesn’t work !!
> >
> > I checked that in “MotoGP2” , the game call my function
> “downloadEffect”
> > for downloading sine wave , but the flag given don’t have “start” signal
> > flag. So my driver won’t control the motor to rotate.
> >
> > In “RalliSport Challenge”, the game even doesn’t call “downloadEffect”
> > function.
> >
> >
> > Finally , I bought another Joystick (saitek) with Force Feedback driver.
> The
> > driver and joystick work perfectly in both game !! (i already made all
> the
> > effect as the same as Saitek Joystick).
> >
> > Are there any points that i missed to consider for my driver ? And are
> > there any special technique for my driver to due with the game ??
> > Or the hardware controller in the joystick for Force Feedback is very
> > important ?
> >
> > Thank you very much !
> > Looking Forward for your help !!
> >
> > Regards,
> > Yu Chi Wai
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at http://www.
> > osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@3dlabs.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
> > ForwardSourceID:NT00007AEA
>
>

Sounds like a nice job though because, of course, it would need to be tested
with all sorts of software… :slight_smile:

-----Original Message-----
From: Mats PETERSSON [mailto:xxxxx@3dlabs.com]
Sent: 22 November 2004 12:25
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Joystick Force Feedback problem

I’m not at all familiar with the interface of the FFJS, but I
would think that if it’s allowed to download a effect without
a start, I’d also expect there to be a separate call to say
‘Start this effect’, in one way or another.

I’m sure all your questions can be solved by reading the
specifications and/or fully understanding the interface for
these type of devices.


Mats

xxxxx@lists.osr.com wrote on 11/22/2004 12:06:41 PM:

> Dear all,
>
> I’m developing force feedback driver for a USB Joystick. The
> Joystick
is
> very simple , just has 2 motors (left and right), the motors used
> Pluse Width Modulation (PWM) to control the force(1 byte for each
> motor).
>
> My driver need to simulate all the effect (sin, square ,
trangle ,
> constant , damper …) by sending correct sequence of
PWM signal
> to motor. I modified the source from WINDDK (ffdrv1).
>
> The driver is successfully simulate all the effect in the sample
program
> provided by Microsoft “fedit.exe”. However, in some games
(MotoGP2 ,
> RalliSport Challenge) , the force feedback doesn’t work !!
>
> I checked that in “MotoGP2” , the game call my function
“downloadEffect”
> for downloading sine wave , but the flag given don’t have “start”
> signal flag. So my driver won’t control the motor to rotate.
>
> In “RalliSport Challenge”, the game even doesn’t call
> “downloadEffect” function.
>
>
> Finally , I bought another Joystick (saitek) with Force Feedback
> driver.
The
> driver and joystick work perfectly in both game !! (i
already made all
the
> effect as the same as Saitek Joystick).
>
> Are there any points that i missed to consider for my
driver ? And
> are there any special technique for my driver to due with
the game ??
> Or the hardware controller in the joystick for Force
Feedback is very
> important ?
>
> Thank you very much !
> Looking Forward for your help !!
>
> Regards,
> Yu Chi Wai
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.
> osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
xxxxx@3dlabs.com To
> unsubscribe send a blank email to xxxxx@lists.osr.com

> ForwardSourceID:NT00007AEA


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as:
xxxxx@t-mobile.co.uk To unsubscribe send a blank
email to xxxxx@lists.osr.com

NOTICE AND DISCLAIMER:
This email (including attachments) is confidential. If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents. We cannot accept liability for any breaches of
confidence arising through use of email. Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions. We will not accept responsibility for any commitments
made by our employees outside the scope of our business. We do not warrant
the accuracy or completeness of such information.

going totally off topic here… :wink:

Yes, I’d especially like to do the MotoGP2 testing. To do that correctly,
of course, I’d have to first fix a ride on Valentino Rossi’s Yamaha or some
such, on each of the tracks to see what it feels like “real life”, and then
try the joystick to make sure it feels the same. If someone gave me that
job, I’d even opt out of being paid for the time I’m on the track… :wink:
[I’m quite into motorbikes, and I’ve been riding on a race-track several times.]


Mats

Sounds like a nice job though because, of course, it would need to
be tested with all sorts of software… :slight_smile:
> -----Original Message-----
> From: Mats PETERSSON [mailto:xxxxx@3dlabs.com]
> Sent: 22 November 2004 12:25
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] Joystick Force Feedback problem
>
>
>
>
>
>
>
> I’m not at all familiar with the interface of the FFJS, but I
> would think that if it’s allowed to download a effect without
> a start, I’d also expect there to be a separate call to say
> ‘Start this effect’, in one way or another.
>
> I’m sure all your questions can be solved by reading the
> specifications and/or fully understanding the interface for
> these type of devices.
>
> –
> Mats
>
> xxxxx@lists.osr.com wrote on 11/22/2004 12:06:41 PM:
>
> > Dear all,
> >
> > I’m developing force feedback driver for a USB Joystick. The
> > Joystick
> is
> > very simple , just has 2 motors (left and right), the motors used
> > Pluse Width Modulation (PWM) to control the force(1 byte for each
> > motor).
> >
> > My driver need to simulate all the effect (sin, square ,
> trangle ,
> > constant , damper …) by sending correct sequence of
> PWM signal
> > to motor. I modified the source from WINDDK (ffdrv1).
> >
> > The driver is successfully simulate all the effect in the sample
> program
> > provided by Microsoft “fedit.exe”. However, in some games
> (MotoGP2 ,
> > RalliSport Challenge) , the force feedback doesn’t work !!
> >
> > I checked that in “MotoGP2” , the game call my function
> “downloadEffect”
> > for downloading sine wave , but the flag given don’t have “start”
> > signal flag. So my driver won’t control the motor to rotate.
> >
> > In “RalliSport Challenge”, the game even doesn’t call
> > “downloadEffect” function.
> >
> >
> > Finally , I bought another Joystick (saitek) with Force Feedback
> > driver.
> The
> > driver and joystick work perfectly in both game !! (i
> already made all
> the
> > effect as the same as Saitek Joystick).
> >
> > Are there any points that i missed to consider for my
> driver ? And
> > are there any special technique for my driver to due with
> the game ??
> > Or the hardware controller in the joystick for Force
> Feedback is very
> > important ?
> >
> > Thank you very much !
> > Looking Forward for your help !!
> >
> > Regards,
> > Yu Chi Wai
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at http://www.
> > osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as:
> xxxxx@3dlabs.com To
> > unsubscribe send a blank email to %%email.unsub%%
>
> > ForwardSourceID:NT00007AEA
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
> xxxxx@t-mobile.co.uk To unsubscribe send a blank
> email to xxxxx@lists.osr.com
>

NOTICE AND DISCLAIMER:
This email (including attachments) is confidential. If you have
received this email in error please notify the sender immediately
and delete this email from your system without copying or
disseminating it or placing any reliance upon its contents. We
cannot accept liability for any breaches of confidence arising
through use of email. Any opinions expressed in this email
(including attachments) are those of the author and do not
necessarily reflect our opinions. We will not accept responsibility
for any commitments made by our employees outside the scope of our
business. We do not warrant the accuracy or completeness of such
information.

Questions? First check the Kernel Driver FAQ at http://www.
osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
ForwardSourceID:NT00007B0E