Page 1 of 1
problem with pc detecting DIY adapter
Posted: Wed Feb 10, 2016 10:04 pm
by steka
Hello!
After discovering that my CP2102 was faulty, I've ordered a FT232RL.
As soon as it arrived, I immediately did the loopback test and confirmed this one was working.
Unfortunately, after re-assembling my DIY adapter, I got the same error I had when using my faulty CP2102:
ReadFile failed: timeout expired.
can't read packet header
No controller detected.
adapter_detect failed
I've double, triple checked all connections and tried to swap TX/RX cables a dozen times. Nothing changes.
Is there any way to do some kind of loopback test on the TX/RX pins of my atmega32u4 board?
As I've mentioned earlier, I am able to successfully upload firmwares to it, so if there's still something not working, the only possible thing is some faulty contact on those pins.
Thanks!
Re: problem with pc detecting DIY adapter
Posted: Thu Feb 11, 2016 8:22 am
by Matlo
Hi,
It's better to have a dedicated thread. It's impossible for me to remember everyone's setup.
Which firmware did you load? Did you power up the target console?
Re: problem with pc detecting DIY adapter
Posted: Thu Feb 11, 2016 12:44 pm
by steka
Hi Matlo, thanks for answering.
Yes, I have my PS4 powered up, my DS4 is recognized by Windows as "Wireless Controller" and my Driving Force GT is perfectly recognized too.
My atmega32u4 is loaded with EMUG29PS4/atmega32u4.hex.
Both the DS4 and the DFGT are connected on a USB hub (and working normally), the UART is connected to the PC and the other end – the atmega – is connected to the PS4. GIMX gives me the "config seems ok" alert.
I've read hundreds of pages here on the forum and didn't find anyone with the same problem as me.
Do you know if there's a way to test my atmega board? I have this 'feeling' that it's not receiving data from the FT232RL and want to check it but don't know how.
Thanks again!
Re: problem with pc detecting DIY adapter
Posted: Thu Feb 11, 2016 1:27 pm
by Matlo
How did you connect the boards? Did you solder them?
Please post a clear picture of your adapter.
Re: problem with pc detecting DIY adapter
Posted: Thu Feb 11, 2016 2:13 pm
by steka
They're connected by jumper cables, but I had to solder the header pins to the atmega.
I took some pics with my phone so the focus isn't perfect.
https://www.dropbox.com/s/uw60m3iejlj01 ... R.jpg?dl=0
https://www.dropbox.com/s/p3930wmm55als ... R.jpg?dl=0
https://www.dropbox.com/s/o0cyda079diok ... R.jpg?dl=0
PS.: the USB cables I'm using to connect those guys are also working perfectly. I've tested them with lots of different devices.
Re: problem with pc detecting DIY adapter
Posted: Thu Feb 11, 2016 3:04 pm
by Matlo
Maybe you should rework the soldering on the atmega32u4 board.
Make sure the tin makes contact on both sides of the board.
Re: problem with pc detecting DIY adapter
Posted: Thu Feb 11, 2016 3:11 pm
by steka
The other side actually has a plastic piece so I don't really know how to solder it.
I will try to reinforce the solder and, if it doesn't work, I'll get rid of the jumper cables and solder regular cables on both boards.
I'll let you know when (if) it works.
Thanks a lot!
Re: problem with pc detecting DIY adapter
Posted: Thu Feb 11, 2016 3:28 pm
by steka
Hey! I've reinforced the soldering and it still doesn't work but at least I've got a different log!
It seems the adapter is now working.
native mode is already enabled for HID device \\?\hid#vid_046d&pid_c29a#7&a4e9de&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} (PID=c29a)
Detected USB adapter: G29 PS4.
No controller was found on USB buses.
adapter_detect failed
Any clues on what "no controller was found on USB buses" means?
Cheers!
Re: problem with pc detecting DIY adapter
Posted: Thu Feb 11, 2016 4:18 pm
by steka
Hello again, sorry for flooding but describing these things may help someone in the future.
I did some research in the forum and saw something about a bug in Libusbk. So I've uninstalled and reinstalled it and now my PS4 recognizes the DFGT!
But.... the thing works for about 30 seconds and then stalls.
The log gives me this as soon as it stops working:
libusb_submit_transfer: Input/Output Error.
adapter_forward_data_out failed
If I restart Gimx, it works again... for 30s and then I get the same error.
Any thoughts?
Thanks!
Re: problem with pc detecting DIY adapter
Posted: Fri Feb 12, 2016 1:07 pm
by Matlo
Hi,
You are going the wrong way.
You should restore the original libusb-1.0.dll and make sure the USBDK component is installed.
Its installation is suggested at the end of the GIMX installation.
The installer is available in C:\Program Files\GIMX\tools\usbdk.
Please post complete logs, not partial ones.