一
@http://www.aps.anl.gov/epics/modules/soft/asyn/R4-23/HowToDoSerial/HowToDoSerial_StreamDevice.html
9 # Allow PV name prefixes and serial port name to be set from the environment 10 epicsEnvSet "P" "$(P=hpE3631A)" 11 epicsEnvSet "R" "$(R=Test)" 12 epicsEnvSet "TTY" "$(TTY=/dev/tty.PL2303-000013FA)" 13
in IOC startup script R=Test,设置两个不同的"host?"名,是不是方便两种模式?运行和测试?写成两份不同的recipe?
18 HPE3631Atest_registerRecordDeviceDriver pdbbasepdbbase是什么意思,见到几次了,有的example 里没有
二
dbLoadRecords("db/devHPE3631A.db","P=$(P),R=$(R),PORT=L0,A=0")另外别忘了
epicsEnvSet "TTY" "$(TTY=/dev/tty.PL2303-000013FA)"在同设备时候指定设备
三
So, if you have a LAN/Serial adapter or network attached device which uses a raw TCP ('telnet' style) connection you would replace lines 23 through 29 with a single line like:
drvAsynIPPortConfigure("L0","192.168.0.23:4001",0,0,0)
四
为什么在appnameApp/src/Makefile 里不用添加asyn.dbd
五
make -C O.linux-x86 -f ../Makefile TOP=../../.. T_A=linux-x86 install
make[3]: Entering directory `/root/softw/epics/T110/T110App/src/O.linux-x86'
perl /root/softw/epics/base-3.14.12.4/bin/linux-x86/makeIncludeDbd.pl base.dbd stream.dbd drvAsynSerialPort.dbd drvAsynIPPort.dbd T110Include.dbd
echo "../O.Common/T110Include.dbd : ../Makefile" >> T110.dbd.d
Expanding dbd
Can't open include file "stream.dbd"
Error at or before ""stream.dbd"" in file "../O.Common/T110Include.dbd" line 2
dbExpand: Input errors, no output generated
make[3]: *** [../O.Common/T110.dbd] Error 1
make[3]: Leaving directory `/root/softw/epics/T110/T110App/src/O.linux-x86'
make[2]: *** [install.linux-x86] Error 2
make[2]: Leaving directory `/root/softw/epics/T110/T110App/src'
make[1]: *** [src.install] Error 2
make[1]: Leaving directory `/root/softw/epics/T110/T110App'
make: *** [T110App.install] Error 2