feature: add support for a bunch of BOS and VNish S21 models.
This commit is contained in:
@@ -92,6 +92,19 @@
|
|||||||
show_root_heading: false
|
show_root_heading: false
|
||||||
heading_level: 0
|
heading_level: 0
|
||||||
|
|
||||||
|
## S21 Hydro (BOS+)
|
||||||
|
|
||||||
|
- [x] Shutdowns
|
||||||
|
- [ ] Power Modes
|
||||||
|
- [x] Setpoints
|
||||||
|
- [ ] Presets
|
||||||
|
|
||||||
|
::: pyasic.miners.antminer.bosminer.X21.S21.BOSMinerS21Hydro
|
||||||
|
handler: python
|
||||||
|
options:
|
||||||
|
show_root_heading: false
|
||||||
|
heading_level: 0
|
||||||
|
|
||||||
## S21 Pro (BOS+)
|
## S21 Pro (BOS+)
|
||||||
|
|
||||||
- [x] Shutdowns
|
- [x] Shutdowns
|
||||||
@@ -105,6 +118,32 @@
|
|||||||
show_root_heading: false
|
show_root_heading: false
|
||||||
heading_level: 0
|
heading_level: 0
|
||||||
|
|
||||||
|
## S21+ (BOS+)
|
||||||
|
|
||||||
|
- [x] Shutdowns
|
||||||
|
- [ ] Power Modes
|
||||||
|
- [x] Setpoints
|
||||||
|
- [ ] Presets
|
||||||
|
|
||||||
|
::: pyasic.miners.antminer.bosminer.X21.S21.BOSMinerS21Plus
|
||||||
|
handler: python
|
||||||
|
options:
|
||||||
|
show_root_heading: false
|
||||||
|
heading_level: 0
|
||||||
|
|
||||||
|
## S21+ Hydro (BOS+)
|
||||||
|
|
||||||
|
- [x] Shutdowns
|
||||||
|
- [ ] Power Modes
|
||||||
|
- [x] Setpoints
|
||||||
|
- [ ] Presets
|
||||||
|
|
||||||
|
::: pyasic.miners.antminer.bosminer.X21.S21.BOSMinerS21PlusHydro
|
||||||
|
handler: python
|
||||||
|
options:
|
||||||
|
show_root_heading: false
|
||||||
|
heading_level: 0
|
||||||
|
|
||||||
## T21 (BOS+)
|
## T21 (BOS+)
|
||||||
|
|
||||||
- [x] Shutdowns
|
- [x] Shutdowns
|
||||||
@@ -131,6 +170,58 @@
|
|||||||
show_root_heading: false
|
show_root_heading: false
|
||||||
heading_level: 0
|
heading_level: 0
|
||||||
|
|
||||||
|
## S21 Hydro (VNish)
|
||||||
|
|
||||||
|
- [x] Shutdowns
|
||||||
|
- [ ] Power Modes
|
||||||
|
- [x] Setpoints
|
||||||
|
- [x] Presets
|
||||||
|
|
||||||
|
::: pyasic.miners.antminer.vnish.X21.S21.VNishS21Hydro
|
||||||
|
handler: python
|
||||||
|
options:
|
||||||
|
show_root_heading: false
|
||||||
|
heading_level: 0
|
||||||
|
|
||||||
|
## S21 Pro (VNish)
|
||||||
|
|
||||||
|
- [x] Shutdowns
|
||||||
|
- [ ] Power Modes
|
||||||
|
- [x] Setpoints
|
||||||
|
- [x] Presets
|
||||||
|
|
||||||
|
::: pyasic.miners.antminer.vnish.X21.S21.VNishS21Pro
|
||||||
|
handler: python
|
||||||
|
options:
|
||||||
|
show_root_heading: false
|
||||||
|
heading_level: 0
|
||||||
|
|
||||||
|
## S21+ (VNish)
|
||||||
|
|
||||||
|
- [x] Shutdowns
|
||||||
|
- [ ] Power Modes
|
||||||
|
- [x] Setpoints
|
||||||
|
- [x] Presets
|
||||||
|
|
||||||
|
::: pyasic.miners.antminer.vnish.X21.S21.VNishS21Plus
|
||||||
|
handler: python
|
||||||
|
options:
|
||||||
|
show_root_heading: false
|
||||||
|
heading_level: 0
|
||||||
|
|
||||||
|
## S21+ Hydro (VNish)
|
||||||
|
|
||||||
|
- [x] Shutdowns
|
||||||
|
- [ ] Power Modes
|
||||||
|
- [x] Setpoints
|
||||||
|
- [x] Presets
|
||||||
|
|
||||||
|
::: pyasic.miners.antminer.vnish.X21.S21.VNishS21PlusHydro
|
||||||
|
handler: python
|
||||||
|
options:
|
||||||
|
show_root_heading: false
|
||||||
|
heading_level: 0
|
||||||
|
|
||||||
## T21 (VNish)
|
## T21 (VNish)
|
||||||
|
|
||||||
- [x] Shutdowns
|
- [x] Shutdowns
|
||||||
|
|||||||
@@ -663,6 +663,9 @@ details {
|
|||||||
<ul>
|
<ul>
|
||||||
<li><a href="../antminer/X21#s21-bos_1">S21 (BOS+)</a></li>
|
<li><a href="../antminer/X21#s21-bos_1">S21 (BOS+)</a></li>
|
||||||
<li><a href="../antminer/X21#s21-pro-bos_1">S21 Pro (BOS+)</a></li>
|
<li><a href="../antminer/X21#s21-pro-bos_1">S21 Pro (BOS+)</a></li>
|
||||||
|
<li><a href="../antminer/X21#s21_1-bos_1">S21+ (BOS+)</a></li>
|
||||||
|
<li><a href="../antminer/X21#s21_1-hydro-bos_1">S21+ Hydro (BOS+)</a></li>
|
||||||
|
<li><a href="../antminer/X21#s21-hydro-bos_1">S21 Hydro (BOS+)</a></li>
|
||||||
<li><a href="../antminer/X21#t21-bos_1">T21 (BOS+)</a></li>
|
<li><a href="../antminer/X21#t21-bos_1">T21 (BOS+)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</details>
|
</details>
|
||||||
@@ -721,6 +724,10 @@ details {
|
|||||||
<ul>
|
<ul>
|
||||||
<li><a href="../antminer/X21#t21-vnish">T21 (VNish)</a></li>
|
<li><a href="../antminer/X21#t21-vnish">T21 (VNish)</a></li>
|
||||||
<li><a href="../antminer/X21#s21-vnish">S21 (VNish)</a></li>
|
<li><a href="../antminer/X21#s21-vnish">S21 (VNish)</a></li>
|
||||||
|
<li><a href="../antminer/X21#s21_1-vnish">S21+ (VNish)</a></li>
|
||||||
|
<li><a href="../antminer/X21#s21_1-hydro-vnish">S21+ Hydro (VNish)</a></li>
|
||||||
|
<li><a href="../antminer/X21#s21-pro-vnish">S21 Pro (VNish)</a></li>
|
||||||
|
<li><a href="../antminer/X21#s21-hydro-vnish">S21 Hydro (VNish)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</details>
|
</details>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -15,12 +15,40 @@
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners.backends import BOSer
|
from pyasic.miners.backends import BOSer
|
||||||
from pyasic.miners.device.models import S21, S21Pro
|
from pyasic.miners.device.models import S21, S21Hydro, S21Plus, S21PlusHydro, S21Pro
|
||||||
|
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# Copyright 2022 Upstream Data Inc -
|
||||||
|
# -
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
|
# you may not use this file except in compliance with the License. -
|
||||||
|
# You may obtain a copy of the License at -
|
||||||
|
# -
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0 -
|
||||||
|
# -
|
||||||
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
class BOSMinerS21(BOSer, S21):
|
class BOSMinerS21(BOSer, S21):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class BOSMinerS21Plus(BOSer, S21Plus):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class BOSMinerS21PlusHydro(BOSer, S21PlusHydro):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class BOSMinerS21Pro(BOSer, S21Pro):
|
class BOSMinerS21Pro(BOSer, S21Pro):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class BOSMinerS21Hydro(BOSer, S21Hydro):
|
||||||
|
pass
|
||||||
|
|||||||
@@ -14,5 +14,11 @@
|
|||||||
# limitations under the License. -
|
# limitations under the License. -
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from .S21 import BOSMinerS21, BOSMinerS21Pro
|
from .S21 import (
|
||||||
|
BOSMinerS21,
|
||||||
|
BOSMinerS21Hydro,
|
||||||
|
BOSMinerS21Plus,
|
||||||
|
BOSMinerS21PlusHydro,
|
||||||
|
BOSMinerS21Pro,
|
||||||
|
)
|
||||||
from .T21 import BOSMinerT21
|
from .T21 import BOSMinerT21
|
||||||
|
|||||||
@@ -15,8 +15,24 @@
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners.backends import VNish
|
from pyasic.miners.backends import VNish
|
||||||
from pyasic.miners.device.models import S21
|
from pyasic.miners.device.models import S21, S21Hydro, S21Plus, S21PlusHydro, S21Pro
|
||||||
|
|
||||||
|
|
||||||
class VNishS21(VNish, S21):
|
class VNishS21(VNish, S21):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class VNishS21Plus(VNish, S21Plus):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class VNishS21PlusHydro(VNish, S21PlusHydro):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class VNishS21Pro(VNish, S21Pro):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class VNishS21Hydro(VNish, S21Hydro):
|
||||||
|
pass
|
||||||
|
|||||||
@@ -14,5 +14,11 @@
|
|||||||
# limitations under the License. -
|
# limitations under the License. -
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from .S21 import VNishS21
|
from .S21 import (
|
||||||
|
VNishS21,
|
||||||
|
VNishS21Hydro,
|
||||||
|
VNishS21Plus,
|
||||||
|
VNishS21PlusHydro,
|
||||||
|
VNishS21Pro,
|
||||||
|
)
|
||||||
from .T21 import VNishT21
|
from .T21 import VNishT21
|
||||||
|
|||||||
@@ -555,6 +555,9 @@ MINER_CLASSES = {
|
|||||||
"ANTMINER T19": BOSMinerT19,
|
"ANTMINER T19": BOSMinerT19,
|
||||||
"ANTMINER S21": BOSMinerS21,
|
"ANTMINER S21": BOSMinerS21,
|
||||||
"ANTMINER S21 PRO": BOSMinerS21Pro,
|
"ANTMINER S21 PRO": BOSMinerS21Pro,
|
||||||
|
"ANTMINER S21+": BOSMinerS21Plus,
|
||||||
|
"ANTMINER S21+ HYD.": BOSMinerS21PlusHydro,
|
||||||
|
"ANTMINER S21 HYD.": BOSMinerS21Hydro,
|
||||||
"ANTMINER T21": BOSMinerT21,
|
"ANTMINER T21": BOSMinerT21,
|
||||||
"BRAIINS MINI MINER BMM 100": BraiinsBMM100,
|
"BRAIINS MINI MINER BMM 100": BraiinsBMM100,
|
||||||
"BRAIINS MINI MINER BMM 101": BraiinsBMM101,
|
"BRAIINS MINI MINER BMM 101": BraiinsBMM101,
|
||||||
@@ -581,6 +584,10 @@ MINER_CLASSES = {
|
|||||||
"ANTMINER T19": VNishT19,
|
"ANTMINER T19": VNishT19,
|
||||||
"ANTMINER T21": VNishT21,
|
"ANTMINER T21": VNishT21,
|
||||||
"ANTMINER S21": VNishS21,
|
"ANTMINER S21": VNishS21,
|
||||||
|
"ANTMINER S21+": VNishS21Plus,
|
||||||
|
"ANTMINER S21+ HYD.": VNishS21PlusHydro,
|
||||||
|
"ANTMINER S21 PRO": VNishS21Pro,
|
||||||
|
"ANTMINER S21 HYD.": VNishS21Hydro,
|
||||||
},
|
},
|
||||||
MinerTypes.EPIC: {
|
MinerTypes.EPIC: {
|
||||||
None: ePIC,
|
None: ePIC,
|
||||||
|
|||||||
Reference in New Issue
Block a user