feat: add NMAxe miner family driver support#15
Open
aetherwraith wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds official driver support for the NMAxe family of home miners running the
ESP-Miner-NMAxe(AxeOS) firmware (NMAxe, NMAxeGamma, and NMQAxe++).Key Features Implemented:
/api/system/infowhich maps nested sub-objects (power,temps,asic,miner,identity,fans,stratum) to the standardMinerSampleobject./api/setting/mining(asicVcoreReq/asicFreqReq)./api/setting/preferencefor all active fan indexes (single fan on NMAxe/Gamma; dual fans on NMQAxe++)./api/setting/mining(handling full stratum URLs with schemes)./api/system/restart, and implements runtime pause/resume control viaPATCH /api/mining/state(can_pause = True)./api/discovery(classified by the presence of nestedidentityblocks).Checklist:
python -m py_compile ...)[Unreleased]Raw
/api/system/infoPayload Sample:{ "power": { "power": 12.5, "vbus": 5000, "ibus": 2500 }, "temps": { "vcore": 45.2, "asic": 62.7 }, "asic": { "count": 1, "model": "BM1370", "vcoreReq": 1200, "vcoreReal": 1198, "freqReq": 490, "smallCoreCnt": 672 }, "miner": { "state": "running", "paused": false, "pauseReason": "", "hashRate": 720.5, "bestDiffEver": "1.23M", "bestDiffSession": "456.7K", "networkDiff": "88.55T", "poolDiff": "65536", "lastDiff": "131072", "blkhits": 0, "freeHeap": 187320, "minFreeHeap": 163840, "sAccepted": 1024, "sRejected": 3, "uptimeSeconds": 86400, "uptimeEver": 2592000 }, "identity": { "fwVersion": "v2.9.31", "hwModel": "NMAxe", "displayName": "NMAxe", "hostName": "nmaxe-001", "ssid": "MyHomeWifi", "rssi": -55, "appSha256": "ef970b389312276b" }, "fans": [ { "id": 0, "speed": 60, "rpm": 2800 } ], "stratum": { "url": "stratum+tcp://pool.example.com:3333", "user": "bc1q...xyz.worker1", "pwd": "x" } }