Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Michael Black
OpenXG-RAN
Commits
c3f3d1ac
Commit
c3f3d1ac
authored
Nov 10, 2015
by
Rohit Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed a bug to search for an open port
parent
4b4e2213
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
cmake_targets/autotests/tools/configure_cots_bandrich_ue.py
cmake_targets/autotests/tools/configure_cots_bandrich_ue.py
+12
-1
No files found.
cmake_targets/autotests/tools/configure_cots_bandrich_ue.py
View file @
c3f3d1ac
...
@@ -7,9 +7,20 @@ import re
...
@@ -7,9 +7,20 @@ import re
import
threading
import
threading
import
signal
import
signal
import
traceback
import
traceback
import
os
# configure the serial connections (the parameters differs on the device you are connecting to)
# 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'
bandrich_ppd_config
=
'$OPENAIR_DIR/cmake_targets/autotests/tools/wdial.bandrich.conf'
exit_flag
=
0
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