Multiplexer control script modified to get it working on windows.

This commit is contained in:
klaute 2016-09-27 12:00:55 +02:00
parent 26ae3a7381
commit 50900956ad
3 changed files with 7 additions and 9 deletions

View file

@ -3,7 +3,7 @@
(general (general
(links 130) (links 130)
(no_connects 0) (no_connects 0)
(area 123.956999 89.993 192.560334 117.376333) (area 124.409999 91.389999 190.296001 116.890001)
(thickness 1.6) (thickness 1.6)
(drawings 8) (drawings 8)
(tracks 651) (tracks 651)
@ -281,11 +281,6 @@
(net 71 /RESET)) (net 71 /RESET))
(pad 6 smd rect (at 3.302 -5.08 270) (size 3 1) (layers B.Cu B.Paste B.Mask) (pad 6 smd rect (at 3.302 -5.08 270) (size 3 1) (layers B.Cu B.Paste B.Mask)
(net 1 GND)) (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) (module Housings_SSOP:TSSOP-16_4.4x5mm_Pitch0.65mm (layer B.Cu) (tedit 579A4441) (tstamp 5789E0C1)

View file

@ -1,4 +1,4 @@
update=25.08.2016 18:28:32 update=27.09.2016 11:23:30
version=1 version=1
last_client=kicad last_client=kicad
[cvpcb] [cvpcb]
@ -86,7 +86,7 @@ LibName34=crystal
[schematic_editor] [schematic_editor]
version=1 version=1
PageLayoutDescrFile= PageLayoutDescrFile=
PlotDirectoryName= PlotDirectoryName=usb2serialmux_sch.svg
SubpartIdSeparator=0 SubpartIdSeparator=0
SubpartFirstId=65 SubpartFirstId=65
NetFmtName= NetFmtName=

View file

@ -310,9 +310,12 @@ def openSerialDevice(d):
# Why 115200? Because the host defines the baudrate for the USB serial connection. # Why 115200? Because the host defines the baudrate for the USB serial connection.
try: try:
if "com" in d.lower():
d = "\\\\.\\" + d
ser = serial.Serial(d, 115200, timeout=0) ser = serial.Serial(d, 115200, timeout=0)
except: except:
print "ERROR: Can't open the serial device " + device print "ERROR: Can't open the serial device " + d
exit(1) exit(1)
##### #####