-
-
Notifications
You must be signed in to change notification settings - Fork 741
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
WIP: support for Sequre S60P #1883
Conversation
pdo selection still needs a lot of work should hopefully have that done this week |
Thank you very much for taking this on. 😃👍🏻
I've converted this into a draft for now. |
@ArturoGuerra Have you tested this on your device? |
Not ready yet I have tested it and pdo selection still has some issues |
Sorry for digging around in your PR. 😓I initially tried to merge your fork s60p into mine, but somehow the changes endet up here in this PR. While doing so, @Ralim merged a PR of his own in and that made the confusion perfect. I hope you are not mad at me. Was just curious and wanted to test the progress you made on my device. Hopefully you will be able to sort this out. If you need me to test I'll be happy to help. |
No worries I'll figure it out 😄 |
@Ralim @discip currently having an issue where I keep on triggering overcurrent protection so the iron keeps restarting, what do I need to tweak to fix that issue? I set the powerSupplyWattageLimit like you guys did here but it still happens IronOS/source/Core/Drivers/HUB238.cpp Line 99 in 9f6f2f8
|
If its working fine apart from over current tripping, I'm happy to look into that. I want to re-work the PWM control of these devices anyway so I can sort that out then? So long as the rough work of voltage & PDO selection is done, thats really the biggest pest. |
Yeah voltage and PDO are working as expected now, using the same selection logic that was used for USBPD.cpp |
can you check which pdo profiles it shows in the debug menu |
Sorry missed your post. 😅
|
that shouldn't even be possible since the debug menu has a check for 0V so that shouldn't even be displayed, I'll add another item to the debug menu to check the current protocol hold on |
@discip check with the latest commit the last value in the state debug screen should be the current protocol, 21 PD 20 PPS 4-6 for QC |
Back to the rebooting-loop. Was able to get a peek in first: then: |
can you try with this one S60P_EN.zip |
Unfortunately no change. |
interesting cuz the power IC does make it to PD mode so the charger should send back the PDOs and we don't really need to worry about intercepting those in time as the power IC saves them so what I think is happening is that we are reading those registers too early let me tweak the code a bit and we'll try again |
does this charger work with the original firmware btw? |
Yes, it does. |
@discip try with this new commit it should now read the PDO registers every time the power_check loop runs, should fix any timeout issues we might have had |
|
@discip interesting found a charger that causes the exact behavior you are experiencing, looks like enabling the PD protocol causes the iron to reboot for some odd reason i'll try to figure it out |
@discip changed the protocol selection timing it should work now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why you changed up the Front.h file.
The rest looks great.
Thank you massively for this work, it's extremely appreciated. I'll try and look into tuning the pid and pwm this week |
Have you had time for this yet? |
What is the new behavior (if this is a feature change)?
Other information: