adafruit / adafruit/Adafruit_CircuitPython_BNO08x
Unprocessable Batch bytes
- Dominant language
- Python
- Stars
- 41
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to get a BNO086 working. I'm getting this error:
```
Adafruit CircuitPython 8.2.9 on 2023-12-06; Raspberry Pi Pico with rp2040
>>>
>>> import board
>>> import busio
>>> from adafruit_bno08x.i2c import BNO08X_I2C
>>> from adafruit_bno08x import BNO_REPORT_ACCELEROMETER
>>> import board
>>> scl=board.GP17
>>> sda=board.GP16
>>> i2c=busio.I2C(scl,sda)
>>> bno = BNO08X_I2C(i2c, address=0x4b)
>>> bno.enable_feature(BNO_REPORT_ACCELEROMETER)
********** Packet *************
DBG:: HEADER:
DBG:: Data Len: 2
DBG:: Channel: SHTP_COMMAND (0)
DBG:: Sequence number: 4
DBG:: Data:
DBG:: [0x04] 0x01 0x0E
*******************************
Traceback (most recent call last):
File "", line 1, in
File "adafruit_bno08x/__init__.py", line 999, in enable_feature
File "adafruit_bno08x/__init__.py", line 803, in _process_available_packets
File "adafruit_bno08x/__init__.py", line 863, in _handle_packet
File "adafruit_bno08x/__init__.py", line 858, in _handle_packet
File "adafruit_bno08x/__init__.py", line 379, in _separate_batch
RuntimeError: ('Unprocessable Batch bytes', 2)
```
I'm able to read data every couple of times, but am often getting error messages like this.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the intermittent failure with the BNO086 over I2C on a Raspberry Pi Pico using the example shown. Start at adafruit_bno08x/__init__.py lines 379, 803, and 858-863, where the traceback reaches _separate_batch, and compare the received packet bytes with the BNO08x protocol. Done means the reported packet no longer causes an unhandled error and repeated sensor reads are reliable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100