Jump to content
  • 0

I2C issues with python script


Miguel Gorgues

Question

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)

image.png.f9cdacde7c206119edc6b78ad44cd103.png 

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)

image.png.68c6725adfddb18f3811f7830186f52d.png

        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:

image.png.d8c44653cac93182f884cd5286c08e20.png

 

Edited by Miguel Gorgues
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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...