Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restart in case of PPS #5

Open
norbiv8 opened this issue Sep 7, 2024 · 8 comments
Open

Restart in case of PPS #5

norbiv8 opened this issue Sep 7, 2024 · 8 comments

Comments

@norbiv8
Copy link

norbiv8 commented Sep 7, 2024

Hi,
I rebulilt this project following your instructions which made the process smooth, thanks. I found that when I want to use PPS voltages the power supply and/or circuit restarts after some seconds after I set the desired voltage. With the fixed voltages (5V, 9V etc.) the issue is not appear. Tested with UGREEN 65W, 100W and SJÖSS (IKEA) 30W power supply too, all of them producing same issue. Lastly I tried with a cheap noname Aliexpress one which works without problem. The CH32X035-USB-PD-Adapter behave very same. Have you tried with one of the power supplies above?

@wagiminator
Copy link
Owner

Hi, thanks a lot for the information. I don’t have such a power supply myself; mine are all actually from Aliexpress. Could you please try if it works with a load connected to the output? Maybe the power supply shuts off if not enough current flows for a while (as an energy-saving measure). I know something like that, at least, from power banks.

@norbiv8
Copy link
Author

norbiv8 commented Sep 7, 2024

Hi Stefan,
thanks for good idea, it didn't come into my mind. During a test with 500mA load (it should be enough to keep alive the power supply) it producing same issue unfortunately. It looks like I have to dig into details to understand the root cause. Did you use the chip manufacturer example code for yor project?

@wagiminator
Copy link
Owner

That's a shame, but I guess that would have been too easy.

I closely followed the manufacturer’s implementation, but of course, it’s quite possible that I may have overlooked something. What’s interesting is that the negotiation seems to work initially. Maybe it needs to be repeated regularly in this case. If you ever have a lot of time and feel like it, you could try testing the manufacturer’s implementation.

@norbiv8
Copy link
Author

norbiv8 commented Sep 7, 2024

I thought that it will be an easy Saturday afternoon project :D

Anyway, I hooked up logic analyzer to CC line, after negotiation or voltage set there is no regular communication on the line in case of the noname power supply. In case of UGREEN power supply the restart happens 13.8-13.9sec after last frame. I'm going to check the spec, it might necessary to initiate communication regularly as you wrote.
Just for curiosity I tried to decode the CC line, it is not perfect I mean not all frames decoded.
increase_pps_to_5050mV_noname.txt
increase_pps_to_5050mV_ugreen.txt
negotiation_after_power_up_noname.txt
negotiation_after_power_up_ugreen.txt
restart_event_ugreen.txt

Edit: Yes, PPS needs keep alive communication (section 6.6.19 in spec), nominal timeout value is 13.5sec which is corresponding to my measurements. Do you have plan to implement this into your project?

@wagiminator
Copy link
Owner

What do you think, how many times I’ve looked forward to relaxed weekend projects? ;-)

Aha, that probably explains the problem. I guess I’ll have to take another look. Could you please try and see if the issue also occurs when you increase/decrease the requested voltage after about 10 seconds?

wagiminator added a commit that referenced this issue Sep 8, 2024
@wagiminator
Copy link
Owner

I thought this was supposed to be a quiet Sunday morning :D

Try the updated version.

@norbiv8
Copy link
Author

norbiv8 commented Sep 8, 2024

I confirm it works with fiexd and PPS voltages too. Thanks!

@wagiminator
Copy link
Owner

Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants