Skip to content

Instantly share code, notes, and snippets.

@s0kil
Last active March 11, 2025 15:33
Show Gist options
  • Save s0kil/158b20715ca3ebafc68574171760ee6a to your computer and use it in GitHub Desktop.
Save s0kil/158b20715ca3ebafc68574171760ee6a to your computer and use it in GitHub Desktop.
Antminer S19 XP - 6060 API Command Reference - Fri Feb 7 18:12:53 CST 2025 - 20250208020137

6060 API Command Reference

This document provides a comprehensive list of all commands supported by the 6060 API, as extracted from the decompiled code.

Fan Control

Command Description Example
/fan-<value> Sets fan PWM (speed) value (1-99) /fan-80

Status and Information Commands

Command Description Example
/warning Gets error messages /warning
/rate Gets current mining rate /rate
/ideal_rate Gets ideal mining rate /ideal_rate
/max_rate Gets maximum mining rate /max_rate
/miner_status Gets miner status /miner_status
/board_type Gets hash board type /board_type
/productName Gets miner model name /productName
/get_sn Gets device serial number /get_sn
/nonce Shows nonce numbers for mining chips (ASICs) /nonce

Maintenance Commands

Command Description Example
/clear_find_asic_fail_record Clears ASIC failure records /clear_find_asic_fail_record
/min_boot_reset Resets minimum boot configuration /min_boot_reset
/set_sn Sets serial number (blocked in release mode) /set_sn
/flush Flushes internal buffers/caches /flush

Hardware Control Commands

Command Description Example
/power-<chain> Shows voltage of a specific chain (0-3) /power-1
/uart-<speed> Sets the UART baud rate /uart-3
/readreg-<chain>-<asic>-<reg> Reads a register from a specific ASIC /readreg-0-12-0x34
/readcorereg-<chain>-<asic>-<reg> Reads a core register /readcorereg-1-5-0x20
/resetcore-<chain>-<asic> Resets a specific ASIC core /resetcore-0-3
/readvol Reads current voltage and power status /readvol
/adc Reads ADC values for all ASICs in active chains /adc

UART Speed Options

When using the /uart command, the following speed options are available:

Option Baud Rate
1 1,000,000
2 1,500,000
3 3,000,000
4 6,000,000
5 12,000,000
0-default 115,200

Response Format

Most commands return a text response confirming the action or displaying requested information. Some commands like /warning return data in JSON format.

Error Responses

Invalid commands typically return "404 not found" or "500 server error" responses.

Example

$ curl 192.15.1.96:6060/readvol
read current voltage:1300 feedback:12.907188 power status:0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment