Random inputs

Need help? Ask here and someone will help
Post Reply
CrendKing
Posts: 15
Joined: Sat Jan 17, 2015 10:42 pm

Random inputs

Post 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!
User avatar
Matlo
Posts: 5764
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Random inputs

Post 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.
GIMX creator
CrendKing
Posts: 15
Joined: Sat Jan 17, 2015 10:42 pm

Re: Random inputs

Post 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!
User avatar
Matlo
Posts: 5764
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Random inputs

Post by Matlo »

What hardware parts are you using?
GIMX creator
User avatar
Matlo
Posts: 5764
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Random inputs

Post by Matlo »

I think there is a problem with the hardware.
GIMX creator
CrendKing
Posts: 15
Joined: Sat Jan 17, 2015 10:42 pm

Re: Random inputs

Post 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?
User avatar
Matlo
Posts: 5764
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Random inputs

Post 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
GIMX creator
Post Reply