pvaPy
pvaPy copied to clipboard
EPICS_PVA_NAME_SERVERS: handling reconnection
I am having an intermittent issue with reconnection.
Here is my order of operations:
- Start consumer process:
EPICS_PVA_SERVER_PORT=11111 pvapy-hpc-consumer --input-channel pvapy:image --output-channel pvapy:image1 --processor-file /path/to/hpcDataProcessorExample.py --processor-class HpcDataProcessor --report-period 10 --log-level debug
- Start pvapy-mirror-server
EPICS_PVA_NAME_SERVERS=<IP of Consumer>:11111 EPICS_PVA_AUTO_ADDR_LIST='OFF' pvapy-mirror-server --channel-map "(pvapy:image2,pvapy:image1,pva,100)" --report-period 5
- Start sim server
pvapy-ad-sim-server -cn pvapy:image -nx 2560 -ny 2160 -dt uint16 --disable-curses -rt 13000 -fps 50
This works just fine. I am getting updates as reported by mirror server.
Now I shut down the consumer process and bring it back up with same command. Now I am getting no new updates to the mirror server. Thinking this is an issue with reconnection, I shut down mirror server and bring it back up. No updates (0 received).
Only way I can solve this is by shutting down both consumer AND mirror server, then starting them again.
BTW sim server and consumer are on the same machine, mirror server is on a different machine.