public class Module
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
free()
释放模块
|
static Module |
getInstance()
获取操作实例
|
boolean |
init(int module)
初始化模块
|
boolean |
init(int module,
int baudrate)
初始化模块
|
boolean |
powerOff(int module)
Deprecated.
|
boolean |
powerOn(int module)
Deprecated.
|
byte[] |
receive()
接收数据
|
boolean |
send(byte[] data)
发送数据
|
boolean |
uartSwitch(int module)
Deprecated.
|
public boolean free()
public static Module getInstance() throws ConfigurationException
ConfigurationException
public boolean init(int module)
module
- 模块编号 模块编号 1、1D(9600) 2、RFID(115200) 3、UHF(115200) 4、Finger(57600)5、OBDpublic boolean init(int module, int baudrate)
module
- 模块编号 模块编号 1、1D(9600) 2、RFID(115200) 3、UHF(115200) 4、Finger(57600)baudrate
- 自定义波特率@Deprecated public boolean powerOff(int module)
free()
module
- 模块编号 1、1D(9600) 2、RFID(115200) 3、UHF(115200) 4、Finger(57600)@Deprecated public boolean powerOn(int module)
init(int)
module
- 模块编号 1、1D(9600) 2、RFID(115200) 3、UHF(115200) 4、Finger(57600)public byte[] receive()
public boolean send(byte[] data)
data
- 数据@Deprecated public boolean uartSwitch(int module)
module
- 模块编号 模块编号 1、1D(9600) 2、RFID(115200) 3、UHF(115200) 4、Finger(57600)