[Cryptech-Commits] [test/coretest_test_core] 03/08: Adding symbolic name and comment to highlight the serial port device.
git at cryptech.is
git at cryptech.is
Tue Mar 17 13:52:01 UTC 2015
This is an automated email from the git hooks/post-receive script.
paul at psgd.org pushed a commit to branch master
in repository test/coretest_test_core.
commit de1eabf19a92dd6407f4801ffeef44f7d85a9465
Author: Joachim Strömbergson <joachim at secworks.se>
Date: Thu Mar 13 16:08:47 2014 +0100
Adding symbolic name and comment to highlight the serial port device.
---
src/sw/core_tester.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/sw/core_tester.py b/src/sw/core_tester.py
index 0dec165..ed5706e 100755
--- a/src/sw/core_tester.py
+++ b/src/sw/core_tester.py
@@ -57,6 +57,10 @@ import threading
#-------------------------------------------------------------------
VERBOSE = False
+# Name of the serial port device used.
+# CHANGE THIS TO MATCH YOUR DEVICE!
+SERIAL_PORT_NAME = '/dev/cu.usbserial-A801SA6T'
+
# Memory map.
SOC = '\x55'
EOC = '\xaa'
@@ -154,7 +158,7 @@ def write_serial_bytes(tx_cmd, serialport):
def main():
# Open device
ser = serial.Serial()
- ser.port='/dev/cu.usbserial-A801SA6T'
+ ser.port = SERIAL_PORT_NAME
ser.baudrate=9600
ser.bytesize=8
ser.parity='N'
More information about the Commits
mailing list