feature: add support for S21 Hydro (#283)
This commit is contained in:
@@ -14,6 +14,19 @@
|
|||||||
show_root_heading: false
|
show_root_heading: false
|
||||||
heading_level: 0
|
heading_level: 0
|
||||||
|
|
||||||
|
## S21 Hydro (Stock)
|
||||||
|
|
||||||
|
- [x] Shutdowns
|
||||||
|
- [x] Power Modes
|
||||||
|
- [ ] Setpoints
|
||||||
|
- [ ] Presets
|
||||||
|
|
||||||
|
::: pyasic.miners.antminer.bmminer.X21.S21.BMMinerS21Hydro
|
||||||
|
handler: python
|
||||||
|
options:
|
||||||
|
show_root_heading: false
|
||||||
|
heading_level: 0
|
||||||
|
|
||||||
## S21 Pro (Stock)
|
## S21 Pro (Stock)
|
||||||
|
|
||||||
- [x] Shutdowns
|
- [x] Shutdowns
|
||||||
|
|||||||
@@ -105,6 +105,7 @@ details {
|
|||||||
<li><a href="../antminer/X21#s21-stock">S21 (Stock)</a></li>
|
<li><a href="../antminer/X21#s21-stock">S21 (Stock)</a></li>
|
||||||
<li><a href="../antminer/X21#s21-pro-stock">S21 Pro (Stock)</a></li>
|
<li><a href="../antminer/X21#s21-pro-stock">S21 Pro (Stock)</a></li>
|
||||||
<li><a href="../antminer/X21#t21-stock">T21 (Stock)</a></li>
|
<li><a href="../antminer/X21#t21-stock">T21 (Stock)</a></li>
|
||||||
|
<li><a href="../antminer/X21#s21-hydro-stock">S21 Hydro (Stock)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</details>
|
</details>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ class AntminerModels(MinerModelType):
|
|||||||
T19 = "T19"
|
T19 = "T19"
|
||||||
S21 = "S21"
|
S21 = "S21"
|
||||||
S21Pro = "S21 Pro"
|
S21Pro = "S21 Pro"
|
||||||
|
S21Hydro = "S21 Hydro"
|
||||||
T21 = "T21"
|
T21 = "T21"
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners.backends import AntminerModern
|
from pyasic.miners.backends import AntminerModern
|
||||||
from pyasic.miners.device.models import S21, S21Pro
|
from pyasic.miners.device.models import S21, S21Hydro, S21Pro
|
||||||
|
|
||||||
|
|
||||||
class BMMinerS21(AntminerModern, S21):
|
class BMMinerS21(AntminerModern, S21):
|
||||||
@@ -24,3 +24,7 @@ class BMMinerS21(AntminerModern, S21):
|
|||||||
|
|
||||||
class BMMinerS21Pro(AntminerModern, S21Pro):
|
class BMMinerS21Pro(AntminerModern, S21Pro):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class BMMinerS21Hydro(AntminerModern, S21Hydro):
|
||||||
|
pass
|
||||||
|
|||||||
@@ -13,5 +13,5 @@
|
|||||||
# See the License for the specific language governing permissions and -
|
# See the License for the specific language governing permissions and -
|
||||||
# limitations under the License. -
|
# limitations under the License. -
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
from .S21 import BMMinerS21, BMMinerS21Pro
|
from .S21 import BMMinerS21, BMMinerS21Hydro, BMMinerS21Pro
|
||||||
from .T21 import BMMinerT21
|
from .T21 import BMMinerT21
|
||||||
|
|||||||
@@ -34,3 +34,10 @@ class S21Pro(AntMinerMake):
|
|||||||
expected_fans = 4
|
expected_fans = 4
|
||||||
expected_hashboards = 3
|
expected_hashboards = 3
|
||||||
algo = MinerAlgo.SHA256
|
algo = MinerAlgo.SHA256
|
||||||
|
|
||||||
|
|
||||||
|
class S21Hydro(AntMinerMake):
|
||||||
|
raw_model = MinerModel.ANTMINER.S21Hydro
|
||||||
|
expected_chips = 216
|
||||||
|
expected_hashboards = 2
|
||||||
|
expected_fans = 0
|
||||||
|
|||||||
@@ -14,5 +14,5 @@
|
|||||||
# limitations under the License. -
|
# limitations under the License. -
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from .S21 import S21, S21Pro
|
from .S21 import S21, S21Hydro, S21Pro
|
||||||
from .T21 import T21
|
from .T21 import T21
|
||||||
|
|||||||
@@ -119,6 +119,7 @@ MINER_CLASSES = {
|
|||||||
"ANTMINER BHB68606": BMMinerS21, # ???
|
"ANTMINER BHB68606": BMMinerS21, # ???
|
||||||
"ANTMINER S21 PRO": BMMinerS21Pro,
|
"ANTMINER S21 PRO": BMMinerS21Pro,
|
||||||
"ANTMINER T21": BMMinerT21,
|
"ANTMINER T21": BMMinerT21,
|
||||||
|
"ANTMINER S21 HYD.": BMMinerS21Hydro,
|
||||||
},
|
},
|
||||||
MinerTypes.WHATSMINER: {
|
MinerTypes.WHATSMINER: {
|
||||||
None: type("WhatsminerUnknown", (BTMiner, WhatsMinerMake), {}),
|
None: type("WhatsminerUnknown", (BTMiner, WhatsMinerMake), {}),
|
||||||
|
|||||||
Reference in New Issue
Block a user