More
referral
Increase your income with Hive. Invite your friends and earn real cryptocurrency!

How to configure HL-340 USB Watchdog

Thank you for reading !

Goals:

  1. I am using HL-340 Watchdogs and would like for them to work immediately instead of having to edit multiple files after the creation of a new SSD image.
  2. Where does HiveOS show me that it recognizes and uses the HL-340 watchdogs in the online interface?

MY RIG #2:

lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
Bus 001 Device 002: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

MY RIG #3:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 001 Device 005: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
Bus 001 Device 002: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Quoted from a post back on Feb 8, '18 8:58 PM:

To test reset: /hive/opt/opendev/watchdog-opendev reset
To test power: /hive/opt/opendev/watchdog-opendev power

How do I edit these two files ("/hive/opt/opendev/watchdog-opendev.sh" and “/hive/opt/opendev/watchdog-opendev”) inside the IMG file so that the new information is copied over to new SSD with balenaEtcher INSTEAD of having to manually edit everytime after the image has been copied to SSD ?
How do I know HiveOS will use the HL-340 instead of software watchdog?
How can I configure HL-340 to reboot when Hashrate is slow?
How can I configure HL-340 to monitor internet and reboot rig when internet is lost?

Helpful tutorial for resetting machine with USB Watchdog:

I recommend that the HiveOS team integrate this knowledge into the next build.

File location: /hive/bin/wd
Do: nano /hive/bin/wd
(In nano CTRL+3 then SHIFT+3 will show line numbers)
Place on about line 388 in /hive/bin/wd … after line #387 which is: echo “—” …

/hive/opt/qinheng/hl340 reset > /tmp/nohup.log 2>&1 &
#nohup bash -c ‘sreboot’ > /tmp/nohup.log 2>&1 &
#sreboot
return #for testing and if it does not work)

Notice I added “/hive/opt/qinheng/hl340 reset > /tmp/nohup.log 2>&1 &”
I left alone " #nohup bash -c ‘sreboot’ > /tmp/nohup.log 2>&1 &"
I changed “sreboot” to “#sreboot” …

Exit nano and save file … then:

systemctl restart hive-watchdog.service
systemctl status hive-watchdog.service

Then in your HiveOS watchdog, configure watchdog. When configuring Hashrate watchdog, the total must be for all miners in rig… example, I am running 8 x 5700 XT per rig, therefore I set my watchdog to 440 MH, so if one card drops out for whatever reason, the watchdog will “BARK” because total rig hash fell below 440.

1 Like

This topic was automatically closed 416 days after the last reply. New replies are no longer allowed.