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.

BQ40Z80EVM-020: Can't connect through Battery Management studio or Python scripts

Part Number: BQ40Z80EVM-020
Other Parts Discussed in Thread: EV2400, BQSTUDIO

Tool/software:

I'm trying to use the BQ40Z80EVM-020 and having a hard time connecting.  So far I have:

  • updated the onboard EV2400 firmware to version 0.32
  • Tried external EV2400, which successfully updated to firmware version 0.32
  • Tried connecting with batteries disconnected and 3s batteries connected to J12
  • try to connect with Battery Management studio
    • selecting 4800_0_02-bq40z80.bqz chip
      • I get a warning: "The detected devie is not compatible with this application!..."
    • Try to scan or get info from the device results in the Battery Management Studio application crashing or getting the message "No acknowledgement from device" . 
    • Here are some communications signals from the SMBD1 and SMBC1 jumpers that jumper from external to internal EV2400
  • Try the Python API example and get the following logs:

PS C:\Program Files (x86)\Texas Instruments\BQ-BATTERY-PROGRAMMER-SW\BQ-BMS-PROGRAMMER-SW\Python_API> & 'C:\Users\COSMED USER\AppData\Local\Programs\Python\Python313-32\python.exe' .\PythonAPIExample.py
2147483647
32

Testing Connect
Connecting...
Failed to open connection. Windows error code 0x5
Failed to open connection. Windows error code 0x20
Failed to open connection. Windows error code 0x20
Failed to open connection. Windows error code 0x20
Failed to open connection. Windows error code 0x20
Failed to open connection. Windows error code 0x20
Failed to open connection. Windows error code 0x5
Failed to open connection. Windows error code 0x5
Failed to open connection. Windows error code 0x5
Failed to open connection. Windows error code 0x20
Failed to open connection. Windows error code 0x20
Failed to open connection. Windows error code 0x5
Failed to open connection. Windows error code 0x20
Failed to open connection. Windows error code 0x20
Failed to open connection. Windows error code 0x5
Error: Adapter not found!. Error code = 302
Connect result:
Connected = False

Testing SMBusCommand
Failed to open connection. Windows error code 0x3
Failed to reconnect to . Error code = 311
SMBusCommand result:
61
Error 61 Description: 61 ERROR_HANDLE_NOT_INIT // The adapter USB connected was not initialized

Testing SMBusWriteWord
Failed to open connection. Windows error code 0x3
Failed to reconnect to . Error code = 311
SMBusWriteWord result:
61

Testing SMBusReadWord
Failed to open connection. Windows error code 0x3
Failed to reconnect to . Error code = 311
SMBusReadWord result:
Failed communication with error code 61
Error 61 Description: 61 ERROR_HANDLE_NOT_INIT // The adapter USB connected was not initialized

Testing SMBusWriteBlock
Failed to open connection. Windows error code 0x3
Failed to reconnect to . Error code = 311
SMBusWriteBlock result:
61

Testing WaitMilliseconds

Testing SMBusReadBlock
Failed to open connection. Windows error code 0x3
Failed to reconnect to . Error code = 311
SMBusReadBlock result:
Failed communication with error code 61

done
PS C:\Program Files (x86)\Texas Instruments\BQ-BATTERY-PROGRAMMER-SW\BQ-BMS-PROGRAMMER-SW\Python_API> & 'C:\Users\COSMED USER\AppData\Local\Programs\Python\Python313-32\python.exe' .\PythonAPIExample.py

System:

- Windows 11 Pro

- Battery Management Studio Version: 1.3.101.1

Questions:

- Is there a schematic or design files for the bq40z80EVM-020?  I'm trying to monitor the signals going to the chip from the EV2400 and want to be sure I'm monitoring the correct signals.

- Anything else I should test?

  • Hello Shane,

    The question has been assigned and is currently under review.

    Thank you,
    Alan

  • Hi Shane,

    The EVM schematic can be found on page 22 of the document attached:

    https://www.ti.com/lit/pdf/sluubz5

    If the device is correctly functioning, bqStudio should auto recognize the device and open without needing to chose an option. Batteries or a power source will need to be connected to the cell connections, along with the BAT pin being correctly powered. Based on the amount of cells in use, please follow the chart below on how to connect including what to do with the rest of the cell connections:

    Once this is done, you will have to press the WAKE button on the EVM before opening bqStudio. Please let us know if this allows you to open bqStudio.

    Regards,

    Anthony

  • I followed your instructions and managed to connect to the chip by pressing the Wake button multiple times and using the `Scan` functionality.

    I can send a few commands and then the chip disconnects after ~10 seconds.  I can also see the output voltage appear at Pack+/- for ~3 seconds before turning off when I press the wake button.

    I've tried moving/remove a few jumpers like J5 PRESS and PDSG, but the behavior seems to be the same.

  • Hi Shane,

    I believe the gauge is entering shutdown because in default it is expecting 6 cells to be attached. While holding the wake button to keep the gauge out of shutdown, please go to Cell Configuration in the data flash and change this to 3 for 3 cells.

    Regards,

    Anthony