Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
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
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Beam Positoning Monitor - Software
Commits
701737b5
Commit
701737b5
authored
Mar 02, 2016
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apps/ebpm: use different telnet ports for DBE/AFE EPICS IOCs
parent
ca5d466a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
ebpm.c
src/apps/ebpm/ebpm.c
+8
-1
No files found.
src/apps/ebpm/ebpm.c
View file @
701737b5
...
...
@@ -631,6 +631,7 @@ static devio_err_e _spawn_epics_iocs (devio_t *devio, uint32_t dev_id,
char
*
bpm_id_c
=
NULL
;
char
*
smio_inst_id_c
=
NULL
;
char
*
telnet_port_c
=
NULL
;
char
*
telnet_afe_port_c
=
NULL
;
/* For each DEVIO, spawn up to 2 EPICS IOCs. Do a lookup in our
* hints hash to look we we were indeed asked to do that */
...
...
@@ -679,6 +680,8 @@ static devio_err_e _spawn_epics_iocs (devio_t *devio, uint32_t dev_id,
ASSERT_ALLOC
(
smio_inst_id_c
,
err_smio_inst_id_c_alloc
,
DEVIO_ERR_ALLOC
);
telnet_port_c
=
hutils_stringify_dec_key
(
board_epics_opts
[
dev_id
][
smio_inst_id
].
telnet_port
);
ASSERT_ALLOC
(
telnet_port_c
,
err_telnet_port_c_alloc
,
DEVIO_ERR_ALLOC
);
telnet_afe_port_c
=
hutils_stringify_dec_key
(
board_epics_opts
[
dev_id
][
smio_inst_id
].
telnet_afe_port
);
ASSERT_ALLOC
(
telnet_afe_port_c
,
err_telnet_afe_port_c_alloc
,
DEVIO_ERR_ALLOC
);
/* Change working directory as EPICS startup files are located in a
* non-default directory */
...
...
@@ -706,7 +709,7 @@ static devio_err_e _spawn_epics_iocs (devio_t *devio, uint32_t dev_id,
DBE_DEBUG
(
DBG_DEV_IO
|
DBG_LVL_INFO
,
"[ebpm] Spawing DEVIO AFE EPICS IOC for "
"board %u, bpm %u, telnet port %s
\n
"
,
dev_id
,
j
,
telnet_port_c
);
char
*
argv_exec
[]
=
{
EPICS_PROCSERV_NAME
,
"-n"
,
epics_hostname
,
"-i"
,
"^D^C"
,
telnet_port_c
,
EPICS_AFE_BPM_RUN_SCRIPT_NAME
,
broker_endp
,
bpm_id_c
,
"^D^C"
,
telnet_
afe_
port_c
,
EPICS_AFE_BPM_RUN_SCRIPT_NAME
,
broker_endp
,
bpm_id_c
,
NULL
};
int
child_devio_cfg_pid
=
devio_spawn_chld
(
devio
,
EPICS_PROCSERV_NAME
,
argv_exec
);
...
...
@@ -723,10 +726,14 @@ static devio_err_e _spawn_epics_iocs (devio_t *devio, uint32_t dev_id,
smio_inst_id_c
=
NULL
;
free
(
telnet_port_c
);
telnet_port_c
=
NULL
;
free
(
telnet_afe_port_c
);
telnet_afe_port_c
=
NULL
;
}
err_spawn_afe_epics:
err_spawn_dbe_epics:
free
(
telnet_afe_port_c
);
err_telnet_afe_port_c_alloc:
free
(
telnet_port_c
);
err_telnet_port_c_alloc:
free
(
smio_inst_id_c
);
...
...
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