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

Generic Watchdogs

Hello,

I’ve just received linux drivers for chinese generic watchdog. Is it possible to add this to hiveos? Thousands of people is using these.

https://www.aliexpress.com/item/TISHRIC-2018-Hot-Sale-USB-Watchdog-Card-Module-Timer-One-Buttoon-Boot-Blue-Screen-Restart-For/32837991481.html

https://1drv.ms/u/s!AoqYAzOHmHlWiM4TlBHiWrr7Kor6mA

Thanks in advance.

hi did u fix ur problem? i have same watchdog also but i dont know how to use it on hive os

Unfortunately not. It will be great if hiveos implements it built-in.

Here is drivers: https://1drv.ms/u/s!AoqYAzOHmHlWiM4TlBHiWrr7Kor6mA

Any news about to include this watchdog ??

Hello
The device driver is in the system.
At me it was defined so:

hive oc v.0.5-23

lsusb
Bus 001 Device 002: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter

ls /dev
ttyUSB0

I edited the two files and now this will work for me before the system upgrade.

find / -name watchdog-opendev*
nano /hive/opt/opendev/watchdog-opendev.sh

In this file find the code “0483” and change it to “1a86”
and also the code “5740” and change it to “7523”
In the second file ( nano / hive / opt / opendev / watchdog-opendev )
change “PORT=/dev/ttyACM0” on “PORT=/dev/ttyUSB0”
reboot
I hope, Dmitry will add this device to the next upgrade.

1 Like

For those who are keen to use these watchdogs, I put together some basic scripts to install a service that uses the python script here:
https://www.davidgouveia.net/2018/02/how-to-create-your-own-script-for-a-usb-watchdog/

The main prereqs are that you will need to install pyserial via apt, after that, if you just decompress these scripts in the /home/user folder in a standard hive install, set the execute permissions on the script, it will just work. (Unless you have things like extra USB devices that occupy /dev/ttyUSB00

You can check it ou there:

How i can use SimpleRigResetter to HiveOS ?

For those who are keen to use these watchdogs, I put together some basic scripts to install a service that uses the python script here:
https://www.davidgouveia.net/2018/02/how-to-create-your-own-script-for-a-usb-watchdog/

Thanks, Iteration!
How to install watchdog script by Iteration at HiveOS:


cd ~
wget https://raw.githubusercontent.com/zatarra/usb-watchdog/master/watchdog.py
apt install python-pip
pip install pyserial
chmod +x ~/watchdog.py

Check ping:


~/watchdog.py /dev/ttyUSB0 300

where /dev/ttyUSB0 - device; 300 - interval in seconds
If ping did not work - you need to check steps

Autorun:


nano /etc/rc.local

File:


#!/bin/bash
##!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/home/user/watchdog.py /dev/ttyUSB0 300 > /dev/null &

exit 0

it’s more accurate if you put on the python file to check your router IP, because if your internet connection disconnect you reboot your RIG uselessly

hey!
Methods checkInternet() and reset() did not use at default script. It’s an example how you can upgrade your watchdog:)

Здравствуйте! есть ли возможность добавить поддержку данного устройства в следующем обновлении?
https://ru.aliexpress.com/item/Hight-Quality-Watchdog-card-USB-computer-unattended-automatic-restart-of-blue-screen-of-death-mining-game/32820955231.html?spm=a2g0s.9042311.0.0.wuzY1c

так же есть ссылка на ПО для linux
http://finedar.oss-cn-beijing.aliyuncs.com/USBWatchdog_LINUX.zip

В версии 0.5-38 добавилась поддержка Chinese Watchdogs. Попробовал - при старте watchdog обнаруживается, но LED не мигает, риг перезагружается. Кто-то пробовал еще? Как можно руками попробовать пропинговать его?https://forum.hiveos.farm/uploads/editor/r5/9dhkrx9c28tx.jpg

I have watchdog v5.0 and i’am running at hive 05.26. If I upgrate to 05.38 will the watchdog work wit driver integrated in hive or I need to make some changes? Does anyone have drivers for this version?
https://www.aliexpress.com/item/Best-USB-Watchdog-Card-Computer-Timer-Unattended-Automatic-Restart-Reset-Module-Blue-Screen-Game-Server-BTC/32841830678.html?spm=a2g0s.9042311.0.0.zF2sxH

@makadam i have the same watchdog u got. how do u manage that watchdog get working on hive?

i tried with the new update but it keeps rebooting, maybe i miss something

Вот решение!!!

Eto resheniye!!!

This is the solution !!!

help

root@rig3:~# ~/watchdog.py /dev/ttyUSB0 300
Traceback (most recent call last):
File “/root/watchdog.py”, line 47, in
watchdog = serial.Serial(sys.argv[1], 9600)
File “/usr/local/lib/python2.7/dist-packages/serial/serialutil.py”, line 240, in init
self.open()
File “/usr/local/lib/python2.7/dist-packages/serial/serialposix.py”, line 268, in open
raise SerialException(msg.errno, “could not open port {}: {}”.format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: ‘/dev/ttyUSB0’

I am having the same problem

figured out the issue. I made a video to help more people

1 Like

Great job

Is it possible to add a network ping control script on this WD ?
For example if your rig became disconnected from hive server, wd will reset it in 5 minutes.
For me its to difficult to make it :frowning:
Thank you in advance