Author Topic: CFW for KSGER/Quicko STM32 Soldering Stations  (Read 1434144 times)

0 Members and 28 Guests are viewing this topic.

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6885
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1700 on: August 15, 2021, 02:49:23 pm »
Check process input function in main screen.c
/drivers/gui/screens

Always check ***screen**_setup function, each screen has it's own, where all the handlers are declared.
Not easy because there's a lot of hacking to make the different main screen functions, it uses a custom process input function, overriding the default one.
Otherwise it would be extremely easy.
You won't be able to set sleep/standby modes neither select tips unless you code your own method.
But is not up to me, spend some days studying the firmware and figuring things out.

Let me be clear about this, I can help a bit, but I won't be teaching how to handle every single bit of the code.
Being open source means "as it is", not free unlimited hours of support.
« Last Edit: August 15, 2021, 03:00:05 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline Cuboy

  • Regular Contributor
  • *
  • Posts: 67
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1701 on: August 15, 2021, 02:59:35 pm »
Not easy because there's a lot of hacking to make the different functions work, it's not the widget doing the work.
You won't be able to set sleep/standby modes neither select tips.
Check process input function in main screen.c
Drivers/Gui/screens
But let me be clear, I can help, but I won't be teaching how to handle every single bit of the code.
Being open source means "as it is", not free unlimited hours of support.

I know, I will try to do it and see if I'm able to do it.

I need to understand pieces of code still, but thank you anyway.

 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6885
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1702 on: August 15, 2021, 03:02:05 pm »
Damn, I always hit post instead preview and then someone quotes me before I finish the message :-DD
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 


Offline Cuboy

  • Regular Contributor
  • *
  • Posts: 67
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1704 on: August 15, 2021, 04:38:48 pm »
Damn, I always hit post instead preview and then someone quotes me before I finish the message :-DD

I've been looking at the code for a little.

Is Widget_SetPoint the widget where the temperature is drawn?

Thanks.
 

Offline tatel

  • Frequent Contributor
  • **
  • Posts: 822
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1705 on: August 15, 2021, 05:40:24 pm »
Some people doing drama, deciding to go away, should realize they're hurting themselves, I don't need help for fixing my own for my own station, and I don't care about bugs for features I don't use (That's why these bugs happen), it's them who aren't going to get any fixes :D

Still cheating yourself... please note that just two persons noticed the regression, and only one bothered to reinstall an old FW version and posted the pictures that show you were wrong. If not for that, you'd be still chasing your own tail. So maybe you should think again who is hurting not just himself... this is the main reason that convinced me I'd be better doing it my own way.

It's easier to deal with C pointers than to deal with a guy unable to acknowledge he could be wrong.


 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6885
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1706 on: August 15, 2021, 06:24:31 pm »
Damn, I always hit post instead preview and then someone quotes me before I finish the message :-DD

I've been looking at the code for a little.

Is Widget_SetPoint the widget where the temperature is drawn?

Thanks.
Yes
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline Cuboy

  • Regular Contributor
  • *
  • Posts: 67
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1707 on: August 15, 2021, 10:14:03 pm »
Read the *** operation guide :-DD.
I really hate those silly questions everytime because lazy people don't want to read!
Rotate while pressed to use big step.

My bad, I skipped that line it while reading through it for the 3rd or 4th time but I'm glad the feature was already there so thanks for that.
Gotta say though, if I could blow as much hot air as you do on a regular basis, I wouldn't need a soldering station.

Your suggestion was added for the temperature increments, i'm waiting for David to review it.
« Last Edit: August 15, 2021, 10:19:10 pm by Cuboy »
 

Offline wickated

  • Frequent Contributor
  • **
  • Posts: 332
  • Country: ru
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1708 on: August 16, 2021, 06:26:50 am »
located "stand only" bug
happens when i change tip with jbc stand so both stand and no iron are triggered. i know, there is no additional pin for tip change shutdown.
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6885
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1709 on: August 16, 2021, 06:36:52 am »
Nice work Cuboy. I already answered your pull request so you fix a little thing.
Wickated, and what happens next? Goes into standby instead of run mode?
« Last Edit: August 16, 2021, 08:01:50 am by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline wickated

  • Frequent Contributor
  • **
  • Posts: 332
  • Country: ru
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1710 on: August 16, 2021, 08:21:38 am »
Wickated, and what happens next? Goes into standby instead of run mode?
yep, cycles through instasleep(on stand)-stanby instead of stanby-run. encoder dont pull out of this state.
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6885
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1711 on: August 16, 2021, 08:35:00 am »
Encoder doesn't wake the station in stand mode, it wouldn't make sense.
But should be able to force standby/sleep modes. Neither does when the bug happens?

Btw, cheap clone jbc handles are just crap. They can't stand that power.
Check ou how the contacts have become purple/blue... They made that shitty cut downs, causing hot spots.
« Last Edit: August 16, 2021, 08:47:21 am by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline Cuboy

  • Regular Contributor
  • *
  • Posts: 67
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1712 on: August 16, 2021, 12:00:54 pm »
Nice work Cuboy. I already answered your pull request so you fix a little thing.
Wickated, and what happens next? Goes into standby instead of run mode?

Added the little fixes, i was wondering why the signs weren't showing correctly at the end, that's why...
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6885
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1713 on: August 16, 2021, 12:37:11 pm »
I didn't test the code, just saw it, like in The Matrix... and told you the issue  :-DD
I thought it would be better that you learned a bit how it goes, and finished your own work  :-+
The current code is a lot cleaner and much more intuitive than before!
I think anyone with some C knowledge should be able to easily mod it.

Remember that screens are dinamically created and destroyed. You won't see the real ram usage at compile time.
So when adding a new screen or adding widgets, you should debug the memory allocation.
You have a define in main.h to enable that. After that, add the variable max_allocated to the variables watch window or live variables.
It holds the max ever allocated value since system boot. Run through all screens, menus, and then check the value.
You can also check the current allocated memory by reading mi.uordblks.
They get updated afer every malloc/calloc/free call.
The system reserves 4KB for the heap. The current heaviest screen is system, with 1.83KB usage.
« Last Edit: August 16, 2021, 12:54:44 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline Cuboy

  • Regular Contributor
  • *
  • Posts: 67
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1714 on: August 16, 2021, 12:55:58 pm »
I didn't test the code, just saw it, like in The Matrix... and told you the issue  :-DD
I thought it would be better that you learned a bit how it goes, and finished your own work  :-+
The current code is a lot cleaner and much more intuitive than before!
I think anyone with some C knowledge should be able to easily mod it.

Remember that screens are dinamically created and destroyed. You won't see the real ram usage at compile time.
So when adding a new screen or adding widgets, you should debug the memory allocation.
You have a define in main.h to enable that. After that, add the variable max_allocated to the variables watch window or live variables.
It holds the max ever allocated value since system boot. Run through all screens, menus, and then check the value.
You can also check the current allocated memory by reading mi.uordblks.
They get updated afer every malloc/calloc/free call.
The system reserves 4KB for the heap. The current heaviest screen is system, with 1.83KB usage.

That's a nice hack right there, thank you!  :-+
 

Offline wickated

  • Frequent Contributor
  • **
  • Posts: 332
  • Country: ru
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1715 on: August 16, 2021, 02:03:52 pm »
Encoder doesn't wake the station in stand mode, it wouldn't make sense.
But should be able to force standby/sleep modes. Neither does when the bug happens?
enocder also shifts to stanby-sleep only
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6885
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1716 on: August 16, 2021, 02:07:58 pm »
What do you expect shifting to? You should already know he encoder ledt-rotation it's  for entering low power modes.
You can't enable any higher power mode with the encoder while in stand mode, in any case you need to remove the stand.
If the sleep/standby timer expired while the handle was put, you need to put the handle in for a moment to reset the state.
You are not supossed to use low timeouts for stand mode, that's more like a safety timeout, as you normally put the handle in and out all the time.
If by any reasons the handle is forgotten or doesn't make contact with the stand, the timeout will be still counting, entering sleep/standby.

Stand mode works perfectly here. I can remove and put the tip a thousand times.
Of course, it goes into sleep when there's no tip, showing NO IRON error.
Do you want to exit sleep mode when you dont have tip? Does that make any sense tyo you?
It returns to normal mode when the tip it's plugged back.

Please take seriously what I said, make proper reports. Not just "hmm it does something strange".
Test it, what, when and how it happens and then report. Otherwise I'm gonna start blowing hot air again ;).
« Last Edit: August 16, 2021, 02:18:49 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline Cuboy

  • Regular Contributor
  • *
  • Posts: 67
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1717 on: August 16, 2021, 02:13:08 pm »
The only usability feature I'd like to see is when turning the encoder fast, I want it to make bigger steps for numerical values. Ie: if I turn the encoder at less than 5 clicks/sec then it increases by 1. If it's faster than that, then it increases by 10. IMO, it would help a lot when manually entering calibration values.
Do you like the feature? Any feedback?

As per testing the new version (which none of the core code has changed) I see that testing temperature plot, with BC3 it's a little spiky (that is in 450ºC), less stable, even at 320º or 180º you can appreciate some oscillations. For me, the "new PID" algorithm was on point, what is the feedback of other users regarding the new PID algorithm? I have seen some comments here that it was less accurate and had more spikes but for me it's inverted.

Logically, it would make sense that new PID is better than the old PID, because it has more accuracy. More variables are taken into count, which makes much more sense. But I could also be wrong, I don't really know.

Take this as an opinion, i don't care about accuracy as long as it works, we're talking about constant 4-degree oscillations at max power (450 ºC).


 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6885
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1718 on: August 16, 2021, 02:20:23 pm »
Stop blaming the pid, there were a lot more changes in filtering, also in the PID values. You can have 100 pid algorithms, all will do terrible with the wrong settings.
I won't move a finger until you all test the other versions and propery report which one worked so amazingly well.
« Last Edit: August 16, 2021, 02:22:27 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline Cuboy

  • Regular Contributor
  • *
  • Posts: 67
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1719 on: August 16, 2021, 02:23:36 pm »
Stop blaming the pid, there were a lot more changes in filtering, also in the PID values. You can have 100 pid algorithms, all will do terrible with the wrong settings.
I won't move a finger until you all test the other versions and propery report which one worked so amazingly well.

Okay okay testing testing.
 

Offline Cuboy

  • Regular Contributor
  • *
  • Posts: 67
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1720 on: August 16, 2021, 02:35:05 pm »
Tested version 10-08-2021

Cal settings are the same in both actual version and 10-08-2021.

250: 1110
350: 1799
450: 3500

The image is from 10-08-2021 version

Honestly, i tought it was better, but it seems worse.
 

Offline dark_hawk

  • Regular Contributor
  • *
  • Posts: 180
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1721 on: August 16, 2021, 02:40:57 pm »
Tested version 10-08-2021

Cal settings are the same in both actual version and 10-08-2021.

250: 1110
350: 1799
450: 3500

The image is from 10-08-2021 version

Honestly, i tought it was better, but it seems worse.


Test the 31-07 or the 2-8 Please
 

Offline Cuboy

  • Regular Contributor
  • *
  • Posts: 67
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1722 on: August 16, 2021, 02:41:41 pm »
Tested version 10-08-2021

Cal settings are the same in both actual version and 10-08-2021.

250: 1110
350: 1799
450: 3500

The image is from 10-08-2021 version

Honestly, i tought it was better, but it seems worse.


Test the 31-07 or the 2-8 Please

Will test right now

Edit: 2021-08-2c  (Last build before switching to new PID) testing

Same cal settings, real temp is 230 while as the other it was around 450.

« Last Edit: August 16, 2021, 03:00:44 pm by Cuboy »
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6885
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1723 on: August 16, 2021, 03:23:08 pm »
Cal settings have nothing to do with the pid. As I said, don't calibrate every version, it's he same thing, just restore the values from a previous calibration.
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6885
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1724 on: August 16, 2021, 03:26:30 pm »
Tested version 10-08-2021

Cal settings are the same in both actual version and 10-08-2021.

250: 1110
350: 1799
450: 3500

The image is from 10-08-2021 version

Honestly, i tought it was better, but it seems worse.

That's exactly what pissed me off.
People saying "old was better".
David rolls back. Huh not better.
David restores again.
Hmm old definitely better.
David rolls back again.
No ,not good.
David throws the soldering station 100m alway, crunches the computer table, eyes injected in blood...
Damn it, test the damn versions and stop losing my time! :-DD

Try the oldest first. But again, if I only get feeback from 2 people, restore the code, and then I get feeback from 10 guys saying it's worse...  :palm:

I'm taking the break now. Will come back in a few days... And see what's going on :D.

« Last Edit: August 16, 2021, 03:35:05 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf