Bitcoin Forum
May 01, 2024, 02:16:56 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Avalon FMS App. - Commands  (Read 656 times)
dom5684 (OP)
Newbie
*
Offline Offline

Activity: 22
Merit: 20


View Profile
January 17, 2022, 09:09:07 PM
Merited by NotATether (2)
 #1

I hope everybody’s doing well


Thank you for your time and expertise, this forum is a blessing

Anybody have the goodness to tell me where I can find a list of the Commands for the Avalon FMS application


Thank you  Smiley

 



1714529816
Hero Member
*
Offline Offline

Posts: 1714529816

View Profile Personal Message (Offline)

Ignore
1714529816
Reply with quote  #2

1714529816
Report to moderator
1714529816
Hero Member
*
Offline Offline

Posts: 1714529816

View Profile Personal Message (Offline)

Ignore
1714529816
Reply with quote  #2

1714529816
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, but full nodes are more resource-heavy, and they must do a lengthy initial syncing process. As a result, lightweight clients with somewhat less security are commonly used.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
BitMaxz
Legendary
*
Offline Offline

Activity: 3234
Merit: 2955


Block halving is coming.


View Profile WWW
January 17, 2022, 10:57:07 PM
Last edit: January 17, 2022, 11:23:08 PM by BitMaxz
Merited by philipma1957 (2), NotFuzzyWarm (1), NotATether (1)
 #2

I can't find a list of commands for FMS tool but I collected few commands that you can use for FMS check this below


Code:
If you forgot the password before the change, you can click the Diagnose
button and enter the command to display the current password
[{"command":"ascset",�"parameter":"0,password,private"}]

The commonly used API instructions are the following:
View version :[{"command":"version"}]
Re-aging : [{"command":"ascset","parameter":"0,aging-set,1"}]
[{"command":"ascset","parameter":"0,aging-parame-
ter,60-537:562:587:612"}]
Display LCD information :
echo -n "lcd|" | socat -t 300 stdio tcp:10.100.227.139:4028,shut-none &&
echo
Aging:
[{"command":"ascset", "parameter":"0,aging-set,1"}]
Restart:
[{"command":"ascset", "parameter":"0,reboot,0"}]
Set voltage :
[{"command":"ascset", "parameter":"0,hashpower,1260"}]

13. Batch aging of mining machines
Select a machine to be aged in status, click the Aging button to start aging

And adding this someone share it here on how to adjust fan speed
Code:
[{"command":"ascset","parameter":"0,fan-spd,90"}]

I got that commands from this source https://www.yunzhan365.com/basic/51-80/83039562.html?mode=pc

Also adding these API commands you can use them and use the above format to use the API commands from this link below
- https://github.com/Canaan-Creative/avalon10-docs/blob/master/Universal%20API/Avalon%20A10%20API%20manual-EN.md

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
dom5684 (OP)
Newbie
*
Offline Offline

Activity: 22
Merit: 20


View Profile
January 18, 2022, 03:38:40 AM
Merited by philipma1957 (1)
 #3

You're always very kind BitMaxz, thank you for helping us, god bless you brother. We are very much grateful if anybody else would like to share any other FMS commands; Canaan is not responding to our emails

Thank you for your time

I can't find a list of commands for FMS tool but I collected few commands that you can use for FMS check this below


Code:
If you forgot the password before the change, you can click the Diagnose
button and enter the command to display the current password
[{"command":"ascset",�"parameter":"0,password,private"}]

The commonly used API instructions are the following:
View version :[{"command":"version"}]
Re-aging : [{"command":"ascset","parameter":"0,aging-set,1"}]
[{"command":"ascset","parameter":"0,aging-parame-
ter,60-537:562:587:612"}]
Display LCD information :
echo -n "lcd|" | socat -t 300 stdio tcp:10.100.227.139:4028,shut-none &&
echo
Aging:
[{"command":"ascset", "parameter":"0,aging-set,1"}]
Restart:
[{"command":"ascset", "parameter":"0,reboot,0"}]
Set voltage :
[{"command":"ascset", "parameter":"0,hashpower,1260"}]

13. Batch aging of mining machines
Select a machine to be aged in status, click the Aging button to start aging

And adding this someone share it here on how to adjust fan speed
Code:
[{"command":"ascset","parameter":"0,fan-spd,90"}]

I got that commands from this source https://www.yunzhan365.com/basic/51-80/83039562.html?mode=pc

Also adding these API commands you can use them and use the above format to use the API commands from this link below
- https://github.com/Canaan-Creative/avalon10-docs/blob/master/Universal%20API/Avalon%20A10%20API%20manual-EN.md
philipma1957
Legendary
*
Offline Offline

Activity: 4102
Merit: 7821


'The right to privacy matters'


View Profile WWW
January 18, 2023, 12:34:19 AM
 #4

It is a shame this list has not been filled out.

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
unicornmangle
Jr. Member
*
Offline Offline

Activity: 49
Merit: 11


View Profile
January 25, 2023, 10:23:39 PM
 #5

It is a shame this list has not been filled out.

Is it not the same list of api commands that are in cgminer and bfgminer and every other miner that all use the exact same api? or am i mistaken?

when i looked at their python scripts for api commands they were all exactly the same as cgminer.
kano
Legendary
*
Offline Offline

Activity: 4480
Merit: 1800


Linux since 1997 RedHat 4


View Profile
January 26, 2023, 05:49:46 AM
 #6

I designed and wrote the API Smiley

Anyway, ascset is a command to allow a driver to accept 'options', of the developer's choice, in the driver code via the API.
So whatever 'options' they implement in the 'ascset' function that the API calls, is whatever is available.

The norm is also to accept "ascset|0,help" to return the list of ascset options available.
However, what they implement is up to them.
e.g. in my Gekko driver if you look at the code, it reports the list of options when you pass it 'help'

If Canaan wasn't violating the cgminer license like they are doing and hiding the source code, it would be the .set_device defined function in the driver code.
But again, it is possible, but not guaranteed, that 'help' may tell you what the options are - but you'd need to see the code to be sure what they do.

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
Cerobug
Newbie
*
Offline Offline

Activity: 5
Merit: 1


View Profile
January 30, 2023, 08:01:24 PM
 #7

I designed and wrote the API Smiley

Anyway, ascset is a command to allow a driver to accept 'options', of the developer's choice, in the driver code via the API.
So whatever 'options' they implement in the 'ascset' function that the API calls, is whatever is available.

The norm is also to accept "ascset|0,help" to return the list of ascset options available.
However, what they implement is up to them.
e.g. in my Gekko driver if you look at the code, it reports the list of options when you pass it 'help'

If Canaan wasn't violating the cgminer license like they are doing and hiding the source code, it would be the .set_device defined function in the driver code.
But again, it is possible, but not guaranteed, that 'help' may tell you what the options are - but you'd need to see the code to be sure what they do.

This is what I get when I run that command

Code:
success: {'session': 1675108800, 'success': [{'ip': '10.138.23.226'}], 'error': [], 'results': [{'node': {'ip': '10.138.23.226'}, 'result': [{'result': "{'STATUS': [{'STATUS': 'I', 'When': 426204, 'Code': 118, 'Msg': 'ASC 0 set info: fan-spd|frequency|hashpower|led|pdelay|reboot|voltage|workmode', 'Description': 'cgminer 4.11.1'}], 'id': 1}"}], 'error': False}]}
kano
Legendary
*
Offline Offline

Activity: 4480
Merit: 1800


Linux since 1997 RedHat 4


View Profile
January 31, 2023, 07:46:47 AM
Merited by BitMaxz (1)
 #8

Right, so that is 'suggesting' that the list of commands available to ascset are:
fan-spd, frequency, hashpower, led, pdelay, reboot, voltage, workmode

Of course that list 'may' be correct or 'may' be incomplete since it's whatever text line they wrote in the code to print out.

Alas they've not stated the actual parameters to each so you'd have just try and see.

Again, source code solves all this, coz then you just read the code and it tells you exactly what it's doing.
Alas canaan doesn't give a shit Smiley


Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
fabinhomattos
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
December 30, 2023, 03:02:40 AM
 #9

good evening to all.

Sorry if the writing isn't perfect. I don't speak English.

I've been researching a lot on this subject, and I haven't found anything as simple as that, and it's very sad for us to realize that even nowadays, with so much information on the internet, that companies don't care about promoting and explaining their own products, services and derivatives.

I managed to use these codes, for example: " [{"command":"ascset", "parameter":"0,hashpower,1295"}] " but there is a problem. when the equipment is restarted, the settings return to their original state.

I researched and studied the cgminer settings to put in "CGMiner Configuration / More Options", but it seems that nothing runs as it should...


My question is simple and objective and I would appreciate anyone who can solve my question and help other people who, from what I researched, have the same problem:

HOW TO SAVE THESE SETTINGS SO THAT EVEN IF THE AVALON 1066 PRO (IN MY CASE) SHUTS OFF, WHEN IT TURNES ON AGAIN, THE SETTINGS COME BACK AUTOMATICALLY.

Thanks
SimplyEverything
Member
**
Offline Offline

Activity: 126
Merit: 16

Escrow


View Profile WWW
March 25, 2024, 06:24:18 PM
Last edit: March 26, 2024, 04:31:03 AM by SimplyEverything
Merited by NotFuzzyWarm (1)
 #10

I emailed them and gotten the unPrivileged API

[Edited from quote > code]
Thank you @NotFuzzyWarm

Code:
1. Working mode query
ascset|0,workmode,255 Query the current mode
FMS Diagnose :
[{"command":"ascset","parameter":"0,workmode,255"}]

2. Set the fixed speed of the miner fan
ascset|0,fan-spd,<SPEED>
eg:ascset|0,fan-spd,100
ps:SPEED represent the expected fan rotate precentage,range:0-100
Parameter Description :
-The value of < speed > represents the expected percentage of fan speed, range: 0-100. If
speed is - 1, it means that automatic speed control is restored (version after 2020-02-12
only)
Give an example:ascset|0,fan-spd,100
FMS Diagnose :
[{"command":"ascset","parameter":"0,fan-spd,100"}]

3.Set working voltage of miner
ascset|0,voltage-level,<VOLT>-<0>-<0>
Parameter Description :
The value of < volt > represents the voltage level, the first level represents 40mv (the same
for subsequent voltage levels), and the voltage (MV) = volt × 40 + 11000, the last two
parameters are 0 by default
Give an example:ascset|0,voltage-level,65-0-0
FMS Diagnose :
[{"command":"ascset","parameter":"0,voltage-level,65-0-0"}]

4.Set the hashboard PLL
ascset|0,frequency,<PLL0>:<PLL1>:<PLL2>:<PLL3>-<0>-<MINER_ID>-<ASIC_ID>
Parameter Description :
-<PLL0>:<PLL1>:<PLL2>:<PLL3> The values represent four frequency points respectively -<MINER_ID> represent hashboard Number -<ASIC_ID> represent the chip number
MINER_ ID and ASIC_ ID set to 0 represents all chips in the current range
For example:ascset|0,frequency,0:0:525:575-0-2-1 represent set hash 2 No 1 IC PLL to 0,0,
525,572
FMS Diagnose :

[{"command":"ascset","parameter":"0,frequency,0:0:525:575-0-2-1"}]

5.Comprehensive version query
version
Response example:echo -n "version" | socat -t 300 stdio tcp:10.100.227.152:4028,shut-none
&& echo
Return:STATUS=S,When=10047,Code=22,Msg=CGMiner
versions,Description=cgminer4.11.1|VERSION,CGMiner=4.11.1,API=3.7,STM8=20.08.01,PRO
D=AvalonMiner1246Nxx,MODEL=1246Nxx,HWTYPE=MM3v2_X3,SWTYPE=MM315,VERSIO
N=21092801_4ec6bb0t_59ba312t,LOADER=d0d779de.00,DNA=020100004f55fa20,MAC=b
4a2eb3767a7,UPAPI=2|
FMS Diagnose :
[{"command":"version"}]

6.Restore factory settings
ascset|0,restore
FMS Diagnose :
[{"command":"ascset","parameter":"0,restore"}]

7.Query the reason for the last reboot
ascset|0,bootby
FMS Diagnose :
[{"command":"ascset","parameter":"0,bootby"}]

8.Reboot miner
ascset|0,reboot,<n>
Parameter Description :
-<n> n It can be any integer greater than 0. When the miner's when is less than this n, it will
not restart and return an error (used to realize lax idempotence, allowing repeated calls to
reboot without repeated restart); When when is greater than N, it will restart. When n value is 0, it means forced unconditional restart. For example:ascset|0,reboot,0
FMS Diagnose :
[{"command":"ascset","parameter":"0,reboot,0"}]

9,Control LED
ascset|0,led,<n>
Parameter Description : -<n> can be 0 or a positive integer to flip the LED light
ascset|0,led,n-0 # n is Non-negative integer,it used to turn off LED
ascset|0,led,n-1 # n is Non-negative integer,it used to turn on LED
For example:ascset|0,led,0

FMS Diagnose :
[{"command":"ascset","parameter":"0,led,0"}]

10.Change network setting
ascset|0,ip,static,<ip>,<mask>,<gw> #allocate static ip
ascset|0,ip,dhcp #dynamic obtain ip
ascset|0,dns,<dns1>,<dns2> #set DNS
Parameter Description : -<ip> ip address -<mask>subnetwork mask -<gw>gateway -<dns1>-<dns2>set backup dns
[{"command":"ascset","0,ip,static,<ip>,<mask>,<gw>"}]
[{"command":"ascset","0,ip,dhcp "}]
[{"command":"ascset","0,dns,<dns1>,<dns2> "}]
FMS Diagnose :

11. Configure pool information
ascset|0,setpool,<username>,<password>,<poolnum>,<pooladdr>,<worker>,<workerpass
wd>
Parameter Description : -<username>web login username default:root -<password>web login password default:root -<poolnum>Scope 0-2 to set pool number -<pooladdr>pool address -<worker>Worker name
-<workerpasswd>Worker password
For example :ascset|0,setpool,root,root,2,stratum+tcp://btc.ss.poolin.com:443,cctrix.001,123
FMS Diagnose :
[{"command":"ascset","parameter":"0,softoff"}]

12.Set miner soft shutdown
ascset|0,softoff
FMS Diagnose :
[{"command":"ascset","parameter":"0,softoff"}]
13.Restore the current user and password to the default values
ascset|0,password,default
FMS Diagnose :
[{"command":"ascset","parameter":"0,password,default"}]

14.Change password
ascset|0,password,<num1>,<num2>
Parameter Description:
-<num1> original password
-<num2> new password
For example:ascset|0,password,root,123
FMS Diagnose :
[{"command":"ascset","parameter":"0,password,root,123"}]

15.Read pool information
Pools
Response example:echo -n "pools" | socat -t 300 stdio tcp:10.100.232.117:4028,shut-none
&& echo
Return :
STATUS=S,When=121,Code=7,Msg=3Pool(s),Description=cgminer4.11.1|POOL=0,URL=stra
tum+tcp://btc.ss.poolin.com:443,Status=Alive,Priority=0,Quota=1,Long
Poll=N,Getworks=5,Accepted=0,Rejected=0,Works=0,Discarded=0,Stale=0,Get
Failures=0,Remote Failures=0,User=cctrix.001,Last Share Time=0,Diff1 Shares=0,Proxy
Type=,Proxy=,Difficulty Accepted=0.00000000,Difficulty Rejected=0.00000000,Difficulty
Stale=0.00000000,Last Share Difficulty=0.00000000,Work Difficulty=65536.00000000,Has
Stratum=true,Stratum Active=true,Stratum URL=btc.ss.poolin.com,Stratum
Difficulty=16384.00000000,Has Vmask=true,Has GBT=false,Best Share=0,Pool
Rejected%=0.0000,Pool Stale%=0.0000,Bad Work=0,Current Block Height=653809,Current
BlockVersion=536870912|POOL=1,URL=stratum+tcp://btc.ss.poolin.com:25,Status=Alive,Pri
ority=1,Quota=1,LongPoll=N,Getworks=1,Accepted=0,Rejected=0,Works=0,Discarded=0,St
ale=0,Get Failures=0,Remote Failures=0,User=cctrix.001,Last Share Time=0,Diff1
Shares=0,Proxy Type=,Proxy=,Difficulty Accepted=0.00000000,Difficulty
Rejected=0.00000000,Difficulty Stale=0.00000000,Last Share Difficulty=0.00000000,Work
Difficulty=65536.00000000,Has Stratum=true,Stratum Active=false,Stratum URL=,Stratum
Difficulty=0.00000000,Has Vmask=true,Has GBT=false,Best Share=0,Pool
Rejected%=0.0000,Pool Stale%=0.0000,Bad Work=0,Current Block Height=653809,Current
BlockVersion=536870912|POOL=2,URL=stratum+tcp://btc.ss.poolin.com:1883,Status=Alive, Priority=2,Quota=1,LongPoll=N,Getworks=1,Accepted=0,Rejected=0,Works=0,Discarded=0, Stale=0,Get Failures=0,Remote Failures=0,User=cctrix.001,Last Share Time=0,Diff1
Shares=0,Proxy Type=,Proxy=,Difficulty Accepted=0.00000000,Difficulty
Rejected=0.00000000,Difficulty Stale=0.00000000,Last Share Difficulty=0.00000000,Work
Difficulty=65536.00000000,Has Stratum=true,Stratum Active=false,Stratum URL=,Stratum
Difficulty=0.00000000,Has Vmask=true,Has GBT=false,Best Share=0,Pool
Rejected%=0.0000,Pool Stale%=0.0000,Bad Work=0,Current Block Height=653809,Current
Block Version=536870912|
FMS Diagnose :
[{"command":"Pools"}]

16.Read summary information
Summry
Response example : echo -n "summary" | socat -t 300 stdio
tcp:10.100.232.117:4028,shut-none && echo
Return :
STATUS=S,When=173,Code=11,Msg=Summary,Description=cgminer
4.11.1|SUMMARY,Elapsed=134,MHS av=0.00,MHS 30s=0.00,MHS 1m=0.00,MHS
5m=0.00,MHS 15m=0.00,Found Blocks=0,Getworks=9,Accepted=0,Rejected=0,Hardware
Errors=0,Utility=0.00,Discarded=2501222,Stale=0,Get Failures=0,Local Work=3,Remote
Failures=0,Network Blocks=1,Total MH=0.0000,Work Utility=0.00,Difficulty
Accepted=0.00000000,Difficulty Rejected=0.00000000,Difficulty Stale=0.00000000,Best
Share=0,Device Hardware%=0.0000,Device Rejected%=0.0000,Pool Rejected%=0.0000,Pool
Stale%=0.0000,Last getwork=0|
FMS Diagnose:
[{"command":"Summary"}]

17.Read log Information
Estats
For example:echo -n "estats" | socat -t 300 stdio tcp:10.100.232.117:4028,shut-none &&
echo
FMS Diagnose:
[{"command":"Estats"}]

18.Read Fan Information
ascset|0,setpool, fan-global
Return information:
success: {'session': 1632395154, 'success': [{'ip': '10.100.231.239'}], 'error': [], 'results': [{'node':
{'ip': '10.100.231.239'}, 'result': [{'result': "{'STATUS': [{'STATUS': 'I', 'When': 30, 'Code': 118, 'Msg': 'ASC 0 set info: Fan0[0] Fan1[0] Fan2[0] Fan3[0] ', 'Description': 'cgminer 4.11.1'}], 'id':
1}"}], 'error': False}]}

-Peace-
NotFuzzyWarm
Legendary
*
Online Online

Activity: 3612
Merit: 2509


Evil beware: We have waffles!


View Profile
March 25, 2024, 08:07:47 PM
Last edit: March 26, 2024, 01:34:26 PM by NotFuzzyWarm
Merited by SimplyEverything (1)
 #11

Excellent and Merit given for that.
Just one thing: it is better to use the Code tag # vs the quote tag. As you see below the code tag makes things much neater.
Code:
1. Working mode query
ascset|0,workmode,255 Query the current mode
FMS Diagnose :
[{"command":"ascset","parameter":"0,workmode,255"}]

2. Set the fixed speed of the miner fan
ascset|0,fan-spd,<SPEED>
eg:ascset|0,fan-spd,100
ps:SPEED represent the expected fan rotate precentage,range:0-100
Parameter Description :
-The value of < speed > represents the expected percentage of fan speed, range: 0-100. If
speed is - 1, it means that automatic speed control is restored (version after 2020-02-12
only)
Give an example:ascset|0,fan-spd,100
FMS Diagnose :
[{"command":"ascset","parameter":"0,fan-spd,100"}]

3.Set working voltage of miner
ascset|0,voltage-level,<VOLT>-<0>-<0>
Parameter Description :
The value of < volt > represents the voltage level, the first level represents 40mv (the same
for subsequent voltage levels), and the voltage (MV) = volt × 40 + 11000, the last two
parameters are 0 by default
Give an example:ascset|0,voltage-level,65-0-0
FMS Diagnose :
[{"command":"ascset","parameter":"0,voltage-level,65-0-0"}]

4.Set the hashboard PLL
ascset|0,frequency,<PLL0>:<PLL1>:<PLL2>:<PLL3>-<0>-<MINER_ID>-<ASIC_ID>
Parameter Description :
-<PLL0>:<PLL1>:<PLL2>:<PLL3> The values represent four frequency points respectively -<MINER_ID> represent hashboard Number -<ASIC_ID> represent the chip number
MINER_ ID and ASIC_ ID set to 0 represents all chips in the current range
For example:ascset|0,frequency,0:0:525:575-0-2-1 represent set hash 2 No 1 IC PLL to 0,0,
525,572
FMS Diagnose :

[{"command":"ascset","parameter":"0,frequency,0:0:525:575-0-2-1"}]

5.Comprehensive version query
version
Response example:echo -n "version" | socat -t 300 stdio tcp:10.100.227.152:4028,shut-none
&& echo
Return:STATUS=S,When=10047,Code=22,Msg=CGMiner
versions,Description=cgminer4.11.1|VERSION,CGMiner=4.11.1,API=3.7,STM8=20.08.01,PRO
D=AvalonMiner1246Nxx,MODEL=1246Nxx,HWTYPE=MM3v2_X3,SWTYPE=MM315,VERSIO
N=21092801_4ec6bb0t_59ba312t,LOADER=d0d779de.00,DNA=020100004f55fa20,MAC=b
4a2eb3767a7,UPAPI=2|
FMS Diagnose :
[{"command":"version"}]

6.Restore factory settings
ascset|0,restore
FMS Diagnose :
[{"command":"ascset","parameter":"0,restore"}]

7.Query the reason for the last reboot
ascset|0,bootby
FMS Diagnose :
[{"command":"ascset","parameter":"0,bootby"}]

8.Reboot miner
ascset|0,reboot,<n>
Parameter Description :
-<n> n It can be any integer greater than 0. When the miner's when is less than this n, it will
not restart and return an error (used to realize lax idempotence, allowing repeated calls to
reboot without repeated restart); When when is greater than N, it will restart. When n value is 0, it means forced unconditional restart. For example:ascset|0,reboot,0
FMS Diagnose :
[{"command":"ascset","parameter":"0,reboot,0"}]

9,Control LED
ascset|0,led,<n>
Parameter Description : -<n> can be 0 or a positive integer to flip the LED light
ascset|0,led,n-0 # n is Non-negative integer,it used to turn off LED
ascset|0,led,n-1 # n is Non-negative integer,it used to turn on LED
For example:ascset|0,led,0

FMS Diagnose :
[{"command":"ascset","parameter":"0,led,0"}]

10.Change network setting
ascset|0,ip,static,<ip>,<mask>,<gw> #allocate static ip
ascset|0,ip,dhcp #dynamic obtain ip
ascset|0,dns,<dns1>,<dns2> #set DNS
Parameter Description : -<ip> ip address -<mask>subnetwork mask -<gw>gateway -<dns1>-<dns2>set backup dns
[{"command":"ascset","0,ip,static,<ip>,<mask>,<gw>"}]
[{"command":"ascset","0,ip,dhcp "}]
[{"command":"ascset","0,dns,<dns1>,<dns2> "}]
FMS Diagnose :

11. Configure pool information
ascset|0,setpool,<username>,<password>,<poolnum>,<pooladdr>,<worker>,<workerpass
wd>
Parameter Description : -<username>web login username default:root -<password>web login password default:root -<poolnum>Scope 0-2 to set pool number -<pooladdr>pool address -<worker>Worker name
-<workerpasswd>Worker password
For example :ascset|0,setpool,root,root,2,stratum+tcp://btc.ss.poolin.com:443,cctrix.001,123
FMS Diagnose :
[{"command":"ascset","parameter":"0,softoff"}]

12.Set miner soft shutdown
ascset|0,softoff
FMS Diagnose :
[{"command":"ascset","parameter":"0,softoff"}]
13.Restore the current user and password to the default values
ascset|0,password,default
FMS Diagnose :
[{"command":"ascset","parameter":"0,password,default"}]

14.Change password
ascset|0,password,<num1>,<num2>
Parameter Description:
-<num1> original password
-<num2> new password
For example:ascset|0,password,root,123
FMS Diagnose :
[{"command":"ascset","parameter":"0,password,root,123"}]

15.Read pool information
Pools
Response example:echo -n "pools" | socat -t 300 stdio tcp:10.100.232.117:4028,shut-none
&& echo
Return :
STATUS=S,When=121,Code=7,Msg=3Pool(s),Description=cgminer4.11.1|POOL=0,URL=stra
tum+tcp://btc.ss.poolin.com:443,Status=Alive,Priority=0,Quota=1,Long
Poll=N,Getworks=5,Accepted=0,Rejected=0,Works=0,Discarded=0,Stale=0,Get
Failures=0,Remote Failures=0,User=cctrix.001,Last Share Time=0,Diff1 Shares=0,Proxy
Type=,Proxy=,Difficulty Accepted=0.00000000,Difficulty Rejected=0.00000000,Difficulty
Stale=0.00000000,Last Share Difficulty=0.00000000,Work Difficulty=65536.00000000,Has
Stratum=true,Stratum Active=true,Stratum URL=btc.ss.poolin.com,Stratum
Difficulty=16384.00000000,Has Vmask=true,Has GBT=false,Best Share=0,Pool
Rejected%=0.0000,Pool Stale%=0.0000,Bad Work=0,Current Block Height=653809,Current
BlockVersion=536870912|POOL=1,URL=stratum+tcp://btc.ss.poolin.com:25,Status=Alive,Pri
ority=1,Quota=1,LongPoll=N,Getworks=1,Accepted=0,Rejected=0,Works=0,Discarded=0,St
ale=0,Get Failures=0,Remote Failures=0,User=cctrix.001,Last Share Time=0,Diff1
Shares=0,Proxy Type=,Proxy=,Difficulty Accepted=0.00000000,Difficulty
Rejected=0.00000000,Difficulty Stale=0.00000000,Last Share Difficulty=0.00000000,Work
Difficulty=65536.00000000,Has Stratum=true,Stratum Active=false,Stratum URL=,Stratum
Difficulty=0.00000000,Has Vmask=true,Has GBT=false,Best Share=0,Pool
Rejected%=0.0000,Pool Stale%=0.0000,Bad Work=0,Current Block Height=653809,Current
BlockVersion=536870912|POOL=2,URL=stratum+tcp://btc.ss.poolin.com:1883,Status=Alive, Priority=2,Quota=1,LongPoll=N,Getworks=1,Accepted=0,Rejected=0,Works=0,Discarded=0, Stale=0,Get Failures=0,Remote Failures=0,User=cctrix.001,Last Share Time=0,Diff1
Shares=0,Proxy Type=,Proxy=,Difficulty Accepted=0.00000000,Difficulty
Rejected=0.00000000,Difficulty Stale=0.00000000,Last Share Difficulty=0.00000000,Work
Difficulty=65536.00000000,Has Stratum=true,Stratum Active=false,Stratum URL=,Stratum
Difficulty=0.00000000,Has Vmask=true,Has GBT=false,Best Share=0,Pool
Rejected%=0.0000,Pool Stale%=0.0000,Bad Work=0,Current Block Height=653809,Current
Block Version=536870912|
FMS Diagnose :
[{"command":"Pools"}]

16.Read summary information
Summry
Response example : echo -n "summary" | socat -t 300 stdio
tcp:10.100.232.117:4028,shut-none && echo
Return :
STATUS=S,When=173,Code=11,Msg=Summary,Description=cgminer
4.11.1|SUMMARY,Elapsed=134,MHS av=0.00,MHS 30s=0.00,MHS 1m=0.00,MHS
5m=0.00,MHS 15m=0.00,Found Blocks=0,Getworks=9,Accepted=0,Rejected=0,Hardware
Errors=0,Utility=0.00,Discarded=2501222,Stale=0,Get Failures=0,Local Work=3,Remote
Failures=0,Network Blocks=1,Total MH=0.0000,Work Utility=0.00,Difficulty
Accepted=0.00000000,Difficulty Rejected=0.00000000,Difficulty Stale=0.00000000,Best
Share=0,Device Hardware%=0.0000,Device Rejected%=0.0000,Pool Rejected%=0.0000,Pool
Stale%=0.0000,Last getwork=0|
FMS Diagnose:
[{"command":"Summary"}]

17.Read log Information
Estats
For example:echo -n "estats" | socat -t 300 stdio tcp:10.100.232.117:4028,shut-none &&
echo
FMS Diagnose:
[{"command":"Estats"}]

18.Read Fan Information
ascset|0,setpool, fan-global
Return information:
success: {'session': 1632395154, 'success': [{'ip': '10.100.231.239'}], 'error': [], 'results': [{'node':
{'ip': '10.100.231.239'}, 'result': [{'result': "{'STATUS': [{'STATUS': 'I', 'When': 30, 'Code': 118, 'Msg': 'ASC 0 set info: Fan0[0] Fan1[0] Fan2[0] Fan3[0] ', 'Description': 'cgminer 4.11.1'}], 'id':
1}"}], 'error': False}]}

- For bitcoin to succeed the community must police itself -    My info useful? Donations welcome! 1FuzzyWc2J8TMqeUQZ8yjE43Rwr7K3cxs9
 -Sole remaining active developer of cgminer, Kano's repo is here
-Support Sidehacks miner development. Donations to:   1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!