Closed EmbeddedMan closed 1 year ago
In addition, any CU,60,X command will reset the the flag. And "QU,60" will return "QU,60,NewThreshold" where NewThreshold is whatever the current low voltage threshold is set to. This value defaults to 0 at boot.
With NewThreshold at 0, this feature is effectively disabled (since no ADC counts will ever be less than 0).
Version 3.0.0-a8 has been merged into the EBF_v3.0.0 branch with this feature added. Ebb.html has also been updated with details on the new commands.
For v3.0.0 EBB firmware: Add "CU,60,NewThreshold". This will tell the EBB to being watching for any input power voltage (at the barrel jack) less than NewThreshold. If any voltage below NewThreshold is seen, then a flag is set.
NewThreshold will be in the same units as the V+_VOLTAGE value returned in the QC command.
To read out the new flag, the QG command will be changed so that it's bit 6 output will reflect the state of the flag. (1=voltage below threshold detected, 0=no voltage below threshold detected). Reading out the flag using QG will reset it to zero.