Bitcoin Forum
May 04, 2024, 02:50:57 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 [6]  All
  Print  
Author Topic: [DIY] auto-hard-reset mining rigs with Raspberry Pi  (Read 8486 times)
RigMaster
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
June 16, 2018, 01:31:30 PM
 #101

Hi Guys

Firstly, @Kasmetski for the amazing work on this rig resetter. It's exactly what I was looking for after weeks of headache with my rig hanging and I must drive 40 miles to reboot!.

I have purchased a Raspberry Pi 3 Model B and installed Raspbian just now. I have also enabled SSH and changed the password for user Pi for security.

Now, I am on Github but I'm not sure what to do from here...

Should I run:
Code:
sudo curl -O https://github.com/Kasmetski/auto-hard-reset/archive/master.zip
to download the file to the default directory?

After this, github mention to run:
Code:
tar -xvzf auto-hard-reset-arm7.tar.gz
chmod +x auto-hard-reset-arm7

But I checked in Github file list I don't see any auto-hard-reset-arm7.tar.gz filename.

Please help, sorry for the noob question... I'm sure I am overlooking something.

It's ok I've now got it working and Telegram working also.
1714791057
Hero Member
*
Offline Offline

Posts: 1714791057

View Profile Personal Message (Offline)

Ignore
1714791057
Reply with quote  #2

1714791057
Report to moderator
1714791057
Hero Member
*
Offline Offline

Posts: 1714791057

View Profile Personal Message (Offline)

Ignore
1714791057
Reply with quote  #2

1714791057
Report to moderator
The block chain is the main innovation of Bitcoin. It is the first distributed timestamping system.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714791057
Hero Member
*
Offline Offline

Posts: 1714791057

View Profile Personal Message (Offline)

Ignore
1714791057
Reply with quote  #2

1714791057
Report to moderator
1714791057
Hero Member
*
Offline Offline

Posts: 1714791057

View Profile Personal Message (Offline)

Ignore
1714791057
Reply with quote  #2

1714791057
Report to moderator
1714791057
Hero Member
*
Offline Offline

Posts: 1714791057

View Profile Personal Message (Offline)

Ignore
1714791057
Reply with quote  #2

1714791057
Report to moderator
RigMaster
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
June 16, 2018, 04:57:12 PM
 #102

I've got a strange issue...

I ssh into my raspberry pi and i run the script using:

cd Downloads
./auto-hard-reset-arm7

Then it starts... it pings the rig then it goes to timer "300s" because I made the timer for 5min rather than 30min. It works perfectly while my ssh connection is live and the telegram bot responds fine if I check /status

Soon as I kill ssh connection to the raspberry pi, the script stops working and even the bot is not responding in telegram... it's as if, when i kill the ssh connection it stops the script.

Can anyone help with this issue?
puwaha
Sr. Member
****
Offline Offline

Activity: 700
Merit: 294


View Profile
June 16, 2018, 06:34:43 PM
 #103

I've got a strange issue...

I ssh into my raspberry pi and i run the script using:

cd Downloads
./auto-hard-reset-arm7

Then it starts... it pings the rig then it goes to timer "300s" because I made the timer for 5min rather than 30min. It works perfectly while my ssh connection is live and the telegram bot responds fine if I check /status

Soon as I kill ssh connection to the raspberry pi, the script stops working and even the bot is not responding in telegram... it's as if, when i kill the ssh connection it stops the script.

Can anyone help with this issue?

Use the screen utility in linux to keep the script running even if you close your ssh session.
sockpuppet1911
Sr. Member
****
Offline Offline

Activity: 994
Merit: 278


View Profile
June 16, 2018, 07:28:47 PM
 #104

Was wondering if someone had come up with something like this the other day. When my script restarts cast-xmr after a drop in hashrate it sometimes jams the whole system. Thank you
RigMaster
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
June 16, 2018, 10:21:12 PM
 #105

I've got a strange issue...

I ssh into my raspberry pi and i run the script using:

cd Downloads
./auto-hard-reset-arm7

Then it starts... it pings the rig then it goes to timer "300s" because I made the timer for 5min rather than 30min. It works perfectly while my ssh connection is live and the telegram bot responds fine if I check /status

Soon as I kill ssh connection to the raspberry pi, the script stops working and even the bot is not responding in telegram... it's as if, when i kill the ssh connection it stops the script.

Can anyone help with this issue?

Use the screen utility in linux to keep the script running even if you close your ssh session.


Thank you! That worked perfectly.
The script is now running like a dream and Telegram bot is functional Smiley
Tomorrow I will replace my faulty risers and then hopefully this rig is finished and i can move to the next.
urnzwy
Newbie
*
Offline Offline

Activity: 44
Merit: 0


View Profile
June 30, 2018, 10:26:52 PM
 #106

You connect your relay in NO & COM to the PWR pins or the Reset pins?
buddyleex
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
July 22, 2018, 08:10:31 PM
 #107

Does anyone know the max cable lengths for the 5v run from the pi to the relay, the gpio runs from the pi to the relay, and from the relay to the motherboard reset pins?

I have my rigs in 3 separate racks and would like to utilize 1 pi in total and 1 relay per rack (3 relays total). The cable lengths from the pi to the racks would be 18 ft, 14 ft, & 16 ft respectively and the cable lengths from the 5v relays to the motherboards would be 3 ft, 4 ft, 5 ft, 6 ft & 7 ft respectively. I'm not too concerned about the runs from the relays to the boards but I'm worried that 14-18 runs from the pi to the relay are too long. Can anyone weigh in?
puwaha
Sr. Member
****
Offline Offline

Activity: 700
Merit: 294


View Profile
July 23, 2018, 08:43:13 AM
 #108

Does anyone know the max cable lengths for the 5v run from the pi to the relay, the gpio runs from the pi to the relay, and from the relay to the motherboard reset pins?

I have my rigs in 3 separate racks and would like to utilize 1 pi in total and 1 relay per rack (3 relays total). The cable lengths from the pi to the racks would be 18 ft, 14 ft, & 16 ft respectively and the cable lengths from the 5v relays to the motherboards would be 3 ft, 4 ft, 5 ft, 6 ft & 7 ft respectively. I'm not too concerned about the runs from the relays to the boards but I'm worried that 14-18 runs from the pi to the relay are too long. Can anyone weigh in?

Those lengths shouldn't be a problem.  If you were talking about hundreds of feet, then maybe.  The relay boards can also be powered separately.
buddyleex
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
August 01, 2018, 11:02:57 PM
Last edit: August 02, 2018, 02:15:47 AM by buddyleex
 #109

Ok I figured out the wiring, I'm guessing LOW(relay light on) = not triggering reset and HIGH= (light off) = triggers reset button. Is there anyway to reverse this?
RigMaster
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
October 06, 2019, 01:06:49 AM
 #110

is there any way to add a telegram bot?

Can anybody share the telegram commands they use for multiple rigs?

Sorry to drag up an old topic but it's relevant for whoever else may be having this same issue...
Today I've setup a second Raspberry Pi using this script - absolutely love this script!!

I've got 6 rigs connected to it on an 8CH 5V Relay Board and noticed the same... no matter the command, the Telegram Bot would only trigger Rig 0:
/ping m0, m1, m2 etc
/restart m0, m1, m2 etc
/turnon m0, m1, m2 etc

After some digging... I found the cause... remove the 'm'

/restart 0
/restart 1
/restart 2

Without the 'm' it works perfectly... because in the code it looks for machine NUMBER not anything else.

I hope this helps.
Pages: « 1 2 3 4 5 [6]  All
  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!