Skot
Full Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 221
Merit: 246
bitaxe.org
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 02, 2023, 09:29:36 PM |
|
Skot, NebulaMiner or N0nce , Has any of you managed coding the ESP_Miner and got to it to where it can be used for testing BM1397 boards ?. I am just starting on it.
Not yet.. it’s certainly on the to do list though!
|
|
|
|
n0nce
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 03, 2023, 03:34:25 PM |
|
Skot, NebulaMiner or N0nce , Has any of you managed coding the ESP_Miner and got to it to where it can be used for testing BM1397 boards ?. I am just starting on it.
Unfortunately, had no time for that yet; I'm very busy right now (as maybe noticeable by my lack of posting), but that will change soon and I'll post here (or in Skot's new thread when he makes one) as soon as I have something.
|
|
|
|
NebulaMiner
Newbie
Offline
Activity: 22
Merit: 27
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 03, 2023, 03:55:57 PM |
|
Skot, NebulaMiner or N0nce , Has any of you managed coding the ESP_Miner and got to it to where it can be used for testing BM1397 boards ?. I am just starting on it.
Unfortunately, had no time for that yet; I'm very busy right now (as maybe noticeable by my lack of posting), but that will change soon and I'll post here (or in Skot's new thread when he makes one) as soon as I have something. Same for me, difficult end of year. I will find some time soon hopefully.
|
|
|
|
developeralgo
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 63
Merit: 72
|
Phew!!! My 4-chip board is assembled now and at least it didn't go up in flames . So its time bring out the Oscilloscope and start debugging and tracing , its going to be fun i hope ![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2FM5j3KkL.jpg&t=665&c=7FpAapZnPwyGLA)
|
|
|
|
Skot
Full Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 221
Merit: 246
bitaxe.org
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 06, 2023, 11:10:23 PM |
|
Phew!!! My 4-chip board is assembled now and at least it didn't go up in flames . So its time bring out the Oscilloscope and start debugging and tracing , its going to be fun i hope
Wow, Looking good!! Is that four BM1397s??
|
|
|
|
developeralgo
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 63
Merit: 72
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 07, 2023, 12:49:35 AM |
|
Wow, Looking good!! Is that four BM1397s??
Yes it is, 4 x BM1397 chips
|
|
|
|
n0nce
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 07, 2023, 12:55:50 AM |
|
Phew!!! My 4-chip board is assembled now and at least it didn't go up in flames . So its time bring out the Oscilloscope and start debugging and tracing , its going to be fun i hope ![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2FM5j3KkL.jpg&t=665&c=7FpAapZnPwyGLA) Be careful about temps / cooling! Especially when you start attempting sending those chips commands. Don't want them to start hashing and immediately going up in flames. ![Tongue](https://bitcointalk.org/Smileys/default/tongue.gif) But Skot knows much more than myself about this (how / when they start hashing / getting hot). It's just that I've experienced (as a customer) finished mining products hashing even when not getting supplied any data at all (not sure what they were doing - again: as a customer). Just saying I've encountered it and I'm not sure whether that was just the 'idle behavior' of those chips (older stuff, not BM1397 for sure) or firmware-related.
|
|
|
|
developeralgo
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 63
Merit: 72
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 08, 2023, 05:01:20 PM |
|
Be careful about temps / cooling! Especially when you start attempting sending those chips commands. Don't want them to start hashing and immediately going up in flames. ![Tongue](https://bitcointalk.org/Smileys/default/tongue.gif) But Skot knows much more than myself about this (how / when they start hashing / getting hot). It's just that I've experienced (as a customer) finished mining products hashing even when not getting supplied any data at all (not sure what they were doing - again: as a customer). Just saying I've encountered it and I'm not sure whether that was just the 'idle behavior' of those chips (older stuff, not BM1397 for sure) or firmware-related. Great advice. Coding an ESP Miner to test it correctly, is a pain. I hope to use ESP-IDF Version 5 (std) with ESP-Rust 1.66 (std) and code some minimal rust-based ESP Miner for testing. The biggest problem i have encountered is the support and community for xtensa-esp32s3 using rust is minimal or non-existent at best. i have tested some simple ESP miner code on my ESP32-S3-WROOM-2-N32R8V Dev board that i have and it runs fast but that is without it communicating or mining on BM1397 chips. Next step will be to try adapt this minimal testing code to communicate and mine on BM1397 chips and use it on the onboard ESP32-S3-WROOM-1-N16R8V on my ESP mining board. that's a lot of grunt work to be done.
|
|
|
|
n0nce
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 08, 2023, 05:46:46 PM |
|
Great advice. Coding an ESP Miner to test it correctly, is a pain. [...] that's a lot of grunt work to be done.
For sure; it was never going to be easy! ![](https://bitcointalk.org/Smileys/default/afro.gif) But I'm sure we can get it done as a group. I will have lots more free time pretty soon. All the components are already here, except BM1397. I had troubles finding them at a reasonable price and shipping speed and now I have none. ![Roll Eyes](https://bitcointalk.org/Smileys/default/rolleyes.gif) The biggest problem i have encountered is the support and community for xtensa-esp32s3 using rust is minimal or non-existent at best. i have tested some simple ESP miner code on my ESP32-S3-WROOM-2-N32R8V Dev board that i have and it runs fast but that is without it communicating or mining on BM1397 chips. Next step will be to try adapt this minimal testing code to communicate and mine on BM1397 chips and use it on the onboard ESP32-S3-WROOM-1-N16R8V on my ESP mining board.
I think I'll start with the Stratum connection and that side of things (using regular ESP-IDF), since again: I don't have ASIC chips yet. ![Undecided](https://bitcointalk.org/Smileys/default/undecided.gif)
|
|
|
|
paid2
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 09, 2023, 07:20:41 AM |
|
Great advice. Coding an ESP Miner to test it correctly, is a pain. [...] that's a lot of grunt work to be done.
For sure; it was never going to be easy! ![](https://bitcointalk.org/Smileys/default/afro.gif) But I'm sure we can get it done as a group. I will have lots more free time pretty soon. All the components are already here, except BM1397. I had troubles finding them at a reasonable price and shipping speed and now I have none. ![Roll Eyes](https://bitcointalk.org/Smileys/default/rolleyes.gif) The biggest problem i have encountered is the support and community for xtensa-esp32s3 using rust is minimal or non-existent at best. i have tested some simple ESP miner code on my ESP32-S3-WROOM-2-N32R8V Dev board that i have and it runs fast but that is without it communicating or mining on BM1397 chips. Next step will be to try adapt this minimal testing code to communicate and mine on BM1397 chips and use it on the onboard ESP32-S3-WROOM-1-N16R8V on my ESP mining board.
I think I'll start with the Stratum connection and that side of things (using regular ESP-IDF), since again: I don't have ASIC chips yet. ![Undecided](https://bitcointalk.org/Smileys/default/undecided.gif) Hey ! I can send you a lot of old S9 / S9k hashboard if needed ! ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) For free, I juste don't want to pay the shipping but I don't care about the boards
|
|
|
|
n0nce
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 09, 2023, 03:48:57 PM |
|
Great advice. Coding an ESP Miner to test it correctly, is a pain. [...] that's a lot of grunt work to be done.
For sure; it was never going to be easy! ![](https://bitcointalk.org/Smileys/default/afro.gif) But I'm sure we can get it done as a group. I will have lots more free time pretty soon. All the components are already here, except BM1397. I had troubles finding them at a reasonable price and shipping speed and now I have none. ![Roll Eyes](https://bitcointalk.org/Smileys/default/rolleyes.gif) The biggest problem i have encountered is the support and community for xtensa-esp32s3 using rust is minimal or non-existent at best. i have tested some simple ESP miner code on my ESP32-S3-WROOM-2-N32R8V Dev board that i have and it runs fast but that is without it communicating or mining on BM1397 chips. Next step will be to try adapt this minimal testing code to communicate and mine on BM1397 chips and use it on the onboard ESP32-S3-WROOM-1-N16R8V on my ESP mining board.
I think I'll start with the Stratum connection and that side of things (using regular ESP-IDF), since again: I don't have ASIC chips yet. ![Undecided](https://bitcointalk.org/Smileys/default/undecided.gif) Hey ! I can send you a lot of old S9 / S9k hashboard if needed ! ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) For free, I juste don't want to pay the shipping but I don't care about the boards Hey there, thanks for the offer! I believe NebulaMiner wants to / started reverse engineering ASIC communication / protocol of Bitmain S17. The S9 have older chips, but since protocols may stay the same between miner generations, it could be interesting for him to look at the S9 boards.
|
|
|
|
o_solo_miner
Legendary
Offline
Activity: 2480
Merit: 1481
-> morgen, ist heute, schon gestern <-
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 09, 2023, 05:14:20 PM |
|
I used the Odroid-GO for development, but in c. or the Arduino Platform: https://github.com/espressif/arduino-esp32Maybe that is a usefull for you.
|
from the creator of CGMiner http://solo.ckpool.org for Solominers paused: passthrough for solo.ckpool.org => stratum+tcp://rfpool.org:3334
|
|
|
n0nce
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 09, 2023, 06:16:28 PM |
|
Those are the ESP32's (plain 32, not 32-C3 or 32-S3), but what exactly did you develop for them? Mining firmware? That could indeed be useful; especially the Stratum v2 part, since that should be completely independent from the mining hardware (ASIC chips) used. C code for ESP32 should also compile for ESP32-S3.
|
|
|
|
cygan
Legendary
Offline
Activity: 3262
Merit: 8492
icarus-cards.eu
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 09, 2023, 06:39:47 PM |
|
Wow, Looking good!! Is that four BM1397s??
Yes it is, 4 x BM1397 chips holy shit! what would be the complete hash performance in the best case, if all 4 chips were running properly?
|
|
|
|
n0nce
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 09, 2023, 06:56:55 PM |
|
Wow, Looking good!! Is that four BM1397s??
Yes it is, 4 x BM1397 chips holy shit! what would be the complete hash performance in the best case, if all 4 chips were running properly? My new GekkoScience R909 with 6 BM1397 chips at 600MHz and proper cooling (review is coming) is pushing out around 2.2TH/s, so around 370GH/s per chip. I believe 400GH/s per chip is definitely realistic, so that's 2.4TH/s on a R909 or 1.6TH/s on the Bitaxe with 4 chips.
|
|
|
|
developeralgo
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 63
Merit: 72
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 09, 2023, 09:14:17 PM Merited by vapourminer (1) |
|
Those are the ESP32's (plain 32, not 32-C3 or 32-S3), but what exactly did you develop for them? Mining firmware? That could indeed be useful; especially the Stratum v2 part, since that should be completely independent from the mining hardware (ASIC chips) used.
C code for ESP32 should also compile for ESP32-S3.
The hard part is figuring out an optimized and efficient communication between ESP32-S3-WROOM-1 chip and the BM 1397 chips and coding it in a stripped down embedded format so that it fits into tiny 16 MB Flash with additional 8 MB PSRAM on the ESP32-S3 Either C or Std Rust or NoStd Rust, we will still come very close to the memory threshold being completely utilized. i guess the goal is to strip down everything and have only bare-bone code but with standard ESP-IDF Version 5.0 / 5.1 to handle a lot of the headaches from std code Good candidates is to use Cgminer (Kanoi version (C/C++)) , Braiins OS code base (Rust) as a Reference plus stratum V2 (Rust) code base and strip everything to the bone. Rust has few advantages when running on Microcontrollers compared to pure C code.
|
|
|
|
n0nce
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 09, 2023, 09:21:46 PM |
|
The hard part is figuring out an optimized and efficient communication between ESP32-S3-WROOM-1 chip and the BM 1397 chips and coding it in a stripped down embedded format so that it fits into tiny 16 MB Flash with additional 8 MB PSRAM on the ESP32-S3
Agreed. Rust has few advantages when running on Microcontrollers compared to pure C code.
Which advantages exactly? (specific to microcontrollers)
|
|
|
|
developeralgo
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 63
Merit: 72
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 09, 2023, 09:35:10 PM |
|
Which advantages exactly? (specific to microcontrollers)
Assuming that someone is competent in both C and Rust , IMHO , multithreaded/concurrent code that is correct and produces no undefined behavior is better. Also memory safety is a key feature that Rust brings to the table. In C you are on your own with concurrency and God help you if you are new to C programming. You will get baptism by fire. C / C++ and Python are my go-to languages but C tends to be a little messy to code sometimes but gets better with age i guess.
|
|
|
|
n0nce
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 10, 2023, 09:37:34 AM |
|
Which advantages exactly? (specific to microcontrollers)
Assuming that someone is competent in both C and Rust , IMHO , multithreaded/concurrent code that is correct and produces no undefined behavior is better. Also memory safety is a key feature that Rust brings to the table. In C you are on your own with concurrency and God help you if you are new to C programming. You will get baptism by fire. C / C++ and Python are my go-to languages but C tends to be a little messy to code sometimes but gets better with age i guess. Okay, so those are general advantages that come with Rust. I thought there was something specific about MCUs. Do we need a lot of multithreading for this application, though? You request a block candidate over Stratum v2, build a packet for your miner and send it. Then wait for it to respond. As far as I know, that's the rough big picture.
|
|
|
|
developeralgo
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 63
Merit: 72
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 10, 2023, 11:17:56 PM |
|
Okay, so those are general advantages that come with Rust. I thought there was something specific about MCUs. Do we need a lot of multithreading for this application, though? You request a block candidate over Stratum v2, build a packet for your miner and send it. Then wait for it to respond. As far as I know, that's the rough big picture.
Agreed , nothing really special about MCU and Rust.
|
|
|
|
|