Pages:
Author

Topic: change Voltage & Frequency using cgminer api (Read 642 times)

newbie
Activity: 5
Merit: 0
October 04, 2020, 07:37:09 AM
#22
So you have to power cycle the miner pretty much everytime you want to change those settings.

Since when? I've never had to do this on any version of any firmware. BOS restarts the mining software as any sensible person would. It takes seconds.

It looks like cgminer was crippled some time back so you cannot do what you want. In terms of BOS you could edit the config files directly, then just restart the miner.

Given that inverters and smart meters provide all the information required to make these changes in realtime, this should be easy to achieve, but using the API is not the solution. You won't want to do this in realtime, but I can't be bothered to go into the details right now.

It's on my TODO list so I may come back here when I've done this.

Given that BOS+ tunes the parameters anyway, it's obviously possible to do this on the fly, though I don't see any source code making this easy.
legendary
Activity: 2436
Merit: 6643
be constructive or S.T.F.U
... since he merits the thread over and over...

He merits the OP 5 times with a total of 12 merit points.

You seem to misunderstand the purpose of the merit system, giving someone merit doesn't mean you promote him, support him, like him or even agreeing to what he wrote, any constructive post that has semi-good valuable information or opens the doors for further useful discussion can be merited.
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
...
Edit: I guess I should have quoted the specific posts here - they're now gone 7 hours later ...
Guess I needed time to reread the whole thread yet again, it's pretty clear Smiley

After reading through it in detail again, here's the issues:

He says multiple times how he will use the firmware.
He posts stats about performance.
He merits the OP 5 times with a total of 12 merit points.
The OP merits his posts twice.
He posts in the thread ...  17 times, never once saying people shouldn't use the firmware, often promoting it.

Clearly, his posts and merits are supporting someone who is violating the cgminer license.

Aside: I can say the same about frodo also, since he merits the thread over and over ... but frodo is ... well yeah other than a pain in the ass, bias mod, he's nothing.
sr. member
Activity: 808
Merit: 294
Created AutoTune to saved the planet! ~USA
Firstly this is not my thread, I do not read every thread on the forum every day.

I do try to read every thread in the BTC mining pool section every day, since I run a BTC mining pool.

You did not contact me, as you claim in another thread, that I only found by coincidence.

---

As for using firmware that violates the cgminer license, I guess you either forgot that you did, or thought I wouldn't know to reply with a recent example, since you didn't contact me about this.

---

In the asic.to thread you have posted stating that you have used that firmware, that violates the cgminer licence.
Not only that, you've given the OP post 4 merit points.

Edit: I guess I should have quoted the specific posts here - they're now gone 7 hours later ...

I just distribute a Linux operating system with a bunch of files on there.
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
Firstly this is not my thread, I do not read every thread on the forum every day.

I do try to read every thread in the BTC mining pool section every day, since I run a BTC mining pool.

You did not contact me, as you claim in another thread, that I only found by coincidence.

---

As for using firmware that violates the cgminer license, I guess you either forgot that you did, or thought I wouldn't know to reply with a recent example, since you didn't contact me about this.

---

In the asic.to thread you have posted stating that you have used that firmware, that violates the cgminer licence.
Not only that, you've given the OP post 4 merit points.

Edit: I guess I should have quoted the specific posts here - they're now gone 7 hours later ...
legendary
Activity: 4326
Merit: 8950
'The right to privacy matters'
I wrote that document you quoted and the code related to it.

It is up to the driver developer to include ascset commands, since each device driver has it's own unique hardware related to that.

If BM don't include options to change what you want in the API in their driver, that they added to cgminer, then it's not available at the moment.
You'd have to request them, or the only legal firmware release: bOS, to add it to their release.

HiveOS, and every other release for BM hardware in this part of the forum, violates the cgminer license.
That violation includes the firmware released with awesomeminer.
While people like Phil and tazers only care about money and gambling, and don't give a damn about the cgminer license, please avoid joining that crowd of criminals using infringing firmware.

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.

I only use braiins firmware or bm firmware.

don't slander me.

All gear I sell has braiins or bm firmware.

don't state other wise.

I am formally asking you to retract your statement.
newbie
Activity: 20
Merit: 0
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.
newbie
Activity: 26
Merit: 35
I wrote that document you quoted and the code related to it.

It is up to the driver developer to include ascset commands, since each device driver has it's own unique hardware related to that.

If BM don't include options to change what you want in the API in their driver, that they added to cgminer, then it's not available at the moment.
You'd have to request them, or the only legal firmware release: bOS, to add it to their release.

HiveOS, and every other release for BM hardware in this part of the forum, violates the cgminer license.
That violation includes the firmware released with awesomeminer.
While people like Phil and tazers only care about money and gambling, and don't give a damn about the cgminer license, please avoid joining that crowd of criminals using infringing firmware.

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.

Hello Kano,

Thanks for sharing your thoughts! The things you've said are very interesting and I will definitely keep them in mind going forward.

As brainsOS is the only decent open source solution I have found thus far there is a strong incentive for me to use it. Sadly the latest releases of braiins don't implement cgminer API as the old Cobalt releases did. Anyway as for now I feel comfortable continuing to write my own code to modify the configuration file to change the desired properties myself. So far its working pretty well.

What you said about noting the obvious. Of course you are absolutely right that there is a large degree of uncertainty involved. Depending on the scale of the mining operations it may at least be possible to minimize the timeframe between mining and selling. The results and profitability predictions will not be completely accurate, but I hope to make an educated guess about whether or not it could be profitable to mine given certain parameters. As for now the entire thing is more of a research project and in case of success I am considering to deploy it at a larger scale.
sr. member
Activity: 808
Merit: 294
Created AutoTune to saved the planet! ~USA
I wrote that document you quoted and the code related to it.

It is up to the driver developer to include ascset commands, since each device driver has it's own unique hardware related to that.

If BM don't include options to change what you want in the API in their driver, that they added to cgminer, then it's not available at the moment.
You'd have to request them, or the only legal firmware release: bOS, to add it to their release.

HiveOS, and every other release for BM hardware in this part of the forum, violates the cgminer license.
That violation includes the firmware released with awesomeminer.
While people like Phil and tazers only care about money and gambling, and don't give a damn about the cgminer license, please avoid joining that crowd of criminals using infringing firmware.

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.

https://www.cryptomining.tools/calculator

^ good way to calculate but it's a crap shoot
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
I wrote that document you quoted and the code related to it.

It is up to the driver developer to include ascset commands, since each device driver has it's own unique hardware related to that.

If BM don't include options to change what you want in the API in their driver, that they added to cgminer, then it's not available at the moment.
You'd have to request them, or the only legal firmware release: bOS, to add it to their release.

HiveOS, and every other release for BM hardware in this part of the forum, violates the cgminer license.
That violation includes the firmware released with awesomeminer.
While people like Phil and tazers only care about money and gambling, and don't give a damn about the cgminer license, please avoid joining that crowd of criminals using infringing firmware.

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.
newbie
Activity: 26
Merit: 35
Hey taserz, thank you for your reply!

I don't plan on changing voltage and frequency on my miners more often than necessary. Of course I would have to find a good balance with that.
Given that I have electricity prices between 0.0$ and 0.20$ / KWh over the year I need to adapt my miners though. Running at 16 TH/s when electricity is "free", running at around 9-10 TH/s when it is above 0.03$ and not running at all above 0.05$ is my goal. Of course those thresholds will be variable and multiple presets may exist.

I am hoping - though I don't know for sure - that this method will give me better results even with autotuning turned off. If you disagree I'd love to hear your arguments!
sr. member
Activity: 808
Merit: 294
Created AutoTune to saved the planet! ~USA
I want to write a software that will adapt frequency and voltage automatically based on availability of energy (coming from the wind), energy prices (changing frequently - every 15 min) and bitcoin price. When lots of wind is blowing, electricity is available plenty and cheaply. In that case I want to run with very high voltage and frequency. When energy is expensive, I want to either turn off mining completely or run with much lower power to still be profitable. (Better energy efficiency - Mhash / J).

I cannot sit in front of my computer all day checking energy and bitcoins prices, manually changing voltage and frequrency to make sure I am running on a profit. Thats why I need to automate these tasks and have my software/server configure the miners for me.

So you have to power cycle the miner pretty much everytime you want to change those settings. Drawback number 1. Also your going to have to autotune for every voltage level and that is going to be a ton on the s9.

I would just run the s9 LPM (low power mode) version on asic.to  then ssh in and do bmminer-api stats
newbie
Activity: 26
Merit: 35
Sure thing, I will give you an update once I've made substantial progress!

In the meantime, if anyone experienced with cgminer API has some insights to share let me know. I Want to explore every possibility.
sr. member
Activity: 604
Merit: 416
Yeah, that truly is one big plan. I'd imagine something like that would take a team of experienced programmers. But I can in no way assist you in that jakaba.

But I wish you all the luck!

Will be following this thread.
legendary
Activity: 4326
Merit: 8950
'The right to privacy matters'
I want to write a software that will adapt frequency and voltage automatically based on availability of energy (coming from the wind), energy prices (changing frequently - every 15 min) and bitcoin price. When lots of wind is blowing, electricity is available plenty and cheaply. In that case I want to run with very high voltage and frequency. When energy is expensive, I want to either turn off mining completely or run with much lower power to still be profitable. (Better energy efficiency - Mhash / J).

I cannot sit in front of my computer all day checking energy and bitcoins prices, manually changing voltage and frequrency to make sure I am running on a profit. Thats why I need to automate these tasks and have my software/server configure the miners for me.

That is an ambitious undertaking. If it were to succeed it would be valuable for renewable energy mining.  Please keep posting if you have any progress with the programming.
newbie
Activity: 26
Merit: 35
I want to write a software that will adapt frequency and voltage automatically based on availability of energy (coming from the wind), energy prices (changing frequently - every 15 min) and bitcoin price. When lots of wind is blowing, electricity is available plenty and cheaply. In that case I want to run with very high voltage and frequency. When energy is expensive, I want to either turn off mining completely or run with much lower power to still be profitable. (Better energy efficiency - Mhash / J).

I cannot sit in front of my computer all day checking energy and bitcoins prices, manually changing voltage and frequrency to make sure I am running on a profit. Thats why I need to automate these tasks and have my software/server configure the miners for me.
sr. member
Activity: 604
Merit: 416
programatically changing volt and frequency.

Not really sure what you mean by that. Can you elaborate?
newbie
Activity: 26
Merit: 35
Manually controlling voltage and frequency is possible with both: Awesome Miner and braiinsOS.
From what I can find on the internet and in this forum, Rocket's firmware seems interesting but does not state any specifics about programatically changing volt and frequency. Doing so from within the webview/browser is not what I am aiming for, as this is possible with a range of firmwares. If you do know about a programmatic way that can be automated I'd be very glad to hear about it!

The cgminer API is implemented widely on many different miners. Thats why I want to use it.
As an alternative I am thinking about writing a script that will modify the configuration file (eg. bosminer.toml for braiinsOS) on a given miner and restart the mining process via ssh.
I just though cgminer API might be a better solution.
sr. member
Activity: 604
Merit: 416
I have never used braiinsOS nor Awesome Miner so I cannot give any insight into them, but if you want to manually control Voltage and Frequency, I'd suggest you to try Rocket's firmware.

I've used it for about 9 months on my S9 machines before I decided to sell them. Was really satisfied. And now I am using his firmware for S17Pro/S17+.


P.S.
I am in no way affiliated nor do I have any profit from his firmware. I just like it and that is why I recommend it.
newbie
Activity: 26
Merit: 35
Hello Favebook,

Thank you for your reply. I have been using stock Firmware, braiinsOS and Awesome Miner. All of them have their advantages and disadvantages. One thing none of them can do for me though is to programatically change frequency and voltage. Do you know of any custom firmware that can do this? I was thinking about trying hiveOS as well!

As for now I am looking for a more customised approach. I was hoping somebody in here could help me to understand. Of course you are right, that nobody should execute commands or code without having a clue whats going on there.
Pages:
Jump to: