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

spleenharvester, jesusthegoat and 5 Guests are viewing this topic.

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5956
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1950 on: August 30, 2021, 12:19:36 am »
Nice!  I'm sure it wasn't that hard  ;)

Wtf is this, you wrote "Error 404" :-DD

.ERROR_UNKNOWN = "ОШИБКА 404"

Before start working on it, be sure to download the latest code. I've been changing some things.
I don't think I'll change any more code related to the translations.
You don't need to delete the project and start again, just overwrite the project files.

« Last Edit: August 30, 2021, 12:26:25 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 #1951 on: August 30, 2021, 12:27:30 am »
i just didnt found any word short enough  :-DD
anyway its not final
no freeze now
« Last Edit: August 30, 2021, 12:47:47 am by wickated »
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5956
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1952 on: August 30, 2021, 12:58:37 am »
You were right, the new Calibration big step value was too small. Increased it to 20, now it's much better.
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 #1953 on: August 30, 2021, 03:28:50 pm »
You were right, the new Calibration big step value was too small. Increased it to 20, now it's much better.
Good. actually 2 clean setups before = 1 new encoder  |O
No freeze now, everything works good. Translation is ok, small "no iron" is not as cool as big NO IRON but is shown (maybe place picture like in bootscreen?), some text is used across different menu sections, so had to improve readability, no error404 now :-DD

so i finalized translation in gui_strings. only untranslated are time units like "ms" "min". how can i commit it?
« Last Edit: August 30, 2021, 03:39:13 pm by wickated »
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5956
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1954 on: August 30, 2021, 04:11:33 pm »
As it's only a file and few lines, just send it to me or post here in .zip.
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 #1955 on: August 30, 2021, 04:47:30 pm »
here
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5956
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1956 on: August 31, 2021, 10:54:51 am »
Nice! Added, made new builds.

Now you have more work: Readme and operation manual!  :-DD
Google always has a hard time at translating latin and slavic languages, you get all kind of no sense stuff.

(I'm watching your movements at radiokot)
« Last Edit: August 31, 2021, 11:04:45 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 #1957 on: August 31, 2021, 01:29:29 pm »
Now you have more work: Readme and operation manual!  :-DD
ill make it on friday night :beer:
 

Offline wickated

  • Frequent Contributor
  • **
  • Posts: 326
  • Country: ru
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1958 on: September 03, 2021, 12:56:25 am »
i never ever used boost, but ppl found it is calculated not from settemp, but from starttemp
 

Offline AndyC

  • Contributor
  • Posts: 47
  • Country: se
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1959 on: September 03, 2021, 01:29:47 am »
i never ever used boost, but ppl found it is calculated not from settemp, but from starttemp
That seems to be the case, yes. (I haven't used boost a lot either)

Got one of those ~€30 Handskit stations today. Well, the last part of the name literally means 'crap' in Swedish :)
Speaking of Swedish, I've forked the project and done some work on fonts and translation. Maybe, maybe, a pull request will show up one of these days :)
 
The following users thanked this post: DavidAlfa

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5956
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1960 on: September 03, 2021, 01:43:09 am »
Nice catch, I neither use boost, you know for me it's just a dumb thing :)
I forgot to update it when modifying the setpoint code to make it volatile (Not saved on every change).
Fixed.

I also modified the readme, adding how to update preserving the settings, as it seems most people were wiping everything on every update, which is not always needed!

Edit2: I noticed the station was waking up when changing the tip profile in the main screen. I don't like neither I see any logic on that, so I disabled it.
Also disabled showing the setpoint when cancelling boost mode (Just like when waking up the station from low power modes).

Updated builds.
« Last Edit: September 03, 2021, 07:04:32 am 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: ricktendo

Offline ygi

  • Regular Contributor
  • *
  • Posts: 202
  • Country: be
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1961 on: September 03, 2021, 10:10:29 am »
I also modified the readme, adding how to update preserving the settings, as it seems most people were wiping everything on every update, which is not always needed!

I tried that before but settings ended up being wiped anyway. If I remember correctly there's some check in the firmware that triggers a full reset if settings version doesn't match firmware version or something like that.
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5956
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1962 on: September 03, 2021, 10:29:56 am »
These programming steps will preserve your settings, but if the settings structure changed, or anything causes a CRC checksum mismatch, the firmware will erase them at boot time.
For example, the translations added a new variable (Language), so a previous version will be wipe, but usually they'll stay the same for a long time.
« Last Edit: September 03, 2021, 11:23:31 am by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5956
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1963 on: September 03, 2021, 01:29:38 pm »
Speaking of Swedish, I've forked the project and done some work on fonts and translation. Maybe, maybe, a pull request will show up one of these days :)

Nice work! Programming seems hard as breathing for you ;).
I answered in the pull request. The code had already diverged and git was complaining.
So I manually patched the code with your changes.

Now, the only remaining thing is adding the extra Swedish characters to the default font building scripts:

- u8g2/tools/font/bdconv/make_font_menu.bat
- u8g2/tools/font/bdconv/make_font_no_iron_big.bat
- u8g2/tools/font/bdconv/make_font_small.bat

The characters (Unicode encoding) are defined with the -m option, ex. -m "32,33,45,46,48-57,65-90,176".
You can use decimal numbers(32,33...) or hex ($20,$21...)
« Last Edit: September 03, 2021, 01:38:10 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline AndyC

  • Contributor
  • Posts: 47
  • Country: se
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1964 on: September 03, 2021, 01:59:35 pm »
Speaking of Swedish, I've forked the project and done some work on fonts and translation. Maybe, maybe, a pull request will show up one of these days :)

Nice work! Programming seems hard as breathing for you ;).
I answered in the pull request. The code had already diverged and git was complaining.
So I manually patched the code with your changes.

Now, the only remaining thing is adding the extra Swedish characters to the default font building scripts:

- u8g2/tools/font/bdconv/make_font_menu.bat
- u8g2/tools/font/bdconv/make_font_no_iron_big.bat
- u8g2/tools/font/bdconv/make_font_small.bat

The characters (Unicode encoding) are defined with the -m option, ex. -m "32,33,45,46,48-57,65-90,176".
You can use decimal numbers(32,33...) or hex ($20,$21...)
Thanks, still a beginner though. New to C and new to Git.
I thought the building scripts were included in the PR, but maybe I made a mistake.
They are here: https://github.com/AndyC52/stm32_soldering_iron_controller/tree/swedish-testing/Drivers/graphics/u8g2/tools/font/bdfconv
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5956
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1965 on: September 03, 2021, 02:03:15 pm »
My mistake, you did it right, I missed it.
It was at the bottom of your commit |O
« Last Edit: September 03, 2021, 02:05:51 pm by DavidAlfa »
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 #1966 on: September 04, 2021, 10:17:48 am »
By any chance, does the firmware display Vref when controller isn't powered by the main power supply? I kinda wonder why it displays ~2.1V when powered by stlink even though it should be ~3.3V. Then again, my board's been fried once, so weird behavior could definitely happen.
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5956
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1967 on: September 04, 2021, 10:38:24 am »
Because you're missing something... You aren't measuring the stm32 VDD, but the power supply output.
If the power supply is off and you power the stm32 with the stlink, it'll read a random value depending on the current that leaks from VDD to other unpowered parts on the board.
Where are your electronics skills? :D

Vref is never used  anywhere, not even sampled by the ADC.
« Last Edit: September 04, 2021, 10:40:15 am by DavidAlfa »
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 #1968 on: September 04, 2021, 11:56:12 am »
"Electronics skills"? I've never studied electronics, I'm just a hobbyist with tons of things I don't understand or don't even know exist.
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5956
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1969 on: September 04, 2021, 12:14:19 pm »
I was teasing you! :-DD (In a friendly way)

Good news, I was able to insert cyrillic symbols in the existing fonts, russian looks much better now.
Also the big "NO IRON" label is working now. Loooots of work!

Uploaded new builds.
« Last Edit: September 04, 2021, 04:12:02 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline maciek012

  • Newbie
  • Posts: 4
  • Country: 00
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1970 on: September 04, 2021, 04:27:19 pm »
Hi, I finally been able to run calibration and thought it might be helpful if I share it with you.
HW: KSGER v3.1 T12 D24 heater. firmware from 01.09.2021
« Last Edit: September 04, 2021, 04:29:13 pm by maciek012 »
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5956
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1971 on: September 04, 2021, 04:31:09 pm »
Nice! Every report is helpful!  :-+

If you have free time, make some tip performance tests to compare their quality.
I enter the debug screen and set 350°C, then take something hard to solder, like a copper heatsink, heavy plane PCB, and try to solder over it, carefully watching the PWR reading. Water is not a valid test!

Most of my tips didn't go over 25%, the temperature was +-1°C around the setpoint.
Only a small one, D12, reached 34%, even better than the D32 being much larger.
The extra power was very noticeable, although pretty poor anyways.
« Last Edit: September 05, 2021, 01:07:21 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 #1972 on: September 05, 2021, 11:02:37 am »
see u talking about debug menu
what units are shown for pwm?
for power ? (i guess power has %)
« Last Edit: September 05, 2021, 11:13:59 am by wickated »
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5956
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1973 on: September 05, 2021, 12:13:12 pm »
Check your eyes! (Hot air is coming  ::))

The PWM timer uses 5us clock (each step is 5us). For example, for the default 200ms, the timer period would be 40.000 (40.000*5=200.000us=200ms)
PWM is the value compared against the timer counter that generates the duty cycle. So for 50% power, the PWM value would be 40.000/2.
The timer counts always up to 40.000, the pwm output is enabled as long as the counter is below the compare value.
So in this case (For 50% at 200ms), the pwm would be enabled until the counter reaches 20.000. In that moment the pwm is set low, and the timer keeps counting up until 40.000.
Then, it resets and a new cycle starts.

As you rise the PWM frequency this value will be lower, ex. 10ms would be 2.000, 50% would be 1.000.
You can esily see how the pwm loses precision as the frequency increases, although you have a broad adjustment range in any case, from 0.05% at 10ms,  to 0,0025% at 200ms.
« Last Edit: September 05, 2021, 12:27:44 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline maciek012

  • Newbie
  • Posts: 4
  • Country: 00
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #1974 on: September 05, 2021, 02:31:34 pm »
Nice! Every report is helpful!  :-+

If you have free time, make some tip performance tests to compare their quality.
I enter the debug screen and set 350°C, then take something hard to solder, like a copper heatsink, heavy plane PCB, and try to solder over it, carefully watching the PWR reading. Water is not a valid test!

Most of my tips didn't go over 25%, the temperature was +-1°C around the setpoint.
Only a small one, D12, reached 34%, even better than the D32 being much larger.
The extra power was very noticeable, although pretty poor anyways.

D24 went up to around 34-36% with set temp +=1°C, ILS went up to 24%.
 
The following users thanked this post: DavidAlfa


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf