diff --git a/iocBoot/iocWithAsyn/st_asynserver.cmd.Vx b/iocBoot/iocWithAsyn/st_asynserver.cmd.Vx index 6a7600c2..9f421479 100644 --- a/iocBoot/iocWithAsyn/st_asynserver.cmd.Vx +++ b/iocBoot/iocWithAsyn/st_asynserver.cmd.Vx @@ -1,70 +1,8 @@ # This configures the ASYN server stuff. # "#!" marks lines that can be uncommented. -### START of IPAC R2.5 and below ############################################## -# -# Initialize IP carrier - -# For MVME162 and MVME172 CPU boards with IP slots. -# ipacAddCarrier(ipac_carrier_t *pcarrier, char *cardParams) -# pcarrier - pointer to carrier driver structure -# cardParams - carrier-specific init parameters -#!carrier = "ipac" -#!ipacAddCarrier(&ipmv162, "A:l=3,3 m=0xe0000000,64;B:l=3,3 m=0xe0010000,64;C:l=3,3 m=0xe0020000,64;D:l=3,3 m=0xe0030000,64") - -# For SBS VIPC616-01 IP carrier board. A32 and A24 examples follow: -#!carrier = "VIPC616_01" -# - A32 addressing. -# - default I/O Base Address (0x6000). -# - IP modules occupy 32MB of memory from 0x9000 0000 to 0x91FF FFFF. -# - IP module A at 0x90000000, -# module B at 0x90800000, -# module C at 0x91000000, -# module D at 0x91800000 -#!ipacAddCarrier(&vipc616_01, "6000,A0000000") - -# - A24 addressing. -# - default I/O Base Address (0x6000). -# - default IP module base address at 0x00D0 0000 -# occupies 512 bytes of memory from 0x00D0 0000 to 0x00D0 01FF. -# - IP module A at 0x0x00D0 007F, -# module B at 0x0x00D0 0100, -# module C at 0x0x00D0 017F, -# module D at 0x0x00D0 01FF -#!ipacAddCarrier(&vipc616_01, "0x6000,D00000,128") - -# initIpacCarrier(const char *carrierName, int carrierNum) -#!initIpacCarrier(carrier, 0) -#!ipacReport(2) - -############################################################################### -# Initialize Octal UART module -#initOctalUART("moduleName","carrierName","carrierSite",nports,intVec) -#!initOctalUART("octalUart0",carrier,"IP_a",8,100) -#!initOctalUART("octalUart1",carrier,"IP_b",8,100) - -# initOctalUARTPort(char* portName,char* moduleName,int port,int baud, -# char* parity,int stop_bits,int bits_char,char* flow_control) -# 'baud' is the baud rate. 1200, 2400, 4800, 9600, 19200, 38400 -# 'parity' is "E" for even, "O" for odd, "N" for none. -# 'bits_per_character' = {5,6,7,8} -# 'stop_bits' = {1,2} -# 'flow_control' is "N" for none, "H" for hardware -# Port 0 is Generic Serial Record -#!initOctalUARTPort("UART0[0]","octalUart0",0, 9600,"N",1,8,"N") -#!initOctalUARTPort("UART0[1]","octalUart0",1, 9600,"N",1,8,"N") -#!initOctalUARTPort("UART0[2]","octalUart0",2, 9600,"N",1,8,"N") -#!initOctalUARTPort("UART0[3]","octalUart0",3, 9600,"N",1,8,"N") - -#!initOctalUARTPort("UART1[0]","octalUart1",0, 9600,"N",1,8,"N") -#!initOctalUARTPort("UART1[1]","octalUart1",1, 9600,"N",1,8,"N") -#!initOctalUARTPort("UART1[2]","octalUart1",2, 9600,"N",1,8,"N") -#!initOctalUARTPort("UART1[3]","octalUart1",3, 9600,"N",1,8,"N") -### END of IPAC R2.5 and below ################################################ - -### IPAC R2.8 ################################################################# -# Initialize the drvIpac carriers. -# ------------------------------- +# Initialize the IP carriers; IPAC R2.8 +# ------------------------------------- # ipacAdd{CarrierType}(char *cardParams) # CarrierType - VIPC310, VIPC610, VIPC610_01, VIPC616, VIPC616_01, # MVME162, or ATC40. @@ -173,5 +111,22 @@ #!asynSetOption("L1", 0, "clocal", "Y") #!asynSetOption("L1", 0, "crtscts", "N") -### END of IPAC R2.8 ########################################################## +# TCP/IP or UDP/IP ASYN port configuration. +# +# drvAsynIPPortConfigure("portName", "hostInfo", priority, noAutoConnect, +# noProcessEos) +# (1) portName - The portName that is registered with asynGpib. +# (2) hostInfo - The Internet host name, port number and optional IP protocol +# of the device (e.g. "164.54.9.90:4002", "serials8n3:4002", +# "serials8n3:4002 TCP" or "164.54.17.43:5186 udp"). If no +# protocol is specified, TCP will be used. +# (3) priority - Priority at which the asyn I/O thread will run. If zero or +# missing, then epicsThreadPriorityMedium is used. +# (4) noAutoConnect - Zero or missing indicates that portThread should +# automatically connect. Non-zero if explicit connect +# command must be issued. +# (5) noProcessEos - If 0 then asynInterposeEosConfig is called specifying +# both processEosIn and processEosOut. +#!drvAsynIPPortConfigure("tcp1","164.54.160.124:5001 tcp", 0, 0, 1) +#!drvAsynIPPortConfigure("tcp2","164.54.160.131:5001 tcp", 0, 0, 1) diff --git a/iocBoot/iocWithMPF/st_asynserver.cmd.Vx b/iocBoot/iocWithMPF/st_asynserver.cmd.Vx index 6a7600c2..9f421479 100644 --- a/iocBoot/iocWithMPF/st_asynserver.cmd.Vx +++ b/iocBoot/iocWithMPF/st_asynserver.cmd.Vx @@ -1,70 +1,8 @@ # This configures the ASYN server stuff. # "#!" marks lines that can be uncommented. -### START of IPAC R2.5 and below ############################################## -# -# Initialize IP carrier - -# For MVME162 and MVME172 CPU boards with IP slots. -# ipacAddCarrier(ipac_carrier_t *pcarrier, char *cardParams) -# pcarrier - pointer to carrier driver structure -# cardParams - carrier-specific init parameters -#!carrier = "ipac" -#!ipacAddCarrier(&ipmv162, "A:l=3,3 m=0xe0000000,64;B:l=3,3 m=0xe0010000,64;C:l=3,3 m=0xe0020000,64;D:l=3,3 m=0xe0030000,64") - -# For SBS VIPC616-01 IP carrier board. A32 and A24 examples follow: -#!carrier = "VIPC616_01" -# - A32 addressing. -# - default I/O Base Address (0x6000). -# - IP modules occupy 32MB of memory from 0x9000 0000 to 0x91FF FFFF. -# - IP module A at 0x90000000, -# module B at 0x90800000, -# module C at 0x91000000, -# module D at 0x91800000 -#!ipacAddCarrier(&vipc616_01, "6000,A0000000") - -# - A24 addressing. -# - default I/O Base Address (0x6000). -# - default IP module base address at 0x00D0 0000 -# occupies 512 bytes of memory from 0x00D0 0000 to 0x00D0 01FF. -# - IP module A at 0x0x00D0 007F, -# module B at 0x0x00D0 0100, -# module C at 0x0x00D0 017F, -# module D at 0x0x00D0 01FF -#!ipacAddCarrier(&vipc616_01, "0x6000,D00000,128") - -# initIpacCarrier(const char *carrierName, int carrierNum) -#!initIpacCarrier(carrier, 0) -#!ipacReport(2) - -############################################################################### -# Initialize Octal UART module -#initOctalUART("moduleName","carrierName","carrierSite",nports,intVec) -#!initOctalUART("octalUart0",carrier,"IP_a",8,100) -#!initOctalUART("octalUart1",carrier,"IP_b",8,100) - -# initOctalUARTPort(char* portName,char* moduleName,int port,int baud, -# char* parity,int stop_bits,int bits_char,char* flow_control) -# 'baud' is the baud rate. 1200, 2400, 4800, 9600, 19200, 38400 -# 'parity' is "E" for even, "O" for odd, "N" for none. -# 'bits_per_character' = {5,6,7,8} -# 'stop_bits' = {1,2} -# 'flow_control' is "N" for none, "H" for hardware -# Port 0 is Generic Serial Record -#!initOctalUARTPort("UART0[0]","octalUart0",0, 9600,"N",1,8,"N") -#!initOctalUARTPort("UART0[1]","octalUart0",1, 9600,"N",1,8,"N") -#!initOctalUARTPort("UART0[2]","octalUart0",2, 9600,"N",1,8,"N") -#!initOctalUARTPort("UART0[3]","octalUart0",3, 9600,"N",1,8,"N") - -#!initOctalUARTPort("UART1[0]","octalUart1",0, 9600,"N",1,8,"N") -#!initOctalUARTPort("UART1[1]","octalUart1",1, 9600,"N",1,8,"N") -#!initOctalUARTPort("UART1[2]","octalUart1",2, 9600,"N",1,8,"N") -#!initOctalUARTPort("UART1[3]","octalUart1",3, 9600,"N",1,8,"N") -### END of IPAC R2.5 and below ################################################ - -### IPAC R2.8 ################################################################# -# Initialize the drvIpac carriers. -# ------------------------------- +# Initialize the IP carriers; IPAC R2.8 +# ------------------------------------- # ipacAdd{CarrierType}(char *cardParams) # CarrierType - VIPC310, VIPC610, VIPC610_01, VIPC616, VIPC616_01, # MVME162, or ATC40. @@ -173,5 +111,22 @@ #!asynSetOption("L1", 0, "clocal", "Y") #!asynSetOption("L1", 0, "crtscts", "N") -### END of IPAC R2.8 ########################################################## +# TCP/IP or UDP/IP ASYN port configuration. +# +# drvAsynIPPortConfigure("portName", "hostInfo", priority, noAutoConnect, +# noProcessEos) +# (1) portName - The portName that is registered with asynGpib. +# (2) hostInfo - The Internet host name, port number and optional IP protocol +# of the device (e.g. "164.54.9.90:4002", "serials8n3:4002", +# "serials8n3:4002 TCP" or "164.54.17.43:5186 udp"). If no +# protocol is specified, TCP will be used. +# (3) priority - Priority at which the asyn I/O thread will run. If zero or +# missing, then epicsThreadPriorityMedium is used. +# (4) noAutoConnect - Zero or missing indicates that portThread should +# automatically connect. Non-zero if explicit connect +# command must be issued. +# (5) noProcessEos - If 0 then asynInterposeEosConfig is called specifying +# both processEosIn and processEosOut. +#!drvAsynIPPortConfigure("tcp1","164.54.160.124:5001 tcp", 0, 0, 1) +#!drvAsynIPPortConfigure("tcp2","164.54.160.131:5001 tcp", 0, 0, 1)