Weird response BNO085 sensor

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
MGinfra
 
Posts: 13
Joined: Fri Dec 16, 2022 8:17 am

Weird response BNO085 sensor

Post by MGinfra »

Hello everyone,

I've been using the BNO085 accelerometer, and it has working fine till now. I requested many different type of reports and had no problem.

Suddenly the sensor did not respond as usual. When I send a request to initialize the sensor (reset), I get a continuous full report over and over again, and don't receive the requested sensor report.

I tried to unplug and reconnect several times but the problem persists.

This is the reponse:

Code: Select all

7e01  
1401 0000 00
01 0400 0000 00
80 0631 2e30 2e30 00
02 0200 01
03 02ff 7f
04 0200 01
05 02ff 7f
08 0553 4854 5000 
0601 00
09 0863 6f6e 7472 6f6c 00
01 0401 0000 00
08 0b65 7865 6375 7461 626c 6500 
0601 01
09 0764 6576 6963 6500 
0104 0200 0000 
080a 7365 6e73 6f72 6875 6200 
0601 02
09 0863 6f6e 7472 6f6c 00
06 0103 
090c 696e 7075 744e 6f72 6d61 6c00 
0701 04
09 0a69 6e70 7574 5761 6b65 00
06 0105 
090c 696e 7075 7447 7972 6f52 7600 
8006 312e 312e 3000 
8164 f810 f504 f310 f110 fb05 fa05 fc11 ef02
010a 020a 030a 040a 050e 060a 0710 080c
090e 0a08 0b08 0c06 0d06 0e06 0f10 1005
110c 1206 7e

I am not using the library provided by Adafruit because it is not supported on my machine. So I get the binary code and parse it afterwards.

I made sure that the sensor is correctly configured via the serial port.

I looked into the documentation to try to detect any error, but I have not found what is wrong and how to fix it.

Any help would be very much appreciated.

User avatar
gammaburst
 
Posts: 1013
Joined: Thu Dec 31, 2015 12:06 pm

Re: Weird response BNO085 sensor

Post by gammaburst »

Hi MGinfra,
Are you still working with this project?
viewtopic.php?p=954452&hilit=mginfra#p954452

Your hex code is a BNO085 advertisement message. Is sends that message when you reboot it. Your message is 48 bytes shorter than the one I listed here:
viewtopic.php?p=953477#p953477

Try to revert your project to whatever you had working in the past.
If you've already done that, then I guess begin replacing things until it works as before.
Or give more info (a LOT more info) so folks here can understand what you're doing.

The tricks that I showed you in our previous discussion were an enormous simplification of the BNO085's communication protocol. The tricks could be unreliable.

Consider getting a CircuitPython or Arduino microcontroller that's capable of running Adafruit's BNO085 library. That way you can at least confirm your hardware is still working. Then examine how it works, and compare it to what you're doing.

User avatar
MGinfra
 
Posts: 13
Joined: Fri Dec 16, 2022 8:17 am

Re: Weird response BNO085 sensor

Post by MGinfra »

Hello gammaburst,

Yes, still the same project. I have not changed much, and whenever I suspect anything unusual, I run the simple bash file with the basic commands. But this time, nothing worked nor made sense.

I think I am just gonna use the RVC mode where I continuously get the euler angles and quaternion. At least it is a more stable configuration.

User avatar
gammaburst
 
Posts: 1013
Joined: Thu Dec 31, 2015 12:06 pm

Re: Weird response BNO085 sensor

Post by gammaburst »

Weird. Something changed.
If you could capture the Tx and Rx serial data beginning at startup, annotated with timestamps, maybe we could study it and figure out what's wrong.
Or as you suggest switch to UART-RVC mode. It sure is simple. Remember:
- RVC outputs Euler angles and XYZ accelerometer. No quaternion.
- RVC outputs yaw angle relative to your startup orientation, not relative to magnetic north.

User avatar
MGinfra
 
Posts: 13
Joined: Fri Dec 16, 2022 8:17 am

Re: Weird response BNO085 sensor

Post by MGinfra »

I think I know what went wrong.
I use simple female/female connectors that connect the sensor to an USB/TTL adapter. The one connected to the P1 pin was weared down/was not well attached. So the sensor was powered on, can listens and answers, but because the mode was not clear (1 is for UART, 0 is for RVC, and the others have probably another functions), then I got this weird response.

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”