onbon.bx06
类 Bx6GControllerRS

java.lang.Object
  继承者 onbon.bx06.Bx6GController
      继承者 onbon.bx06.Bx6GControllerRS

public final class Bx6GControllerRS
extends Bx6GController

BX5G RS232 控制器。

作者:
ONBON

嵌套类摘要
 
从类 onbon.bx06.Bx6GController 继承的嵌套类/接口
Bx6GController.RunMode
 
字段摘要
 
从类 onbon.bx06.Bx6GController 继承的字段
bx6Card, header, pingStatus, screenProfile, series, TIMEOUT
 
构造方法摘要
Bx6GControllerRS(String aliasName, Bx6Card bx6Card)
          建构子。
 
方法摘要
 boolean connect(String comName, int baudrate, int dataBits, int stopBits, int parity)
          連線。
 void disconnect()
          中断连线。
 String getName()
          取得名称。
 Bx6GController.RunMode getRunMode()
          取得运行模式。
 boolean isConnected()
          取得是否连线。
 byte[] send(onbon.bx06.message.Bx06MessageHeader header, onbon.bx06.message.Request req, String uiaID)
          执行命令。
 byte[] send(onbon.bx06.message.Request req, String uiaID)
          执行命令。
 
从类 onbon.bx06.Bx6GController 继承的方法
createFileReader, createFileReader, createFileWriter, createFileWriter, execute, genTxId, getControllerAddress, getHeader, getOutputBuffer, getScreenProfile, getSeries, ping, setControllerAddress, updatePingStatus
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

Bx6GControllerRS

public Bx6GControllerRS(String aliasName,
                        Bx6Card bx6Card)
建构子。

参数:
aliasName - 别名。
bx6Card - BX6 系列控制器。
方法详细信息

connect

public boolean connect(String comName,
                       int baudrate,
                       int dataBits,
                       int stopBits,
                       int parity)
                throws Bx6GException
連線。

参数:
comName - COM 名稱。
baudrate - 波特率。
dataBits - 位元数。
stopBits - 停止位元。
parity - 同位檢查。
返回:
连线结果。
抛出:
Bx6GCommException - 连线发生错误。
Bx6GException

getName

public String getName()
从类 Bx6GController 复制的描述
取得名称。

指定者:
类 Bx6GController 中的 getName
返回:
名称。

getRunMode

public Bx6GController.RunMode getRunMode()
从类 Bx6GController 复制的描述
取得运行模式。

指定者:
类 Bx6GController 中的 getRunMode
返回:
运行模式。

isConnected

public boolean isConnected()
从类 Bx6GController 复制的描述
取得是否连线。

指定者:
类 Bx6GController 中的 isConnected
返回:
是否连线。

disconnect

public void disconnect()
从类 Bx6GController 复制的描述
中断连线。

指定者:
类 Bx6GController 中的 disconnect

send

public byte[] send(onbon.bx06.message.Bx06MessageHeader header,
                   onbon.bx06.message.Request req,
                   String uiaID)
从类 Bx6GController 复制的描述
执行命令。

指定者:
类 Bx6GController 中的 send
参数:
header - 讯息表头。
req - 命令。
uiaID - 命令编号。
返回:
执行结果。

send

public byte[] send(onbon.bx06.message.Request req,
                   String uiaID)
从类 Bx6GController 复制的描述
执行命令。

指定者:
类 Bx6GController 中的 send
参数:
req - 命令。
uiaID - 命令编号。
返回:
执行结果。


Copyright © 2018 onbon. All rights reserved.