darthcloud / BlueRetro

Multiplayer Bluetooth controllers adapter for retro video game consoles
https://blueretro.io
Apache License 2.0
1.29k stars 109 forks source link

PS1 5501 PU-18 rev. 1-644-537-52 random button inputs #102

Closed dryja123 closed 9 months ago

dryja123 commented 2 years ago

Using the PSUnoRetro adapter from Will's Console Modifications. As soon as I connect the device to my PS1 it starts to spam random button inputs. I factory reset the device and that did not resolve the issue.

Reached out to Will and they said that this is a known issue with certain revisions of the 5501 / PU-18. My board is a PU-18 1-644-537-52.

Opening an issue for tracking.

darthcloud commented 2 years ago

Will sent me one of those mobo, will look into it when I receive it.

dryja123 commented 2 years ago

Awesome, he said he was sending one out for you. Just wanted to open a ticket so it will be searchable for others, if they have an issue.

Batossai84 commented 2 years ago

I have the same problem. pu-18 with ps1digital and xstation installed. I tried 2 different unoretro. One with the original firmware and another with 1.1. They behave the same way, random button inputs and I could not use a bluetooth mouse either.

marceloMedeiros commented 2 years ago

I have the same problem. pu-18 with ps1digital and xstation installed. I tried 2 different unoretro. One with the original firmware and another with 1.1. They behave the same way, random button inputs and I could not use a bluetooth mouse either.

Since i also have a pu18 with ps1digital and xstation and blueretro seems to be working fine on my end, maybe we can figure out whats causing the problem if we compare our setups and use case. In my case, in addition to the aforementioned, my ps1 also has a willconsolemods psu replacement, and im using a nice 12v 5a psu with it.

Can you describe what is your setup exactly? And the steps to reproduce the erractic behavior (i.e. ,what games you are running, etc)

dryja123 commented 2 years ago

I have the same problem. pu-18 with ps1digital and xstation installed. I tried 2 different unoretro. One with the original firmware and another with 1.1. They behave the same way, random button inputs and I could not use a bluetooth mouse either.

Since i also have a pu18 with ps1digital and xstation and blueretro seems to be working fine on my end, maybe we can figure out whats causing the problem if we compare our setups and use case. In my case, in addition to the aforementioned, my ps1 also has a willconsolemods psu replacement, and im using a nice 12v 5a psu with it.

Can you describe what is your setup exactly? And the steps to reproduce the erractic behavior (i.e. ,what games you are running, etc)

When I was speaking to Will about the issue, he was saying that there are different board revisions of the PU-18. In my case I have a PU-18 1-644-537-52. Can you confirm that you have the same PU-18 revision?

For me, the issue happens as soon as I insert the PSUnoRetro. It's not game specific, even happens at the memory card manager screen. As soon as you plug the device in it just starts spamming inputs.

If you could provide your PU-18 revision that would be extremely helpful, since you're not having the issue.

Batossai84 commented 2 years ago

Eur 5502 PU-18 1-664-537-52 serial C5578908 (will psu, will igr, ps1digital, xstation) there are lot of random button inputs. Usa 5501 PU-18 serial U7559134 (psio) there are less random inputs, but they still exist. Pressing start or if you pulse and mantain a button it is pressed again after some time, while this doesn’t happen on a regular controller. Eur 7502 pu-20 (psio) everything seems to work fine. Sorry for not sharing the board of the usa, but I would have to unscrew too many things and I don't have time to do it. edit: I´m sorry, I rechecked the image of my installation and it is the same as marceloMadeiros. I didn´t write it right before.

marceloMedeiros commented 2 years ago

I have the same problem. pu-18 with ps1digital and xstation installed. I tried 2 different unoretro. One with the original firmware and another with 1.1. They behave the same way, random button inputs and I could not use a bluetooth mouse either.

Since i also have a pu18 with ps1digital and xstation and blueretro seems to be working fine on my end, maybe we can figure out whats causing the problem if we compare our setups and use case. In my case, in addition to the aforementioned, my ps1 also has a willconsolemods psu replacement, and im using a nice 12v 5a psu with it. Can you describe what is your setup exactly? And the steps to reproduce the erractic behavior (i.e. ,what games you are running, etc)

When I was speaking to Will about the issue, he was saying that there are different board revisions of the PU-18. In my case I have a PU-18 1-644-537-52. Can you confirm that you have the same PU-18 revision?

For me, the issue happens as soon as I insert the PSUnoRetro. It's not game specific, even happens at the memory card manager screen. As soon as you plug the device in it just starts spamming inputs.

If you could provide your PU-18 revision that would be extremely helpful, since you're not having the issue.

I wasnt sure what exact revision mine was so had to crack it open. And yep, just confirmed and it seems to be the exact same revision.

Also forgot to mention that on top of everything i already mentioned, im also using a memcardPro.

Finally, i want to clarify that im using a reference Blueretro device, not the PSUnoRetro. And I use just one blueretro for both controllers (with a 2 player cable).

Im not sure if thats relevant or if the PSUnoRetro is the exact same thing or a custom device with different characteristics compared to the reference design. But i think it might be relevant...since our setup seems to be almost identical, except for the blueretro device itself.

8583ba78-9db2-4c4c-8b0f-580f38fd5c16 8cf15980-b118-46fe-939d-c4b9b488b9ab

dryja123 commented 2 years ago

I have the same problem. pu-18 with ps1digital and xstation installed. I tried 2 different unoretro. One with the original firmware and another with 1.1. They behave the same way, random button inputs and I could not use a bluetooth mouse either.

Since i also have a pu18 with ps1digital and xstation and blueretro seems to be working fine on my end, maybe we can figure out whats causing the problem if we compare our setups and use case. In my case, in addition to the aforementioned, my ps1 also has a willconsolemods psu replacement, and im using a nice 12v 5a psu with it. Can you describe what is your setup exactly? And the steps to reproduce the erractic behavior (i.e. ,what games you are running, etc)

When I was speaking to Will about the issue, he was saying that there are different board revisions of the PU-18. In my case I have a PU-18 1-644-537-52. Can you confirm that you have the same PU-18 revision? For me, the issue happens as soon as I insert the PSUnoRetro. It's not game specific, even happens at the memory card manager screen. As soon as you plug the device in it just starts spamming inputs. If you could provide your PU-18 revision that would be extremely helpful, since you're not having the issue.

I wasnt sure what exact revision mine was so had to crack it open. And yep, just confirmed and it seems to be the exact same revision.

Also forgot to mention that on top of everything i already mentioned, im also using a memcardPro.

Finally, i want to clarify that im using a reference Blueretro device, not the PSUnoRetro. And I use just one blueretro for both controllers (with a 2 player cable).

Im not sure if thats relevant or if the PSUnoRetro is the exact same thing or a custom device with different characteristics compared to the reference design. But i think it might be relevant...since our setup seems to be almost identical, except for the blueretro device itself.

8583ba78-9db2-4c4c-8b0f-580f38fd5c16 8cf15980-b118-46fe-939d-c4b9b488b9ab

Thanks for confirming. I am also using the PS1 Digital, xStation, and Memcard Pro.

Batossai84 commented 2 years ago

IMG_0065

darthcloud commented 2 years ago

Spend some big buck to get the exact same revision with pre-installed xstation. I tested with the PSUnoRetro Will gave me and I couldn't reproduce the issue.

PXL_20211214_004036720 MP

I'll do more test over the weekend.

The PSU is original and no HDMI mod.

@dryja123 & @Batossai84 can you list all the mod your respective console have?

I assume you tested without the mem card pro to be sure?

Still waiting to receive Will's one and/or one of Will customer donation.

dryja123 commented 2 years ago

@darthcloud my PS1 is modded with the PS1 Digital and xStation. I’ve tested with and without the memcard pro installed. My first thought was the memcard interfering with the device.

darthcloud commented 2 years ago

Re-reading the whole thread look like we can't really blame a particular mod mix. Will be easier to troubleshoot when I get the donation. I got a good PU-18 to compare with which is nice.

dryja123 commented 2 years ago

I would love to let you borrow my console but I don’t trust shippers and with the current state of things. I wouldn’t be able to replace the mods if the console was lost.

I’m happy to test things for you. Just let me know.

darthcloud commented 2 years ago

@dryja123 & @Batossai84 I might have a fix but could not test since I didn't receive problematic board yet, but it's tested to work as before on my PSX. Could you give it a try and report back? 1.2.1_wip.zip

With my scope I was able to see some voltage fluctuation on data output: before_fix

This was due to GPIO not being properly configure as open drain. Not I got no fluctuation anymore: after_fix

I guess most console didn't care much about it but some where sensitive to that and would glitch sometimes.

dryja123 commented 2 years ago

Hey @darthcloud I had an opportunity to flash this firmware. Unfortunately, it did not fix the issue for me. Now when the console turns on the device has a solid white light; indicating an error. I press the reset button (on the unoretro) and the light starts to blink, like it’s pairing. As soon as the light starts to blink it starts to spam button presses.

darthcloud commented 2 years ago

Did you use v1.2 before? So now at every power on the led stay solid, but original 1.2 didn't?

Batossai84 commented 2 years ago

I´m busy working right now and I can´t run many test until the holidays are over. Whenever I could I will transplant the controller piece from the 7502 to the 5502 to check if it is a hardware problem there. The unoretro works fine on my 7502. Last time I updated it took 10 hours using my phone, so I can only update while sleeping. My pc doesn´t have the software to identify the unoretro when I connect it via usb.

dryja123 commented 2 years ago

Did you use v1.2 before? So now at every power on the led stay solid, but original 1.2 didn't?

I used what ever version 0.19.1 and 1.1.1 and didn’t have the issue with the solid white light. I didn’t see the 1.2 release so this was the first time I used it.

darthcloud commented 2 years ago

@dryja123 when you connect to the adapter via OTA page do you see this line in the page log: App version: v1.2-3-g0c51667 psx_ps2

If not the flashing failed. You selected the file BlueRetro_psx_ps2_spiffs.bin in the zip right?

dryja123 commented 2 years ago

@darthcloud I didn’t entirely pay attention to what the log said. I did choose that file. I can flash it up again and I’ll pay closer attention to what the log says.

darthcloud commented 2 years ago

@dryja123 Like just connect to it and check the log, no need to reupload

dryja123 commented 2 years ago

@darthcloud Just hopped on my PC and I left the webpage up from last night. This is the what the live output said:

Requesting Bluetooth Device... Connecting to GATT Server... Getting BlueRetro Service... Get Api version CHRC... Reading App version... App version: v1.1.1 psx_ps2_spiffs Init Cfg DOM... FW upload done. Took: 314.32970000000296 sec

Bluetooth Device disconnected

Connected now:

Requesting Bluetooth Device... Connecting to GATT Server... Getting BlueRetro Service... Get Api version CHRC... Reading App version... App version: v1.2-3-g0c51667 psx_ps2 Init Cfg DOM..

darthcloud commented 2 years ago

@dryja123 ok weird, mine don't have solid led, thanks for testing. I'll just wait to get the board from Will.

TerminatorSVT commented 2 years ago

I've got 2x PU18 1-664-537-62 with identical mods Xstation and PS1 Digital. Only one has the problem.

The other one generally works but has random issues like SF2 randomly pausing but might just be analog/DS mode I enabled or something, haven't investigated as its fine most everywhere else.

Tested the faulting one by removing the Ps1digital controller flex to no avail. Just saw the 1.2.1 data line voltage update just now and subsequently this thread. No change with 1.2.1.

They might have two diff CPUs. Problem one is a CXD8606Q and cooperative one is a CXD8606AQ.

Since I have two with identical pre-installed mods I could send this one complete to examine if you need it.

TerminatorSVT commented 2 years ago

I just noticed the one you couldn't reproduce the problem on is a AQ under the peeled back shield.

darthcloud commented 2 years ago

Email me to darthcloud gmail.com (replace space with @) or DM me on twitter, we can coordinate this way. I'll pay fedex/ DHL overnight both way.

TerminatorSVT commented 2 years ago

Fix: power direct from PS1 3.3v instead of 7v + regulator. 20220122_033626

tajunk commented 2 years ago

Fix: power direct from PS1 3.3v instead of 7v + regulator. 20220122_033626

Thanks for this, but could you clarify a little more on what you did? Is it just remove the third pin from the right, put it in the middle (just to be off the pad I'm assuming?) and wire it to the regulator?

Just wanted to clarify as I'm decent at soldering but the technical stuff escapes me somewhat lol.

dryja123 commented 2 years ago

Fix: power direct from PS1 3.3v instead of 7v + regulator. 20220122_033626

Thanks for this, but could you clarify a little more on what you did? Is it just remove the third pin from the right, put it in the middle (just to be off the pad I'm assuming?) and wire it to the regulator?

Just wanted to clarify as I'm decent at soldering but the technical stuff escapes me somewhat lol.

Reach out to Will’s Console Mods. He said he’s going to issue replacements to those who are having this issue.

tajunk commented 2 years ago

Fix: power direct from PS1 3.3v instead of 7v + regulator. 20220122_033626

Thanks for this, but could you clarify a little more on what you did? Is it just remove the third pin from the right, put it in the middle (just to be off the pad I'm assuming?) and wire it to the regulator? Just wanted to clarify as I'm decent at soldering but the technical stuff escapes me somewhat lol.

Reach out to Will’s Console Mods. He said he’s going to issue replacements to those who are having this issue.

That works too! Thank you

tajunk commented 2 years ago

Fix: power direct from PS1 3.3v instead of 7v + regulator. 20220122_033626

Sorry to bump this again but: I've contacted Will a couple weeks ago now and didn't get a response so it looks like I'm going to have to attempt this fix myself. Any chance I could get some clarification from @darthcloud @TerminatorSVT on what's happening here? Is it just changing the pin location from the third on the right to the middle and wiring it to that regulator or am I missing something? Thank you to anyone who could help!

TerminatorSVT commented 2 years ago

PS has 2x +V pins on the controller port. +3.3v to power controller logic and +7v to power rumble motors.

The old pin location feeds 7v from the rumble and steps it down to 3.3v via the regulator.

For some reason I haven't dug into this is unreliable. There is prob some offset or 3.3 to 7v rail shorting or something wierd going on.

The tab on the SMD regulator is on the 3.3v output side (note this is different from a typical TO-220 style regulator where the tab is GND).

All this does is relocate the pin to the native PS1 3.3v supply and bypassing direct to the 3.3v regulator output side (regulator is thus unpowered). All the tape is just to make sure the pin doesn't touch anything as its floating only by friction with the new shell hole as there is no solder pad to secure it to.

tajunk commented 2 years ago

Thanks so much @TerminatorSVT !! Appreciate the explanation and clarification, I just did the fix and it's working perfect now on my ps1!

darthcloud commented 2 years ago

First off sorry for not actively working on this, but since I don't have HW to reproduce the issue and being now a new father made this important issue less attractive to work on vs adding new features.

Anyway someone suggested this is a BT power issue, so here a FW to try with BT completely off. \<FW removed>

This assume you can reproduce the glitch (random input) in the X-station menu without any BT device connected. If you do, try this FW and the result will help determine if it related to power draw from the radio or not.

TerminatorSVT commented 2 years ago

No worries man haven't even played PS1 since then.

The big issue with random button spam with nothing connected was resolved when moving the power source from 7v pin to 3.3v pin.

Might still be issues with dropped inputs, hard to tell if its blueretro or just software blocking or polling interval. Eg hitting up / down too fast repeatedly.

On Wed, Apr 13, 2022, 6:47 AM Jacques Gagnon @.***> wrote:

First off sorry for not actively working on this, but since I don't have HW to reproduce the issue and being now a new father made this important issue less attractive to work on vs adding new features.

Anyway someone suggested this is a BT power issue, so here a FW to try with BT completely off. v1.5.1_btoff.zip https://github.com/darthcloud/BlueRetro/files/8481956/v1.5.1_btoff.zip

This assume you can reproduce the glitch (random input) in the X-station menu without any BT device connected. If you do, try this FW and the result will help determine if it related to power draw from the radio or not.

— Reply to this email directly, view it on GitHub https://github.com/darthcloud/BlueRetro/issues/102#issuecomment-1098072094, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXH7BFB7RZVYO6FDKWQ7O7DVE3F63ANCNFSM5I7TETHA . You are receiving this because you were mentioned.Message ID: @.***>

darthcloud commented 2 years ago

Another suggestion is to place inline 220 ohm resistor between ESP32 inputs and PS pin 2 (TXD aka CMD), pin 6 (DTR aka CS) and pin 7 (SCK). Original controllers got those maybe for a reason!

dryja123 commented 2 years ago

I received the latest revision of the PSUnoRetro from Will, with the 3.3v change, and the replacement unit is exhibiting the same behavior.

dryja123 commented 2 years ago

I ordered up some 220ohm resistors, they’ll be here tomorrow. I can give it a test.

darthcloud commented 2 years ago

ok cool, I think Will will send you another dongle with those resistor too.

dryja123 commented 2 years ago

Yeah, Will and I had a chat about it. The resistors are cheap and we can have a quick definitive answer.

darthcloud commented 2 years ago

@dryja123 if you use extension keep the cord between the dongle and console less than 1 feet. Long extension made problems for other people.

darthcloud commented 2 years ago

I added the resistor this morning, work fine as before on my PU-18. I took 249 ohm resistors as this is what I had on hand.

PXL_20220414_112112588

dryja123 commented 2 years ago

@darthcloud soldered up the 3 220ohm resistors and I’m still getting random inputs. It doesn’t seem as bad, but it’s still happening. Just a note, pin 3 does look close to the pins on the ESP but there’s plenty of clearance and it’s not shorting. C3EBB45D-5893-42F3-BC2E-B7AAFDFB36F1 8CBAA568-BC0E-489A-AF6F-85B5C1CF6BB4

dryja123 commented 2 years ago

I wish I could send you the console for debugging but the PS1D is impossible to get. I’d be crushed if the console got lost in transit.

darthcloud commented 2 years ago

Thanks for taking time to test it.

I think this will ultimately need more serious analysis with a scope on a system with the issue.

The best would be if someone was willing to sell me one.

darthcloud commented 2 years ago

@dryja123 from what I understand you see random input right away in the xstation menu, right? (no need to connect BT controller).

If it's not too much to ask could you try the no BT FW for BlueRetro? \<FW removed>

This will keep the radio off and would help to tell if the issue is due to power draw spike due to RF TX.

dryja123 commented 2 years ago

@darthcloud right away in the xStation menu and also the system BIOS. If I flash that BT off firmware how do I flash firmware in the future? Would I need to buy a hardware flasher?

I have an ESP dev kit. I might just flash that up and see if it produces the same issue. If it does, I can then just flash normal firmware over USB

darthcloud commented 2 years ago

oh yeah I didn't think about this!

Yeah try with the devkit if you can, try first with regular FW to see if you reproduce, then use the no BT FW.

darthcloud commented 2 years ago

@dryja123 actually holding the boot button 10 sec to factory reset would revert to the original FW the unoretro got ship with.

dryja123 commented 2 years ago

Awesome, I’ll play around with it this weekend. I also misplaced my breadboard so I ordered one up with a bunch of passives. I can play with the resistor values a bit too.