Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
distributed oscilloscope
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
distributed oscilloscope
Commits
2dca3fd6
Commit
2dca3fd6
authored
Jun 23, 2019
by
Milosz Malczak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adc: started using the get_ip function
parent
ac817747
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
adc_client.py
software/fec/adc_client.py
+2
-2
server_expose.py
software/fec/server_expose.py
+2
-1
No files found.
software/fec/adc_client.py
View file @
2dca3fd6
...
...
@@ -6,7 +6,7 @@ import argparse
from
devices_access
import
DevicesAccess
from
server_expose
import
ServerExpose
import
time
from
general.ipaddr
import
get_ip
def
main
():
parser
=
argparse
.
ArgumentParser
()
...
...
@@ -23,7 +23,7 @@ def main():
port
=
int
(
args
.
port
[
0
])
pci_addr
=
int
(
args
.
pci_addr
[
0
])
addr
=
os
.
popen
(
"ifconfig| grep inet"
)
.
read
()
.
split
()[
1
]
addr
=
get_ip
()
ADC_idx
=
addr
+
'_'
+
str
(
port
)
unique_ADC_name
=
'ADC'
+
'_'
+
ADC_idx
+
'._http._tcp.local.'
...
...
software/fec/server_expose.py
View file @
2dca3fd6
...
...
@@ -8,6 +8,7 @@ import time
sys
.
path
.
append
(
'../'
)
from
general.publisher
import
Publisher
from
general.addresses
import
server_expose_to_device_port
from
general.ipaddr
import
get_ip
thismodule
=
sys
.
modules
[
__name__
]
...
...
@@ -47,7 +48,7 @@ class ServerExpose():
context
=
zmq
.
Context
()
socket
=
context
.
socket
(
zmq
.
ROUTER
)
monitor
=
socket
.
get_monitor_socket
()
ip
=
'128.141.162.185'
ip
=
get_ip
()
port_zmq
=
str
(
self
.
port
)
socket
.
bind
(
"tcp://"
+
ip
+
":"
+
port_zmq
)
...
...
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