BlueRetro icon indicating copy to clipboard operation
BlueRetro copied to clipboard

Request to Add Suport for Gamesir G4 Pro

Open IgorPereira1997 opened this issue 1 year ago • 10 comments

BlueRetro firmware version

v24.04

BlueRetro firmware specification

HW1

BlueRetro firmware variant

Universal

BlueRetro hardware type

External adapter with detachable cord

Manufacturer

darthcloud/BlueRetro Team

System used

Sony PlayStation 2

Bluetooth controller brand & name

Gamesir G4 Pro

What is problem? (only list ONE problem per report)

The controller is identified correctly, but the connection between G4 Pro and BlueRetro constantly is turned off for 3-5 seconds until the reconnect again, making it hard to play with this specific controller into PS2

What did you expect to happen?

Expected the controller to, once connected, remain connected with BlueRetro in a stable form so playing with it is possible without problems

Attach files like logs or Bluetooth traces here

gamesir_g4_pro_trace.zip

Order of buttons pressed:

X, Y, A, B, D-pad (left, up, right, down, in that order), Start, Select, RB, RT, LB, LT, L-Analog (left, up, right, down, in that order), R-Analog (left, up, right, down, in that order), RSB, LSB

Page of the controller: https://www.gamesir.hk/pages/g4pro-tutorial

EDIT: The buttons' mapping are perfect, the real problem is that de G4 Pro and BlueRetro lose their connection quite frequently disconnecting for about 15-20 seconds and then reconnecting again, with the buttons pressed while the break connection occurs "stuck" pressed until i reset Blueretro.

In XInput Mode, BlueRetro doesn't connect to G4 Pro, on Bluetooth mode it connects, but the behaviour I'm talking about occurs.

Image ans location of controller's buttons:

Sdc36810cbfa546618c7e3222cc62fbb5S jpg_640x640Q90 jpg_

IgorPereira1997 avatar Jun 28 '24 19:06 IgorPereira1997

I made a new way to debug issue like this in v25.01, could you try to get me a debug trace following theses instructions? https://github.com/darthcloud/BlueRetro/wiki/Debug-trace

Thanks

darthcloud avatar Jan 24 '25 04:01 darthcloud

I updated the firmware and used the new Debug way. Sending you the trace in zip format and the order of button configuration was this one:

Up, Down, Right, left, Y, B, A, X, R3, L3, L1, L2, R1, R2, L-Analog (Up, Down, Right, Left), R-Analog (Up, Down, Right, Left)

br_debug_trace.zip

I'll test if the connection remains stable with the new update, but in any case, this is the debug trace.

Edit 1: The controller loses connection with Blueretro every 30-20secs, and takes 1 or 2 secs to reconnect again. The only mode where the connection succeeds is the X-Input mode. The buttons, when connected work just as it's expected. The real issue is the connection's stability, making gameplay with G4 basically impossible.

Looking forward to further investigation on the issue, and keep up the good work, your project is amazing!

IgorPereira1997 avatar Jan 25 '25 21:01 IgorPereira1997

I don't see the disconnection in the trace. Can you make another trace, this time wait for the controller to disconnect by itself and then save the trace.

If you already did that then is possible that the trace ran out of space.

darthcloud avatar Jan 29 '25 02:01 darthcloud

@IgorPereira1997 Friend, did you manage to get it working? I have your controller and I would like to be able to use it with blueretro, also with my Thunderobot G45 Pro and Flydigi Vader 4 Pro controllers, but I still have no references on that.

Petruaka avatar Feb 03 '25 01:02 Petruaka

Sorry for the long time to answer, I have been very busy this week. But here's the debug trace with the connection interruptions:

br_debug_trace (1).zip

So, i did just like you asked. It lost the connection two times, just so you could trace it a little better. after the first time, i pressed the Left Analog Stick upwards two times, just as a reference to you. If you need anything more, just let me know

IgorPereira1997 avatar Feb 03 '25 01:02 IgorPereira1997

@IgorPereira1997 Friend, did you manage to get it working? I have your controller and I would like to be able to use it with blueretro, also with my Thunderobot G45 Pro and Flydigi Vader 4 Pro controllers, but I still have no references on that.

Unfortunatelly no, I still have the issue, so It is basically impossible to play with this particular controller for now

IgorPereira1997 avatar Feb 03 '25 01:02 IgorPereira1997

Can you try this beta: v25.04-beta-19-g5fec5fe8_hw1_universal.zip

make sure you disable debug mode before updating

If it doesn't work make me another debug trace.

Thanks!

darthcloud avatar Feb 05 '25 02:02 darthcloud

Sorry about the long time wihtout return, i've been pretty busy. I tested the beta and unfourtunatelly the problem still persists. It loses the connection and "stucks itself" in the same button(s) i was pressing when the connection cutted out. I'm sending a new debug trace, now i let the cut and reconnect happen three times, while emulating playing a racing game, pressing LPAD left and R2 buttons, with different pressures.

br_debug_trace_16_02_2025.zip

Thank you for keep trying to solve this issue!

IgorPereira1997 avatar Feb 16 '25 22:02 IgorPereira1997

Thank for testing!

Can you try this new one: v25.04-beta-20-g0c497a1e_hw1_universal.zip

darthcloud avatar Feb 17 '25 04:02 darthcloud

Well, there are some updates. On The PS2 (I have a slim 90000 series) it behaved a little differently. Instead of being stuck, it sees when joystick was disconnected and after a couple of seconds it reconnects again, but it gets "stuck" on the last action i had pressed when the cut off happend. After that, i've came to generate a new debug trace, but to my surprise, it interestingly never disconnected, so i coudn't reproduce the issue. I thought of two things: The energy fed by the controller ports might not be penough for blueretro to work, or because I played using a usb hdd, it might somehow "stealed" some of the available energy from PS2. I don't know if this is indeed a factor, but I found this situation very interesting when it happened. here's the debug trace:

br_debug_trace (1).zip

IgorPereira1997 avatar Feb 22 '25 19:02 IgorPereira1997