I also apologize for commenting as an answer (however, 300 characters without advanced formatting was not likely going to cut it for a response).
First off, let me say that I understand that unix command hackery isn't everyone's cup of tea. A simple helper program, such as this Python equivalent to my example one-liner does the same job just as well. As with the unix command, you may need to change the serial device name.
One the other hand, if you do want to get this working from the command line...
I assume you intentionally changed /dev/ttyACM0 to /dev/ttyUSB0. However, you may still want to check your device name and suffix number. I also assume you intentionally changed the - to STDOUT. Those changes aside, I do see a few potential typos:
1,1 s/^./raw\r\n\r\n/
should read:
1,1 s/^.*/raw\r\n\r\n/
(i.e. it's missing a star)
s/([0-9])/
should read:
s/\([0-9]*\)/
(i.e. missing a star and some quoting backslashes)
and your:
"type":std_msgs\/Int64"
is missing a quote after the :, it should read:
"type":"std_msgs\/Int64"
finally (and this may be an intentional omission on your part) your orison is missing the final:
| nc localhost 9090
All that said, you can copy the exact orison (sans your device changes) from this pastebin, mentioned in the video.
I want to send the 'x' 'y' 'z' coordinates as (char) from uC to ROS ..
I presume you're referring to http://www.ros.org/wiki/rosserial. Could you provide some background into what problems you're having?
Hmm. I am referring to the code in the link .. I just found out that it is working, but it is taking 30 seconds or more to receive data.. it takes data for some time and after few seconds, it publishes all .. is it possible to make it more nearer to real time.. should i change rcvBufSize..?
When i set rcvBufSize to 1, i dont get any true response, it keeps on giving data = ' ' as output to rostopic echo uc0Response.. when i set rcvBufSize to 5 , I get response in group of 4 without loss of any data..but it take more than 20 seconds to show up on the screen..
is it normal to get such slow data fetching and publishing?