I'm using a CMUCam4 connected to the usb port. So far I've tried this:
import serial cam = serial.Serial("/dev/ttyUSB0",19200) cam.write("GV \r") #call get version result = cam.readline()
The problem is python freezes when I use
Any suggestions ? I'm using Raspian Wheezy
UPDATE I've tried lenik's suggestion(using the timeout parameter) and it did help: with timeout 0 the program no longer freezes. However I can getting nothing back.
I've tried some other approaches: installing openframeworks and modifying the serialExample but again, not errors, but no data: just silence.
Eventually I've managed to get Processing 1.5.1 as well running, slow though, with the serial library (hacky .so and .jar replacing was needed), but yet again, no mesages.
I'm starting to think there's some sort of user limitation, output being piped somewhere else or something. I'm new to linux so a bit lost a the moment.
How can I read values from a serial port on the Raspberry PI ? Thanks!