GET_CONFIG
Syntax
GET_CONFIG
Description
Returns the settings that are currently applied by the board: sampling rate, filter cut-offs, number of channels, and whether SETUP is done. The config_id changes every time one of these values really changes, so you can detect changes made by someone else (another PC, a Studio program, another board).
Response
OK GET_CONFIG fs=<Hz> lower=<Hz> upper=<Hz> dsp=<0|1> dsp_hz=<Hz> channels=<n> setup=<0|1> config_id=<n>
| Field | Description |
|---|---|
fs | Sampling rate in Hz, per channel. |
lower | Lower amplifier cut-off in Hz (see LOWER). |
upper | Upper amplifier cut-off in Hz (see UPPER). |
dsp | 1 when the digital offset-removal filter is on. |
dsp_hz | Cut-off of the digital filter in Hz (0 when off). |
channels | Number of channels streamed. |
setup | 1 once SETUP has been done. |
config_id | Identifier of this configuration. |
Replies may carry additional key=value fields. Ignore the ones you do not know.
Example
get_config.py
from hmcls_udp import Board
board = Board("192.168.1.11")
cfg = board.request("GET_CONFIG")
print(f"{cfg['fs']} Hz, {cfg['channels']} channels, config {cfg['config_id']}")