You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for all your effort and your very nice smbus2 interface for python, which will hopefully help me with my problem to interface a 3d magnetic field amr sensor. Unfortunately, I don't really know, whether it is possible to use your package to solve my problem. Is smbus2 using i2c_rdwr able to distinguish between first and repeated starts? Sorry, but I didn't really get this from your documentation / examples and I hope that you could just give me a hint, how I can get the sensor running. I already opened a discussion showing my C code I want to port to python on stack overflow:
@sdrck maybe you've already tried since your question is already 6 days old?
In smbu2s you don't deal with the start and stop bits like in the C example. However, the i2c_rdwr() method sends a repeated start in between each i2c_msg object payload you provide as inputs to it. The C example you provide is a bit like example 6 in the readme. Try to reconstruct it with a series of writes and reads you pass in to i2c_rdwr and see where that takes you.
Dear @kplindegaard,
Thank you for all your effort and your very nice smbus2 interface for python, which will hopefully help me with my problem to interface a 3d magnetic field amr sensor. Unfortunately, I don't really know, whether it is possible to use your package to solve my problem. Is smbus2 using i2c_rdwr able to distinguish between first and repeated starts? Sorry, but I didn't really get this from your documentation / examples and I hope that you could just give me a hint, how I can get the sensor running. I already opened a discussion showing my C code I want to port to python on stack overflow:
https://stackoverflow.com/questions/55987807/how-to-communicate-with-mc3416xpj-via-pythons-smbus-i2c-interface
I really would appreciate if someone could help me. Thank you in advance.
Kind regards!
The text was updated successfully, but these errors were encountered: