IOC port

    * If you're using an Ethernet/RS-232 converter or a device which communicates over a telnet-style socket connection you need to specify the Internet host and port number like:

          drvAsynIPPortConfigure("L0","164.54.9.91:4002",0,0,0)

    * If you're using a serial line directly attached to the IOC you need something like:

          drvAsynSerialPortConfigure("L0","/dev/ttyS0",0,0,0)
          asynSetOption("L0", -1, "baud", "9600")
          asynSetOption("L0", -1, "bits", "8")
          asynSetOption("L0", -1, "parity", "none")
          asynSetOption("L0", -1, "stop", "1")
          asynSetOption("L0", -1, "clocal", "Y")
          asynSetOption("L0", -1, "crtscts", "N")

    * If you're using a serial line directly attached to a vxWorks IOC you must first configure the serial port interface hardware. The following example shows the commands to configure a port on a GreenSprings UART Industry-Pack module.

          ipacAddVIPC616_01("0x6000,B0000000")
          tyGSOctalDrv(1)
          tyGSOctalModuleInit("RS232", 0x80, 0, 0)
          tyGSOctalDevCreate("/tyGS/0/0",0,0,1000,1000)
          drvAsynSerialPortConfigure("L0","/tyGS/0/0",0,0,0)
          asynSetOption("L0",-1,"baud","9600")

 

posted @ 2012-05-18 00:22  greencolor  阅读(297)  评论(0编辑  收藏  举报