Hi,
I am trying to use PySerial to control this camera. Have gotten as far as being able to run the demo program to sync and take pictures, but no luck trying to replicate this in python.
Here is the code thus far:
import serialimport time
ser = serial.Serial(0,57600) #opens the serial connection
sync = 'AA 0D 00 00 00 00' #the sync string
for i in range(0,60): #running the sync command 60 times ser.write(sync) time.sleep(0.1)
print "Printing 1 return character .... "ser.read() #printing 1 return character
Any ideas appreciated.
Thanks,Richard
I am trying to use PySerial to control this camera. Have gotten as far as being able to run the demo program to sync and take pictures, but no luck trying to replicate this in python.
Here is the code thus far:
import serialimport time
ser = serial.Serial(0,57600) #opens the serial connection
sync = 'AA 0D 00 00 00 00' #the sync string
for i in range(0,60): #running the sync command 60 times ser.write(sync) time.sleep(0.1)
print "Printing 1 return character .... "ser.read() #printing 1 return character
Any ideas appreciated.
Thanks,Richard
Comment