Page 1 of 1

adapter from shop disconnects after ~8s

Posted: Wed Jun 28, 2017 10:15 pm
by SNy
Hey,

when I found this project last week, I was thrilled (meant to build something to use my G25 on my Xbox/Xbox360 for ages).
I instantly ordered your pre-build adapter from the shop, as my soldering skills are rusty and you deserve support for this.

Anyway, it arrived (thanks!) and today I found the time to start tinkering with it.
Unfortunately, I didn't request another firmware, thinking that I would simply play with them around, anyway, so it is configured for G29->PS4 right now.

I therefore meant to start with loading the Xbox360 firmware onto it, but I appear to be stuck.
The "console end" of the adapter is disconnecting itself within a few seconds after connecting the cable.

This is the adapter from your shop, connected using the microUSB->USB male cable supplied with it, directly to the host USB ports, no extra hubs or anything.

Logs are available here, from attempts on two different machines, each with git master compiled myself.
It has dmesg output (the relevant parts showing the device events) and GIMX log showing the usage attempts.

Because the device disconnects itself (and takes ttyACM0 along with it), I cannot load another firmware, and cannot proceed.

Is there anything I should be doing differently? Any advice or hints?

SNy

Re: adapter from shop disconnects after ~8s

Posted: Thu Jun 29, 2017 6:32 am
by Matlo
Hi,

The adapter runs the bootloader for 8s, and the firmware waits for GIMX to be connected before starting USB communications.

To load another firmware, just install GIMX 6.8, run gimx-launcher, click on "Help > Update firmware", select the firmware to load, click on "Load", and follow the on-screen instructions.

Re: adapter from shop disconnects after ~8s

Posted: Thu Jun 29, 2017 3:53 pm
by SNy
Right, that is actually what I did yesterday, at first I compiled only the loader and then also tried the rest.

Anyway, the instructions say that it will only work with usb serial + pro micro, OK, then ask to connect both, OK, then ask to un- and re-connect the micro USB cable.
Which is what I tried about 20 times yesterday, and each time it timed out ("No new device found within 10 seconds.").
Should probably have mentioned that.

Anyway, I did try it again now and now it did fail at flashing when re-connecting (turned out I didn't have avrdude installed).
Tried again after installing it, and it managed fine. Hurray! \0/

But why did it work now and not yesterday?
Might it be due to permissions to /dev/USB0 and /dev/ttyACM0 (which I set up udev rules yesterday w/out rebooting)?

So, thanks again for sending the adapter and thanks for the great project, I am going to try it now on the 360 with the G25, once I have a proper config.

SNy

Re: adapter from shop disconnects after ~8s

Posted: Thu Jun 29, 2017 6:37 pm
by SNy
OK, cool, it works. :)
Now I need to fine-tune the configuration and everything.

How do I activate at least the auto-center effect on the G25? Does GIMX completely reset anything when it switches to native mode, or can I use LTWheelConf to set it up before hand?

Sorry for the stupid questions, there's lots of info, but it's all over the place and putting it all together appears quite involved.

SNy

Re: adapter from shop disconnects after ~8s

Posted: Sun Jul 02, 2017 7:14 pm
by Matlo
SNy wrote: Thu Jun 29, 2017 6:37 pm How do I activate at least the auto-center effect on the G25?
This is not possible.

Re: adapter from shop disconnects after ~8s

Posted: Mon Jul 03, 2017 5:43 pm
by SNy
You mean it is not possible ATM, right? As I said, maybe I am asking stupid questions, but if you would bear with me for a minute....

I did read up on LTWheelConf and since importing the support into the kernel driver, it is no longer maintained and basically not needed... except the kernel driver does not actually export a sysfs entry for the autocenter (although there is a method to set it, which is called with 0==disable at initialization time).

So, either I try LTWheelConf with the new or old autocenter switch,
or I build a patched version of hid-lg4ff with a sysfs entry for the autocenter myself to enable it.

Would that make it possible to enable it or would GIMX reset it when it initializes the device?

My aim is to help you in supporting the Xbox/Xbox360 (maybe XB1, but I don't own one) use cases for Logitech wheels with as much functionality as possible.

SNy

Edit: Maybe I should start a new thread in another section to discuss that?