79 Commits

Author SHA1 Message Date
Benjamin Wilson
488473e10e
temp sensor fixes (#484)
* temp sensor fixes

* fix emc2101 external temp sign reading

* reset self test file

* Make the emc2101 changes specific to BM1370

---------

Co-authored-by: Benjamin Wilson <admin@opensourceminer.com>
2024-11-16 20:09:32 -05:00
mutatrum
718385cfeb Add OLED Bitaxe logo screen 2024-10-23 16:17:46 +02:00
Skot
44cfae73a6
slight display formatting cleanup. (#414) 2024-10-16 16:01:56 -04:00
WantClue
4010a0bece add second line for longer pool url, switch to fallback if used 2024-10-09 20:58:14 +02:00
WantClue
bbef32f1c1 update rebase, ip_info to local 2024-10-09 19:50:09 +02:00
WantClue
d729a3a209
Merge branch 'master' into simplify_i2c_screen 2024-10-09 19:32:32 +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
WantClue
8597391a41 simplify screen and remove old code 2024-10-09 17:33:37 +02: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
2536347c56 Improve failure handling and add fallback 2024-10-03 17:24:13 +02:00
Skot
4b67f1e7ec
Overheat mode improvements (#344)
* add IP to Device overheat OLED screen

* updated overheat mode OLED words
2024-09-27 23:37:53 -04:00
Skot
4cd7a38b9f rebasing gamma-support on 2.1.10 2024-08-15 18:51:05 -04:00
WantClue
6350c8b4bb changing overheat check out of loop 2024-08-09 23:41:08 +02:00
WantClue
95fb4775ef overheat mode init 2024-08-01 22:58:19 +02:00
tommy
e6c91eea6e Switch share count from u16 to u64 #219 2024-06-23 11:33:57 -05:00
mutatrum
a3f381862e
Changes efficiency metric on display (#236)
Similar to #230 but for the display
2024-06-20 17:34: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
tommywatson
00a3a0ba3d
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>
2024-06-18 08:18:51 +02: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
c8789269f9
refactor GLOBAL_STATE argument instead of MODULE only 2024-06-12 15:05:14 +02:00
Georges Palauqui
271d091b03
cosmetic 2024-06-07 15:26:34 +02:00
Georges Palauqui
bc365e6301
make a better usage of vcore module 2024-06-07 14:36:15 +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
WantClue
8b94e5a084 adding short and long button press 2024-06-05 23:19:09 +02:00
Skot
4bda726f38
update system hashrate on every chip share, not just pool shares. (#196) 2024-06-02 09:06:00 -04:00
Benjamin Wilson
a87f1e974c display AP ssid on connecting screen 2024-05-24 20:00:10 -04:00
MoellerDi
afd4a30985
add best difficulty since system boot (#162) 2024-05-23 22:57:00 -04:00
Benjamin Wilson
b53b641c68 Remove wifi max retry, remove max fan speed on reboot 2024-05-23 22:34:11 -04:00
MoellerDi
6283a68d4b
fix Best Difficulty can not be > 4.29G (#155)
* fix best_nonce_diff, uint32_t is too small

* best_nonce_diff as uint64_t
2024-03-29 10:37:19 -04:00
Ben
69e3c4bb81 axeos refactor init 2024-02-25 12:36:43 -05:00
Ben
ef344f236d added logic for barrel jack and voltage regulator switch, board version 2024-01-13 00:05:45 -05:00
Skot
dade418921
Network resets2 (#74)
Fixes #55
* added error log message and retry when stratum can't connect
* handle dns_gethostbyname() failures
2024-01-08 00:06:04 -05:00
Ben
9eee3ae359 Fix screen 1 breaking when share found 2024-01-07 00:55:17 -05:00
Ben
fc0e49e5d5 automatic fan speed control 2023-11-14 21:59:09 -05:00
Ben
5316149b26 Merge branch 'master' of https://github.com/skot/ESP-Miner 2023-10-31 19:40:54 -04:00
Ben
c911b8e0ec PWM fan control 2023-10-31 19:40:22 -04:00
tommy
a4da6e22e7 Save "Best Difficulty" scores into NVS #20 2023-10-19 19:20:08 -04:00
johnny9
6b8a9fad29 main: Display an error when ASIC model is invalid
Instead of aborting right away, the Bitaxe will now display
an error on the oled and keep its AP mode available so a user
can still update their device if they need to.
2023-09-26 23:52:22 -04:00
johnny9
9e28576d42 main: Show AP information after wifi fails to connect during startup 2023-09-23 17:35:58 -04:00
johnny9
706ee510ba main: Determine ASIC model from NVS
This adds more hardware information to the example config.cvs.
If the model can't be determined at startup, the device will abort.
2023-09-23 14:27:11 -04:00
johnny9
e228a77886 main: add version string to oled 2023-09-18 21:57:21 -04:00
johnny9
446c76f994 main: Fix include order in system.c 2023-09-18 21:05:45 -04:00
Ben
a4c473188b Add IP address to display and allow editing of voltage, frequency from AxeOS 2023-09-17 00:01:54 -04:00
Skot
d4affd7ebb deal with the reversed fan speed polarity on the ultra 2023-09-06 15:38:05 -04:00
Ben
7f21f5cad9 support for INA260 DNP 2023-08-28 19:56:04 -04:00
Ben
79430f6d3a reformat entire c project 2023-08-26 12:28:17 -04:00
Benjamin Wilson
9bc0671563
Ultra (#15)
Pull BM1366 work into main
2023-08-20 13:09:55 -04:00
Georges Palauqui
87d7e7c5d0
Fix build with IDF-5.1 2023-08-16 16:55:10 +02:00
Skot Croshere
9516fcc331 lowercase k means 1000 2023-07-01 14:24:02 -04:00