panda.tests package

Subpackages

Submodules

panda.tests.benchmark module

panda.tests.benchmark.print_time(desc)[source]

panda.tests.black_white_loopback_test module

panda.tests.black_white_loopback_test.get_test_string()[source]
panda.tests.black_white_loopback_test.run_test(sleep_duration)[source]
panda.tests.black_white_loopback_test.test_buses(black_panda, other_panda, direction, test_array, sleep_duration)[source]

panda.tests.black_white_relay_endurance module

panda.tests.black_white_relay_endurance.get_test_string()[source]
panda.tests.black_white_relay_endurance.run_test(sleep_duration)[source]
panda.tests.black_white_relay_endurance.test_buses(black_panda, other_panda, direction, test_array, sleep_duration)[source]

panda.tests.black_white_relay_test module

panda.tests.black_white_relay_test.get_test_string()[source]
panda.tests.black_white_relay_test.run_test(sleep_duration)[source]
panda.tests.black_white_relay_test.test_buses(black_panda, other_panda, test_obj)[source]

panda.tests.bulk_write_test module

panda.tests.bulk_write_test.flood_tx(panda)[source]

panda.tests.can_printer module

panda.tests.can_printer.can_printer()[source]
panda.tests.can_printer.sec_since_boot()[source]

panda.tests.check_fw_size module

panda.tests.check_fw_size.check_space(file, mcu)[source]

panda.tests.debug_console module

panda.tests.echo module

panda.tests.elm_car_simulator module

Used to Reverse/Test ELM protocol auto detect and OBD message response without a car.

class panda.tests.elm_car_simulator.ELMCarSimulator(sn, silent=False, can_kbaud=500, can=True, can11b=True, can29b=True, lin=True)[source]

Bases: object

can_add_extra_noise(noise_msg, addr=None)[source]
can_mode_11b()[source]
can_mode_11b_29b()[source]
can_mode_29b()[source]
change_can_baud(kbaud)[source]
join()[source]
property panda
set_enable(on)[source]
start()[source]
stop()[source]
panda.tests.elm_car_simulator.lin_checksum(dat)[source]

panda.tests.elm_throughput module

class panda.tests.elm_throughput.Reader(s, *args, **kwargs)[source]

Bases: Thread

run()[source]

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.

stop()[source]
panda.tests.elm_throughput.read_or_fail(s)[source]
panda.tests.elm_throughput.send_msg(s, msg)[source]

panda.tests.get_version module

panda.tests.health_test module

panda.tests.ir_test module

panda.tests.loopback_test module

panda.tests.loopback_test.get_test_string()[source]
panda.tests.loopback_test.run_test(sleep_duration)[source]
panda.tests.loopback_test.run_test_w_pandas(pandas, sleep_duration)[source]

panda.tests.message_drop_test module

panda.tests.message_drop_test.flood_tx(panda)[source]

panda.tests.read_flash_spi module

panda.tests.read_winusb_descriptors module

panda.tests.reflash_internal_panda module

class panda.tests.reflash_internal_panda.GPIO[source]

Bases: object

HUB_RST_N = 30
STM_BOOT0 = 134
STM_RST_N = 124
panda.tests.reflash_internal_panda.gpio_init(pin, output)[source]
panda.tests.reflash_internal_panda.gpio_set(pin, high)[source]

panda.tests.relay_test module

panda.tests.restore_flash_spi module

panda.tests.spam_can module

panda.tests.spam_can.get_test_string()[source]

panda.tests.standalone_test module

Module contents