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.

BQ79616EVM-021: BQ79616EVM can't wake up by command sequence

Part Number: BQ79616EVM-021
Other Parts Discussed in Thread: USB2ANY, BQ79616-Q1, BQ79616

Hi,teams,

I want to use  BQAutoEval  GUI  to wake up  BQ79616EVM.

I click 【wake up】,【Auto adress】once,the BQ-EVM can wake up normally.

And the address will pop up normally.

But now, I want to use  command sequence to wake  up the Evm.

EVM supply:18V

I connect BQ79616EVM and PC through USB2ANY.

First, I  click 【communication control】,choose【shutdown all devices】,make the EVM  enter sleep mode. And click【command  sequence】

send command  frame,and I found that the wake up light is not on.The  command  frame is right? Am I missing something?

I will add one more point,I have tried after the EVM is connected normally, first click 【wake up】 on the home page to ensure that the EVm wakes up normally,

and then click 【command sequence】 to send a command frame for automatic addressing. I found that the address does not pop up automatically.

Is there something wrong with the command frame? , the command frame is sent according to the operation steps in the automatic addressing chapter

in "BQ79616-Q1 Software Design Reference", by the way, can you help me find out why the automatic addressing cannot be done? I look forward to your reply.

  • HI,

    To wake up BQ79616 through UART, you'll need to send a wake ping to device, which is a HI-> LOW(>2.5ms)-> HI signal at RX pin.

    The command sequence in the GUI can only send command frame, not ping signal. To send a wake ping with TI GUI, you either click the wake up button, or click the wake button in the communication control tab "PING to bridge device"

  • After the device wakes up, can the GUI send an automatic addressing command for addressing?

  • Yes, auto address is a sequence of command frames which can be done by the command sequence tab in the GUI.

    Hope this helps.

  • I will add one more point,I have tried after the EVM is connected normally, first click 【wake up】 on the home page to ensure that the EVm wakes up normally,

    and then click 【command sequence】 to send a command frame for automatic addressing. I found that the address does not pop up automatically.

    Is there something wrong with the command frame? the command frame is sent according to the operation steps in the automatic addressing chapter

    in "BQ79616-Q1 Software Design Reference", by the way, can you help me find out why the automatic addressing cannot be done?

  • Hi Xi,

    As Ted mentioned, the GUI has a built in autoaddress button you can press instead of making this script from scratch. But if you want to know exactly what these GUI buttons are doing please see command list below:

    1. Broadcast write 0x00 to “ECC_TEST” (0x34C)
    2. Broadcast write 0x01 to “CONTROL1” (0x309)
    3. Broadcast write the address value “n” number of times in increment of 1 starting from 0x00 to “DIR0_ADDR” (0x306), n – no. of devices connected
    4. Broadcast write 0x02 to “COMM_CTRL” (0x308)
    5. Single-device write 0x00 to “COMM_CTRL” (0x308) of base device (0x00)
    6. Single-device write 0x03 to “COMM_CTRL” (0x308) of stack-top device (n-1)
    7. Broadcast read “ECC_TEST” (0x34C)
    8. Broadcast read “DIR0_ADDR” (0x306), to verify the address of each device
    9. Broadcast write 0x03 to “FAULT_RST2” (0x332), to clear communication fault
    10. Broadcast write 0x00 to “COMM_TIMEOUT_CONF” (0x13), to disable timeout and prevent device from reaching SHUTDOWN state

     

     

    GUI Polling Sequence (When Click Start Polling these broadcast read commands will execute  roughly every ~500ms):

    C0 05 36 00 3B 85 (FAULT_SYS)

    C0 05 56 01 D2 45 (CB_COMPLETE)

    C0 05 B6 01 9B 85 (AUX_BAT)

    C0 05 2B 02 B3 14 (BAL_STAT)

    C0 05 30 02 B9 E4 (FAULT_COMM)

    C0 05 3C 03 7D 24 (FAULT_OV1)

    C0 05 AE 03 10 44 (DIETEMP)

    C0 03 18 0F 86 20(CB_CELL_CTRL)

    C0 05 8E 0F 09 81  (GPIOs)

    C0 05 68 21 C3 FD (VCELL main adc readings)

    C0 05 B2 1D 98 8C (AUX_CELL)

    C0 05 8C 01 89 25 (TSREF)

     

    Regards,

    Taylor