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
alex037yang
OpenXG-RAN
Commits
a9e65743
Commit
a9e65743
authored
Dec 04, 2015
by
Rohit Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated UE config script
parent
d1a7df86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
cmake_targets/autotests/tools/configure_cots_bandrich_ue.py
cmake_targets/autotests/tools/configure_cots_bandrich_ue.py
+8
-2
No files found.
cmake_targets/autotests/tools/configure_cots_bandrich_ue.py
View file @
a9e65743
...
@@ -15,6 +15,11 @@ import os
...
@@ -15,6 +15,11 @@ import os
#First we find an open port to work with
#First we find an open port to work with
serial_port
=
''
serial_port
=
''
ser
=
serial
.
Serial
()
ser
=
serial
.
Serial
()
openair_dir
=
os
.
environ
.
get
(
'OPENAIR_DIR'
)
if
openair_dir
==
None
:
print
"Error getting OPENAIR_DIR environment variable"
sys
.
exit
(
1
)
def
find_open_port
():
def
find_open_port
():
global
serial_port
,
ser
global
serial_port
,
ser
max_ports
=
100
max_ports
=
100
...
@@ -33,7 +38,7 @@ find_open_port()
...
@@ -33,7 +38,7 @@ find_open_port()
print
'Using Serial port : '
+
serial_port
print
'Using Serial port : '
+
serial_port
#serial_port = '/dev/ttyUSB2'
#serial_port = '/dev/ttyUSB2'
bandrich_ppd_config
=
'$OPENAIR_DIR
/cmake_targets/autotests/tools/wdial.bandrich.conf'
bandrich_ppd_config
=
os
.
environ
.
get
(
'OPENAIR_DIR'
)
+
'
/cmake_targets/autotests/tools/wdial.bandrich.conf'
exit_flag
=
0
exit_flag
=
0
...
@@ -122,6 +127,7 @@ def start_ue () :
...
@@ -122,6 +127,7 @@ def start_ue () :
ip
=
IPRoute
()
ip
=
IPRoute
()
idx
=
ip
.
link_lookup
(
ifname
=
iface
)[
0
]
idx
=
ip
.
link_lookup
(
ifname
=
iface
)[
0
]
os
.
system
(
'route add 192.172.0.1 ppp0'
)
os
.
system
(
'route add 192.172.0.1 ppp0'
)
os
.
system
(
'ping 192.172.0.1'
)
break
break
except
Exception
,
e
:
except
Exception
,
e
:
error
=
' Interface '
+
iface
+
'does not exist...'
error
=
' Interface '
+
iface
+
'does not exist...'
...
@@ -135,7 +141,7 @@ def stop_ue():
...
@@ -135,7 +141,7 @@ def stop_ue():
timeout
=
60
timeout
=
60
os
.
system
(
'killall wvdial'
)
os
.
system
(
'killall wvdial'
)
send_command
(
'AT'
,
'OK'
,
timeout
)
send_command
(
'AT'
,
'OK'
,
timeout
)
send_command
(
'AT+CGATT=0'
,
'OK'
,
timeout
)
#
send_command('AT+CGATT=0' , 'OK' , timeout)
send_command
(
'AT+CFUN=4'
,
'OK'
,
timeout
)
send_command
(
'AT+CFUN=4'
,
'OK'
,
timeout
)
for
arg
in
sys
.
argv
[
1
:]:
for
arg
in
sys
.
argv
[
1
:]:
...
...
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