frequencyget
Description
Returns a per-chip frequency value from a given board. If no chips are specified, you will get all chips; otherwise, only the specified chip value will be returned.
Command
$ echo '{"command": "frequencyget", "parameter": "0,10"}' | nc $MINER_IP 4028 | jq
Examples
For a single chip value:
$ echo '{"command": "frequencyget", "parameter": "0,10"}' | nc $MINER_IP 4028 | jq
{
"FREQS": [
{
"Count": 1,
"Freqs": [
650
]
}
],
"STATUS": [
{
"Code": 301,
"Description": "LUXminer 0.1.0-15436f7140",
"Msg": "1 freqs",
"STATUS": "S",
"When": 1667917088
}
],
"id": 1
}
To get all chips at once:
$ echo '{"command": "frequencyget", "parameter": "0"}' | nc $MINER_IP 4028 | jq
{
"FREQS": [
{
"Count": 63,
"Freqs": [
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650,
650
]
}
],
"STATUS": [
{
"Code": 301,
"Description": "LUXminer 0.1.0-15436f7140",
"Msg": "63 freqs",
"STATUS": "S",
"When": 1667917088
}
],
"id": 1
}
Parameters
Parameter | Notes |
---|---|
board_id | Board ID, starting at zero. |
chip_id | Optional. The chip number, starting from zero. |
Field details
Field | Notes |
---|---|
Count | Number of readings returned. |
Freqs | Array of one or more frequency values. |