ThiagoFerrao / solum

APIs for OEMs to Create Standalone Applications
https://www.clarius.com
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

`CusStatusInfo` occasionally reports the wrong battery level #5

Open ujrm opened 5 months ago

ujrm commented 5 months ago

Describe the bug CusStatusInfo occasionally reports the wrong battery level. It correctly reports 0. It's very occasional, sometimes you have to wait a long time for it to happen. Quite often it only happens for a couple of seconds and then it corrects itself.

To Reproduce Steps to reproduce the behavior:

  1. Tap Download scanner info
  2. Enable Bluetooth searching
  3. Select probe
  4. Tap Load Selected Scanner Details
  5. Connect to probe's WiFi
  6. Tap Connect
  7. Change Application to "msk"
  8. Tap Load Application
  9. Wait - The console will print out the CusStatusInfo every second

It might take a while (several minutes), but the battery level will incorrectly report as 0 . See attached log.

Environment:

Log CusStatusInfo _CusStatusInfo(battery: 52, temperature: 34, frameRate: 0.0, teeTimeRemaining: 0.0, fan: C._CusFanStatus(rawValue: 1), guide: __C._CusGuideStatus(rawValue: 0), charger: C._CusChargingStatus(rawValue: 0)) CusStatusInfo _CusStatusInfo(battery: 0, temperature: 34, frameRate: 0.0, teeTimeRemaining: 0.0, fan: C._CusFanStatus(rawValue: 1), guide: __C._CusGuideStatus(rawValue: 0), charger: C._CusChargingStatus(rawValue: 0)) CusStatusInfo _CusStatusInfo(battery: 0, temperature: 34, frameRate: 0.0, teeTimeRemaining: 0.0, fan: C._CusFanStatus(rawValue: 1), guide: __C._CusGuideStatus(rawValue: 0), charger: C._CusChargingStatus(rawValue: 0)) CusStatusInfo _CusStatusInfo(battery: 0, temperature: 34, frameRate: 0.0, teeTimeRemaining: 0.0, fan: C._CusFanStatus(rawValue: 1), guide: __C._CusGuideStatus(rawValue: 0), charger: C._CusChargingStatus(rawValue: 0)) CusStatusInfo _CusStatusInfo(battery: 52, temperature: 34, frameRate: 0.0, teeTimeRemaining: 0.0, fan: C._CusFanStatus(rawValue: 1), guide: __C._CusGuideStatus(rawValue: 0), charger: C._CusChargingStatus(rawValue: 0))

clariusk commented 5 months ago

We have not witnessed this before, but will get our test team to try and replicate as well. For now, suggesting to filter out battery levels of 0, since the device will shutdown when battery percentage is < 5%.