storborg / witmotion

Other
16 stars 13 forks source link

How to get it working with BWT61CL #1

Closed Juwei80 closed 3 years ago

Juwei80 commented 3 years ago

Hello Scott, I recently bought the BWT61CL sensor and found your software. Unfortunately I can't get any gyro data out of this sensor with the debug command with verbose switched on. This is what I get in a high frequency:

# /usr/bin/witmotion-debug  --path /dev/ttyUSB5 --verbose
DEBUG:witmotion.cmd.debug:opening IMU at /dev/ttyUSB5 baudrate 9600
DEBUG:witmotion:starting rx loop, initial state: idle
DEBUG:witmotion:state: idle -> idle, got 0xe
DEBUG:witmotion:state: idle -> idle, got 0x5c
DEBUG:witmotion:state: idle -> idle, got 0x3b
DEBUG:witmotion:state: idle -> idle, got 0xc6
DEBUG:witmotion:state: idle -> idle, got 0xab
DEBUG:witmotion:state: idle -> idle, got 0xd2
DEBUG:witmotion:state: idle -> idle, got 0xf6
DEBUG:witmotion:state: idle -> idle, got 0xc
DEBUG:witmotion:state: idle -> idle, got 0x82
DEBUG:witmotion:state: idle -> idle, got 0xd
DEBUG:witmotion:state: idle -> idle, got 0x64
DEBUG:witmotion:state: idle -> idle, got 0xc

No other messages.... I expect to get some axis level data?

Can you help me getting the data out of this sensor?

Best regards, Juergen

Juwei80 commented 3 years ago

Ah, I got it to work with 115200 baud as described in the datasheet of this sensor. Now I get the data. 👍 Thank's for maintaining this project!