BSG-001 manual passed failed not run e2e core

18 passed 0 failed 0 not run 3 e2e 15 core

Reading the current measurement

A BSG-001 can be asked at any time for what it is measuring right now. The tool connects to the device, asks once, prints the answer, and disconnects.

Reading a device

First discover the device, then pass its address to bsg-001 read 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 reading:

statusmeasuring timeaverage dose rateone-minute dose ratebattery sensor
measuring0 d 00:12:180.050.50 (1 pulse)198

Here is the terminal session:

$ bsg-001 read --address AA:BB:CC:DD:EE:FF
Status: measuring
Measuring time: 0 d 00:12:18
Average dose rate: 0.05 µSv/h
One-minute dose rate: 0.50 µSv/h (1 pulse)
Battery: 40%

What each line means

Dose rates are in microsieverts per hour and have two decimal places. Quiet indoor background usually gives an average between 0.00 and 0.05 µSv/h.

The device counts pulses minute by minute, so both dose rates change only once a minute, and reading more often shows nothing new. One pulse in a minute amounts to 0.50 µSv/h, and one pulse in ten minutes to 0.05 µSv/h. At background a minute holds no pulse or one, so the one-minute dose rate jumps between 0.00 and 0.50 µSv/h and only the average is meaningful. The device does not send the one-minute dose rate as such. It sends the last minute's pulses spread over ten minutes, which is a tenth of the real rate: 0.05 µSv/h for one pulse. The tool works the pulses back out of that value and shows the rate they amount to over one minute.

The device reports a raw battery sensor value, not a percentage. The tool turns it into one of seven levels, the same way the vendor application does: 100%, 80%, 60%, 40%, 20%, 10% or 1%. The levels suit rechargeable cells, and a device powered over USB without cells shows 1%.

Light reaching the sensor and knocks on the case register as radiation, so a sudden high reading is not always real. A spike leaves the one-minute dose rate after a minute, but stays in the average dose rate for ten minutes.

Edge cases

A device that is not measuring

A device stops by itself when the run reaches the duration it was started with. A stopped device still answers, but it is not measuring, so the tool shows no dose rate. The dose rates it reports are those it held when it stopped, and they do not change until it measures again. Showing them would pass old values off as current ones.

The tool shows how long the last run lasted instead of a measuring time. Its days are the device's count too, so they can include whole days of earlier runs.

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

statusmeasuring timeaverage dose rateone-minute dose ratebattery sensor
stopped12 d 03:04:0513.900.00 (0 pulses)211

Here is the terminal session:

$ bsg-001 read --address AA:BB:CC:DD:EE:FF
Status: stopped
Last run: 12 d 03:04:05
Battery: 100%
How the battery percentage is worked out

Each level covers a range of battery sensor values, and the lowest level is 1%, never 0%.

For each battery sensor value, the tool shows the percentage in this table.

battery sensorpercentage
300100%
211100%
21080%
20580%
20460%
20060%
19940%
19640%
19520%
19420%
19310%
19110%
1901%
991%
01%
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 reading query with a reply that is too short. Here is the terminal session:

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