Close

FW 2.5.0 Serial Commands

A project log for All-In-One Gamma-Ray Spectrometer

More sensitive to gamma radiation than a Geiger counter with the added bonus of telling exactly what's inside your samples!

nuclearphoenixNuclearPhoenix 12/03/2022 at 13:410 Comments

Just a quick update on the firmware side of things. The latest version changed the serial commands a little bit. There are now descriptions with all the commands when you type 'help', which is a feature I wanted to include for a long time now.

On top of that the trailing ' - ' character is no longer needed for command parameters. In the past you would type e.g. 'set display -disable', now you only have to type 'set display disable'!

All the commands that expect additional arguments are highlighted with '< ... >' next to them.

> help
Usage:
    <command> [options]
Commands:
    read spectrum    : Read the spectrum histogram collected since the last reset.
    read settings    : Read the current settings (file).
    read info        : Read misc info about the firmware and state of the device.
    read fs          : Read misc info about the used filesystem.
    set trng         : <toggle> Either 'enable' or 'disable' to enable/disable the true random number generator output.
    set display      : <toggle> Either 'enable' or 'disable' to enable or force disable OLED support.
    set mode         : <mode> Either 'geiger' or 'energy' to disable or enable energy measurements. Geiger mode only counts cps, but has ~3x higher saturation.
    set int          : <mode> Either 'events', 'spectrum' or 'disable'. 'events' prints events as they arrive, 'spectrum' prints the accumulated histogram.
    set reset        : <toggle> Either 'enable' or 'disable' for periodic resets of the P&H circuit. Helps with mains interference to the cap, but adds ~4 ms dead time.
    set averaging    : <number> Number of ADC averages for each energy measurement. Takes ints, minimum is 1.
    set delay        : <number> Delay between trigger and ADC readout of pulses in µs. Set this to ~1/2 of the maximum pulse duration you are expecting. Minimum is 1.
    clear spectrum   : Clear the on-board spectrum hist.
    clear settings   : Clear all the settings and revert them back to default values.
    reboot           : Reboot the device.
>

Discussions