Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OAI-RAN-5G-sheduler_MaxTBS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MAQ5G-PFC
OAI-RAN-5G-sheduler_MaxTBS
Commits
c3f3d1ac
Commit
c3f3d1ac
authored
9 years ago
by
Rohit Gupta
Browse files
Options
Downloads
Patches
Plain Diff
fixed a bug to search for an open port
parent
4b4e2213
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake_targets/autotests/tools/configure_cots_bandrich_ue.py
+12
-1
12 additions, 1 deletion
cmake_targets/autotests/tools/configure_cots_bandrich_ue.py
with
12 additions
and
1 deletion
cmake_targets/autotests/tools/configure_cots_bandrich_ue.py
+
12
−
1
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment