Experimental Physics and
| |||||||||||||||
|
Good day! i am experimenting with epics tcp socket capabilities using asyn driver. having done some reading , install the asyn package and the epics sequencer as well. under the asyn directory there is an testIPServer directory with a read me file that tell to setup the SNCSEQ in the realese variable to use the sequencer capabilities. this folder provide a ipSNCServer.st and ipEchoServer.c files that i am trying to incorporate to my application to have a server listening at a specific port. now, i build my application and under top/xxxApp/src i modified the Makefile as the one attached to this email. i also modified the release file under configure to include the different variable path. i modified my st.cmd file as well to include the ip port configuration as attached as well. my problem is this, when a run make under this directory, xxxApp/src it create two file, the application executable and the sncExample executable but never an ipSNCServer executable. when i run the st.cmd i get this output. cas warning: Configured TCP port was unavailable. cas warning: Using dynamically assigned TCP port 53146, cas warning: but now two or more servers share the same UDP port. cas warning: Depending on your IP kernel this server may not be cas warning: reachable with UDP unicast (a host's IP in EPICS_CA_ADDR_LIST) iocRun: All initialization complete ## Start any sequence programs #seq sncExample, "user=myHost" #ipEchoServer("P5001") seq("ipSNCServer", "P=testIPServer:, PORT=P5002") Sequencer release 2.1.13, compiled Wed Apr 1 07:55:20 2015 Spawning sequencer program "ipSNCServer", thread 0x9f89330: "ipSNCServer" epics> sevr=minor ipSNCServer[0](after 2 sec): assigned=3, connected=0, monitored=0, got monitor=0 sevr=minor ipSNCServer[0](after 5 sec): assigned=3, connected=0, monitored=0, got monitor=0 sevr=minor ipSNCServer[0](after 10 sec): assigned=3, connected=0, monitored=0, got monitor=0 sevr=minor ipSNCServer[0](after 18 sec): assigned=3, connected=0, monitored=0, got monitor=0 sevr=minor ipSNCServer[0](after 31 sec): assigned=3, connected=0, monitored=0, got monitor=0 the readme file provide this output, iocInit: All initialization complete ipEchoServer("P5001") seq("ipSNCServer", "P=testIPServer:, PORT=P5002") SEQ Version 2.0.10: Thu Jan 5 13:14:09 2006 Spawning state program "ipSNCServer", thread 0x809e720: "ipSNCServer" epics> i am running epics 3.14 on ubuntu 12.04 Thank for any assistance. Yann Attachment:
Makefile Attachment:
RELEASE #!../../bin/linux-x86/myexample ## You may have to change myexample to something else ## everywhere it appears in this file ############################################################################### # Set up environment < envPaths epicsEnvSet "STREAM_PROTOCOL_PATH" "$(TOP)/db" epicsEnvSet "P" "$(P=testIPServer)" cd ${TOP} ## Register all support components dbLoadDatabase "dbd/myexample.dbd" myexample_registerRecordDeviceDriver pdbbase ################################################################################ # Set up ASYN ports #The following command starts a server on port 5001 drvAsynIPServerPortConfigure("P5001","localhost:5001",2,0,0,0) drvAsynIPServerPortConfigure("P5002","localhost:5002",1,0,0,0) ################################################################################## ## Load record instances #dbLoadTemplate "db/userHost.substitutions" dbLoadRecords "db/testIPServer.db", "P=$(P)" ## Set this to see messages from mySub #var mySubDebug 1 ## Run this to trace the stages of iocInit #traceIocInit cd ${TOP}/iocBoot/${IOC} iocInit ## Start any sequence programs #seq sncExample, "user=yannHost" #ipEchoServer("P5001") seq("ipSNCServer", "P=testIPServer:, PORT=P5002")
| ||||||||||||||
ANJ, 16 Dec 2015 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |