Skip to content
Snippets Groups Projects
Commit d5662aa8 authored by Jonas Höppner's avatar Jonas Höppner
Browse files

ltp-test-suite, refs #28408

* Use adapted canecho
parent 5decf82e
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
# This script may be used as echo server on an other device to reply
# This script may be used to start the echo server on an other device to reply
# to the can test in testcases/bin/can
ifconfig can0 down
canconfig can0 bitrate 125000
ifconfig can0 up
candump | while read msg;
do
reply=$( echo ${msg:12} | sed -e 's/[0-9a-f]\+/0x&/g')
case $msg in
"<0x100>"*)
replyid=0x101
;;
"<0x001>"*)
replyid=0x101
;;
*)
continue
;;
esac
cansend can0 -i ${replyid} ${reply} >/dev/null
done
canecho --echoid=0x100 can0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment