-
-
Notifications
You must be signed in to change notification settings - Fork 712
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
Add support for SEQURE S99, and new Rev. of S60P #1920
base: dev
Are you sure you want to change the base?
Conversation
Co-authored-by: discip <[email protected]>
Co-authored-by: discip <[email protected]>
Hia, This is great progress. The black screen at startup is odd. PD negotiation shouldn't block boot. Is it possible its being restarted rapidly with flaky USB-PD? (Do you have any tools for debugging USB-PD)? I haven't really worked on the |
Hey, yeah. It seems to restart rapidly. It seems to be especially with the Apple Chargers. Another charger I tried let the iron boot straight up. Sadly I don't have special USB-PD tools. Maybe I need to get something or build something to hook a logic analyzer on? As I could see with the debug menu, when it comes up it gets all available PD modes, but stays in 5V mode. I think I need to take a look at the measurement of the tip for the power calculation? Maybe you can give me a hint on that? |
@Ralim I'm currently digging a bit through the code and debug outputs of the iron. I wondered why it reports Regarding the PD negotation problem with my Apple 60W USB-C PSUs I tried to increase the PROTOCOL_TIMEOUT to 200 ms, which helped. The Iron boots instantly. PD Debug First Shows I hope I can make some progress tomorrow. |
Ah heck, yes that will fix the issue
|
@Ralim It's a bit unclear to me. In the Settings.cpp
How did you determined the value for the OP_AMP_GAIN_STAGE? |
Ah sorry, I think we raised the default later on.
In the S60, its two sequential op-amps chained. Input op-amp has feedback resistors of 9.31K and 1K. (therefore gain is 10.31) So 10.31 * 50 = 536.12; so the define is set to 536 |
* Enable PD Options * Make PDNegTimeout configureable * Add default value for PDNegTimeout, also for S60 and S60P * Add basic DC detection / correct debug readings while powered via DC * Add basic ThermoModel for C245 Tips * Modify op-amp gain
bool getIsPoweredByDCIN() { return false; } | ||
bool getIsPoweredByDCIN() { | ||
#if POW_PD_EXT == 2 && defined(POW_DC) | ||
if (!FS2711::has_run_selection()) { |
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.
👍🏼
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.
This seems sane to me at a read.
Let me know when you are happy with this by marking it ready for review 🙇🏼 |
Nice! |
I compared the temperature at a setpoint of 320°C to a original JBC station. In my eyes the coefficient is okay for a first shot. Then I observed that the name and description for PDNegTimeout and USBPDMode are not shown in the menu. I quite don't get it. The menu Item is here I got a second S99 which is V1.5 instead of V1.4, it seems that they changed something. Although a FS2711 is used, it does not negotiate PD. I quickly took two picutes: |
@Ralim, I tried your increased pwm speed. Works great on the S99! No more restarts, even with power limit set to 60W on a 60W USB-C charger. What I got so far regarding v1.5
|
Connected to MacBook:
(Nothing else available when pressing Button) Connected to Phone: Stays off now... Connected to Anker 775 GanPRIME 65W Laptop Port:
Connected to Anker 775 GanPRIME 65W Other Port:
Hope this helps somehow... let me know what else I can do to provide info |
@schinken that indicates that the communication with the PD chip is working as expected. IronOS/source/Core/Threads/OperatingModes/ShowStartupWarnings.cpp Lines 86 to 92 in c19e882
Thats the code which shows the warning. I remeber that it showed to me as well. But now it's gone for both of my Irons. I assume that you are still getting the "No USB-PD IC detected!" message? Maybe the probing which I use for detecting I2C devices causing a locked bus or prevent a second probing? I could try to add an additional unclogging sequence. |
Did that and also tried f21630e, but in both cases the result remained the same as mentioned here: #1920 (comment). @Ralim |
@discip With the current implementation the "No USB-PD IC detected!" message is only shown twice. |
@jonasius Though please keep in mind that we are using different hardware: #1920 (review) Result is still the same:
I'm using the following power supply: Anker Nano II 65W. |
Happens with my S60P even on stock. PD and PPS both, I have used xiaomi and spigen 35w power supplies. I contacted sequre, they told me to try 65w+ supply. I did, and it doesn't reboot anymore. |
@jonasius @Ralim |
@discip I'll within the next days. I'll also try to figure out the error with faulty I2C communication.
@ReimuHakurei I would assume that resetting without the iron heating is ether a wrong timeout or a bad USB-C cable. I have a silicone cable which shows such behaviour on a charger which is working fine with another cable. Some cables show weird stuff, one cable of mine only works in one specific orientation. |
Looks like it does work with a 140W EPR power brick so it must just not like the Dell charger for some reason -- odd as that generally works fine on other devices. |
The No-PD IC detected warning is only shown 3 times fwiw, so if looking into that you will have to do a settings reset under the advanced settings to get it to show up again. |
@discip if you want you can test the following build and see if the PD ic communication is working with your S60P. |
As a new user of IronOS, I want to thank you for your passionate work. I just flashed the build from jonasius/IronOS/actions/runs/10289925091 on my new S99, and the first issue I encountered was when I flipped the display orientation to left-handed. The idle screen seems to be experiencing some graphical issues. |
@jonasius Unfortunately, the result is still pretty similar:
|
@pineapple-academic @Ralim |
Just a heads up, the work done here seems to have fixed my OG v1.0 S60P, which uses the same PD IC as v1.5 S99 and identical board and other components to the v1.4 S99. Takes about 600ms to reach target temperature now lmao. |
@discip Just a few quick notes.
For testing purposes I reversed the detection. Probing on bus 1, if present setting bus 1, otherwise setting bus 2. Interestingly with this procedure negotiation fails on both of my S99 (one with USB-PD IC on bus 1 and the other with USB-PD IC on bus 2). But only one iron is showing the "No USB-PD IC detected!". Based on that I will investigate further within the next days. |
@jonasius |
What is the new behavior (if this is a feature change)?
IronOS booting on Sequre S99
Other information:
Currently work in progress.
Problems / Todo
State 0 0 21
multiple times, with blinking/resetting screen, after a while showingState 4 1 21
.OP_AMP_GAIN_STAGE 536
needs to be adjusted according to the 22k resistor instead of 51ksource/Code/BSP/Sequre_S60
folder should be renamed toSequre
?