Skip to main content

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>
FieldDescription
fsSampling rate in Hz, per channel.
lowerLower amplifier cut-off in Hz (see LOWER).
upperUpper amplifier cut-off in Hz (see UPPER).
dsp1 when the digital offset-removal filter is on.
dsp_hzCut-off of the digital filter in Hz (0 when off).
channelsNumber of channels streamed.
setup1 once SETUP has been done.
config_idIdentifier 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']}")