Search
Project
General
Profile
Sign in
Register
Home
Projects
Redmine shortcuts
Search
:
MitySOM-335x (ARM Cortex-A8 Based Products)
All Projects
Mity CPU Platforms
»
MitySOM-335x (ARM Cortex-A8 Based Products)
Overview
Activity
Documents
Wiki
Forums
Download (344 Bytes)
RE: SocketCAN configuration
» config_can.sh
Jonathan Cormier
, 01/20/2016 03:24 PM
#! /bin/sh
can_name
=
$1
bitrate
=
$2
if
[
$#
!=
2
]
;
then
echo
"Usage config_can.sh can_name desired_bitrate"
else
# Make sure the can interface is down
ifconfig
$can_name
down
# Setup the can interface
ip
link set
$can_name
type
can bitrate
$bitrate
triple-sampling on
# Bring the can interfae back up
ifconfig
$can_name
up
fi
« Previous
1
2
Next »
(1-1/2)
Go to top
Loading...