Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gf-emc-test-suite
Manage
Activity
Members
Labels
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SECO Northern Europe
Tools
gf-emc-test-suite
Commits
d5662aa8
Commit
d5662aa8
authored
7 years ago
by
Jonas Höppner
Browse files
Options
Downloads
Patches
Plain Diff
ltp-test-suite, refs #28408
* Use adapted canecho
parent
5decf82e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/canecho
+2
-20
2 additions, 20 deletions
scripts/canecho
with
2 additions
and
20 deletions
scripts/canecho
+
2
−
20
View file @
d5662aa8
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment