This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

slave not responding

we are using max30205 for temp monitoring.  the slave is not responding pls. help.

Parents
  • The videos are not really giving me any information, I suggest you get access to a digital analyzer like the Saleae Logic Pro 8/16. It will translate the TWI communication into an easily readable form. 

    Your packet format is wrong, you're missing the 'pointer' byte. See Figure 3.a in https://datasheets.maximintegrated.com/en/ds/MAX30205.pdf

    Also you should not assume that 'm_set_mode_done' is true after a completed TWI transfer, you should verify by reading back the register value before setting the m_set_mode_done flag. Although the TWI bus relies on ACKs from the slave, it does not verify that the slave has received and responded to the data in the way that you want it to, it only ACKs when a byte has been successfully received. 

     

    PS:
    Thanks for sharing a project that compiles out of the box <3

Reply
  • The videos are not really giving me any information, I suggest you get access to a digital analyzer like the Saleae Logic Pro 8/16. It will translate the TWI communication into an easily readable form. 

    Your packet format is wrong, you're missing the 'pointer' byte. See Figure 3.a in https://datasheets.maximintegrated.com/en/ds/MAX30205.pdf

    Also you should not assume that 'm_set_mode_done' is true after a completed TWI transfer, you should verify by reading back the register value before setting the m_set_mode_done flag. Although the TWI bus relies on ACKs from the slave, it does not verify that the slave has received and responded to the data in the way that you want it to, it only ACKs when a byte has been successfully received. 

     

    PS:
    Thanks for sharing a project that compiles out of the box <3

Children
Related