r4609 - in developers: . roh
roh at docs.openmoko.org
roh at docs.openmoko.org
Tue Aug 26 03:48:15 CEST 2008
Author: roh
Date: 2008-08-26 03:48:14 +0200 (Tue, 26 Aug 2008)
New Revision: 4609
Added:
developers/roh/
developers/roh/CHY48R_test.py
Log:
- first working hack to get data from this DVM
Added: developers/roh/CHY48R_test.py
===================================================================
--- developers/roh/CHY48R_test.py (rev 0)
+++ developers/roh/CHY48R_test.py 2008-08-26 01:48:14 UTC (rev 4609)
@@ -0,0 +1,17 @@
+# <insert GPLv2 foo here>
+# (c) Joachim Steiger <roh at openmoko.org>
+# protocoll RE form serial log
+import serial
+
+ser = serial.Serial('/dev/ttyUSB0', 9600, timeout=0.1,
+ parity=serial.PARITY_EVEN, rtscts=1)
+
+print ser.portstr
+
+ser.write('%FFFR\r\n')
+ser.write('%FFFR\r\n')
+while (1):
+ print(ser.read(50))
+ ser.write('#001N\r\n')
+
+ser.close()
More information about the commitlog
mailing list