feature: add support for Inno A11MX (no chip counts)
This commit is contained in:
@@ -294,6 +294,7 @@ class AvalonminerModels(str, Enum):
|
||||
class InnosiliconModels(str, Enum):
|
||||
T3HPlus = "T3H+"
|
||||
A10X = "A10X"
|
||||
A11MX = "A11MX"
|
||||
|
||||
def __str__(self):
|
||||
return self.value
|
||||
|
||||
21
pyasic/miners/device/models/innosilicon/A11X/A11M.py
Normal file
21
pyasic/miners/device/models/innosilicon/A11X/A11M.py
Normal file
@@ -0,0 +1,21 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# 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. -
|
||||
# ------------------------------------------------------------------------------
|
||||
from pyasic.device.models import MinerModel
|
||||
from pyasic.miners.device.makes import InnosiliconMake
|
||||
|
||||
|
||||
class A11MX(InnosiliconMake):
|
||||
raw_model = MinerModel.INNOSILICON.A11MX
|
||||
16
pyasic/miners/device/models/innosilicon/A11X/__init__.py
Normal file
16
pyasic/miners/device/models/innosilicon/A11X/__init__.py
Normal file
@@ -0,0 +1,16 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# 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. -
|
||||
# ------------------------------------------------------------------------------
|
||||
from .A11M import *
|
||||
@@ -15,4 +15,5 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
from .A10X import *
|
||||
from .A11X import *
|
||||
from .T3X import *
|
||||
|
||||
@@ -339,6 +339,7 @@ MINER_CLASSES = {
|
||||
None: type("InnosiliconUnknown", (Innosilicon, InnosiliconMake), {}),
|
||||
"T3H+": InnosiliconT3HPlus,
|
||||
"A10X": InnosiliconA10X,
|
||||
"A11MX": InnosiliconA11MX,
|
||||
},
|
||||
MinerTypes.GOLDSHELL: {
|
||||
None: type("GoldshellUnknown", (GoldshellMiner, GoldshellMake), {}),
|
||||
@@ -714,11 +715,13 @@ class MinerFactory:
|
||||
or "BFGMINER" in upper_data
|
||||
):
|
||||
return MinerTypes.GOLDSHELL
|
||||
if "INNOMINER" in upper_data:
|
||||
return MinerTypes.INNOSILICON
|
||||
if "AVALON" in upper_data:
|
||||
return MinerTypes.AVALONMINER
|
||||
if "GCMINER" in upper_data or "FLUXOS" in upper_data:
|
||||
return MinerTypes.AURADINE
|
||||
if "VNISH" in upper_data or "DEVICE PATH" in upper_data:
|
||||
if "VNISH" in upper_data:
|
||||
return MinerTypes.VNISH
|
||||
|
||||
async def send_web_command(
|
||||
|
||||
22
pyasic/miners/innosilicon/cgminer/A11X/A11M.py
Normal file
22
pyasic/miners/innosilicon/cgminer/A11X/A11M.py
Normal file
@@ -0,0 +1,22 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# 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. -
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
from pyasic.miners.backends.innosilicon import Innosilicon
|
||||
from pyasic.miners.device.models import A11MX
|
||||
|
||||
|
||||
class InnosiliconA11MX(Innosilicon, A11MX):
|
||||
pass
|
||||
1
pyasic/miners/innosilicon/cgminer/A11X/__init__.py
Normal file
1
pyasic/miners/innosilicon/cgminer/A11X/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from .A11M import InnosiliconA11MX
|
||||
@@ -15,4 +15,5 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
from .A10X import *
|
||||
from .A11X import *
|
||||
from .T3X import *
|
||||
|
||||
Reference in New Issue
Block a user