You are not logged in.
Pages: 1
I have a device(Arduino) that is sending out data via serial(dev/ttyUSB0) how can I read this data with a bash script?
What commands might I use to view the output?
thanks
Offline
Depending on the baud rate and such you might be able to
# cat /dev/ttyUSB0
i.e. use the file as any input file.
(I've done that with a serial->usb converter)
Last edited by tlvb (2009-12-31 12:33:38)
I need a sorted list of all random numbers, so that I can retrieve a suitable one later with a binary search instead of having to iterate through the generation process every time.
Offline
Do you need to use bash? What end result are you trying to achieve?
I have a couple of little apps that process serial data, I can modify one for you if you would like.
Just let me know what you want it to do..
Offline
I was doing something with serial data coming from an arduino and was having to use processing which was unecessary overhead
Offline
Generally what I do is write a quick app in c to read the serial data, process it, and report anything I need.
If I don't need to process it and just want to see the results I have a minicom type app I wrote (jcomm) that
I use to send/recv data for use with AVRs.
Offline
Pages: 1