Go Down

Topic: Lib Code For U12 - BQ24195LRGET, SMBUS Question Re: BQ2060, Sercom I/F (Read 263 times) previous topic - next topic

jwestmoreland

Hello All,

Speaking of the battery management unit - is there any lib code anywhere (yet) for this part (U12)?

And also, I'm assuming previous i2master code isn't compatible with the SAMD21G - correct (or not)?

If we want to monitor a device that has an SMBUS I/F - (like a BQ2040, BQ2060, etc.) do we have to follow the procedure for the Sercom I/F since SMBUS isn't 100% compatible with I2C?:

https://www.arduino.cc/en/Tutorial/SamdSercom .

TIA,
John W.


jwestmoreland

Update: OK - this works on the Vidor:

https://github.com/MartyMacGyver/Arduino_I2C_Scanner

I'm getting this:

23:13:20.087 -> Scanning:
23:13:20.087 -> ...
23:13:20.122 ->
23:13:20.122 ->      0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
23:13:20.122 -> 00:          -- -- -- -- -- -- -- -- 0b -- -- -- --        <== that's the BQ2060
23:13:20.122 -> 01: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
23:13:20.122 -> 02: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
23:13:20.122 -> 03: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
23:13:20.122 -> 04: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
23:13:20.122 -> 05: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
23:13:20.122 -> 06: 60 -- -- -- -- -- -- -- -- -- -- 6b -- -- -- --     <== 0x6b is U12 and 0x60 is a uController
23:13:20.122 -> 07: -- -- -- -- -- -- -- --                       
23:13:20.122 ->
23:13:20.122 -> Pausing for 5.00 seconds

So, apparently the Wire I/F works OK...

Regards,
John W.

Go Up