Quote:
Originally Posted by Mario Blunk
But, I need a bash command like:
Code:
echo "start" "byte1" "byte2" "stop" > /dev/i2c_xyz
|
Maybe not exactly like what you have there, but "that" is the bash command form you'd use. You very much can echo to a port like ttyS0 for example:
Code:
echo "abc" > /dev/ttyS0
What I think you're looking for is how to echo non-printing characters using echo. I believe you would do something like this:
Code:
echo \x61\x62\x63 > /dev/ttyS0
And that would echo the "abc", but just using HEX. And therefore you could also echo HEX patterns which are non-printable.