RootcanalUtils.RootcanalController

public static class RootcanalUtils.RootcanalController
extends Object implements AutoCloseable

java.lang.Object
com.android.sts.common.RootcanalUtils.RootcanalController


概括

公共方法

void close ()
RootcanalUtils.HciDevice createHciDevice ()

通过连接到 rootcanal 的 HCI 套接字来创建新的 HCI 设备。

String sendTestChannelCommand (String cmd, String... args)

向根管测试通道发送一个命令。

公共方法

关闭

public void close ()

投掷
IOException

创建Hci设备

public RootcanalUtils.HciDevice createHciDevice ()

通过连接到 rootcanal 的 HCI 套接字来创建新的 HCI 设备。

退货
RootcanalUtils.HciDevice允许从 HCI 端口发送/接收的 HciDevice 对象

投掷
DeviceNotAvailableException
IOException
InterruptedException

发送测试通道命令

public String sendTestChannelCommand (String cmd, 
                String... args)

向根管测试通道发送一个命令。

发送“help”命令以获取 Rootcanal 接受的命令列表。

参数
cmd String : 要发送的命令

args String : 命令的参数

退货
String来自 rootcanal 的响应字符串

投掷
IOException
InterruptedException