Serial port naming for windows machines fixed.
This commit is contained in:
parent
2b9ec977a1
commit
d859ab1aad
4 changed files with 20 additions and 2 deletions
5
tools/2m_scan.bat
Normal file
5
tools/2m_scan.bat
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
@echo off
|
||||||
|
|
||||||
|
C:\Python27\python.exe meas.py -o 70cm.csv -s 144000000 -e 146100000 -i 50 -p 5000 -d COM16 -m
|
||||||
|
|
||||||
|
pause
|
5
tools/70cm_scan.bat
Normal file
5
tools/70cm_scan.bat
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
@echo off
|
||||||
|
|
||||||
|
C:\Python27\python.exe meas.py -o 70cm.csv -s 430000000 -e 440100000 -i 50 -p 5000 -d COM16 -m
|
||||||
|
|
||||||
|
pause
|
6
tools/install_packages.bat
Normal file
6
tools/install_packages.bat
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
@echo off
|
||||||
|
|
||||||
|
C:\Python27\python.exe -m pip install --upgrade pip
|
||||||
|
C:\Python27\python.exe -m pip install --upgrade matplotlib pyserial
|
||||||
|
|
||||||
|
pause
|
|
@ -285,8 +285,10 @@ def openSerialDevice(d):
|
||||||
global ser
|
global ser
|
||||||
|
|
||||||
try:
|
try:
|
||||||
#serial.Serial.close()
|
if "com" in d.lower():
|
||||||
ser = serial.Serial("\\\\.\\"+d)
|
d = "\\\\.\\"+d
|
||||||
|
|
||||||
|
ser = serial.Serial(d)
|
||||||
except:
|
except:
|
||||||
print "ERROR (1): Can't open the serial device " + d
|
print "ERROR (1): Can't open the serial device " + d
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
Loading…
Reference in a new issue