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 ACK/NACK are delayed #1

Open
psolyca opened this issue Nov 20, 2022 · 2 comments
Open

I2C ACK/NACK are delayed #1

psolyca opened this issue Nov 20, 2022 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed needs verification protocol v3 v4

Comments

@psolyca
Copy link
Owner

psolyca commented Nov 20, 2022

From Bus_Pirate created by agatti: BusPirate#18

From http://dangerousprototypes.com/forum/viewtopic.php?f=4&t=8546 mentioned in BusPirate#7:

hello,
i have a big problem using i2c whit the buspirate.
it seems there is a long delay after a start condition and any ACK/NACK.
IT IS ALMOST 2mS long.
and it is getting even longer when the baud rate of the buspirate is set to a lower rate.
normal i2c devises do not seem to care, sofar i could test it.
but i am trying to talk whit a smbus device, and that one does not like those long timeouts.
naamloos

@psolyca psolyca added bug Something isn't working help wanted Extra attention is needed protocol v3 v4 needs verification labels Nov 20, 2022
@psolyca
Copy link
Owner Author

psolyca commented Nov 20, 2022

This might be related to BusPirate#23

@psolyca
Copy link
Owner Author

psolyca commented Nov 20, 2022

This issue is because the Buspirate prints out the I2C events on the UART in a "blocking" way.

Example of an I2C write sequence:

  1. Buspirate puts start condition on I2C line
  2. Buspirate prints "I2CSTART" on the UART
  3. Buspirate puts data on I2C line
  4. Buspirate prints data in ASCII on the UART
  5. Buspirate ACKS/NACKS

All of these printouts to the UART are "blocking" operations and buspirate will pause I2C communications during these events.

Best

Christopher Sam Soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed needs verification protocol v3 v4
Projects
None yet
Development

No branches or pull requests

1 participant