Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dyyu
openairinterface5G
Commits
c3f3d1ac
Commit
c3f3d1ac
authored
Nov 10, 2015
by
Rohit Gupta
Browse files
fixed a bug to search for an open port
parent
4b4e2213
Changes
1
Hide whitespace changes
Inline
Side-by-side
cmake_targets/autotests/tools/configure_cots_bandrich_ue.py
View file @
c3f3d1ac
...
...
@@ -7,9 +7,20 @@ import re
import
threading
import
signal
import
traceback
import
os
# configure the serial connections (the parameters differs on the device you are connecting to)
serial_port
=
'/dev/ttyUSB2'
#First we find an open port to work with
serial_port
=
''
max_ports
=
100
for
port
in
range
(
1
,
100
):
serial_port
=
'/dev/ttyUSB'
+
str
(
port
)
if
os
.
path
.
exists
(
serial_port
)
==
True
:
break
print
'Using Serial port : '
+
serial_port
#serial_port = '/dev/ttyUSB2'
bandrich_ppd_config
=
'$OPENAIR_DIR/cmake_targets/autotests/tools/wdial.bandrich.conf'
exit_flag
=
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment