Hello!
I have Antminer S9 with latest firmware from 04.03.2019 (Hardware Version 30.2.1.3). There is no access by ssh, opened just 3 ports (80, 4028, 6060) on the Antminer's side. I can ask miner with simple command like this:
echo {"command":"version"} | nc 192.168.X.X 4028
with answer
{"STATUS":
[{"STATUS":"S",
"When":1557826683,
"Code":22,
"Msg":"BMMiner versions",
"Description":"bmminer 1.0.0"}],
"VERSION":
[{"BMMiner":"2.0.0",
"API":"3.1",
"Miner":"30.2.1.3",
"CompileTime":"Mon Mar 4 11:37:08 CST 2019",
"Type":"Antminer S9"}],
"id":1}
But when i try to send command like
echo {"command":"privileged"} | nc 192.168.X.X 4028
i have access error:
{"STATUS":
[{"STATUS":"E",
"When":1557846787,
"Code":45,
"Msg":"Access denied to 'privileged' command",
"Description":"bmminer 1.0.0"}],
"id":1}
And i dont understand how i can update my access level without ssh?
Another question is how is possible to use API and send commands/manage parameters of Antminer in C++ code remotely from local net? May be some libraries for that?