Bitcoin Forum
May 27, 2024, 06:07:07 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Mining software (miners) / Re: Updating pool settings via CGI on S19Pro on: May 24, 2021, 06:39:45 PM
SOLVED. I had to POST the following to set_miner_conf.cgi:

    data = {
        "pools": [
            {
                 "url": "antpool.com:3333",
                 "user": "antminer1,
                 "pass": ""
             },
             {
                 "url": "antpool.com:3333",
                 "user": "antminer1",
                 "pass": ""
             },
             {
                  "url": "antpool.com:3333",
                  "user": "antminer1",
                  "pass": ""
              }
           ]
      }
2  Bitcoin / Mining software (miners) / Updating pool settings via CGI on S19Pro on: May 24, 2021, 05:25:49 PM
Hi all,

Just wondering if anyone has been able to update the pool settings on an S19Pro via CGI. I wrote a script that used to work on S9's but it doesn't work on S19Pro units. It also worked on the S17's. Any insights would be appreciated!
3  Bitcoin / Mining software (miners) / Re: change Voltage & Frequency using cgminer api on: May 30, 2020, 04:17:42 PM
Also note the obvious: the price of BTC changes every day every hour.
You don't know in advance, what price you will get for all the BTC you generated for the days or weeks up to when you sell it.
Pretending that calculations based on the current hourly price and difficulty will directly affect your profit/loss, shows a complete misunderstanding of that.

100% however I'm with @jakaba in that knowing the current consumption and projecting forward allows you to make an educated guess about profitability. Right now its a guess at best because of price volatility but marginal gains are important especially right now post halving.

The problem I've had whilst looking at this in the past is that I couldn't find a way to get or calculate the current power consumption of the unit. All I could do is average consumption using a meter over a sample of hardware and use that value. It would be great if the actual current consumption was available in the firmware API but I understand that this is probably not possible.
4  Bitcoin / Mining support / Re: How can I poweroff without SSH with the latest 2019 firmware? on: May 21, 2019, 03:59:27 AM
if your miner has a fan / board issue, it will not be mining, it will be almost "off" , only the fans and the control board will be running , but you can still spot the faulty miner by turning  the lights off and looking for a red blinking led instead of green because that's what the miner does when there is something wrong.

anyhow, i guess if you have a large number of machines, or even a mid-range scale, you should label them ! it's important to do so, if you have 1 faulty miner you can spot it, but what if 2 or 5 ? how are you going to know which one is which?  it will be time consuming IMO.

That's why I used to power them off, the lights would be dark so it was easy to find. I have over 1000 machines so you can now understand my problem.
5  Bitcoin / Mining support / Re: How can I poweroff without SSH with the latest 2019 firmware? on: May 19, 2019, 02:44:56 PM
I need to power them off if my software finds hashboard or fan issues. A powered off machine is easier to find on a rack too. My sense is that Bitmain hasn’t implemented it yet in BMMiner.
6  Bitcoin / Mining support / How can I poweroff without SSH with the latest 2019 firmware? on: May 18, 2019, 09:18:43 PM
I can reboot as follows:

http://127.0.0.1/cgi-bin/reboot.cgi

Is there a similar hook for powering off? I used to do this by issuing the 'poweroff' command via SSH...
7  Bitcoin / Mining support / Re: Access denied to 'switchpool' command on Antminer on: March 18, 2019, 02:52:05 AM
Can someone explain to me what I need to do to enable privileged mode? I understand that in privileged mode I can access "privileged" commands via the API. I have changed my "api-allow" to "A:0/0,W:* but when I send the privileged command to check if it's enabled I get STATUS 'E' which indicates that's it's not privileged. What is going on?
8  Bitcoin / Mining support / Re: Access denied to 'switchpool' command on Antminer on: March 09, 2019, 04:28:39 PM
Thanks for those references. I understand that W:0/0 is not recommended but at this point I just need to get something to work. I am familiar with Awesome Miner but I want to build my own software and I plan on open sourcing it. In any case, I did exactly what was recommended in the last resource you pointed me to and I still get denied access to the switchpool command. Very frustrating. Any other ideas? Again I am accessing the network where the miner resides through a VPN. My software so far works perfectly with this setup. It's just the switchpool command that is giving me issues. Here is my bmminer.conf:

Code:
{
"bitmain-freq": "550",
"multi-version": "1",
"bitmain-use-vil": true,
"api-groups": "A:stats:pools:devs:summary:version:noncenum",
"pools": [{...}],
"api-listen": true,
"api-allow": "W:0/0, W:*",
"api-network": true
}
9  Bitcoin / Mining support / Access denied to 'switchpool' command on Antminer on: March 08, 2019, 04:04:06 AM
I am trying to switch the pool on a machine that I am connecting to through a VPN. I ssh'd in and edited my bmminer.conf file as follows and rebooted:

Code:
{
"bitmain-freq": "550",
"multi-version": "1",
"bitmain-use-vil": true,
"api-groups": "A:stats:pools:devs:summary:version:noncenum",
"pools": [{"url": "antpool.com:3333", "user": ... }],
"api-listen": true,
"api-allow": "A:0/0,W:0/0",
"api-network": true
}

I understand that W:0/0 will allow any machine with network access privileged commands. That's okay for now. I've read that R:0/0 might be safer. In any case, I just want to get it to work so that I can write a script to set privileged access to all of my machines. Any help would be appreciated.
10  Bitcoin / Mining support / S9 on Low Power Enhanced Mode (LPEM) showing weird fan speed on: February 05, 2019, 12:26:34 AM
I am trying LPEM on a bunch of my S9's. I have 12.5TH/s, 13.5TH/s, and 14.5TH/s machines and so far so good. Although I remotely manage them so it's hard to say what the power consumption is. The hash rate drops quite a bit but they run stable. The only weird thing is on several of them one of the fans shows 30,600 rpm. Anyone else seeing this?

As well, I am wondering about LPEM because it noticeably drops my scoring hashrate on Slushpool which makes sense but since reward is tied to it I am wondering if I am actually losing money.
11  Bitcoin / Mining support / Antminer S9 temperatures in STATS on: November 05, 2018, 08:27:59 PM
Hi all, in the STATS from any given S9 I see:

Code:
            "temp1": 0, 
            "temp10": 0,
            "temp11": 0,
            "temp12": 0,
            "temp13": 0,
            "temp14": 0,
            "temp15": 0,
            "temp16": 0,
            "temp2": 0,
            "temp2_1": 0,
            "temp2_10": 0,
            "temp2_11": 0,
            "temp2_12": 0,
            "temp2_13": 0,
            "temp2_14": 0,
            "temp2_15": 0,
            "temp2_16": 0,
            "temp2_2": 0,
            "temp2_3": 0,
            "temp2_4": 0,
            "temp2_5": 0,
            "temp2_6": 76,
            "temp2_7": 67,
            "temp2_8": 65,
            "temp2_9": 0,
            "temp3": 0,
            "temp3_1": 0,
            "temp3_10": 0,
            "temp3_11": 0,
            "temp3_12": 0,
            "temp3_13": 0,
            "temp3_14": 0,
            "temp3_15": 0,
            "temp3_16": 0,
            "temp3_2": 0,
            "temp3_3": 0,
            "temp3_4": 0,
            "temp3_5": 0,
            "temp3_6": 0,
            "temp3_7": 0,
            "temp3_8": 0,
            "temp3_9": 0,
            "temp4": 0,
            "temp5": 0,
            "temp6": 61,
            "temp7": 52,
            "temp8": 50,
            "temp9": 0,
            "temp_max": 61,
            "temp_num": 3,

My question is what temperature is temp6 reporting vs temp2_6? The temp2_6 value is what's reported on the miner status page. Just wondering because the temp2_6 value is always higher...
12  Bitcoin / Mining support / How to get Antminer S9 MAC address on: November 03, 2018, 04:30:59 AM
I want to be able to get the MAC address of an S9 programmatically. I can't find a command that returns it in Bmminer. I can SSH in and find it in the `mac` file but this is time-consuming. I suppose I can just load the network.html page and parse it out of there but I am hoping there is an easier way to get at it. Any points would be welcomed.
13  Bitcoin / Mining support / Bulk update hundreds of S9’s on: November 01, 2018, 04:10:00 AM
I have a lot of S9’s that supposedly support asicboost and I don’t want manually update them. Is there a way I can do this via SSH? If so I can write a shell script. Any advice would be welcomed.
14  Bitcoin / Mining support / Re: Error of set PIC FLASH ...? on: September 21, 2018, 06:15:15 PM
Sounds like your PIC error is only on one board. Flashing the April firmware let you ignore that error and continue to mine with the other two boards.

If you want to, you can replace the PIC on the faulty board with one from a spare board if you want to. Bitmain doesn't seem to sell spare PICs. Also, try replacing the ribbon cable to the board giving you the issue.

Where can I find the April firmware?
15  Bitcoin / Mining support / Why the difference between GH/S(ideal) and GH/S(RT)? on: June 09, 2018, 04:32:30 PM
I have some S9's that where ideal is higher than RT and some where RT is higher than ideal. Is that normal? In the cases where RT(Real-Time???) is higher than ideal does that mean it's running overclocked?
16  Bitcoin / Mining support / Re: Antminer S9 good hasboards but not hashing! on: May 06, 2018, 03:39:04 PM
Actually, looking at the kernel log I see that the temperature is too high! Bummer. Any idea on why this particular machine might be experiencing this? I have many other machines on the same rack and they are all running at "normal" (e.g. 70-80 degrees).

Code:
Fatal Error: Temperature is too high!
do read_temp_func once...
do check_asic_reg 0x08

get RT hashrate from Chain[5]: (asic index start from 1-63)

get RT hashrate from Chain[6]: (asic index start from 1-63)

get RT hashrate from Chain[7]: (asic index start from 1-63)
Check Chain[J6] ASIC RT error: (asic index start from 1-63)
Check Chain[J7] ASIC RT error: (asic index start from 1-63)
Check Chain[J8] ASIC RT error: (asic index start from 1-63)
Done check_asic_reg
do read temp on Chain[5]
Chain[5] Chip[62] TempTypeID=55 middle offset=30
read failed, old value: Chain[5] Chip[62] local Temp=91
read failed on Chain[5] Chip[62] middle Temp old value:102
Done read temp on Chain[5]
do read temp on Chain[6]
Chain[6] Chip[62] TempTypeID=55 middle offset=27
read failed, old value: Chain[6] Chip[62] local Temp=87
read failed on Chain[6] Chip[62] middle Temp old value:98
Done read temp on Chain[6]
do read temp on Chain[7]
Chain[7] Chip[62] TempTypeID=55 middle offset=29
read failed, old value: Chain[7] Chip[62] local Temp=84
read failed on Chain[7] Chip[62] middle Temp old value:93
Done read temp on Chain[7]
set FAN speed according to: temp_highest=102 temp_top1[PWM_T]=102 temp_top1[TEMP_POS_LOCAL]=91 temp_change=17 fix_fan_steps=1
set full FAN speed...
FAN PWM: 100
read_temp_func Done!
CRC error counter=0
17  Bitcoin / Mining support / Antminer S9 good hasboards but not hashing! on: May 06, 2018, 03:07:52 PM
I have several S9's running with good hashboard status but the GH/S(RT) is "0.0000" for every board. When I reboot they start hashing but quickly fall back to "0.0000". The chips are running hot at 90+. Any ideas on what is going on? Could it be network?

18  Bitcoin / Mining support / How to shut down Antminer S9 using SSH on: May 04, 2018, 07:37:41 PM
Is there a way to shut down an S9 remotely via SSH? If I send the "poweroff" command the machine stops hashing but it still runs. Ideas?
19  Bitcoin / Mining software (miners) / Re: Automate Your miners setup for ur S9 farm | Beta on: March 11, 2018, 01:54:24 AM
Many thanks, SkyLakeMine!

I now need to find out what port in the switch that miner is plugged into. In the configuration on the miner I can see the hostname which is the port. How can get this via the API? I am getting the following but none of it gives me the hostname:

print miner.version()
print miner.stats()
print miner.summary()
print miner.pools()
print miner.config()
print miner.devs()

Any ideas? I guess worst case I can get it through the cgi interface but that seems kludgy.
20  Bitcoin / Mining software (miners) / Re: Automate Your miners setup for ur S9 farm | Beta on: March 08, 2018, 11:54:02 PM
Hi all, excellent thread. I think I am going to want to do the same thing. My issue is I want to do this using Python. I can send commands such as 'status' to a miner and get some info but what I really want to do is set the pools, assign an IP, change the root password, etc.

Any ideas on how I might do what SkyLakeMine suggests:

Code:
sed -i 's_^\("api-allow" : \).*_\1"W:your.remote.ip.address,W:192.168.0.1/16,A:0/0",_' bmminer.conf

I want to do the same but with Python... Possible?

Also, assuming I can use the API, is there any docs for it? I looked on BMMiner and I can't find anything...

Cheers,

Morton.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!