Bitcoin Forum

Bitcoin => Mining support => Topic started by: cottora on February 27, 2020, 11:52:59 PM



Title: Issue with toggling A841 command-line options
Post by: cottora on February 27, 2020, 11:52:59 PM
I am using this thread to help send commands to an 841.  I can SSH in and send the below command:

cgminer --lowmem --avalon8-fan 40-100 --avalon8-voltage-level-offset 0 {REDACTED POOL} --api-allow W:0/0 --api-listen --avalon8-voltage-level 0 --avalon8-voltage-level-offset 0 --real-quiet

The only way this works is if I first stop the cgminer (/etc/init.d/cgminer stop) and then send the above command.  The problem is after that it seems that I am locked out from stopping or sending new commands (for instance, set voltage level 1 with the above command with modifier). 

It seems that I am shutting down the default running cgminer and then starting a new one.  Is this correct?  Is there a better way to be able to toggle? 

Thanks in advance


Title: Issue with toggling A841 command-line options
Post by: philipma1957 on February 27, 2020, 11:57:17 PM
Yeah it is like a reboot.  Are you using a rasp pi 3+ or rasp pi 3 to do this?


Title: Issue with toggling A841 command-line options
Post by: cottora on February 28, 2020, 01:22:16 AM
It is a 3B (I couldnt get the 3B+ to work).

But once I send my SSH command, I can't repeat the process to send a new command.  It takes a reboot to send it back to the first setting (separate question, is there a reboot command).  I essentially have to send one command, reboot to the original settings, send the next command, reboot, next command, ect.

Thanks


Title: Issue with toggling A841 command-line options
Post by: philipma1957 on February 28, 2020, 03:50:36 AM
It is a 3B (I couldnt get the 3B+ to work).

But once I send my SSH command, I can't repeat the process to send a new command.  It takes a reboot to send it back to the first setting (separate question, is there a reboot command).  I essentially have to send one command, reboot to the original settings, send the next command, reboot, next command, ect.

Thanks

I know you have a lot of these to hook up.

I also know you need to be able to alter watts usage.

Maybe having 1 pdu with 10 rasp pi's attached that you remotely power on and off  allows for 10 rasp pi reboots in 1 shot.

if you have 12 x 841's to each rasp pi  it would instantly make them all  (10 x 12= miners) able to take a new set of ssh commands.


Title: Issue with toggling A841 command-line options
Post by: NotFuzzyWarm on February 28, 2020, 01:58:09 PM
Why is this in the wrong thread?
Should be in the 841 thread (https://bitcointalk.org/index.php?topic=3375954.0) unless you have confused a 921 with a 841... Requested mods to fix that


Title: Issue with toggling A841 command-line options
Post by: cottora on February 28, 2020, 02:19:46 PM
I put it here because it was specific to the commands and options that were being discussed in this thread.


Title: Issue with toggling A841 command-line options
Post by: NotFuzzyWarm on February 28, 2020, 03:52:08 PM
I put it here because it was specific to the commands and options that were being discussed in this thread.
This thread is for the 921, you were discussing the 841.
Yes the commands for them are similar but - for many of the commands the values that the commands accept are different eg:
-avalon8 (or 9)-voltage-level and voltage-level-offset and the -freq values. Those have different ranges and step values that they will accept.

The 841 thread covers all of the commands and values that the 841 will accept. Here are ones in that thread from Phil (https://bitcointalk.org/index.php?topic=3375954.msg37014814#msg37014814)

Ta boot, several of the 841 commands seem to have no effect on the 921 so....


Title: Re: Issue with toggling A841 command-line options
Post by: cottora on February 29, 2020, 12:24:48 PM
Fair enough.  The issue isn't that I can't make changes but that once I make a change it requires a hard reboot before I can make any other changes.

A little more background.  I am sending these commands via Windows PowerShell.  Once the command is sent, I get constant status update run vs a command prompt.


Title: Re: Issue with toggling A841 command-line options
Post by: philipma1957 on February 29, 2020, 04:39:44 PM
I am not sure if you can get past the hard reboot.  I know some have claimed you can but no one that I know has shown a method to do so.

I know you will have over 500 units which means more then  50 rasp pi's

If you use a  few pdus with hard power off options  and 20  rasp pi's per pdu.

It is 20 instant reboots.  Then a  new ssh can be entered for them.  I also know this is not as fast as you want.

But as I said  I don't know of a quicker way then this.


Title: Re: Issue with toggling A841 command-line options
Post by: cottora on February 29, 2020, 04:44:51 PM
Thank you!  We do have a 24 outlet PDU and our plan is as you described.  I think that I am more wanting to win/learn as the PDU solution will work.  It just seems that if I can restart from the GUI I should be able to send a command.

Thanks again!