# bbc_config.sh: Template for configuring BBC Smoke HIL Tester CAN interfaces
# @copyright: Highly Confidential and Proprietary Information. Copyright (c) Zoox

ifconfig BMS_CAN down
ifconfig GTC_CAN down
# Configure BMS_CAN
ip link set can1 name BMS_CAN
ip link set BMS_CAN type can bitrate 500000 restart-ms 100
ip link set BMS_CAN txqueuelen 4096
# Configure GTC_CAN
ip link set can2 name GTC_CAN
ip link set GTC_CAN type can bitrate 50000 restart-ms 100
ip link set GTC_CAN txqueuelen 4096
ifconfig BMS_CAN up
ifconfig GTC_CAN up
