Where I can find serial commands for ps4 controller?

Talk about anything concerning the source code.
Post Reply
SelfMake
Posts: 2
Joined: Mon Jul 24, 2017 12:30 pm

Where I can find serial commands for ps4 controller?

Post by SelfMake » Mon Jul 24, 2017 12:36 pm

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

User avatar
Matlo
Posts: 4245
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

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

Post by Matlo » Thu Aug 03, 2017 8:32 am

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).
Donate Shop

SelfMake
Posts: 2
Joined: Mon Jul 24, 2017 12:30 pm

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

Post by SelfMake » Thu Aug 03, 2017 1:15 pm

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?

User avatar
Matlo
Posts: 4245
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

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

Post by Matlo » Sun Aug 06, 2017 9:55 am

It's complicated. You have to talk with a DS4 to pass the authentication.
Donate Shop

Post Reply