Page 1 of 1

2 diy adapter to simulate player1 & player2

Posted: Thu Mar 23, 2017 9:15 pm
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.

Re: 2 diy adapter to simulate player1 & player2

Posted: Fri Mar 24, 2017 11:54 am
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

Re: 2 diy adapter to simulate player1 & player2

Posted: Fri Mar 24, 2017 12:01 pm
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.

Re: 2 diy adapter to simulate player1 & player2

Posted: Fri Mar 24, 2017 12:54 pm
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.

Re: 2 diy adapter to simulate player1 & player2

Posted: Fri Mar 24, 2017 3:05 pm
by Matlo
I suspect there is a faulty contact between the boards.
For further help, please post a clear picture showing the wirings.

Re: 2 diy adapter to simulate player1 & player2

Posted: Fri Mar 24, 2017 7:48 pm
by on9kim
http://imgur.com/a/HjVck

When i run them one by one. with GUI (not command line), they work well separately.

Re: 2 diy adapter to simulate player1 & player2

Posted: Fri Mar 24, 2017 8:47 pm
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 =)

Re: 2 diy adapter to simulate player1 & player2

Posted: Fri Mar 24, 2017 9:54 pm
by Matlo
It's a GIMX bug: https://github.com/matlo/GIMX/issues/448
I will be fixed in GIMX 6.5.