This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

pc-ble-driver-py : h5_decode error, code: 0x802c, H5 error count

Hi,

I used a NRF52832 to test our product with Python Script.

I enable my notification. I start to receive notification and I have a crash after received first notification.

And the output trace:

Received advertisment report, address: 0x6D0FBA000006, device_name: IoT - Smartsense
Connected to device IoT - Smartsense (Mac : 0x6D0FBA000006)
IMU : 8964813 µs Acc: -6 44 2073 Gyro: 5 1 0
IMU : 8974731 µs Acc: -8 43 2070 Gyro: 5 0 1
IMU : 8984680 µs Acc: -7 43 2071 Gyro: 5 1 1
IMU : 8994598 µs Acc: -7 41 2071 Gyro: 6 1 0
IMU : 9004516 µs Acc: -6 42 2073 Gyro: 6 0 0
IMU : 9014465 µs Acc: -4 40 2069 Gyro: 5 0 0
IMU : 9024383 µs Acc: -2 41 2072 Gyro: 4 0 0
IMU : 9034301 µs Acc: -3 40 2070 Gyro: 5 0 0
IMU : 9044250 µs Acc: -3 39 2068 Gyro: 6 0 0
2019-11-14 14:54:09,347 [19968/LogThread] h5_decode error, code: 0x802c, H5 error count: 1. raw packet: c0 c9 2e 02 07 02 39 00 00 00 00 00 00 00 25 00 01 14 00 d8 27 8a 00 00 00 00 00 fe ff 28 c0

Regards,

Seb

Parents Reply
  • It seems that changing the MTU_SIZE fixed the issue. From 250 (initial code example) to 23.

    class IMU_Collector(BLEDriverObserver, BLEAdapterObserver):
    def __init__(self, adapter):
    super(IMU_Collector, self).__init__()
    self.adapter = adapter
    self.conn_q = Queue()
    self.adapter.observer_register(self)
    self.adapter.driver.observer_register(self)
    self.adapter.default_mtu = 23

    Another Service with a lowest ODR don't failed.

    Something not normal I assumed.

Children
Related