BTS7040 smoke test user guide

The BTS7040 smoke test,smoke_bts7040, allows read and log current measurements. This smoke test was written specific to power distribution. To properly use the smoke test, user will need to customize projects/smoke_bts7040/src/main.c in firmware_xiv.

Running the smoke test

Once the BTS7040s have been connected to the power distribution board and the smoke test has been customized accordingly, simply do

make program PROJECT=smoke_bts7040

Customizing the smoke test

The smoke test can be performed on a single or multiple BTS7040

Configureable item:

  • CURRENT_MEASURE_INTERVAL_MS: wait time between each set of readings

  • IS_FRONT_POWER_DISTRO: set to true for front and false for rear power distribution

  • s_test_channels: set of channels to be tested, contains the indices of the BTS7040 in front/rear HW config

Index

Front

Rear

Index

Front

Rear

0

Main driver display

BMS carrier

1

Daytime running lights

Motor controller interface

2

Parking brake

Charger

3

Spare 1

Spare 5

4

Car horn

Spare 6

5

Speaker

Spare 7

For example, with s_test_channels[] = { 0, 4 } and IS_FRONT_POWER_DISTRO = true, the test will read and log from the main driver display + car horn, which corresponds to index 0 and 4 from the table.