# can_config_template.sh: Template for configuring HIL Tester CAN interfaces
# @copyright: Highly Confidential and Proprietary Information. Copyright (c) Zoox
#
# Date Created: February 7, 2020
# Author: emiddleton
#
# Author's note: Adjust to your system requirements. The info below defaults for
# tbc-smoker1

# Configure BDY_CAN1
ip link set can0 name BDY_CAN1
ip link set BDY_CAN1 type can bitrate 500000 restart-ms 100
ip link set BDY_CAN1 txqueuelen 4096
# Configure BDY_CAN2
ip link set can1 name BDY_CAN2
ip link set BDY_CAN2 type can bitrate 500000 restart-ms 100
ip link set BDY_CAN2 txqueuelen 4096
# Bring up all the interfaces
ifconfig BDY_CAN1 up
ifconfig BDY_CAN2 up
