BSG-001 manual passed failed not run e2e core

5 passed 0 failed 0 not run 5 e2e 0 core

Checking the logging state

A BSG-001 can record its measurements at regular intervals for a number of days. bsg-001 logging shows how the device is set up to record, and how many records it holds.

Checking a device

First discover the device, then pass its address to bsg-001 logging with --address. The address can also be set once for all commands, as explained in choosing the device.

A device at address "AA:BB:CC:DD:EE:FF" reports this logging state:

logging durationrun startedrecord intervalrecords
10 days2026-01-02 03:04:0510 minutes144

Here is the terminal session:

$ bsg-001 logging --address AA:BB:CC:DD:EE:FF
Logging duration: 10 days
Run started: 2026-01-02 03:04:05 UTC
Record interval: 10 minutes
Records: 144

What each line means

The device reports a start time and a record interval even when logging is off, so only the logging duration tells whether it records.

The device keeps all of this in memory that is erased when it loses power. After a power cycle the records are gone, the logging duration is back to 1 day, and the clock is no longer set until a run is started.

Edge cases

A device whose clock was not set

The device forgets the time whenever it loses power, and the tool sets it again each time it starts a run. Until then the start time is not a real date, and the tool shows unknown.

A device at address "AA:BB:CC:DD:EE:FF" reports this logging state:

logging durationrun startedrecord intervalrecords
1 dayunknown10 minutes0

Here is the terminal session:

$ bsg-001 logging --address AA:BB:CC:DD:EE:FF
Logging duration: 1 day
Run started: unknown
Record interval: 10 minutes
Records: 0
A device that measures without recording

A device at address "AA:BB:CC:DD:EE:FF" reports this logging state:

logging durationrun startedrecord intervalrecords
off2026-01-02 03:04:0510 minutes0

Here is the terminal session:

$ bsg-001 logging --address AA:BB:CC:DD:EE:FF
Logging duration: off
Run started: 2026-01-02 03:04:05 UTC
Record interval: 10 minutes
Records: 0
A long run

A device at address "AA:BB:CC:DD:EE:FF" reports this logging state:

logging durationrun startedrecord intervalrecords
31 days2026-12-31 23:59:5960 minutes744

Here is the terminal session:

$ bsg-001 logging --address AA:BB:CC:DD:EE:FF
Logging duration: 31 days
Run started: 2026-12-31 23:59:59 UTC
Record interval: 60 minutes
Records: 744
A reply the tool cannot read

The tool reports an invalid reply instead of printing values it cannot trust.

A device at address "AA:BB:CC:DD:EE:FF" answers the logging state query with a reply that is too short. Here is the terminal session:

$ bsg-001 logging --address AA:BB:CC:DD:EE:FF
Error: Invalid logging state reply.