120 Commits

Author SHA1 Message Date
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
johnny9
ef44903bbd bm1397: remove unnecessary loggin
Fixes #57
2023-11-29 22:23:10 -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
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
Ben
a30a7ef05f Issue 33, add the last four hex digits of the MAC address to the WiFi name 2023-09-19 20:58:37 -04:00
Ben
bb8690ed1a Captive portal when connecting via AP mode 2023-09-17 21:00:46 -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
SatoshyBoy
ed67d44a54 bm13xx: Handle invalid job ids in process_work 2023-09-13 22:06:33 -04:00
johnny9
8c5e8035c6 bm1366: Implement set frequency command 2023-09-10 00:18:38 -04:00
johnny9
9889b22c6b bm13xx: include what you use in common.h 2023-09-07 11:44:18 -04:00
SatoshyBoy
032fe24f2a WIFI Failure
The firmware halts when it loses the wifi connection.
2023-09-04 22:17:47 -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
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
ec9d84e90e set default max_retries to 420 2023-07-01 14:24:02 -04:00
Skot Croshere
ff403395ee wifi connection retry displays on OLED 2023-07-01 14:24:00 -04:00
Skot Croshere
260ba51edb added some basic wifi connection retrys and debugging 2023-07-01 14:23:35 -04:00
Ben
4899ffcbaa still need to set default baud 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
55b9960da7 temperature protection init 2023-07-01 14:23:35 -04:00
Skot Croshere
4896d1255b typo 2023-07-01 14:23:35 -04:00
Skot Croshere
486f35694e switched to the recommended wifi station example 2023-07-01 14:23:35 -04:00
Skot Croshere
51b3d344ed cleanup connect Kconfig 2023-07-01 14:23:35 -04:00
Skot Croshere
7226f569eb cleanup connect defines 2023-07-01 14:23:35 -04:00
Skot Croshere
a3b798de7a switch to separate connect component 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
johnny9
c7de2c0795 bm1397: add multiple midstates using version mask
Job packets can have more that 1 midstate. If the stratum supports
version-rolling, calculate additional midstates by incrementing
the version with the version_mask provided by the stratum server.
Currently does 4 midstates for each extranonce2.
2023-07-01 14:23:35 -04:00
Ben
1b75644b67 added back stratum unit tests 2023-07-01 14:23:35 -04:00
Ben
2171e55e14 reorder STRATUM_V1_submit_share params to fit api 2023-07-01 14:23:35 -04:00
Ben
ba384294b5 comments 2023-07-01 14:23:35 -04:00
Ben
8755a8fcbc rervet changes - stratum messages must have unique id 2023-07-01 14:23:35 -04:00
Ben
12770f3393 fix jobid for ckpool 2023-07-01 14:23:35 -04:00
Skot Croshere
63bc2e6326 fix typo in mining.set_difficulty 2023-07-01 14:23:35 -04:00
Ben
6065ef05a3 Fixed issues with ckpool job id, parameter length, asic init 2023-07-01 14:23:35 -04:00
Ben
35358e0e44 cleaning and optimizing stratum_task/stratum_api 2023-07-01 14:23:35 -04:00
Ben
c3301aab30 move queue 2023-07-01 14:23:35 -04:00
Skot Croshere
65f906eb3d change stratum_api TAG to match filename 2023-07-01 14:23:35 -04:00
Ben
a7bae3ce71 Modularized 3 tasks, created global state struct 2023-07-01 14:23:33 -04:00
Ben
b604e0ccc6 cleaning up serial.c 2023-07-01 14:22:35 -04:00
Ben
3d9d1692f2 more cleanup of mb1397 and system 2023-07-01 14:22:10 -04:00
Ben
c148aec820 modulize system, bm1397, cleanup 2023-07-01 14:22:10 -04:00
Ben
ef3adab700 typo 2023-07-01 14:22:10 -04:00
Ben
b1651ed97c init difficulty_mask 2023-07-01 14:21:40 -04:00