DSP-PROGRAM-INFO(1)
π DSP-PROGRAM-INFO(1) π
okay bestie, welcome to the dsp-program-info page from the User Commands manual, we're doing this, let's go β¨
πΈ NAME πΈ
dsp-program-info β get DSP program information using REST API
β¨ SYNOPSIS β¨
dsp-program-info [OPTIONS]
π¦ DESCRIPTION π¦
dsp-program-info goes and fetches comprehensive information about the DSP program that's currently loaded on your HiFiBerry DSP, and it does it through the REST API. This little icon gives you the deets: program length and checksums, which are lowkey the whole point β you use them for verification and for debugging. π
The way it works is, it connects to the DSP's REST API server (that's sigmatcpserver) and hits up the /program-info endpoint to grab the current program info. no cap. π«Ά
π OPTIONS π
-h,--hostHOST β the DSP server hostname or IP address (default:localhost)-p,--portPORT β the DSP server port (default:13141)-t,--timeoutSECONDS β connection timeout, in seconds (default:30)-f,--formatFORMAT β output format:json,text, orbrief(default:text)-v,--verboseβ turns on verbose output, for debugging and detailed progress info π-q,--quietβ suppress the non-error output messages (only the program info shows up)--helpβ show the help message and exit--versionβ show version information and exit
π OUTPUT FORMATS π
- json β raw JSON response straight from the API, perfect for other tools to parse
- text β human-readable formatted output, with labeled fields β¨
- brief β compact single-line output showing the program length and the SHA-1 checksum
π EXAMPLES π
Get program info from your local DSP:
dsp-program-info
Get program info from a remote DSP, in JSON format:
dsp-program-info -h 192.168.1.100 -f json
Get brief info quietly (this one's giving "suitable for scripts"):
dsp-program-info -q -f brief
Get program info with verbose output:
dsp-program-info -v
Monitor program length in a script:
LENGTH=$(dsp-program-info -q -f brief | cut -d' ' -f1)
π EXIT STATUS π
0β Success π1β General error2β Invalid arguments or command-line options4β Connection error β can't reach the DSP API server π5β API error β the server returned an error
π OUTPUT FIELDS π
So the program information includes these fields, bestie:
- Program Length β the size of the currently loaded DSP program, in words (32-bit). It also gets displayed in a human-readable format (KB/MB).
- MD5 Checksum β the MD5 checksum of the DSP program, calculated using signature-based detection. This one's there for compatibility with legacy systems.
- SHA-1 Checksum β the SHA-1 checksum of the DSP program, calculated using length-based detection. This is the preferred one for modern applications, because better performance. slay.
π§ FILES π§
/etc/sigmatcp.confβ SigmaTCP server configuration file
π ENVIRONMENT π
HTTP_PROXY,HTTPS_PROXYβ proxy settings forcurl(if you need them for network access)
β DEPENDENCIES β
curlβ required for making HTTP requests to the DSP API server
π₯ NOTES π₯
This tool needs sigmatcpserver to actually be running on the target DSP system, with the REST API enabled. The default configuration listens on localhost:13141. iykyk.
The checksums are calculated from the currently loaded DSP program in memory β not from any stored profile files. important!!
Program length is reported in DSP words (32-bit units). Wanna convert to bytes? Multiply by 4. math era π
Different checksum algorithms may return different values for the same program, because of how they calculate things (signature-based vs length-based). Not a bug, just vibes.
πΈ SEE ALSO πΈ
dsp-install-profile(1), dsptoolkit(1), sigmatcpserver(1), curl(1)
HiFiBerry DSP documentation: https://www.hifiberry.com/docs/
REST API documentation: /usr/share/doc/hifiberry-dsp/restapi.md
π BUGS π
Report bugs to: https://github.com/hifiberry/hifiberry-dsp/issues
π«Ά AUTHOR π«Ά
HiFiBerry team <info@hifiberry.com>
π COPYRIGHT π
Copyright Β© 2025 HiFiBerry. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
and that's the whole page, bestie!! β¨πππ¦πΈπ π«Ά
this was HiFiBerry DSP toolkit 1.3.2, dated 30 September 2025. mwah. go forth and query that /program-info endpoint π
π¦ where this page comes from
- ubuntu resolute: hifiberry-dsp 1.3.6-1 Β· MIT
- ubuntu stonking: hifiberry-dsp 1.3.13-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms