跳过导航链接
com.rscja.deviceapi

类 Module

    • 方法概要

      所有方法 静态方法 实例方法 具体方法 已过时的方法 
      限定符和类型 方法和说明
      boolean free()
      释放模块
      Release the module
      static Module getInstance()
      获取操作实例
      Get instance
      boolean init(int module)
      初始化模块
      Initialize the module
      boolean init(int module, int baudrate)
      初始化模块
      Initialize the module
      boolean powerOff(int module)
      已过时。 
      boolean powerOn(int module)
      已过时。 
      byte[] receive()
      接收数据
      Receive data.
      boolean send(byte[] data)
      发送数据
      Send data.
      boolean uartSwitch_module(int module)
      已过时。 
      • 从类继承的方法 java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • powerOn

        @Deprecated
        public boolean powerOn(int module)
        已过时。 
        模块上电,仅上电不开串口,目前不支持V600设备
        Power on the module, only power on, do not open uart.
        参数:
        module - 模块编号 1、1D(9600) 2、RFID(115200) 3、UHF(115200) 4、Finger(57600) 5、OBD
        Module number: 1、1D(9600) 2、RFID(115200) 3、UHF(115200) 4、Finger(57600) 5、OBD
        返回:
        成功true,失败false
        If sucess, return true, if failure, return false.
      • powerOff

        @Deprecated
        public boolean powerOff(int module)
        已过时。 
        模块下电,仅下电不关串口,目前不支持V600设备
        Power off the module, only power off, do not close uart.
        参数:
        module - 模块编号 1、1D(9600) 2、RFID(115200) 3、UHF(115200) 4、Finger(57600)
        Module number : 1、1D(9600) 2、RFID(115200) 3、UHF(115200) 4、Finger(57600)
        返回:
        成功true,失败false
        If sucess, return true, if failure, return false.
      • uartSwitch_module

        @Deprecated
        public boolean uartSwitch_module(int module)
        已过时。 
        串口切换,目前不支持V600设备
        Uart switch,V600 not supported yet.
        参数:
        module - 模块编号 模块编号 2、RFID(115200) 4、Finger(57600),5、OBD(9600) ,7、北斗(9600) Module number : 2、RFID(115200) 4、Finger(57600),5、OBD(9600) ,7、Beidou(9600)
        返回:
        成功true,失败false
        If sucess, return true, if failure, return false.
      • init

        public boolean init(int module)
        初始化模块
        Initialize the module
        参数:
        module - 模块编号 模块编号 1、1D(9600) 2、RFID(115200) 3、UHF(115200) 4、Finger(57600)5、OBD
        Module number: 1、1D(9600) 2、RFID(115200) 3、UHF(115200) 4、Finger(57600)5、OBD
        返回:
        成功true,失败false
        If sucess, return true, if failure, return false.
      • init

        public boolean init(int module,
                            int baudrate)
        初始化模块
        Initialize the module
        参数:
        module - 模块编号 模块编号 1、1D(9600) 2、RFID(115200) 3、UHF(115200) 4、Finger(57600)5、OBD
        Module number: 1、1D(9600) 2、RFID(115200) 3、UHF(115200) 4、Finger(57600)5、OBD
        baudrate - 自定义波特率
        Self define Baudrate.
        返回:
        成功true,失败false
        If sucess, return true, if failure, return false.
      • free

        public boolean free()
        释放模块
        Release the module
        返回:
        成功true,失败false
        If sucess, return true, if failure, return false.
      • send

        public boolean send(byte[] data)
        发送数据
        Send data.
        参数:
        data - 数据
        Data
        返回:
        true成功,false失败
        If sucess,return true, if failure, return false.
      • receive

        public byte[] receive()
        接收数据
        Receive data.
        返回:
        数据
        Data