Arduino only-based adapter (no PC needed)

Discuss everything to do with GIMX here
ThijsNL
Posts: 22
Joined: Mon May 06, 2019 5:43 pm

Re: Arduino only-based adapter (no PC needed)

Post by ThijsNL » Mon May 13, 2019 2:52 pm

I never mentioned that imo. But if i did, i wouldnt put in on github ;) i want to make it to work with my 2nd hand hori pad fps4 controller as well, but its a bit diffetent to the sony controller (however it works when you connect it straight to the ps4 so something to find out.

Making it work without genuine controller need some serious hacking or cloning keys.. Both violating sony's (copy)rights so i wont burn my hands on that

Mysli0210
Posts: 18
Joined: Thu Jul 06, 2017 7:10 pm

Re: Arduino only-based adapter (no PC needed)

Post by Mysli0210 » Mon May 13, 2019 11:25 pm

Must have been me then xD
if the hori pad works, what is the reason for tinkering further?
does it auth in another way, if even at all?

would it really violate the (copy)rights, to send some data that looks like a controller... hmm bugger.

Mysli0210
Posts: 18
Joined: Thu Jul 06, 2017 7:10 pm

Re: Arduino only-based adapter (no PC needed)

Post by Mysli0210 » Tue May 14, 2019 12:30 am

I dont know, if this can be of any help to get further, or if you have seen it before
https://www.psdevwiki.com/ps4/DS4-BT
but i hope it can help in some way :D

ThijsNL
Posts: 22
Joined: Mon May 06, 2019 5:43 pm

Re: Arduino only-based adapter (no PC needed)

Post by ThijsNL » Mon May 20, 2019 8:53 pm

Thank you Mysli0210,

That link you gave me was quite useful, but i already found it by another URL, almost identical information.
What bothered me is why the Hori FPS pad4 did not work as Authentication device

I made a special USB cable and sniffed on the D- and D+ lines, parsed the signals and made a Hori PAD 4 emulator.
Strange thing is that now it keeps working (even after 17 mins) while doing nothing different like i did with the G29 emulation.

The only things i changed were the USB (config) descriptors, etc.

A bit offtopic but: The F1/F2 replies come without a valid CRC (they are 00 00 00 00). However the F1 replies still follow the layout described in the link above.

Mysli0210
Posts: 18
Joined: Thu Jul 06, 2017 7:10 pm

Re: Arduino only-based adapter (no PC needed)

Post by Mysli0210 » Wed May 22, 2019 11:36 pm

you're welcome :D

Could you, by chance provide me with a name and/or link for the tiny 2 port usb hub, you got?

ThijsNL
Posts: 22
Joined: Mon May 06, 2019 5:43 pm

Re: Arduino only-based adapter (no PC needed)

Post by ThijsNL » Thu May 23, 2019 7:01 am

It was a HUB from years ago left on the shelf:

I think you can google it with 'Cute USB Mini 2-Port'

currently i am using a Sitecom CN-050 USB HUB but many HUBs will do the trick.

P.S. Another banggood HUB did not work for me and the sitecom requires controller in PORT1, wheel in PORT2. Although, i think this is more because of a sloppy software implementation rather then a non working HUB.

Mysli0210
Posts: 18
Joined: Thu Jul 06, 2017 7:10 pm

Re: Arduino only-based adapter (no PC needed)

Post by Mysli0210 » Fri May 24, 2019 12:08 am

Cool Thanks :D

i couldn't find the exact same model as yours on aliexpress... but i found this
https://www.aliexpress.com/item/CHUYI-U ... 33777.html
Which is quite small too, i do hope, that it being usb 3.0 means it has a better hub ic :)

mohamed-raad
Posts: 13
Joined: Sat Oct 06, 2018 8:35 pm

Re: Arduino only-based adapter (no PC needed)

Post by mohamed-raad » Fri May 24, 2019 4:45 am

good job ThijsNL
that is very useful


i have been looking for it for a long time



can you please make a tutorial on programming the arduino and the linking



and is it possible to use atmega34u chip as USB Host Shield ?

ThijsNL
Posts: 22
Joined: Mon May 06, 2019 5:43 pm

Re: Arduino only-based adapter (no PC needed)

Post by ThijsNL » Fri May 24, 2019 7:55 am

@Mysli0210 Nice, i think it will do the job, as a USB 3.0 hub will support legacy USB 1.1 (used for controllers/wheel). let me know if you have any issues. Sometimes a large hub (not in this case) having e.g. 7 ports are built with 2 USB hubs were the second chip uses a port of the first hub. Then you need to initiate another HUB in the sources.


@mohamed-raad: The Atmega32U4 isn't capable of being USB Host, which is needed for communicating with the wheel and controller. You only options are a dedicated USBHost-to-SPI chip or some microcontroller containing both an USB host (or OTG) controller and a peripheral controller.

For the tutorial, I need to write down. The sources at the moment are using an ugly hack for debugging which need you to alter a settings.h file. I would rather change the code so that this hack is not needed anymore. Any suggestions?

Kind regards,
mathijs

mohamed-raad
Posts: 13
Joined: Sat Oct 06, 2018 8:35 pm

Re: Arduino only-based adapter (no PC needed)

Post by mohamed-raad » Fri May 24, 2019 8:24 am

I am sorry ,i didnt mention that
i want it to play with mouse and keyboard without the pc

so , do I need the host shield ?

Post Reply