From 50900956ad806dc2acfa187a2ae8bb9823a0a769 Mon Sep 17 00:00:00 2001 From: klaute Date: Tue, 27 Sep 2016 12:00:55 +0200 Subject: [PATCH] Multiplexer control script modified to get it working on windows. --- pcb/USB2SerialMux.kicad_pcb | 7 +------ pcb/USB2SerialMux.pro | 4 ++-- tools/muxctrl.py | 5 ++++- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/pcb/USB2SerialMux.kicad_pcb b/pcb/USB2SerialMux.kicad_pcb index 78053c0..c536483 100755 --- a/pcb/USB2SerialMux.kicad_pcb +++ b/pcb/USB2SerialMux.kicad_pcb @@ -3,7 +3,7 @@ (general (links 130) (no_connects 0) - (area 123.956999 89.993 192.560334 117.376333) + (area 124.409999 91.389999 190.296001 116.890001) (thickness 1.6) (drawings 8) (tracks 651) @@ -281,11 +281,6 @@ (net 71 /RESET)) (pad 6 smd rect (at 3.302 -5.08 270) (size 3 1) (layers B.Cu B.Paste B.Mask) (net 1 GND)) - (model Pin_Headers.3dshapes/Pin_Header_Straight_2x03.wrl - (at (xyz 0.05 -0.1 0)) - (scale (xyz 1 1 1)) - (rotate (xyz 0 0 90)) - ) ) (module Housings_SSOP:TSSOP-16_4.4x5mm_Pitch0.65mm (layer B.Cu) (tedit 579A4441) (tstamp 5789E0C1) diff --git a/pcb/USB2SerialMux.pro b/pcb/USB2SerialMux.pro index e27dae5..857685a 100755 --- a/pcb/USB2SerialMux.pro +++ b/pcb/USB2SerialMux.pro @@ -1,4 +1,4 @@ -update=25.08.2016 18:28:32 +update=27.09.2016 11:23:30 version=1 last_client=kicad [cvpcb] @@ -86,7 +86,7 @@ LibName34=crystal [schematic_editor] version=1 PageLayoutDescrFile= -PlotDirectoryName= +PlotDirectoryName=usb2serialmux_sch.svg SubpartIdSeparator=0 SubpartFirstId=65 NetFmtName= diff --git a/tools/muxctrl.py b/tools/muxctrl.py index 7e091e4..81ec6e7 100755 --- a/tools/muxctrl.py +++ b/tools/muxctrl.py @@ -310,9 +310,12 @@ def openSerialDevice(d): # Why 115200? Because the host defines the baudrate for the USB serial connection. try: + if "com" in d.lower(): + d = "\\\\.\\" + d + ser = serial.Serial(d, 115200, timeout=0) except: - print "ERROR: Can't open the serial device " + device + print "ERROR: Can't open the serial device " + d exit(1) #####