# 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-` | 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-` | Shows voltage of a specific chain (0-3) | `/power-1` | | `/uart-` | Sets the UART baud rate | `/uart-3` | | `/readreg---` | Reads a register from a specific ASIC | `/readreg-0-12-0x34` | | `/readcorereg---` | Reads a core register | `/readcorereg-1-5-0x20` | | `/resetcore--` | 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 ```bash $ curl 192.15.1.96:6060/readvol read current voltage:1300 feedback:12.907188 power status:0 ```