zoukankan      html  css  js  c++  java
  • 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")

  • 相关阅读:
    strut2 国际化
    strut2 常量
    strut2 自定义类型转换器
    strut2基于XML配置方式对Action中的指定方法校验
    strut2 输入校验2
    strut2 输入校验
    strut2 模拟拦截器
    strut2 多个文件上传
    strut2 单个文件上传
    2015.01.01今年的第一天
  • 原文地址:https://www.cnblogs.com/greencolor/p/2507121.html
Copyright © 2011-2022 走看看