Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i2c_dw_handle_tx_abort: lost arbitration #142

Open
maxmoeschinger opened this issue Jan 25, 2024 · 0 comments
Open

i2c_dw_handle_tx_abort: lost arbitration #142

maxmoeschinger opened this issue Jan 25, 2024 · 0 comments

Comments

@maxmoeschinger
Copy link

maxmoeschinger commented Jan 25, 2024

Hi, I am trying to retrieve the data from the IMU on the pi sense device using a raspberry pi 5 with raspberry pi OS. When running my python script I can retrieve the data a couple of times before it freezes.

x@x:~/projects/x $ python test.py 
pitch 356.05675506100687 roll 1.9352514987228382 yaw 128.0647901829318
x@x:~/projects/x $ python test.py 
pitch 356.07001800771457 roll 1.978400578474159 yaw 126.6988069904426
x@x:~/projects/x $ python test.py 
pitch 0.0 roll 0.0 yaw 0.0

This is the script I am using (test.py):

from sense_hat import SenseHat
sense = SenseHat()
sense.clear()

o = sense.get_orientation()
pitch = o["pitch"]
roll = o["roll"]
yaw = o["yaw"]
print("pitch {0} roll {1} yaw {2}".format(pitch, roll, yaw))

When I run dmesg I get the following output:

[   18.395653] i2c_designware 1f00074000.i2c: i2c_dw_handle_tx_abort: lost arbitration
[   19.395844] i2c_designware 1f00074000.i2c: controller timed out
[   20.419847] i2c_designware 1f00074000.i2c: controller timed out
[   21.443860] i2c_designware 1f00074000.i2c: controller timed out
[   22.467847] i2c_designware 1f00074000.i2c: controller timed out
[   23.491853] i2c_designware 1f00074000.i2c: controller timed out
[   24.515849] i2c_designware 1f00074000.i2c: controller timed out
[   25.539855] i2c_designware 1f00074000.i2c: controller timed out
[   26.563852] i2c_designware 1f00074000.i2c: controller timed out

Do you know why I am getting this error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant