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

clytle374, DavidAlfa, zalvis, spleenharvester, LILO and 7 Guests are viewing this topic.

Offline wickated

  • Frequent Contributor
  • **
  • Posts: 326
  • Country: ru
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1925 on: August 29, 2021, 03:57:42 pm »
Reducing the KP, Ki and Kd

PID= 30 20 10 (If I remember correctly)
so u changed pid to some crazy values from default 18 5 2 and now solved the problem reverting them almost to default ?  :clap:
 

Offline ygi

  • Regular Contributor
  • *
  • Posts: 202
  • Country: be
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1926 on: August 29, 2021, 04:21:26 pm »
Yes, but it was what I had.  It works ok though. Open to suggestions for proper SWD ports.

They sell the exact same female plug with 4 poles. A jack should be fine as long as VCC is on the last pole of the male connector (ie: the last to make contact and first to get out when inserted/disconnected).

settnigs are written to flash once per 5sec. in original fw with eeprom they are saved every encoder tick. if u really worrie about lifecycles u can just set longer timeout for write operations

There's a lot I don't understand/remember when I read code as I haven't programmed a single line since college but I'll take your word for it.



@DavidAlfa My station freezes when trying to enter the debug menu. That is when I go to the settings menu, place the selector on DEBUG, then press the encoder, it just stops there. It doesn't enter DEBUG nor responds to encoder anymore (tried all combinations of long/short press and left/right). I can only switch the station off.

Hardware is KSGER v1.5 running a build I compiled from latest source (as of today).
 

Offline dark_hawk

  • Regular Contributor
  • *
  • Posts: 157
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1927 on: August 29, 2021, 04:47:30 pm »
Reducing the KP, Ki and Kd

PID= 30 20 10 (If I remember correctly)
so u changed pid to some crazy values from default 18 5 2 and now solved the problem reverting them almost to default ?  :clap:

I don't understand!
Default values are 75 48 12!
 

Offline wickated

  • Frequent Contributor
  • **
  • Posts: 326
  • Country: ru
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1928 on: August 29, 2021, 05:05:44 pm »
Reducing the KP, Ki and Kd

PID= 30 20 10 (If I remember correctly)
so u changed pid to some crazy values from default 18 5 2 and now solved the problem reverting them almost to default ?  :clap:

I don't understand!
Default values are 75 48 12!
i clearly see defaults of 18 5 2


din or svideo jacks should be ok

https://aliexpress.ru/item/1005001769865560.html
« Last Edit: August 29, 2021, 05:09:11 pm by wickated »
 

Offline ygi

  • Regular Contributor
  • *
  • Posts: 202
  • Country: be
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1929 on: August 29, 2021, 05:52:55 pm »
Those are defaults for C245 tips.
Values for T12 are different and are indeed 75 48 12.
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5964
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1930 on: August 29, 2021, 06:18:59 pm »
I realized something I'm kinda concerned about, so to speak. Since the controller remembers the last set t° after powering up, that means it stores it to flash every time it's changed, right? So wouldn't it be better if current set t° were simply stored in RAM and the default startup t° would be a user defined setting?
Admittedly, I have no idea how NAND durability is on those MCU but my guess is probably not that great. The thing is, I checked availability and price of STM32 yesterday and... it's scary. Now I look at my 1.5$ Chinese fake stlink from years ago like it's precious cause it has a "rare" 20K/128K F103 inside :palm:

The settings are checked every second, if something changed then a 5s timeout is started.
If nothing else is changed in that time, the flash is updated.
But if you keep changing things, the timeout will be resetted and nothing written until you stop changing things.


No idea about the debug freezing.
Anyone else having that issue? Works perfect for me.
Does that v1.5 have a 32f103?
« Last Edit: August 29, 2021, 06:22:51 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline wickated

  • Frequent Contributor
  • **
  • Posts: 326
  • Country: ru
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1931 on: August 29, 2021, 06:28:27 pm »
also i showed in vid that fast rotate is slow in adc tuning, on first implementations it was fast.
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5964
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1932 on: August 29, 2021, 06:30:27 pm »


i think i can make project in ide with current guides. but abcolutely no clue how to conpile .elf in .bin
The encoder direction seems broken?
I see, it's strange. Does the freeze happen when changing IRON settings? Only SYSTEM options? Or only debug setting? Is it really completely freezed? Try long clicking or wait 15 for the timeout.
Remove the tip just in case!.

You only have to click the compile button, when it's done click the run button to program it.
Everything is explained in the video, also in the readme.
I adjusted the step sizes some builds ago, because it was too fast, ex. some options jumped +5, but 50 in big step, the slighest fast rotation would go too far, being extremely annoying.
« Last Edit: August 29, 2021, 06:40:31 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline wickated

  • Frequent Contributor
  • **
  • Posts: 326
  • Country: ru
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1933 on: August 29, 2021, 06:50:36 pm »
The encoder direction seems broken?
I see, it's strange. Does the freeze happen when changing IRON settings? Only SYSTEM options? Or only debug setting? Is it really completely freezed? Try long clicking or wait 15 for the timeout.
Remove the tip just in case!.
i just reversed encoder pins before it was reversed in fw
frezees when returning to main menu. other freeze variants also shown in vid. only frezees in translated
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5964
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1934 on: August 29, 2021, 06:53:51 pm »
Only when clicking exit?
What happens when long-clicking or waiting so it returns by itself?
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline wickated

  • Frequent Contributor
  • **
  • Posts: 326
  • Country: ru
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1935 on: August 29, 2021, 07:06:41 pm »
Only when clicking exit?
What happens when long-clicking or waiting so it returns by itself?
same. it also beeps long if beep enabled. after power cycling  ir freezes from start with 999c and beeeep
« Last Edit: August 29, 2021, 07:12:53 pm by wickated »
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5964
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1936 on: August 29, 2021, 07:29:20 pm »
When reporting issues, please be clear!
Does the buzzer issue only happen when changing languages? Does ok if you don't change it?
Is that issue caused by enabling the buzzer? Or happens after setting russian language?
Try long-click in the settings menu, so its skips settings menu, directly returning to main screen.

I can't make it fail, even when forcing 10KB RAM to simulate a 101.
Updated the code in github with all the changes.

I don't even know what that means :) But of course I could share the modified files. I'll just zip'em if that's ok.
What did you modify then? Only trhe strings? The letters you said already existed in the fonts?
« Last Edit: August 29, 2021, 07:38:37 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline wickated

  • Frequent Contributor
  • **
  • Posts: 326
  • Country: ru
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1937 on: August 29, 2021, 07:37:44 pm »
happens after setting russian language?
this. so i guess its somehow linked with iron detection due to lack of NO IRON
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5964
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1938 on: August 29, 2021, 07:41:15 pm »
If a font doesn't have the character, it will be skipped, won't cause any issue.

Ex. Current russian font doesn't have "Ω" or "°" symbol.
The meny entries simply don't draw these characters.
Same with ambient temperature widget.
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline ygi

  • Regular Contributor
  • *
  • Posts: 202
  • Country: be
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1939 on: August 29, 2021, 07:47:08 pm »
I realized something I'm kinda concerned about, so to speak. Since the controller remembers the last set t° after powering up, that means it stores it to flash every time it's changed, right? So wouldn't it be better if current set t° were simply stored in RAM and the default startup t° would be a user defined setting?
Admittedly, I have no idea how NAND durability is on those MCU but my guess is probably not that great. The thing is, I checked availability and price of STM32 yesterday and... it's scary. Now I look at my 1.5$ Chinese fake stlink from years ago like it's precious cause it has a "rare" 20K/128K F103 inside :palm:

The settings are checked every second, if something changed then a 5s timeout is started.
If nothing else is changed in that time, the flash is updated.
But if you keep changing things, the timeout will be resetted and nothing written until you stop changing things.


No idea about the debug freezing.
Anyone else having that issue? Works perfect for me.
Does that v1.5 have a 32f103?

OK I get the idea for the settings, I just don't see much value to saving current temperature. I mean, I have a go-to t° that varies if I use leaded/non leaded solder then maybe I change it temporarily because the component is fragile or that corner of PCB is sucking heat. But I want the startup temp to be what works for most cases, not the temp I set for yesterday's plastic connector that would start melting at 250C. Well, that's my opinion and you may or may not share it.

Now, regarding the debug thing, yes v1.5 has F103C8T6. If there's nothing specific to v1.5 that could cause this, it may be the result of board damage on my station. I pinched 2 wires while reassembling the handle the other day and insulation failed. 24V went to the 3.3V wake sensor line. That made the station bootloop, burned a hole in a SMA diode, charred its positive pad and melted the track. I fixed all that and got everything seemingly working again but who knows. :-//
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5964
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1940 on: August 29, 2021, 07:55:42 pm »
Checking the schematics:
https://github.com/dreamcat4/t12-t245-controllers-docs/blob/master/controllers/stm32-t12-oled/v1.5-ptdreamer-orig/iron.pdf


Holy crap, who designed the v1.5? That's not how it's supposed to be!
2K2 resistors (R9, R10) provide little isolation against 24V short. The 24V would see them in parallel, connected to 3,3V (stm32 clamping diode)
So 1.1K to the 3.3V line, injecting ~20mA, which is a lot of current for the stm32 and the oled, probably rising the voltage in the 3.3V rail to dangerous levels.
Replace them with 10K, or even 47K!
Also, the diode should be after the resistor, at the side of the stm32 pin, so the resistor limits the current in case of a short, and nothing gets damaged.

Ricktendo also has a v1.5, maybe he can try...


I also thought about that time ago, seems reasonable.
Setting the initial temp, setting the temperature each time you turn on the station it's not a huge pain.

In any case, for 100K flash erase/write lifespan, if you change it 50 times a day it would take 5.5 years.
But yes, not an important option to justify the additional flash wear, also being the most changing option.

Edit: Done. Setpoint is no longer saved. Add new option in iron settings, "User temperature", which is applied at boot.
« Last Edit: August 29, 2021, 08:32:21 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 
The following users thanked this post: ygi

Offline wickated

  • Frequent Contributor
  • **
  • Posts: 326
  • Country: ru
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1941 on: August 29, 2021, 08:31:06 pm »
and one more. strings like SHAKE STAND  can be translated also or not possible?
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5964
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1942 on: August 29, 2021, 08:49:36 pm »
Yes, everything can be translated. I've just added that:

https://github.com/deividAlfa/stm32_soldering_iron_controller/blob/master/Drivers/graphics/gui/screens/gui_strings.c

Done updating the code.
You can now clone the repository and start compiling and testing the translations.
It's dead easy, just follow the video. Then modify the translations until you get a nice result.

I was checking the Cyrillic unicode block. Damn, 256 characters, it will take a lifetime to modify the existing fonts  |O
https://en.wikipedia.org/wiki/Cyrillic_(Unicode_block)
« Last Edit: August 29, 2021, 09:07:46 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline wickated

  • Frequent Contributor
  • **
  • Posts: 326
  • Country: ru
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1943 on: August 29, 2021, 09:05:46 pm »
only 32+32 are used actually U+041x to U+044x. other are for weird slavic languages

cool, ill try to make a build today
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5964
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1944 on: August 29, 2021, 09:08:29 pm »
So only these?
Code: [Select]
U+040x  Ѐ  Ё  Ђ  Ѓ  Є  Ѕ  І  Ї  Ј  Љ  Њ  Ћ  Ќ  Ѝ  Ў  Џ
U+041x  А  Б  В  Г  Д  Е  Ж  З  И  Й  К  Л  М  Н  О  П
U+042x  Р  С  Т  У  Ф  Х  Ц  Ч  Ш  Щ  Ъ  Ы  Ь  Э  Ю  Я
U+043x  а  б  в  г  д  е  ж  з  и  й  к  л  м  н  о  п
U+044x  р  с  т  у  ф  х  ц  ч  ш  щ  ъ  ы  ь  э  ю  я

Funny to see russians thinking "weird" about other languages.
Next step: German, requiring 24" screens for they endless words  :-DD
« Last Edit: August 29, 2021, 09:11:55 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline wickated

  • Frequent Contributor
  • **
  • Posts: 326
  • Country: ru
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1945 on: August 29, 2021, 09:14:36 pm »
So only these?
Code: [Select]
U+041x  А  Б  В  Г  Д  Е  Ж  З  И  Й  К  Л  М  Н  О  П
U+042x  Р  С  Т  У  Ф  Х  Ц  Ч  Ш  Щ  Ъ  Ы  Ь  Э  Ю  Я
U+043x  а  б  в  г  д  е  ж  з  и  й  к  л  м  н  о  п
U+044x  р  с  т  у  ф  х  ц  ч  ш  щ  ъ  ы  ь  э  ю  я
Funny to see russians thinking "weird" about other languages.
Next step: German, requiring 24" screens for they endless words  :-DD
fixed. only this
best is german with russian accent. actually ppl run with fear thinking ur a casting black magick spell when u just say "daisy"
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5964
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1946 on: August 29, 2021, 10:31:03 pm »
The Unicode thing adds a lot of mess. The bdf editors I found aren't compatible with these encondings. So not breaking my head here, it's a dead end.
I disabled the big "NO IRON" message when russian is selected, showing the small error reporting instead.
This is a only a workaround, I'm not trying to master russian language. Just enough for making it work and people understand it.
I'm sure the're tons of good programmers in Russia  ;)
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline wickated

  • Frequent Contributor
  • **
  • Posts: 326
  • Country: ru
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1947 on: August 29, 2021, 10:48:20 pm »
i have BIG progress in IDE. i can even import project now :-DD

so i guess now everyone cam make translation and add more languages with ease since gui_string accepts copypaste well ?
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5964
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1948 on: August 29, 2021, 11:44:27 pm »
If it fits in the flash, you can add 185 new languages if you want.
The file is self-explanatory. This all you need to add new languages.

Code: (gui_strings.c) [Select]
// language indexes and LANGUAGE_COUNT defined in settings.h
const strings_t strings[LANGUAGE_COUNT] = {
    [lang_english] = {
        ...
    },
    },
    [lang_russian] = {
        ...
    },
};
char * Langs[LANGUAGE_COUNT] = {
                                   [lang_english] = "EN",
                                   [lang_russian] = "RU",
                               };

Code: (settings.h) [Select]
#define LANGUAGE_COUNT    2
enum{
    ...
    ...
    lang_english          = 0,
    lang_russian          = 1,
};





Ex. Adding Spanish:

Code: (gui_strings.c) [Select]
// language indexes and LANGUAGE_COUNT defined in settings.h
const strings_t strings[LANGUAGE_COUNT] = {
    [lang_english] = {
        ...
    },
    [lang_russian] = {
        ...
    },
    [lang_spanish] = {
        // Copy & paste structure from other language, modify the strings
    },
};
char * Langs[LANGUAGE_COUNT] = {
                                   [lang_english] = "EN",
                                   [lang_russian] = "RU",
                                   [lang_spanish] = "ES",
                               };

Code: (settings.h) [Select]
#define LANGUAGE_COUNT    3
enum{
    ...
    ...
    lang_english          = 0,
    lang_russian          = 1,
    lang_spanish          = 2,
};

« Last Edit: August 30, 2021, 12:49:47 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: 326
  • Country: ru
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1949 on: August 30, 2021, 12:08:33 am »
wow i made it! im almost a certified senior developerdesigner now  :box:
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf