Arduino DIY + Rpi2 + PS4 + G27 crashes after +-8 minutes

Need help? Ask here and someone will help
Post Reply
jonixGT
Posts: 9
Joined: Mon Sep 12, 2016 11:30 am

Arduino DIY + Rpi2 + PS4 + G27 crashes after +-8 minutes

Post by jonixGT »

Hi there,

Sorry to post it again, but I wasn't sure that I posted it in the right place.

As I mentioned in another post (my complete report):

The system starts working normally (the G27 turns from one side to another twice) and I must confirm with the DS4 (X) to enter with my PSN user. Then I must press the most left button in the G27 speedshifter to log in again with the G27. At this time everything it's OK. I can control the PS4 with G27 buttons and I can play Project Cars and Assetto Corsa for about 8 minutes. After that I can feel some force on the wheel, but the car keeps running without my control (steering wheel, pedals, buttons, nothing works). I tried this using the power supply in Rpi2 of an Acer Iconia charger (2A) and connecting directly in a USB control port in PS4. The result it's the same.

I also tested with bertie image in Assetto Corsa with the Rpi2 power supplied by PS4 port and it also crashed after 8 minutes. The FFB also looks to me a little bit different from the other image (by waveform).

When the "system crashes" the Rpi2 still have the red light on and the green keeps flashing once in a while. The red lights on Arduino are always on.

My system is:
- DIY Arduino Leonardo ProMicro ATmega32u4 5V/16MHz
- USB 2.0 TO RS232 UART TTL Serial CP2104 (with Tx and Rx crossed)
- Raspberry Pi2 model B with micro SD with the image GIMX 5.7 Automated Rasbian Image for Logitech G29 USB - 06/04/2016 (cortesy of waveform https://gimx.fr/forum/viewtopic.php?f=11&t=1435 ) and another micro SD with bertie image
- G27

Everything is connected directly into Rpi2 (3 USB) that connects with PS4 by the DIY USB.

I suppose that everything is OK and it's "only" a configuration issue. It always blocks at the same time of use. It looks that there's a "timer" that swith it off, but I really don't understand nothing about Rpis.

I was thinking about to buy a teensy 2.0 to do it all again, but it's very difficult to get one in Portugal...

By the way, what should I start first: the PS4 then the Rpi2 or the Rpi2 first then the PS4? Once in a while I must repeat the start because it doesn't work.

Sorry for so long text, but I'm really sad with this. I'm very anxious to race in Project Cars and Assetto Corsa...



Thank you for your help in advance,

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

Re: Arduino DIY + Rpi2 + PS4 + G27 crashes after +-8 minutes

Post by Matlo »

8 minutes is equal to the controller authentication timeout, i.e. if the authentication did not succeed in the last 8 minutes, the PS4 stops taking inputs.
Check the USB cable connecting the DS4, it may be defective.
GIMX creator
jonixGT
Posts: 9
Joined: Mon Sep 12, 2016 11:30 am

Re: Arduino DIY + Rpi2 + PS4 + G27 crashes after +-8 minutes

Post by jonixGT »

EUREKA!!! I think I solved the 8 minutes problem...!!!

After almost get mad with this, I try to connect the USB in the Rpi2 just like mentioned in http://www.steve-marton.com/gimx/?p=101 , in their respective positions (I know that he's talking about a Rpi3, but I try it).

Then, I suppose that it was by "accident", I turn on the PS4 with the ON/OFF button instead of do it with the PS button on the DS4 as I always do. For my surprise and glad everything start working well for more than half an hour. After that I try it again for almost an hour and stills working fine.

Now I don't know what I was doing wrong, but I don't care. I will keep proceed as described and start enjoying the G27 running on PS4!


Thank you all for your support, especially to Matlo for made this dream come true!


See you on racing track!
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Arduino DIY + Rpi2 + PS4 + G27 crashes after +-8 minutes

Post by Matlo »

It is said in the "Quick Start" instructions to turn the controller off before connecting it to the computer :)
https://gimx.fr/wiki/index.php?title=Qu ... entication
GIMX creator
Post Reply