-
Notifications
You must be signed in to change notification settings - Fork 92
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 scanner : Wrong address shown ? #102
Comments
I confirm the address returned by HydraFW is an I2C 7bits address (and not 8bits) like in your example 0x3c which is correct. I confirm it will be better to provide details like on BusPirate including both 7bits address and 8bits address with R & W address for clarity purpose. See code https://github.com/hydrabus/hydrafw/blob/master/src/hydrabus/hydrabus_mode_i2c.c#L314
I have updated the Wiki about that Your feedback is welcome |
Hey, Many thanks for clarification. |
Proposal is to replace line https://github.com/hydrabus/hydrafw/blob/master/src/hydrabus/hydrabus_mode_i2c.c#L319: |
Fix committed to master |
Hi,
I'm happy with my new Hydrabus. Lot of protocol supported and such a nice documentation around.
But today, i was working on i2c related stuff and got a weird bug.
When i was running the scan command hydrabus returned
0x3c
.But after trying to send some data to this address i always got NACK.
So, after some time passed to check everything on my wiring/parameters i decided to fire up my Bus Pirate to check.
I've ran the scan function and get this :
Searching I2C address space. Found devices at: 0x78(0x3C W) 0x79(0x3C R)
So i decided to look around to understand whats going on, why this address is totally wrong..
And finally i got the answer.
I2C address is coded on 7 bit but it seem that HydraFW is showing in in 8bit.
It can be pretty cool to modify this in future version to use similar output as BusPirate because it's more trivial.
The text was updated successfully, but these errors were encountered: