Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
4b4e2213
Commit
4b4e2213
authored
Nov 10, 2015
by
Rohit Gupta
Browse files
fixed bugs related to COTS UE
parent
cd71443d
Changes
2
Hide whitespace changes
Inline
Side-by-side
cmake_targets/autotests/tools/configure_cots_bandrich_ue.py
View file @
4b4e2213
...
...
@@ -59,16 +59,21 @@ def send_command (cmd, response, timeout):
count
=
0
sleep_duration
=
1
while
count
<=
timeout
:
ser
.
write
(
cmd
+
'
\r\n
'
)
out
=
''
time
.
sleep
(
sleep_duration
)
count
=
count
+
sleep_duration
while
ser
.
inWaiting
()
>
0
:
out
+=
ser
.
read
(
1
)
print
'out = <'
+
out
+
'> response = <'
+
response
+
'>
\n
'
if
re
.
search
(
response
,
out
):
break
try
:
ser
.
write
(
cmd
+
'
\r\n
'
)
out
=
''
time
.
sleep
(
sleep_duration
)
count
=
count
+
sleep_duration
while
ser
.
inWaiting
()
>
0
:
out
+=
ser
.
read
(
1
)
print
'out = <'
+
out
+
'> response = <'
+
response
+
'>
\n
'
if
re
.
search
(
response
,
out
):
break
except
Exception
,
e
:
error
=
' cmd : '
+
cmd
+
' response : '
+
response
error
=
error
+
' In function: '
+
sys
.
_getframe
().
f_code
.
co_name
+
': *** Caught exception: '
+
str
(
e
.
__class__
)
+
" : "
+
str
(
e
)
error
=
error
+
traceback
.
format_exc
()
print
error
def
start_ue
()
:
...
...
cmake_targets/autotests/tools/search_repl.py
View file @
4b4e2213
...
...
@@ -20,7 +20,7 @@ file.close()
if
keyword
==
'mme_ip_address'
:
#string = (re.sub(r"mme_ip_address\s*=\s*\([^\$]+)\)\s*;\s*", r"<% tex \1 %>", t, re.M)
replacement_text
=
keyword
+
' = '
+
replacement_text
+
' ; '
replacement_text
=
keyword
+
' =
({
'
+
replacement_text
+
'
)}
; '
string
=
re
.
sub
(
r
"mme_ip_address\s*=\s*\(([^\$]+?)\)\s*;"
,
replacement_text
,
string
,
re
.
M
)
elif
keyword
==
'N_RB_DL'
:
replacement_text
=
keyword
+
' = '
+
replacement_text
+
' ; '
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment