Announcement
Collapse
No announcement yet.
python interface
Collapse
X
-
The problem is that you are sending the synchronize signal as a string. Have you tried sending the sync signal as a 6 byte hex array(see section 3.2 in the manual)?
-
python interface
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,RichardTags: None
Leave a comment: