Bitcoin Forum
July 01, 2024, 11:15:49 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Need help powering S19 off using cgminer API.  (Read 203 times)
DameSats (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
February 28, 2022, 11: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()
BitMaxz
Legendary
*
Offline Offline

Activity: 3304
Merit: 3038


BTC price road to $80k


View Profile WWW
February 28, 2022, 11: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 <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)


█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
DameSats (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
March 04, 2022, 04:27:31 PM
 #3

Thankyou for your help!
kano
Legendary
*
Offline Offline

Activity: 4536
Merit: 1847


Linux since 1997 RedHat 4


View Profile
March 09, 2022, 10:39:55 AM
 #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.

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
jack1cryptotalk007
Member
**
Offline Offline

Activity: 60
Merit: 20


View Profile
March 09, 2022, 10:52:06 AM
 #5

does S19 use cgminer?
what is computer in S19?
BitMaxz
Legendary
*
Offline Offline

Activity: 3304
Merit: 3038


BTC price road to $80k


View Profile WWW
March 09, 2022, 11:57:43 PM
 #6

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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1]
  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!