RE: Accessing USB thermometer sensor

"Tosoni" <[email protected]>
Newsgroups org.kernel.vger.linux-c-programming,org.kernel.vger.linux-serial
Message-ID <[email protected]>
> the right direction to be able to read the temperature from command
> line?
> Josh
>
Reading a serial device from the commannd line is not easy.
First because each command you type closes the port after running and so it
flushes buffers.

I would suggest using shell parenthesis to group the commands
Use stty to set the port to raw mode etc.
Use 'echo' and 'dd' which is like 'cat' but much more configurable for
buffer sizes
something like:
( stty 9600 raw; echo 'request'; dd bs=1 count=10 >response.out)
</dev/serialusb >&0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.