* Re: Logitech Spring FF
2007-04-10 5:45 ` Richard Bolkey
@ 2007-04-10 6:31 ` Dmitry Torokhov
2007-04-10 9:51 ` johann deneux
2007-04-10 12:21 ` Logitech Spring FF Jiri Kosina
2 siblings, 0 replies; 9+ messages in thread
From: Dmitry Torokhov @ 2007-04-10 6:31 UTC (permalink / raw)
To: Richard Bolkey; +Cc: linux-input, Anssi Hannula, johann deneux, Jiri Kosina
On Tuesday 10 April 2007 01:45, Richard Bolkey wrote:
> First off, I've never made a patch before, which I guess I better learn,
> but for now if anyone wants to add the device_type for the Logitech
> Force 3D Pro Joystick to hid-lgff.c, it's { 0x046d, 0xc286, ff_joystick }.
>
That would be Jiri Kosina (CCed).
> Now for a few follow up questions (this is a whole lot of new stuff, so
> bear with me).
>
> 1) I'm gathering that Logitech keeps their hid reports secret and
> non-standard, or else I'd just be using the HID PID driver? So, were
> the values in the reports found in hid_lgff_play discovered through
> trial and error? How would I find what the report for FF_SPRING should
> look like?
>
> 2) Previous question assumes that is where I should implement the effect
> since ml->play_effect is referencing that function in ff_memless.c. But
> it sounded like Anssi was recommending doing a spring->constant
> conversion akin to what looks like a periodic->rumble conversion in
> ml_combine_effects?
>
> Thanks,
> Rick
>
--
Dmitry
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Logitech Spring FF
2007-04-10 5:45 ` Richard Bolkey
2007-04-10 6:31 ` Dmitry Torokhov
@ 2007-04-10 9:51 ` johann deneux
2007-04-11 2:55 ` Logitech Spring FF (effect on/off) Richard Bolkey
2007-04-10 12:21 ` Logitech Spring FF Jiri Kosina
2 siblings, 1 reply; 9+ messages in thread
From: johann deneux @ 2007-04-10 9:51 UTC (permalink / raw)
To: Richard Bolkey; +Cc: Anssi Hannula, linux-input
On 4/10/07, Richard Bolkey <rbolkey@cs.utexas.edu> wrote:
> First off, I've never made a patch before, which I guess I better learn,
> but for now if anyone wants to add the device_type for the Logitech
> Force 3D Pro Joystick to hid-lgff.c, it's { 0x046d, 0xc286, ff_joystick }.
>
> Now for a few follow up questions (this is a whole lot of new stuff, so
> bear with me).
>
> 1) I'm gathering that Logitech keeps their hid reports secret and
> non-standard, or else I'd just be using the HID PID driver? So, were
> the values in the reports found in hid_lgff_play discovered through
> trial and error? How would I find what the report for FF_SPRING should
> look like?
You can do that by spying on the USB traffic generated by an existing driver.
That's what I did. I thought I had managed to identify the report used
for springs, but at that point my device died and that's where I
stopped.
>
> 2) Previous question assumes that is where I should implement the effect
> since ml->play_effect is referencing that function in ff_memless.c. But
> it sounded like Anssi was recommending doing a spring->constant
> conversion akin to what looks like a periodic->rumble conversion in
> ml_combine_effects?
That's another way of doing it.
>
> Thanks,
> Rick
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Logitech Spring FF (effect on/off)
2007-04-10 9:51 ` johann deneux
@ 2007-04-11 2:55 ` Richard Bolkey
2007-04-11 3:01 ` Anssi Hannula
2007-05-12 10:22 ` johann deneux
0 siblings, 2 replies; 9+ messages in thread
From: Richard Bolkey @ 2007-04-11 2:55 UTC (permalink / raw)
To: johann deneux; +Cc: Anssi Hannula, linux-input
Alright, I can turn the spring effect on; however, I can't turn it off
right now. There is a separate report that needs to be sent to turn off
the spring effect for each axis. I can't see an obvious place to put
that kind of functionality into the framework of ff-memless. I'm
wondering if this means my device isn't "memoryless"? Any advice?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Logitech Spring FF (effect on/off)
2007-04-11 2:55 ` Logitech Spring FF (effect on/off) Richard Bolkey
@ 2007-04-11 3:01 ` Anssi Hannula
2007-05-12 10:22 ` johann deneux
1 sibling, 0 replies; 9+ messages in thread
From: Anssi Hannula @ 2007-04-11 3:01 UTC (permalink / raw)
To: Richard Bolkey; +Cc: johann deneux, linux-input
Richard Bolkey kirjoitti:
> Alright, I can turn the spring effect on; however, I can't turn it off
> right now. There is a separate report that needs to be sent to turn off
> the spring effect for each axis. I can't see an obvious place to put
> that kind of functionality into the framework of ff-memless. I'm
> wondering if this means my device isn't "memoryless"? Any advice?
For the FF_RUMBLE and FF_CONSTANT effects, if I remember correctly,
ff-memless sends a zero-magnitude effect to the device driver when the
effect is supposed to be turned off. You can do it similarly for the
spring effect.
--
Anssi Hannula
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Logitech Spring FF (effect on/off)
2007-04-11 2:55 ` Logitech Spring FF (effect on/off) Richard Bolkey
2007-04-11 3:01 ` Anssi Hannula
@ 2007-05-12 10:22 ` johann deneux
1 sibling, 0 replies; 9+ messages in thread
From: johann deneux @ 2007-05-12 10:22 UTC (permalink / raw)
To: Richard Bolkey; +Cc: Anssi Hannula, linux-input
On the subject of the protocole used by Logitech devices for
force-feedback, here is some information that could be interesting:
http://vdrift.net/Forum/viewtopic.php?t=412&postdays=0&postorder=asc&start=60
The user named "anrp" has found information that I suspect is not
limited to the G25.
On 4/11/07, Richard Bolkey <rbolkey@cs.utexas.edu> wrote:
> Alright, I can turn the spring effect on; however, I can't turn it off
> right now. There is a separate report that needs to be sent to turn off
> the spring effect for each axis. I can't see an obvious place to put
> that kind of functionality into the framework of ff-memless. I'm
> wondering if this means my device isn't "memoryless"? Any advice?
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Logitech Spring FF
2007-04-10 5:45 ` Richard Bolkey
2007-04-10 6:31 ` Dmitry Torokhov
2007-04-10 9:51 ` johann deneux
@ 2007-04-10 12:21 ` Jiri Kosina
2 siblings, 0 replies; 9+ messages in thread
From: Jiri Kosina @ 2007-04-10 12:21 UTC (permalink / raw)
To: Richard Bolkey; +Cc: Anssi Hannula, johann deneux, linux-input
On Tue, 10 Apr 2007, Richard Bolkey wrote:
> First off, I've never made a patch before, which I guess I better learn, but
> for now if anyone wants to add the device_type for the Logitech Force 3D Pro
> Joystick to hid-lgff.c, it's { 0x046d, 0xc286, ff_joystick }.
Queued support for 0x046d/0xc286 in my tree for upstream. Thanks.
> 1) I'm gathering that Logitech keeps their hid reports secret and
> non-standard, or else I'd just be using the HID PID driver? So, were
> the values in the reports found in hid_lgff_play discovered through
> trial and error? How would I find what the report for FF_SPRING
> should look like?
You can monitor how other already existing drivers behave, and try to
simulate the behavior in your driver.
--
Jiri Kosina
^ permalink raw reply [flat|nested] 9+ messages in thread