I am working with digital discovery device to sniff an I2C bus between several devices. I have tried to use the waveform app and a python script to get the same results, but I cannot get it.
When I run the app I can get the I2C full log or filter it by address, there is no problem with it. (here you have an example caught with the app)
However, when I use the python script using the function " FDwfDigitalI2cRead", I have a couple of issues:
1. FDwfDigitalI2cRead only returns the data carried in the bus avoiding device direction bytes. Is there any possibility to read also the directions? (Next capture data with python script)
2. On the other hand, I have understood that when I set the direction "0xA4" for "FDwfDigitalI2cRead", then the read command just has to return the data referred to this direction. Is my assumption true? In that case, the function is not filtering well the address and returns the data as in the previous question.
I would like to get the following information when I set the address:
Question
Miguel Gorgues
Hi all,
I am working with digital discovery device to sniff an I2C bus between several devices. I have tried to use the waveform app and a python script to get the same results, but I cannot get it.
When I run the app I can get the I2C full log or filter it by address, there is no problem with it. (here you have an example caught with the app)
However, when I use the python script using the function " FDwfDigitalI2cRead", I have a couple of issues:
1. FDwfDigitalI2cRead only returns the data carried in the bus avoiding device direction bytes. Is there any possibility to read also the directions? (Next capture data with python script)
2. On the other hand, I have understood that when I set the direction "0xA4" for "FDwfDigitalI2cRead", then the read command just has to return the data referred to this direction. Is my assumption true? In that case, the function is not filtering well the address and returns the data as in the previous question.
I would like to get the following information when I set the address:
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now