0

Talk to BNO085 throgh UART fail
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Talk to BNO085 throgh UART fail

by Wols on Sun Jul 25, 2021 11:26 pm

Hi I am trying to talk to BNO085 without liabary.
I already try BNO085 UART0-RVC and it work good.

I notice in Adafruit_CircuitPython_BNO08x/examples/bno08x_simpletest_uart.py /23. bno.enable_feature(adafruit_bno08x.BNO_REPORT_ACCELEROMETER)
Every time when send message need to send Buffer Status Query (BSQ).(In Adafruit_CircuitPython_BNO08x/adafruit_bno08x/uart.py/40-45)
So I do the same thing, but when I try talk to BNO085 throgh UART, it never response.
Am I do some thing wrong?
Code: Select all | TOGGLE FULL SIZE
   
    import pyftdi.serialext

    port = pyftdi.serialext.serial_for_url('ftdi://ftdi:232h:FT5URXHU/1', baudrate=115200)

    port.write(b'\x7e') # start
    time.sleep(0.001)
    port.write(b'\x00') # SHTP over UART Contro
    time.sleep(0.001)
    port.write(b'\x7e') # end
    print("done write")
    data = port.read(5)
    print("done read")
    print(data)

And here is the console, no response.
Code: Select all | TOGGLE FULL SIZE
PS C:/python.exe c:/Users/canic/Desktop/BNO085_uart.py
done write
Attachments
S__55820295.jpg
wire connect
S__55820295.jpg (836.8 KiB) Viewed 61 times

Wols
 
Posts: 5
Joined: Wed Mar 31, 2021 4:20 am

Please be positive and constructive with your questions and comments.