2 diy adapter to simulate player1 & player2

Need help? Ask here and someone will help
Post Reply
on9kim
Posts: 9
Joined: Tue May 17, 2016 1:33 am

2 diy adapter to simulate player1 & player2

Post by on9kim »

Hello Matlo,

I have 2 working diy adapters (one using teensy2.0 , one using teensy++ 2.0 and they loaded their own firmware).
I managed to get them working well alone.

I wonder what do i need to do in order to make them work together one for player1, one for player2.

I have read this related thread.
viewtopic.php?f=5&t=1241

but I never used gimx on pure linux platform. I only used gimx under windows and raspbian.
Is it possible for windows and raspbian to do it? coz i can only select ONE port on the GUI.
Using gimx 6.4, on PS4.

Thank you very much.
on9kim
Posts: 9
Joined: Tue May 17, 2016 1:33 am

Re: 2 diy adapter to simulate player1 & player2

Post by on9kim »

I used the same command line
gimx -c config.xml -p COMX -p COMY
under windows cmd.exe

the result is quite confusing to me
------------------------------------------------------------------------------------
C:\Program Files\GIMX>gimx -c mix.xml -p COM8 -p COM10
global option -c with value `mix.xml'
controller #1: option -p with value `COM8'
now reading arguments for controller #2
controller #2: option -p with value `COM10'
now reading arguments for controller #3
USB adapter detected, controller type is: DS4.
Timer resolution: min=156001 max=5000 current=5000
USB adapter detected, controller type is: DS4.
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x25
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x25
using default refresh period: 10.00ms
../common/windows/async.c:320 async_read_timeout: ReadFile failed with error: Th
e supplied user buffer is not valid for the requested operation.

can't read packet data
Can't start the adapter.
gimx.c:365 SDL_main: failed to start the adapter
../common/windows/async.c:659 async_get_handle: no such device (0)
../common/windows/async.c:652 async_get_private: no such device (0)
../common/windows/async.c:239 async_close: no such device (0)
------------------------------------------------------------------------------------

once again, one adapter is using teensy++2.0 with EMUPS4\at90usb1286.hex
and the other adapter is using teensy2.0 with EMUPS4\atmega32u4.hex <- i don't think the problem is here coz they both run fine alone
Last edited by on9kim on Fri Mar 24, 2017 12:03 pm, edited 1 time in total.
on9kim
Posts: 9
Joined: Tue May 17, 2016 1:33 am

Re: 2 diy adapter to simulate player1 & player2

Post by on9kim »

I think i got something here.
I have 2 new version DS4 & 1 old version DS4.
When I connect 2 new version DS4 to windows.
I got MORE errors, as follow.

-----------------------------------------------------------------
C:\Program Files\GIMX>gimx -c mix.xml -p COM8 -p COM10
global option -c with value `mix.xml'
controller #1: option -p with value `COM8'
now reading arguments for controller #2
controller #2: option -p with value `COM10'
now reading arguments for controller #3
USB adapter detected, controller type is: DS4.
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x25
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x25
Timer resolution: min=156001 max=5000 current=5000
USB adapter detected, controller type is: DS4.
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x25
unhandled descriptor type: 0x24
unhandled descriptor type: 0x24
unhandled descriptor type: 0x25
using default refresh period: 10.00ms
../common/windows/async.c:320 async_read_timeout: ReadFile failed with error: Th
e supplied user buffer is not valid for the requested operation.

can't read packet data
Can't start the adapter.
gimx.c:365 SDL_main: failed to start the adapter
../common/windows/async.c:659 async_get_handle: no such device (0)
../common/windows/async.c:652 async_get_private: no such device (0)
../common/windows/async.c:239 async_close: no such device (0)
-----------------------------------------------------------------

seems the new model DS4 doesn't run good thru command lines?

Thank Matlo, I hope you know we really appreciate your help, a lot.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: 2 diy adapter to simulate player1 & player2

Post by Matlo »

Hi,

The "unhandled descriptor type" message can be safely ignored.
This may be a bug in the GIMX software. Maybe the controller instances are not properly handled.
I'll have a look whenever I can.
GIMX creator
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: 2 diy adapter to simulate player1 & player2

Post by Matlo »

I suspect there is a faulty contact between the boards.
For further help, please post a clear picture showing the wirings.
GIMX creator
on9kim
Posts: 9
Joined: Tue May 17, 2016 1:33 am

Re: 2 diy adapter to simulate player1 & player2

Post by on9kim »

http://imgur.com/a/HjVck

When i run them one by one. with GUI (not command line), they work well separately.
on9kim
Posts: 9
Joined: Tue May 17, 2016 1:33 am

Re: 2 diy adapter to simulate player1 & player2

Post by on9kim »

i found something, hope that help.

connect old model DS4 ONLY.
teensy++ 2.0 - work
teensy 2.0 - work

connect new model DS4 ONLY.
teensy++ 2.0 - DOES NOT WORK (the program itself thinks it's working, the log got nothing, like started & exit without any input, although u input a lot of things)
teensy 2.0 - work

and it's using version 5.8\EMUPS4\at90usb1286.hex

hope it can narrow down the problem =)
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: 2 diy adapter to simulate player1 & player2

Post by Matlo »

It's a GIMX bug: https://github.com/matlo/GIMX/issues/448
I will be fixed in GIMX 6.5.
GIMX creator
Post Reply