# bmu_smoker_can.sh: Script for configuring BMUv2.7 CAN interfaces
# @copyright: Highly Confidential and Proprietary Information. Copyright (c) Zoox
#
# Date Created: October 14, 2019
# Date Edited: January 13, 2020
# Author: dparikh
#
# Author's note: Default for bmu-smoker1.zooxlabs.com

# Configure EMU_CAN
ip link set can0 name EMU_CAN
ip link set EMU_CAN type can bitrate 1000000
ip link set EMU_CAN txqueuelen 4096
# Configure DR3_CAN
ip link set can1 name DR_CAN3
ip link set DR_CAN3 type can bitrate 500000
ip link set DR_CAN3 txqueuelen 4096
# Configure BDY2_CAN
ip link set can2 name BDY_CAN2
ip link set BDY_CAN2 type can bitrate 500000
ip link set BDY_CAN2 txqueuelen 4096
# Bring up all the interfaces
ifconfig EMU_CAN up
ifconfig DR_CAN3 up
ifconfig BDY_CAN2 up
