firmware icon indicating copy to clipboard operation
firmware copied to clipboard

[Bug]: BatteryLevel not working on RAK 11200 (ESP32 CPU)

Open KevinKW87 opened this issue 2 years ago • 4 comments

Category

Other

Hardware

Rak11200

Firmware Version

1.2.63

Description

Hardware Configuration: RAK11200 + 13300 (1262 Lora) + 12500 (GPS) +19007 (Base Board). 18650 connected to power port. GoalZero Nomad 10 solar panel connected to USB port.

Software configuration: is_always_powered=false. is_router=false. POS_BATTERY=set.

Example position message from unit over MQTT:

{
  "channelId": "LongSlow",
  "gatewayId": "!f71e8b84",
  "packet": {
    "from": -1823672152,
    "to": -1,
    "channel": 177,
    "decoded": {
      "latitudeI": xxx,
      "longitudeI": xxx,
      "altitude": 0,
      **"batteryLevel": 0,**
      "time": 1651685169,
      "locationSource": "LOCSRC_UNSPECIFIED",
      "altitudeSource": "ALTSRC_UNSPECIFIED",
      "posTimestamp": 1651685120,
      "posTimeMillis": 0,
      "altitudeHae": 0,
      "altGeoidSep": 0,
      "pdop": 0,
      "hdop": 0,
      "vdop": 0,
      "gpsAccuracy": 0,
      "groundSpeed": 0,
      "groundTrack": 0,
      "fixQuality": 0,
      "fixType": 0,
      "satsInView": 0,
      "sensorId": 0,
      "posNextUpdate": 0,
      "posSeqNumber": 0
    },
    "id": 2095965523,
    "rxTime": 1651685165,
    "rxSnr": 0,
    "hopLimit": 2,
    "wantAck": false,
    "priority": "BACKGROUND",
    "rxRssi": 0
  }
}

Relevant log output

No response

KevinKW87 avatar May 04 '22 18:05 KevinKW87

@KevinKW87 Could you please confirm if this is a case of the battery not reporting it's % (check the screen), or is it that the data passed over mqtt is malformed (as it is above).

sachaw avatar May 12 '22 12:05 sachaw

Its that the battery isn't reporting its %, I did the malforming to highlight the batteryLevel.

KevinKW87 avatar May 14 '22 20:05 KevinKW87

In the 11200 Spec there's this definition : #define PIN_VBAT WB_A0 (WB_A0 being 36) - The actual voltage divider of the baseboard is connected to AIN0 so that seems correct.

caveman99 avatar May 16 '22 08:05 caveman99

In the 11200 Spec there's this definition : #define PIN_VBAT WB_A0 (WB_A0 being 36) - The actual voltage divider of the baseboard is connected to AIN0 so that seems correct.

Good catch. I also need to audit the SX1262 pin setup on this board, as I measured very low output on my TinySA compared to the RAK-4631 and even an SX1272 T-Beam.

thebentern avatar May 16 '22 12:05 thebentern

Closing as 1.2 is not getting any updates, please re-test on 1.3 and re-open if it is still an issue.

garthvh avatar Aug 23 '22 14:08 garthvh