Author

Topic: Need help powering S19 off using cgminer API. (Read 198 times)

legendary
Activity: 3206
Merit: 2904
Block halving is coming.
does S19 use cgminer?
what is computer in S19?


Based on their Github base they use Cgminer.

What do you mean about the Computer in s19 are you talking about the controller or the firmware?

If you talking about the control board then they only have a unique control board that only works on both s19 and s19 pro. Check the link below what it looks like
- https://www.zeusbtc.com/ASIC-Miner-Repair/Parts-Tools-Details.asp?ID=259
member
Activity: 60
Merit: 20
does S19 use cgminer?
what is computer in S19?
legendary
Activity: 4466
Merit: 1798
Linux since 1997 RedHat 4
It seems the Cgminer API to reboot miner is not yet supported I can't find it on their Github readme page here
...
The 'extra' API options each miner adds is up to the manufacturer and the firmware.
My API in cgminer allows them to add any functionality they like that the software driver and miner can support.
Been like that for 10 years.
newbie
Activity: 2
Merit: 0
Thankyou for your help!
legendary
Activity: 3206
Merit: 2904
Block halving is coming.
February 28, 2022, 07:55:31 PM
#2
It seems the Cgminer API to reboot miner is not yet supported I can't find it on their Github readme page here

but if you can enable SSH of your miner maybe you can use the commands from http://ck.kolivas.org/apps/cgminer/

And send a command through SSH and these two commands below might be useful?

Code:
--sched-start  Set a time of day in HH:MM to start mining (a once off without a stop time)
--sched-stop   Set a time of day in HH:MM to stop mining (will quit without a start time)

newbie
Activity: 2
Merit: 0
February 28, 2022, 07:00:36 PM
#1
Does anyone know the command to power off an S19 using the cgminer API. I tried using the 'ascdisable' command but I get an error saying 'Invalid command.' Here is the python code I used. Thanks!

import socket
import json

sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((ip, 4028))

st = json.dumps({'command': 'ascdisable'})
byt=st.encode()
sock.send(byt)

resp = ''
while 1:
    buf = sock.recv(4096)
    if buf:
        resp += str(buf)
    else:
        break

print(resp)

sock.shutdown(socket.SHUT_RDWR)
sock.close()
Jump to: