727 Commits

Author SHA1 Message Date
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
ab8d220a03 system.c cleanup 2023-07-01 14:22:10 -04:00
Ben
ef3adab700 typo 2023-07-01 14:22:10 -04:00
Ben
4e97e2630d Missed one free() 2023-07-01 14:22:10 -04:00
Skot Croshere
bc07e9e33c display units 2023-07-01 14:22:10 -04:00
Ben
a2f6fa0d51 Fix memory leak; improved display and hashrate calculation 2023-07-01 14:22:09 -04:00
Ben
ca65e84bcf cleaning up display 2023-07-01 14:21:40 -04:00
Ben
20eb6ab92e accept/reject share count 2023-07-01 14:21:40 -04:00
Ben
b1651ed97c init difficulty_mask 2023-07-01 14:21:40 -04:00
Skot Croshere
9d7d034421 added the difficulty_changed flag to clear the queue on the next mining.notify after a pool difficulty change. 2023-07-01 14:21:40 -04:00
Skot Croshere
0810936b3f free strings first when clearing the ASIC_jobs queue 2023-07-01 14:21:40 -04:00
Skot Croshere
b14f21c697 added the beginning of stratum result parsing. 2023-07-01 14:21:40 -04:00
Ben
4a1933e185 comment out logging and add more hashrate samples, heap info 2023-07-01 14:21:40 -04:00
Ben
beed8fad11 revert uart driver changes 2023-07-01 14:21:40 -04:00
Ben
aa9e278f18 increase baud to 3.1Mbps 2023-07-01 14:21:39 -04:00
Ben
2a830b28c6 adjustments 2023-07-01 14:20:48 -04:00
Ben
b79dbdb4f2 debugging 2023-07-01 14:20:48 -04:00
Ben
18d0f651e8 hashrate calc, WIP 2023-07-01 14:20:48 -04:00
Ben
dfcd831bdf comment out baud stuff for now 2023-07-01 14:20:48 -04:00
Ben
02e4b0d76d ticket_mask 2023-07-01 14:20:48 -04:00
Ben
d62ce7385c naming and remove IO from asic task 2023-07-01 14:20:48 -04:00
Ben
676f6d0602 Computing job wait time 2023-07-01 14:20:48 -04:00
johnny9
13b60f5e52 bm1397: update test with changes to serial_rx api 2023-07-01 14:20:48 -04:00
johnny9
098e231308 test: add CONFIG_BM1397_FREQUENCY define to CMake to fix build 2023-07-01 14:20:48 -04:00
johnny9
c1f586c77a stratum: remove unused function 2023-07-01 14:20:48 -04:00
johnny9
471c53c817 stratum: configure version-rolling and parse version mask 2023-07-01 14:20:48 -04:00
Skot Croshere
30ee3f9dbb DEFAULT_JOB_TIMEOUT comment 2023-07-01 14:20:48 -04:00
Skot Croshere
552795d61e tighten up the serial_rx loop for collecting nonces. tried to fix the ckpool diff issue -- still broken 2023-07-01 14:20:48 -04:00
Skot Croshere
8c2079b8db cleanup send_hash_frequency() 2023-07-01 14:20:48 -04:00
Skot Croshere
9e3f615004 ported the hash frequency algorithm from cgminer. seems to work?? 2023-07-01 14:20:48 -04:00
Skot Croshere
472cfc32ea got rid of some old example Kconfig stuff 2023-07-01 14:20:48 -04:00
Skot Croshere
6560ea3a06 get rid of some old serial parsing functions 2023-07-01 14:20:48 -04:00
Skot Croshere
d23a55608c added default difficulty to menuconfig and got rid of the I2C pin config 2023-07-01 14:20:48 -04:00
johnny9
dcc74213d4 admin: place bm_queue clear inside valid_jobs lock 2023-07-01 14:20:48 -04:00
johnny9
4764b368d1 bm1397: remove unused variable 2023-07-01 14:20:48 -04:00
johnny9
1ff595a736 miner: remove excess logging 2023-07-01 14:20:48 -04:00
johnny9
5a94acff09 stratum: don't attempt to recv authorize result
Previous implementation would miss the first mining.set_difficulty
message. We need to find a better way to manage result messages.
2023-07-01 14:20:48 -04:00
johnny9
6c3de26821 miner: maintain a buffer of the recent jobs sent to the asic
The asic will continue to process nonces for previous job commands
so we need to map the nonce packet job id with our buffer of jobs
that we have recently sent in order to test if the nonce is valid
and submit the share with the correct information.
2023-07-01 14:20:48 -04:00
johnny9
67babe7145 bm1397: fix problems with unit test on multiple runs 2023-07-01 14:20:48 -04:00
johnny9
3f6fbb7be2 test: add sdkconfig.defaults
Disable the watchdogs by default for the unit test project
2023-07-01 14:20:48 -04:00
johnny9
f123430a7d bm1397: update job test case values 2023-07-01 14:20:48 -04:00
johnny9
adfb606164 miner: fix job packet id logic 2023-07-01 14:20:48 -04:00
johnny9
0f4c02ffe0 chore: update .gitignore to ignore all build folders 2023-07-01 14:20:48 -04:00
johnny9
f46ae9694b bm1397: extra module to own component
Create an idf component for the bm1387 module and add a basic
test to verify that a bm1397 can produce a good nonce. bm1397
is also added to the list of tests under the unit test runner
component.
2023-07-01 14:20:48 -04:00
johnny9
c8e6c782d0 README: add information about supported hardware and platform software 2023-07-01 14:20:47 -04:00
johnny9
c7db9419c6 README: update information on configuration options 2023-07-01 14:19:51 -04:00
johnny9
5c65c42fa1 config: Remove unused IP settings configuration options 2023-07-01 14:19:51 -04:00