65 Commits

Author SHA1 Message Date
MoellerDi
ec4af81479
issue #100 resolved - ASIC not always starting/hashing after boot (due to race condition) (#152)
* fix ASIC not starting - order is important

* Revert "fix ASIC not starting - order is important"

This reverts commit c313a6f3e7a54e02a6b43315f641c44fcab051d2.

* better approach resolving race condition in serial communication; moving serial from ASIC_task / ASIC_result_task to app_main()
2024-05-23 23:18:44 -04:00
pixel::doc
e4fcfdca83
Add more Logging to esp_restart (#179) 2024-05-23 22:55:31 -04:00
MoellerDi
1da7132b6a
fix stratum parsing not always counting rejected shares (#163)
* fix stratum parsing not counting rejected messages

* add unit tests
2024-05-23 22:53:05 -04:00
Benjamin Wilson
b53b641c68 Remove wifi max retry, remove max fan speed on reboot 2024-05-23 22:34:11 -04:00
Ben
69e3c4bb81 axeos refactor init 2024-02-25 12:36:43 -05:00
Skot
3df855d9b4 Add BM1368 support
co-authored-by: John-Paul Compagnone <jpcompagnone@epicblockchain.io>
co-authored-by: johnny9 <985648+johnny9@users.noreply.github.com>
co-authored-by: Ben <wilsob12@gmail.com>
2024-02-10 13:37:39 -05:00
Ben
f09d01d809 remove debug 2024-01-13 15:11:44 -05:00
Ben
c9b5b65275 set version mask on mining.configure 2024-01-13 15:08:56 -05:00
Ben
794af8d7b7 stratum password 2024-01-13 11:06:01 -05:00
Ben
ef344f236d added logic for barrel jack and voltage regulator switch, board version 2024-01-13 00:05:45 -05:00
Skot
174ef21b18
Changed order of stratum messages for #80 2024-01-09 22:57:51 -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
e0a0ee8c49 Fix suggest difficulty (order matters) 2024-01-07 01:00:01 -05:00
Ben
9eee3ae359 Fix screen 1 breaking when share found 2024-01-07 00:55:17 -05:00
johnny9
407881c8e4 main: send mining.configure before mining.authorize and parse the result
This reverts commit e5009e14ab3f81d22ed2dd594712ed49da5257ea.

Fixes #50
2023-11-29 22:07:51 -05:00
ozbibi
7abda9914c
Fix formula for automatic fan control and adjust minimum fan speed (#59)
* Fix formula for the automatic fan control
2023-11-24 23:38:50 -05:00
Ben
dea4a7587b remove log and fix unplugged fan speed 2023-11-14 23:02:42 -05:00
Ben
fc0e49e5d5 automatic fan speed control 2023-11-14 21:59:09 -05:00
johnny9
e5009e14ab Revert "Fixing mining.configure order"
This reverts commit edcf000cbf1d91108146342df66739ac5f243e78.
2023-11-14 20:40:09 -05:00
checksum0
edcf000cbf Fixing mining.configure order
Fixed mining.configure order as it should be sent first, per BIP0310
2023-11-13 23:36:41 -05:00
Ben
6d9305472f bump version and use const 2023-10-18 07:54:11 -04:00
Ben
7895289f6e Add temperature protection for the BM1366 2023-10-17 22:37:12 -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
Ben
a4c473188b Add IP address to display and allow editing of voltage, frequency from AxeOS 2023-09-17 00:01:54 -04:00
Ben
ef71810bba EMC2101 should read internal temp if BM1366 2023-09-06 17:22:08 -04:00
Ben
7f21f5cad9 support for INA260 DNP 2023-08-28 19:56:04 -04:00
DeveloperAlgo
34aac22a3a
Update power_management_task.c (#19)
update power management to correct the speed calculations
2023-08-27 23:26:29 -04:00
Ben
0ceb4532a4 https://github.com/skot/ESP-Miner/issues/18 2023-08-26 14:24:27 -04:00
Ben
8222b913a3 fan speed failsafe for bm1366 2023-08-26 14:23:18 -04:00
Ben
79430f6d3a reformat entire c project 2023-08-26 12:28:17 -04:00
Benjamin Wilson
199c151c0f
Http-server (#17)
* 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>
2023-08-26 12:21:41 -04:00
Skot Croshere
8880f1702f add fan speed back to ultra 2023-08-22 15:13:43 -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
Ben
e137116dc1 restart esp32 on socket unable to connect 2023-07-10 16:10:34 -04:00
Ben
0200b82b33 immediately dequeue work 2023-07-01 21:09:49 -04:00
Skot Croshere
260ba51edb added some basic wifi connection retrys and debugging 2023-07-01 14:23:35 -04:00
Ben
9b2bbc754a removing soft start for now and gitignore 2023-07-01 14:23:35 -04:00
Ben
14c267e69d use nvs for mining result 2023-07-01 14:23:35 -04:00
Ben
700db06f5a even softer start & smarter low voltage recovery 2023-07-01 14:23:35 -04:00
Ben
914b926758 power soft start 2023-07-01 14:23:35 -04:00
Ben
e8f36e89fa frequency throttling during voltage drops 2023-07-01 14:23:35 -04:00
johnny9
6949b73bb9 nvs_config: introduce configuration through NVS
Stratum and Wifi configuration can now be read from NVS on the
flash. An example config.cvs file is included and can be used
to generate the partition and then be flashed to the esp32 using
the esp-idf parttool.py.
2023-07-01 14:23:35 -04:00
Ben
1540703850 increased throttle temp 2023-07-01 14:23:35 -04:00
Ben
55b9960da7 temperature protection init 2023-07-01 14:23:35 -04:00
Skot Croshere
a3b798de7a switch to separate connect component 2023-07-01 14:23:35 -04:00
Skot Croshere
134d990090 cleanup comments and include 2023-07-01 14:23:35 -04:00
Skot Croshere
71a660948c accept stratum hostname or IP 2023-07-01 14:23:35 -04:00
Ben
af22994402 Move the asic response handling into its own task 2023-07-01 14:23:35 -04:00
johnny9
bc326499ea stratum: parse version-rolling config result 2023-07-01 14:23:35 -04:00