Re: /dev/ttyUSB0 communication - shell script - Watchport/H
- From: Ron Johnson <ron.l.johnson@xxxxxxx>
- Date: Tue, 01 Sep 2009 20:11:54 -0500
On 2009-09-01 07:42, Tomek Kruszona wrote:
Ron Johnson wrote:I just Googled "linux listen to serial port", and got severalI'll try it, but I still need to send commands to this sensors. tty port
interesting hits.
From reading those links, this Python snippet *might* work:
import sys
f = open('/dev/ttyUSB0', 'r')
try:
while 1:
l = f.readline()
print l
except:
f.close
should be also properly configured... I've found ckermit software and
picocom which looks promising. We'll see :)
Ah. Your original post only mentioned *monitoring* the "weather machine".
--
Brawndo's got what plants crave. It's got electrolytes!
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- Follow-Ups:
- Re: /dev/ttyUSB0 communication - shell script - Watchport/H
- From: Tomek Kruszona
- Re: /dev/ttyUSB0 communication - shell script - Watchport/H
- References:
- /dev/ttyUSB0 communication - shell script - Watchport/H
- From: Tomek Kruszona
- Re: /dev/ttyUSB0 communication - shell script - Watchport/H
- From: Ron Johnson
- Re: /dev/ttyUSB0 communication - shell script - Watchport/H
- From: Tomek Kruszona
- Re: /dev/ttyUSB0 communication - shell script - Watchport/H
- From: Ron Johnson
- Re: /dev/ttyUSB0 communication - shell script - Watchport/H
- From: Tomek Kruszona
- /dev/ttyUSB0 communication - shell script - Watchport/H
- Prev by Date: Re: Nvidia cards
- Next by Date: Re: libc6-dev dependency issuse
- Previous by thread: Re: /dev/ttyUSB0 communication - shell script - Watchport/H
- Next by thread: Re: /dev/ttyUSB0 communication - shell script - Watchport/H
- Index(es):
Relevant Pages
|