This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EV2400: EV2400 bqcomm - python

Part Number: EV2400
Other Parts Discussed in Thread: BQ76952,

Hi,

The simple code example in this document https://www.ti.com/lit/an/sluaa11a/sluaa11a.pdf?ts=1614072496676&ref_url=https%253A%252F%252Fwww.google.com%252F 

python script referrers to "import bqcomm" where can I find this file? It doesn't install with pip, so assume it is custom to TI

Thanks,

Ken

  • Hi Ken,

    Yes, this is internal to TI, so I don't think we can share this. The reason I used Python in this app note was to give a simple example steps without the requirements for a specific microcontroller.

    There are also MSP430 code examples in the product folder for the BQ76952 that you can download. I also have an unpublished example using an ARM based MCU if needed.

    Best regards,

    Matt

  • Hi Matt,

    thank you for the prompt reply. 

    I wanted to run the EV2400 from a PC to run test scripts, for other i2c devices (i2c expanders) not just the BQ chipsets, so basically as a USB to I2C emulator. The "Advanced Comm" within BQ studio works for this so would have been nice to run from python. Is there any way bqcomm could be released under NDA? or is there a command line interface to do this? 

    Thanks,

    Ken.

  • Hi Ken,

    Unfortunately, there isn't a way to share the bqcomm library. There is a bqTools SDK available that may be useful. I do not have experience personally using this, but it is often requested. You need to contact your local TI sales rep to get the bqTools SDK.

    The BQ76952 does use I2C (not sure if you are using this device), so you should be able to interact with it similarly to other I2C devices on your bus.

    Regards,

    Matt