- Extract BM##_set_job_difficulty_mask into a single function
- Set self_test difficulty before ASIC_init to eliminate ASIC_set_job_difficulty_mask
- Fixed some capitalisations of GLOBAL_STATE and some others
- Thermal.c: pass DEVICE_CONFIG by pointer instead of by value
* Add mock-up of device name and model on logo screen
* Remove nvs_get_wifi_credits
* Proof of concept for code review
* Fix merge
* Refactored vcore.c
* Log simplification
* Fix missed field rename
* Refactor self-test
* Refactor power.c
* Move Power_disable into VCORE_set_voltage
* Restore ASIC log line
* Clean up self-test.c
* Remove unused constants
* Ultra uses EMC2101 internal temperature sensor
* Simplify thermal configuration
* Set power_offset to 10W for GT (#867)
* Hex is BM1366
* Add board_version 600
* Use boardVersion from config in http response
* Fix GammaTurbo EMC2103 init
* Add Max 0.11 and Ultra 2.2 board versions
* Flip 0.11 and 2.2
* Merge branch 'dev-latest' into HEAD
* Move frequency and voltage options and defaults to device_config.h
* Fix voltage_options loop
* Fix missing frequency and voltage options for BM1368
* Add swarm colors
* Add new fields to openapi.yaml
* Fix asic_job_frequency for Max
* Fix merge
* pid init
* feat: PID controller
* fix: adjust PID setPoint temp
* changed TPS546_get_iout() to read the combined current for both phases (#796)
* fix: include
* fix: don't collect hashrate while in power_fault (#804)
* fix: raw ints to enums
* feat: add ui target temp
* fix: PID reduce min fan speed to 15
* fix: add openapi temptarget
* fix: adjust default temp target
* fix: adjust setPoint on the fly
* add comments
* fix: go back to 60 and set var instead of hard code
---------
Co-authored-by: skot <140785+skot@users.noreply.github.com>
* add ISR for SMB_ALRT and checking in systemtask
* change order of gpio ISR init
* switch back tp TPS546 status polling
* added some comments arbout the structure of the 3 fault responses
* feat: add TPS alerts to UI
* change Gamma VIN_OV_FAULT_LIMIT from 5.5V to 6.5V
* changed the power fault banner to use the SYSTEM_MODULE.power_fault flag. Found the right TPS546 register so that a soft reset clears a power fault.
* clean up fault alert wording
* remove the PMBUS_ALERT interrupt -- that never worked.
* cleanup https_server.c includes
* remove unused TPS546 functions
* handle setting the power_fault flag in TPS546.c. only print the error messages once.
* make TPS542 faults debug more consistent
* added more detail to TPS546_parse_status()
---------
Co-authored-by: WantClue <Lars_Naether@hotmail.de>
* feat: frequency transition
* remove floats that are unnecessary
* fix: callback of set_freq function
* refactor asic model code to asic.c
* fix: change namining scheme
* 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.
* 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
Fix all compiler warnings and migrate off depreciated ADC and I2C libraries.
---------
Co-authored-by: Erik Olof Gunnar Andersson <eandersson@users.noreply.github.com>
* 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>
* 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>
* 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>
* 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>
* rename miner to main
* serving out of storage
* axe os
* http server work
* basic stats showing
* update sdkconfig
* SDKCONFIG
* sdk config
* edit page init
* edit pool config
* pool config edit working
* OTA Success
* remove compiled output
* toggle AP mode with boot button
* favicon
* ota website update
* add sdkconfig.ci back
* update readme
* change website build to warning
* Update github workflow to build web dist
* Allow AP mode before STA connection complete
* spacing for johnny :)
* formatting
* Improve connecting to wifi with AP mode
* added working indicator for UI
* formatting
* formatting
* remove redundant sdkconfig in CMakeLists
* vs code format on save workspace settings
---------
Co-authored-by: johnny9 <985648+johnny9@users.noreply.github.com>