Pixhawk 6X not showing battery stats

Hey there,

I’m unable to see the battery stats in QGC.
I’m using a Pixhawk 6X with the Holybro PM02D power module connected to the Power 1 port.

These are the settings and params

This the MAVlink message for battery status

In QGroundControl, can you check the start output in Analyze Tools → MAVLink shell: then type dmesg.

I’m looking for any ina_ output which is the driver starting.
In theory, it should auto-detect the module by default but it looks like that’s not working.

What’s your PX4 version?

You can also try to force the start of the driver using the params SENS_EN_INA226, SENS_EN_INA228, SENS_EN_INA238 depending on which one you have.

Thanks. It worked after setting SENS_EN_INA228. I was using SENS_EN_INA226 earlier as default.

Sharing the logs for reference.

NuttShell (NSH) NuttX-11.0.0
nsh> dmesg
HW arch: PX4_FMU_V6X
HW type: V6X
HW FMUM ID: 0x003
HW BASE ID: 0x000
PX4 git-hash: 1dacb4cdef2d7145754fc788fa8dc482eed74b40
PX4 version: Release 1.14.3 (17695743)
OS: NuttX
OS version: Release 11.0.0 (184549631)
OS git-hash: de41e7feaeffaec3ce65327e9569e8fdb553ca3d
Build datetime: May 30 2024 03:33:40
Build uri: localhost
Build variant: default
Toolchain: GNU GCC, 9.3.1 20200408 (release)
PX4GUID: 000600000000343633363432510300420019
MCU: STM32H7[4|5]xxx, rev. V
INFO  [param] selected parameter default file /fs/mtd_params
INFO  [param] importing from '/fs/mtd_params'
INFO  [parameters] BSON document size 2268 bytes, decoded 2268 bytes (INT32:42, FLOAT:65)
INFO  [param] selected parameter backup file /fs/microsd/parameters_backup.bson
Board architecture defaults: /etc/init.d/rc.board_arch_defaults
Board defaults: /etc/init.d/rc.board_defaults
Loading airframe: /etc/init.d/airframes/4014_s500
INFO  [dataman] data manager file '/fs/microsd/dataman' size is 62560 bytes
rgbled_is31fl3195 #0 on I2C bus 1 (external) address 0x54
INFO  [px4io] IO FW CRC match
Board sensors: /etc/init.d/rc.board_sensors
ina228 #0 on I2C bus 1 (external) address 0x45
INFO  [ina228] Failed to init INA228 on bus 2, but will try again periodically.
ina228 #1 on I2C bus 2 (external) address 0x45
bmi088_accel #0 on SPI bus 3 rotation 4
bmi088_gyro #0 on SPI bus 3 rotation 4
icm42688p #0 on SPI bus 2 rotation 6
icm42670p #0 on SPI bus 1 rotation 10
bmm150 #0 on I2C bus 4 (external) address 0x10
ist8310 #0 on I2C bus 1 (external) address 0xE rotation 10
bmp388 #0 on I2C bus 4 (external) address 0x77
bmp388 #1 on I2C bus 2 (external) address 0x76
WARN  [SPI_I2C] ms5611: no instance started (no device on bus?)
WARN  [SPI_I2C] Already running on bus 1
ekf2 [751:237]
Starting Main GPS on /dev/ttyS0
Starting MAVLink on /dev/ttyS6
INFO  [mavlink] mode: Normal, data rate: 1200 B/s on /dev/ttyS6 @ 57600B
Starting MAVLink on ethernet
INFO  [mavlink] mode: Normal, data rate: 100000 B/s on udp port 14550 remote port 14550
INFO  [rc_input] valid device required
ERROR [rc_input] Task start failed (-1)
INFO  [logger] logger started (mode=all)

NuttShell (NSH) NuttX-11.0.0
nsh> WARN  [mavlink] no broadcasting address found
WARN  [health_and_arming_checks] Preflight Fail: Press safety button first
WARN  [health_and_arming_checks] Preflight Fail: Press safety button first
INFO  [gps] u-blox firmware version: SPG 4.04
INFO  [gps] u-blox protocol version: 32.01
INFO  [gps] u-blox module: NEO-M9N
WARN  [health_and_arming_checks] Preflight Fail: Press safety button first
WARN  [health_and_arming_checks] Preflight Fail: Press safety button first
2 Likes

Great, thanks for the follow up.