43 Commits

Author SHA1 Message Date
Brett Rowan
8605bb4fb0
Minor typo fix (#629) 2025-01-08 08:36:17 +01:00
Benjamin Wilson
39a4c4164a
Press reset then hold boot for self test (#617)
Co-authored-by: Benjamin Wilson <admin@opensourceminer.com>
2025-01-05 17:08:47 -05:00
mutatrum
848c7807ec
LVGL All The Things! (#539) 2024-12-11 23:03:58 +01:00
Benjamin Wilson
80ead68995 fix self test removal 2024-11-01 22:27:13 -04:00
Benjamin Wilson
38aa71e1b6
Overhaul Axeos theme (#429) 2024-11-01 18:10:56 -04:00
Skot
2c41cc9255
Fix a couple missed issues from the fix_warnings PR (#393)
* 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
2024-10-09 12:52:55 -04:00
Skot
e1bf30b26e
Fix compiler warnings (#381)
Fix all compiler warnings and migrate off depreciated ADC and I2C libraries.
---------
Co-authored-by: Erik Olof Gunnar Andersson <eandersson@users.noreply.github.com>
2024-10-08 11:27:32 -04:00
Erik Olof Gunnar Andersson
549e8272e7
Fix wifi status not updating after disconnected (#321) 2024-09-27 23:49:59 -04:00
adammwest
f130b05511
ASIC version mask now based on pool stratum version mask msg (#349)
* make set version mask a function call

* update name

* update init fuc to support version mask setting

* update parameter spec for bm1397

* parametrize set version rolling and update init func for BM136X +

* add default stratum mask

* update all bmchips with a new set_version_mask ASIC function which can be called in main

* update init func prototype params

* update self test to remove extra vmask call in init

* fix compiler errors

* fix compiler errors in main

* add version_mask_given bool to tell the next job to set a new version mask to the chip when a smg comes in
2024-09-26 11:30:06 -04:00
Benjamin Wilson
b700c6bbf0
Fix overtemp and self tests for gamma (#343) 2024-09-20 19:30:20 -04:00
Skot
f795fc7df5 move job frequency constants to the respective ASIC include files 2024-09-18 11:03:15 -05:00
Skot
be1242ec61 added TPS546 static power offset. Increased delay for power_management_task.c to start 2024-08-16 22:32:22 -04:00
Skot
4cd7a38b9f rebasing gamma-support on 2.1.10 2024-08-15 18:51:05 -04: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
Benjamin Wilson
336ed3aaa9 Fix low hashrate, fix overheat boot loop 2024-06-22 19:15:25 -04: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 Palauqui
2dff706225
code refactor: prepare room for HEX 2024-06-12 16:21:59 +02:00
Georges Palauqui
c8789269f9
refactor GLOBAL_STATE argument instead of MODULE only 2024-06-12 15:05:14 +02:00
Georges
deb76ac058
Merge pull request #206 from skot/multi-chip
Multi chip support
2024-06-10 10:14:41 +02:00
Georges Palauqui
5e305ba6c7
no need to introuce new NVS parameters, they can be derived from the device_model ! 2024-06-10 10:02:36 +02:00
Benjamin Wilson
92924f72c6 Move power management task above wifi to prevent over heating 2024-06-08 10:03:29 -04:00
Georges Palauqui
771210e8f1
scale job rate to nonce space sharing between multi chips 2024-06-07 15:24:58 +02:00
Georges Palauqui
5b38d332ce
distribute chip address to all chip available 2024-06-07 15:24:56 +02:00
Georges Palauqui
8756581da6
add support for multi asic in multi voltage domain 2024-06-07 15:24:54 +02:00
Georges Palauqui
22393a4f68
avoid strcmp 2024-06-04 17:06:45 +02:00
Skot
4bda726f38
update system hashrate on every chip share, not just pool shares. (#196) 2024-06-02 09:06:00 -04:00
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
MoellerDi
0072a0f5c8
add option to configure hostname (#174) 2024-05-23 22:54:39 -04:00
Benjamin Wilson
b53b641c68 Remove wifi max retry, remove max fan speed on reboot 2024-05-23 22:34:11 -04:00
Skot
19e6369ac2 changed the default should_self_test to be 0 if NVS_CONFIG_SELF_TEST "selftest" is not present in nvs for #177 2024-05-21 16:40:16 -04:00
Ben
493dbccfe5 Improved when to run self test and fail messages 2024-03-18 00:46:59 -04:00
Benjamin Wilson
2f1a6c5d7d
Self_test (#139)
* self test
2024-03-17 15:37:41 -04: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
johnny9
6b8a9fad29 main: Display an error when ASIC model is invalid
Instead of aborting right away, the Bitaxe will now display
an error on the oled and keep its AP mode available so a user
can still update their device if they need to.
2023-09-26 23:52:22 -04:00
johnny9
e50da6db5c main: Delay aborting when asicmodel is not correct 2023-09-23 14:27:11 -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
9a319fffb8 fix int frequency overflow 2023-09-17 13:21:10 -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
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
johnny9
7d8a77c61b Introduce the tcp_client example
This will be the basis for or WiFi connectivity and stratum client
2023-07-01 14:18:41 -04:00
Skot Croshere
bfadf5a67c changed main file to main.c updated readme 2023-07-01 14:17:47 -04:00