git commit -m "first commit for v2"
This commit is contained in:
14
Devices/Libraries/Systems/CANopenSocket/tools/get_tools.sh
Executable file
14
Devices/Libraries/Systems/CANopenSocket/tools/get_tools.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
wget "https://github.com/robincornelius/libedssharp/raw/gh-pages/build/OpenEDSEditor-latest.zip"
|
||||
|
||||
if [ $? -eq 0 ] ; then
|
||||
rm -r EDSEditor
|
||||
unzip OpenEDSEditor-latest.zip -d EDSEditor
|
||||
chmod a+x EDSEditor/*.exe
|
||||
rm OpenEDSEditor-latest.zip
|
||||
echo "EDSEditor updated successfully."
|
||||
fi
|
||||
|
||||
echo "Press enter to continue..."
|
||||
read
|
||||
41
Devices/Libraries/Systems/CANopenSocket/tools/run_canopend_candump.sh
Executable file
41
Devices/Libraries/Systems/CANopenSocket/tools/run_canopend_candump.sh
Executable file
@@ -0,0 +1,41 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $1 = "" ]] ; then
|
||||
if [[ $can_device = "" ]] ; then
|
||||
can_device=vcan0
|
||||
fi
|
||||
else
|
||||
can_device=$1
|
||||
fi
|
||||
echo "Using CAN device: '$can_device'"
|
||||
|
||||
# if "can_device" does not exist, create it
|
||||
if ! grep -q $can_device /proc/net/can/rcvlist_all ; then
|
||||
echo "ip link: adding and setting up virtual CAN device named '$can_device'"
|
||||
sudo modprobe vcan
|
||||
sudo ip link add dev $can_device type vcan
|
||||
sudo ip link set up $can_device
|
||||
fi
|
||||
|
||||
echo "Running in background: 'candump -td $can_device"
|
||||
candump -td $can_device&
|
||||
|
||||
|
||||
if [[ $2 = "" ]] ; then
|
||||
if [[ $co_device = "" ]] ; then
|
||||
co_device="../CANopenNode/canopend"
|
||||
fi
|
||||
else
|
||||
co_device=$2
|
||||
fi
|
||||
|
||||
mkdir tmp
|
||||
echo "Running: '$co_device $can_device -i 1 -s \"tmp/dev1_\" -c \"local-/tmp/CO_command_socket\"'"
|
||||
echo "-" > tmp/dev1_lss.persist
|
||||
echo "-" > tmp/dev1_od_comm.persist
|
||||
$co_device $can_device -i 1 -s "tmp/dev1_" -c "local-/tmp/CO_command_socket"
|
||||
|
||||
rm -r tmp
|
||||
|
||||
echo -e "\nFinished, press enter to close..."
|
||||
read
|
||||
11
Devices/Libraries/Systems/CANopenSocket/tools/update_docs.sh
Executable file
11
Devices/Libraries/Systems/CANopenSocket/tools/update_docs.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd ../CANopenNode
|
||||
|
||||
doxygen > /dev/null
|
||||
|
||||
cd ..
|
||||
ln -s CANopenNode/doc/html/index.html
|
||||
|
||||
echo "Press enter to continue..."
|
||||
read
|
||||
Reference in New Issue
Block a user