Page 1 of 1

Random inputs

Posted: Sun Feb 01, 2015 8:46 am
by CrendKing
Hi. I'm currently using GIMX 3.5 on PS4, DIY USB adapter. Up until yesterday, everything worked fine. Since yesterday a strange problem surfaces. When I start GIMX, for the first 10 or 15 seconds PS4 receives correct inputs. After that suddenly the PS4 start to receive random inputs. For example the share button is pressed (even it is not assigned a key in the config), mouse left click or move up. Sometimes PS4 just stop receiving any input from my keyboard and mouse. At the same time in Windows the curses window still shows the input correctly. If I terminate GIMX and restart again, it works for 10 seconds and then random. During the random input time, all actual input still works.

If I use the --status parameter, I can see that when the random key press happens, there is no log entry in the window.

I do not think anything in the adapter is different. PS4 firmware is the same version. Windows reboot does not work. Changing USB port does not work.

One more strange thing. PS4 has 2 USB ports. Sometimes when I plug the adapter in USB 1, it shows WaitForSingleObject time out. If I switch to USB 2 it immediately start to work. Sometimes the opposite.

Thanks for help!

Re: Random inputs

Posted: Sun Feb 01, 2015 7:30 pm
by Matlo
I suggest you to check your USB cables as one might be bad. Also check the wires between the teensy and the cp2102, make sure there is no bad contact.

Re: Random inputs

Posted: Mon Feb 02, 2015 12:51 am
by CrendKing
Thanks for help. I changed both USB and serial cables. Still same problem. Also when random input happens, the status window may show a line

nhandled packet (type=0x<number>)

where number could be 11, 22 or 33. This line only show once. I found it could be from https://github.com/matlo/GIMX/blob/mast ... ter.c#L392 . Not sure if this is incoming or outgoing route. Also not sure why incorrect byte is seen. Is it the CP2102 broken? If it is broken, I wonder if the bluetooth method is stable now and I'd try that approach instead.

Thanks!

Re: Random inputs

Posted: Wed Feb 04, 2015 11:18 pm
by Matlo
What hardware parts are you using?

Re: Random inputs

Posted: Thu Feb 05, 2015 10:34 am
by CrendKing

Re: Random inputs

Posted: Tue Feb 10, 2015 7:37 pm
by Matlo
I think there is a problem with the hardware.

Re: Random inputs

Posted: Tue Mar 03, 2015 9:52 am
by CrendKing
I believe you are correct. Something is wrong with the CP2102. I bought a bluetooth dongle and living in happy life :) Only slight problem is that I have to bring up a virtual machine. Thanks.

May I ask why is Teensy needed for the pairing? Do you actually store something into Teensy and transfer to the PS4?

Re: Random inputs

Posted: Tue Mar 03, 2015 10:50 am
by Matlo
The Teensy is used to transfer the bluetooth address of the dongle to the PS4, and to retrieve a corresponding link key from the PS4.

I'll try to add a test tool for the CP2102 in a future release: https://github.com/matlo/GIMX/issues/313