149 Commits

Author SHA1 Message Date
mutatrum
e3ef2e55bd
Implement client.reconnect and reset stratum uid on reconnect (#253)
* Implement client.reconnect and reset stratum uid on reconnect
2024-07-12 14:11:48 -04:00
Georges Palauqui
2dcff97bea
fix minor bug (log display) 2024-07-10 21:25:31 +02:00
Skot
04c8b80287
WIP: Fix job interval timing (#249)
* add extended nonce debugging

* switch to semaphore for job timing

* clean up nonce debugging. hardcode 1366 job interval to 2s and show when new jobs are sent

* set nonce range to 0x0F0000 set job interval to 20s. better stratum debugging,

* testing out longer intervals on 1368

* looking at exact serial commands sent

* fix log value digit count

* add core from nonce debug

* set BM1366 initial chip difficulty to 32

* add version rolling debug

* improve debug printing again

* fix diff

* fix core_id extraction

* printf fix

* debug cleanup

* setup BM1368 for testing. reg10 to S21 default, job interval @ 0.5s

* set init diff on 1366 and 1368 back to 256

---------

Co-authored-by: Georges Palauqui <g.palauqui@gptechinno.com>
2024-07-07 09:05:31 -04:00
3x3y3z3t
248df91543
Fixed incompatible function signature (#247) 2024-07-02 14:12:03 +02:00
mutatrum
e3edb87b6c Change stratum message_id to 64bit 2024-06-25 15:34:15 +02:00
tommywatson
19aa080202
Left a dangling pointer (#240)
* Clean up and return 0 on recv, let task reconnect

* Set json buffer to null

---------

Co-authored-by: tommy <tommy@tommywatson.com>
Co-authored-by: Skot <skot@bitnet.cx>
2024-06-21 08:26:19 -04:00
tommywatson
34cf8d9483
Clean up and return 0 on recv, let task reconnect (#227)
Co-authored-by: tommy <tommy@tommywatson.com>
2024-06-20 23:49:06 -04:00
yanir99
ff5b60b54e
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
2024-06-20 12:21:05 +02:00
Georges
9dc8c8cad3
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>
2024-06-19 15:29:45 +02: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
11107a3d32
fix dependancies 2024-06-11 10:14:30 +02:00
Georges Palauqui
17852f03c5
oups 2024-06-07 21:59:04 +02:00
Georges Palauqui
95a2a8c605
loop over regA8 for all chips 2024-06-07 21:52:12 +02:00
Georges Palauqui
5b38d332ce
distribute chip address to all chip available 2024-06-07 15:24:56 +02:00
wizkid057
62693c12fd
Add software version string to the stratum mining.subscribe (#197)
lgtm
2024-06-04 11:30:38 -04:00
Skot
4bda726f38
update system hashrate on every chip share, not just pool shares. (#196) 2024-06-02 09:06:00 -04:00
Skot
11c1d087a8
Stratum message ordering fix (#192)
* rough strategy for this fix. needs testing
* seems to be working with OCEAN. need to make sure nothing else is broken
* add version mask debug
* removed stratum setup response results from A/R shares tally
2024-05-31 17:43:10 -04:00
Benjamin Wilson
a87f1e974c display AP ssid on connecting screen 2024-05-24 20:00:10 -04:00
pixel::doc
e4fcfdca83
Add more Logging to esp_restart (#179) 2024-05-23 22:55:31 -04:00
MoellerDi
0072a0f5c8
add option to configure hostname (#174) 2024-05-23 22:54:39 -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
WantClue
3c15a050a3 uint fix 2024-03-22 15:33:37 +01:00
Benjamin Wilson
2f1a6c5d7d
Self_test (#139)
* self test
2024-03-17 15:37:41 -04:00
Ben
b958b85d57 fix setting version rolling 2024-03-11 20:37:49 -04:00
Ben
feda6609c1 Correctly identify rejected stratum submission 2024-02-24 23:43:35 -05:00
johnny9
d545eecd61 bm1366: count number of chips on the chain 2024-02-12 23:58:24 -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
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