aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2014-03-13 16:08:47 +0100
committerJoachim StroĢˆmbergson <joachim@secworks.se>2014-03-13 16:08:47 +0100
commitde1eabf19a92dd6407f4801ffeef44f7d85a9465 (patch)
treed4c408f9f45ba38b8814a36157f2b4ff9a011b1c /src
parent0e51a3e262b691e1d2dc28fa4f1b21fae58a634c (diff)
Adding symbolic name and comment to highlight the serial port device.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/sw/core_tester.py6
1 files changed, 5 insertions, 1 deletions
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'