johnny9
5cb972c493
README: add information about running the unit tests
2023-07-01 14:18:41 -04:00
johnny9
225126708c
main: add bm_job construction to mining task
2023-07-01 14:18:41 -04:00
johnny9
1118d01ba5
mining: add script for generating verification data for tests
2023-07-01 14:18:41 -04:00
johnny9
56958f88a2
mining: fix warning on arugment type for single_sha256
2023-07-01 14:18:41 -04:00
johnny9
bbd2ebe249
mining: fix endianness of the block header version
2023-07-01 14:18:41 -04:00
johnny9
901d2da341
stratum_api: parse the uint32_t values from the mining.notify message
2023-07-01 14:18:41 -04:00
johnny9
83ad62322a
stratum_api: free job_id string
2023-07-01 14:18:41 -04:00
johnny9
ca827ee4b5
mining: construct a job for bm13xx
2023-07-01 14:18:41 -04:00
johnny9
ac9a121a3c
mining: fix memory leak in merkle root calculation
2023-07-01 14:18:41 -04:00
johnny9
812e4213c1
stratum_api: cleanup notify parsing
...
Split parsing into two steps, one for the method and one for the
params themselves. Currently it is up to the miner task to grab
the parameters in the format it needs.
2023-07-01 14:18:41 -04:00
johnny9
abf914648f
mining: fix coinbase tx concatenation
2023-07-01 14:18:41 -04:00
Johnny
9197949d54
README: typo
2023-07-01 14:18:41 -04:00
johnny9
f98cbf208b
mining: fix merkle root calculation and add unit test
2023-07-01 14:18:41 -04:00
johnny9
64161f9db2
main: create define for STRATUM_USERNAME
2023-07-01 14:18:41 -04:00
johnny9
c1af662d4e
README: add information on how to configure
2023-07-01 14:18:41 -04:00
johnny9
dc5d75e444
main: rename main module to miner
2023-07-01 14:18:41 -04:00
johnny9
1c21a43cc5
mining: add merkle root calculation
2023-07-01 14:18:41 -04:00
johnny9
23e588c94e
utils: add double sha256 method
2023-07-01 14:18:41 -04:00
johnny9
9f0ecd28cd
main: add subscribe output parameters
2023-07-01 14:18:41 -04:00
johnny9
10fc3d017e
mining: add method to construct coinbase tx
2023-07-01 14:18:41 -04:00
johnny9
799d00dc2b
stratum: parse extranonce and extranonce2_len from subscribe result
2023-07-01 14:18:41 -04:00
johnny9
3066edb7f1
Make stratum module testable and introduce first unit test
2023-07-01 14:18:41 -04:00
johnny9
ec28d0a74d
stratum: move recieve methods to module
2023-07-01 14:18:41 -04:00
johnny9
d34fcfabff
Add definition for threaded work queue
2023-07-01 14:18:41 -04:00
johnny9
9c109e7553
Add basic stratum parsing using cJSON
2023-07-01 14:18:41 -04:00
johnny9
271cc33692
Implement recv_line for json-rpc
2023-07-01 14:18:41 -04:00
johnny9
d41a5d16ef
Sub and auth to braiins pool
2023-07-01 14:18: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
Skot Croshere
9b71eac928
added the rest of the serial_test from bitskipc
2023-07-01 14:17:01 -04:00
Skot Croshere
bac80831db
moved over some BM1397 driver code from bitskipc, renamed main c file
2023-07-01 14:17:01 -04:00
Skot Croshere
7e234ce8d5
moved the system monitor functions to a separate file and task
2023-07-01 14:17:01 -04:00
Skot Croshere
305ceccb22
The OLED is looking better now
2023-07-01 14:17:01 -04:00
Skot Croshere
db0126443d
got basic OLED display on... it's upside down!
2023-07-01 14:17:01 -04:00
Skot Croshere
85c42424b2
update LED pins for V2.2
2023-07-01 14:17:01 -04:00
Skot Croshere
f26e75ac5c
add the sdkconfig files that have the I2C assignment
2023-07-01 14:17:01 -04:00
Skot Croshere
c2819accfc
pull BM1397 BI pin low
2023-07-01 14:17:01 -04:00
Skot Croshere
cb71de0ea1
fixed the endian issue on the INA260 driver
2023-07-01 14:17:01 -04:00
Skot Croshere
0dee975e59
cleanup
2023-07-01 14:17:01 -04:00
Skot Croshere
4be57fef83
added chip temp to EMC2101.c
2023-07-01 14:17:01 -04:00
Skot Croshere
167a60bdf3
added ADC functions to read BM1397 Vcore. Cleaned up DS4432U set_vcore() function
2023-07-01 14:17:01 -04:00
Skot Croshere
5ca33a8656
fan speed can be 16 bit
2023-07-01 14:17:01 -04:00
Skot Croshere
4b01c67d50
Fan speed seems to be working, Added some INA260 tests. doesn't seem like power is working yet
2023-07-01 14:17:01 -04:00
Skot Croshere
d9b4e0e4f0
Added the start to a EMC2101 driver. Setting fan speed works, reading fan speed doesn't.
2023-07-01 14:16:58 -04:00
Skot Croshere
bab5ac54aa
added the DS4432U transfer function for setting the BM1397 core voltage. careful with this one!!
2023-07-01 14:16:07 -04:00
Skot Croshere
94e486f67c
added i2c-test branch
2023-07-01 14:16:04 -04:00
Skot
c68c70b8c0
Update bm1397_protocol.md
2023-05-24 22:27:20 -04:00
Skot
238a182262
Update readme.md
2023-05-24 22:25:39 -04:00
Skot
05729574cb
Update bm1397_protocol.md
2023-04-26 00:01:00 -04:00
Skot Croshere
781b12f2a8
readme update
2023-03-10 00:08:11 -05:00