Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: DameSats on February 28, 2022, 11:00:36 PM



Title: Need help powering S19 off using cgminer API.
Post by: DameSats on February 28, 2022, 11:00:36 PM
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()


Title: Re: Need help powering S19 off using cgminer API.
Post by: BitMaxz on February 28, 2022, 11:55:31 PM
It seems the Cgminer API to reboot miner is not yet supported I can't find it on their Github readme page here (https://github.com/ckolivas/cgminer/blob/master/API-README)

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 <arg> Set a time of day in HH:MM to start mining (a once off without a stop time)
--sched-stop <arg>  Set a time of day in HH:MM to stop mining (will quit without a start time)



Title: Re: Need help powering S19 off using cgminer API.
Post by: DameSats on March 04, 2022, 04:27:31 PM
Thankyou for your help!


Title: Re: Need help powering S19 off using cgminer API.
Post by: kano on March 09, 2022, 10:39:55 AM
It seems the Cgminer API to reboot miner is not yet supported I can't find it on their Github readme page here (https://github.com/ckolivas/cgminer/blob/master/API-README)
...
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.


Title: Re: Need help powering S19 off using cgminer API.
Post by: jack1cryptotalk007 on March 09, 2022, 10:52:06 AM
does S19 use cgminer?
what is computer in S19?


Title: Re: Need help powering S19 off using cgminer API.
Post by: BitMaxz on March 09, 2022, 11:57:43 PM
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