Page 1 of 1

Where I can find serial commands for ps4 controller?

Posted: Mon Jul 24, 2017 12:36 pm
by SelfMake
Hello -
I'm looking fo the commandlist to interact with the gimx over serial/com-port.

Can't find it... so what I mean is how to translate the controller map (https://gimx.fr/wiki/index.php?title=Controller_Maps) to serial command?


Thanks

Re: Where I can find serial commands for ps4 controller?

Posted: Thu Aug 03, 2017 8:32 am
by Matlo
Hello,

It's much easier to leave this task to a GIMX instance, and to send inputs to this instance using the network API.
https://gimx.fr/wiki/index.php?title=Network_API

If you still want to learn how GIMX talks with the serial port, you'll have to read core/adapter.c (current master branch) or core/controller.c (current development branch).

Re: Where I can find serial commands for ps4 controller?

Posted: Thu Aug 03, 2017 1:15 pm
by SelfMake
Thanks -
I've figured out that stuff but i'm missing how to handle that what you called "spoof"-header to keep on the connection.
Do you have a little explanation about this?

Re: Where I can find serial commands for ps4 controller?

Posted: Sun Aug 06, 2017 9:55 am
by Matlo
It's complicated. You have to talk with a DS4 to pass the authentication.