120 Commits

Author SHA1 Message Date
Skot
7dcb69ebdc
GammaTurbo support and HW abstraction (#698)
* initial changes for the gammaturbo bringup
* added preliminary TPS546 changes
* added preliminary EMC2103 support
* ASIC temp seems to be maybe working.
* magically now fan seems to have the right polarity
* added in ideality and beta constants (currently unused). Fixed EMC2103_get_fan_speed()
* abstract fan and ASIC temp into thermal functions
* abstracted voltage regulator specifics out of tasks and into power.c and vcore.c functions
* add TPS546 support for multiple models
* move TPS40305/DS4432U vout setter to DS4432U.c
* move all ASIC specific functions to asic.c
* bad device_model nvs handling
* remove old code
* add workaround for TPS546 VIN_UV_WARN_LIMIT silicon bug.
2025-02-11 22:46:56 -05:00
Erik Olof Gunnar Andersson
1014a46a24
Updated confusing log connect message (#697) 2025-02-10 13:58:16 -05:00
Erik Olof Gunnar Andersson
678809a5f8
Improved pool fallback code (#693)
* Disconnect if no data received in more than 10 minutes

* Minor socket fix

* Removed unused code and minor nit fix
2025-02-06 18:48:04 +01:00
Luke Dashjr
2b958c0b94
Bugfix: Submit shares that are exactly equal to the target when rounded to a "diff" (#687) 2025-02-06 18:47:45 +01:00
WantClue
cbb02389ba
Wifi scan fix (#690)
* feature: wifi reconnect disable wifi connect

* fix: scanning flag to prevent reconnect attempts

* fix: add external bool, define globally

* fix: wifi scan on missing ssid

* fix: remove unused connected flag
2025-02-04 03:40:06 +01:00
Erik Olof Gunnar Andersson
f40972ced2
Reduce invalid job found log from error to warning (#480)
* Reduce invalid job found from error to info

* Standarized on LOGW for Invalid job
2025-01-27 19:25:02 +01:00
terratec
0497b1104a
Keep old pool config synchronized until reboot (#543) 2025-01-26 16:50:22 +01:00
mutatrum
244dacc26a
Tine header define cleanup (#535) 2025-01-16 22:21:59 +01:00
Erik Olof Gunnar Andersson
c8eae500fa
Revert "Enable SPIRAM and use it for specific tasks (#597)" (#610)
This reverts commit d9ee113643053bf21c4be64cad245e300a70d808.
2025-01-04 23:42:54 +01:00
mutatrum
61042d93ae
Configure GPIO in Kconfig (#566)
* Put all GPIO defines in gpio_bitaxe.h

* Whitespace

* Use Kconfig.projbuild

* Missing Kconfig
2025-01-04 01:53:56 +01:00
Erik Olof Gunnar Andersson
f454b0c41b
Streamline create_jobs_task (#478)
* Initial clean create work

* Updated based on PR feedback

* More cleanup based on PR feedback
2025-01-04 01:51:36 +01:00
Erik Olof Gunnar Andersson
d9ee113643
Enable SPIRAM and use it for specific tasks (#597) 2024-12-28 23:18:32 +01:00
mutatrum
052b8bfda6
Toggle auto_fan_speed without reboot (#580)
If you can change the fan speed immediately, so should the enabling or disabling of auto fan speed.
2024-12-14 00:51:07 +01:00
mutatrum
848c7807ec
LVGL All The Things! (#539) 2024-12-11 23:03:58 +01:00
mutatrum
6283480fa1
Parse stratum api reject reason (#472)
* Parse stratum api reject reason

* Remove superfluous nullcheck
2024-12-09 16:35:13 +01:00
mutatrum
a26cacf0dd
Fix setting overheat mode flag on device Max (#522) 2024-11-27 20:13:29 -05:00
mutatrum
48711ef0a7
Fix stratum message order (#498) 2024-11-21 11:45:08 -05:00
Erik Olof Gunnar Andersson
d22b95647d
Don't abandon the first mining.notify (#492) 2024-11-20 10:14:33 -05:00
Erik Olof Gunnar Andersson
7c4f8441f1
Merge pull request #375 from eandersson/user
Fix fallback user
2024-10-09 19:15:09 +02:00
Skot
2c41cc9255
Fix a couple missed issues from the fix_warnings PR (#393)
* move ADC_init() before start_http_server() because the UI reads the ADC
* split SYSTEM_init() into separate functions. cleaned up nvs init.
* fix my dumb INA260_init() memory leak
* SYSTEM_init_peripherals() cleanup
2024-10-09 12:52:55 -04:00
Skot
e1bf30b26e
Fix compiler warnings (#381)
Fix all compiler warnings and migrate off depreciated ADC and I2C libraries.
---------
Co-authored-by: Erik Olof Gunnar Andersson <eandersson@users.noreply.github.com>
2024-10-08 11:27:32 -04:00
Erik Olof Gunnar Andersson
989f30935a Fix fallback user 2024-10-06 13:09:15 +02:00
Erik Olof Gunnar Andersson
2536347c56 Improve failure handling and add fallback 2024-10-03 17:24:13 +02:00
Erik Olof Gunnar Andersson
e30bbcad50
stratum mining.suggest_difficulty after auth to fix ckpool issue (#353)
Change the ordering to `mining.suggest_difficulty` after `mining.authorize`. ckpool doesn't like it the other way.
2024-09-27 16:12:20 -04:00
adammwest
f130b05511
ASIC version mask now based on pool stratum version mask msg (#349)
* make set version mask a function call

* update name

* update init fuc to support version mask setting

* update parameter spec for bm1397

* parametrize set version rolling and update init func for BM136X +

* add default stratum mask

* update all bmchips with a new set_version_mask ASIC function which can be called in main

* update init func prototype params

* update self test to remove extra vmask call in init

* fix compiler errors

* fix compiler errors in main

* add version_mask_given bool to tell the next job to set a new version mask to the chip when a smg comes in
2024-09-26 11:30:06 -04:00
Skot
8b22bb2762
Legacy selftest fixes (#346)
* make sure to VCORE_init() and VCORE_set_voltage() no matter what hw version.

* added "PRESS RESET" to selftest endscreen. pulled out magic numbers to #defines

* oops, cleanup

* update 402 power target

* 403+support

---------

Co-authored-by: Benjamin Wilson <admin@opensourceminer.com>
2024-09-23 16:11:53 -04:00
Benjamin Wilson
b700c6bbf0
Fix overtemp and self tests for gamma (#343) 2024-09-20 19:30:20 -04:00
Erik Olof Gunnar Andersson
5e1e0ba247 Remove invalid IPv4 validation in DNS code 2024-09-07 22:08:19 +02:00
WantClue
1c66c20561 add transition to power management 2024-09-06 10:37:04 +02:00
Skot
be1242ec61 added TPS546 static power offset. Increased delay for power_management_task.c to start 2024-08-16 22:32:22 -04:00
Skot
4cd7a38b9f rebasing gamma-support on 2.1.10 2024-08-15 18:51:05 -04:00
WantClue
52d0d818ac changing logging output to comment 2024-08-13 11:50:56 +02:00
WantClue
67b03ce73d fix queue startup reading 2024-08-10 16:38:11 +02:00
WantClue
f3a344f2a4
Merge pull request #266 from skot/master
update overheat branch
2024-08-01 23:00:41 +02:00
WantClue
95fb4775ef overheat mode init 2024-08-01 22:58:19 +02:00
mutatrum
e3ef2e55bd
Implement client.reconnect and reset stratum uid on reconnect (#253)
* Implement client.reconnect and reset stratum uid on reconnect
2024-07-12 14:11:48 -04:00
mutatrum
d1f22b5902
Fix build failure due to missing import in asic_task.h (#255) 2024-07-11 16:26:05 -04:00
Skot
04c8b80287
WIP: Fix job interval timing (#249)
* add extended nonce debugging

* switch to semaphore for job timing

* clean up nonce debugging. hardcode 1366 job interval to 2s and show when new jobs are sent

* set nonce range to 0x0F0000 set job interval to 20s. better stratum debugging,

* testing out longer intervals on 1368

* looking at exact serial commands sent

* fix log value digit count

* add core from nonce debug

* set BM1366 initial chip difficulty to 32

* add version rolling debug

* improve debug printing again

* fix diff

* fix core_id extraction

* printf fix

* debug cleanup

* setup BM1368 for testing. reg10 to S21 default, job interval @ 0.5s

* set init diff on 1366 and 1368 back to 256

---------

Co-authored-by: Georges Palauqui <g.palauqui@gptechinno.com>
2024-07-07 09:05:31 -04:00
Benjamin Wilson
336ed3aaa9 Fix low hashrate, fix overheat boot loop 2024-06-22 19:15:25 -04:00
tommywatson
c011895dff
Fixed fan speed web update #141 (#222)
* Fixed fan speed web update #141

These changes fix fan rpm/percent requested and update both on the web

* fix readme

* refactor self_test to be modular for new hardware

* Supra 402 (#221)

* port TCH Supra 402 branch

* refactor TMP1075 (unused?) driver using i2c_master module

* pulled in @Bitmaker-hub stratum_task.c DNS changes from PR #185

* removing serial debug

---------

Co-authored-by: Skot <skot@bitnet.cx>

* adjust share accpeted/rejected functions to take higher level GLOBAL_STATE to fix share accounting.

* Code clean resulting from looking into #218 (#220)

* Code clean resulting from looking into #218

* Fixed asic count

Set canary value for invalid device's asic_count

---------

Co-authored-by: tommy <tommy@tommywatson.com>

* fix another pointer error

* Changes efficiency metric display in AxeOS (#231)

Fixes https://github.com/skot/ESP-Miner/issues/230

* try to explain nonce space duration from paramters (#228)

* try to explain nonce space duration from paramters

* Fix Nonce Space duration for BM1397 (no version-rolling)

* fixed issue with version mask on 1397. added easy serial debugging on 1397

* cleanup jobID debugs

---------

Co-authored-by: Skot <skot@bitnet.cx>

* Update bm1397.c to increase the max frequency to 650Mhz (#209)

* Update bm1397.c to increase the max frequency to 650Mhz

The original version was setting everything above 500Mhz to 500Mhz, the update increases the limit to 650Mhz.
No changes to the web interface - drop-down still shows up to 575Mhz

* Update edit.component.ts to include higher freqeuncy for BM1397

* Updated BM1397 frequencies to above 500Mhz

* Update bm1397.c

* Update bm1397.c

* UN-Update readme.md

* Update bm1397.c

* Update bm1397.c

* Update bm1397.c

* fix: add recovery page (#232)

Adds a recovery web interface to enable users
to recover from a failed www.bin update.
Partial fix for Issue #213.

* refactor: unify merge_bin scripts (#189)

Combines the functionality of merge_bin_update.sh
and merge_bin_with_config.sh into merge_bin.sh.
Also adds more verbose usage printing.

* fix: check www.bin size before updating (#216)

Adds a basic sanity check for www.bin uploading.
Returns 400 if upload is attempted on a file larger
than the available partition space.

---------

Co-authored-by: tommy <tommy@tommywatson.com>
Co-authored-by: Georges Palauqui <g.palauqui@gptechinno.com>
Co-authored-by: Skot <skot@bitnet.cx>
Co-authored-by: Nathan Day <87125117+dadofsambonzuki@users.noreply.github.com>
Co-authored-by: yanir99 <32940160+yanir99@users.noreply.github.com>
Co-authored-by: tdb3 <106488469+tdb3@users.noreply.github.com>
2024-06-20 17:23:53 -04:00
Georges
9dc8c8cad3
try to explain nonce space duration from paramters (#228)
* try to explain nonce space duration from paramters

* Fix Nonce Space duration for BM1397 (no version-rolling)

* fixed issue with version mask on 1397. added easy serial debugging on 1397

* cleanup jobID debugs

---------

Co-authored-by: Skot <skot@bitnet.cx>
2024-06-19 15:29:45 +02:00
Georges Palauqui
5cf16e1bcf
fix another pointer error 2024-06-18 08:21:17 +02:00
Skot
344c5d8d22 adjust share accpeted/rejected functions to take higher level GLOBAL_STATE to fix share accounting. 2024-06-17 16:30:03 -04:00
Georges
10c331a400
Supra 402 (#221)
* port TCH Supra 402 branch

* refactor TMP1075 (unused?) driver using i2c_master module

* pulled in @Bitmaker-hub stratum_task.c DNS changes from PR #185

* removing serial debug

---------

Co-authored-by: Skot <skot@bitnet.cx>
2024-06-14 16:09:08 -04:00
Georges Palauqui
2dff706225
code refactor: prepare room for HEX 2024-06-12 16:21:59 +02:00
Georges Palauqui
c8789269f9
refactor GLOBAL_STATE argument instead of MODULE only 2024-06-12 15:05:14 +02:00
Georges Palauqui
11107a3d32
fix dependancies 2024-06-11 10:14:30 +02:00
Georges Palauqui
271d091b03
cosmetic 2024-06-07 15:26:34 +02:00
Georges Palauqui
2d15d447e0
refactor: split vcore out from ds4432 driver, to make it an abstraction of whatever hardware is regulating vcore (making room for TPS546) 2024-06-06 12:14:15 +02:00
Georges
c9865a5e0a
Optimization: i2c factorization (#202)
* optim: factorize i2c_master_init() and i2c_master_delete()

* optim: factorize register_read() and register_write_byte()
2024-06-05 18:53:30 -04:00