- 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
* feat: add stratum response time
* fix: use esp_timer and move the response tracking to it's dedicated function call
* feat: add response time to UI
* feat: tie to the stratum id
* fix: refactor parsing
* fix: start a bit later
* fix: refactor style
* fix: modulo the request id
* Update main/tasks/stratum_task.c
Co-authored-by: Johnny <johnny9dev@pm.me>
* Update main/tasks/stratum_task.c
Co-authored-by: Johnny <johnny9dev@pm.me>
---------
Co-authored-by: Johnny <johnny9dev@pm.me>
* Move self_test check and Wi-Fi state into their modules
Also removed main.h and superfluous GlobalState inits.
* Fix compile error
* EOL
* Fix compile error
* Update crc.c
crc files from Mecanix
* Create crc.h
Part of the crc alternative suggested by Mecanix
* Update crc.h
Wrong cut& paste, sorry
* Delete components/asic/crc.h
File in wrong directory
* Update crc.h
* Update TPS546.c
Initialize variables so the code can be compiled with -O2 option.
* 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
* Improve Wi-Fi connection error messages
This refactor is a bit of an oil-spill:
* Add all Wi-Fi error codes
* Improve errors on display
* Set Wi-Fi fields in GlobalState
* Remove EventGroupHandle for Wi-Fi
* Remove callback functions from main
* Generate ap_ssid only once
* Move packet_type_t from bk1397.h to serial.h
* Remove asic specific header includes from global_state.h
* Use NVSDevice_get_wifi_creds in main.c instead of duplicated code
* Remove superfluous zero fill
* Remove bm#### includes
* Show connected status on screen
* Remove hidden flag from self_test finish label
* Remove whitespace
* Remove unused structs
* Add newline at end of file
* Misc cleanup
* Disable BM1370_SERIALTX_DEBUG
* Log IP instead of print
* Fix console error
* Clean up bm13##.h includes
* Try to improve incorrect password errors
* Revert self-test label cleanup
* Revert some more screen cleanup code
* Fix unrelated changes
* global_state: Remove unused bm1397Module
The asic frequency is stored in POWER_MANAGEMENT_MODULE->frequency_value.
Signed-off-by: Robin van der Gracht <robinvandergracht@gmail.com>
* Remove unused bm1397Module
---------
Signed-off-by: Robin van der Gracht <robinvandergracht@gmail.com>
Co-authored-by: Robin van der Gracht <robinvandergracht@gmail.com>
* Verify CHIP_ID response
Fixes#740
* Log warning on CHIP_ID mismatch
* Fix CHIP_ID checksum calculation
* On BM1397, CORE_NUM should be 0x18
* CORE_NUM and ADDR log only and early exit when no chips are detected
* Fix compile error
* Refactored out duplicated code
Moved count_asic_chips and receive_work functions to common.c
Moved asic_response_buffer to local scope
Unified preamble and crc check on serial rx
Fixed typo in proccess_work
Moved CRC5_MASK define to proper location
* Change receive_work read timeout log to debug
* Changed wrong log to debug
* Fix merge
* Fix length check for bm1397
* add ASIC TX dubugging on BM1397 (crap, does this fix the ticket mask?!)
---------
Co-authored-by: Skot <skot@bitnet.cx>
* 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.
* Grandma knows what Wifi means!
Use Wifi instead of SSID on screen, and add short `(join for setup)` message instead of `Configuration SSID`.
This should be easier to understand, but does add 2 characters, which will fill the screen completely.
* Change NVS configs to init wifi with empty strings, and check for empty string when initializing wifi
* Change `WiFi` to `Wi-Fi` in `connect.c`
* Change what information shows on screen during inital setup and on wifi error
* fix: remove camelCase
remove Bitaxe camel case
---------
Co-authored-by: Upstream Data <brett@upstreamdata.ca>
Co-authored-by: WantClue <86001033+WantClue@users.noreply.github.com>
PR #243 changes the type of id to int64_t,
allowing for ids exceeding a 16-bit integer.
Adjusts an associated unit test to ensure that
16-bit rollover wouldn't occur.
* switched selftest fail to be non fatal
* switched to BOOT longpress to reboot after selftest
* lots and lots of error handling cleanup. <slippery slope>
* move around the DS4432U_Init() function call