Skip navigation links
com.rscja.deviceapi

Class Module

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method and Description
      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)
      Deprecated. 
      boolean powerOn(int module)
      Deprecated. 
      byte[] receive()
      接收数据
      Receive data.
      boolean send(byte[] data)
      发送数据
      Send data.
      boolean uartSwitch_module(int module)
      Deprecated. 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • powerOn

        @Deprecated
        public boolean powerOn(int module)
        Deprecated. 
        模块上电,仅上电不开串口,目前不支持V600设备
        Power on the module, only power on, do not open uart.
        Parameters:
        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
        Returns:
        成功true,失败false
        If sucess, return true, if failure, return false.
      • powerOff

        @Deprecated
        public boolean powerOff(int module)
        Deprecated. 
        模块下电,仅下电不关串口,目前不支持V600设备
        Power off the module, only power off, do not close uart.
        Parameters:
        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)
        Returns:
        成功true,失败false
        If sucess, return true, if failure, return false.
      • uartSwitch_module

        @Deprecated
        public boolean uartSwitch_module(int module)
        Deprecated. 
        串口切换,目前不支持V600设备
        Uart switch,V600 not supported yet.
        Parameters:
        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)
        Returns:
        成功true,失败false
        If sucess, return true, if failure, return false.
      • init

        public boolean init(int module)
        初始化模块
        Initialize the module
        Parameters:
        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
        Returns:
        成功true,失败false
        If sucess, return true, if failure, return false.
      • init

        public boolean init(int module,
                            int baudrate)
        初始化模块
        Initialize the module
        Parameters:
        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.
        Returns:
        成功true,失败false
        If sucess, return true, if failure, return false.
      • free

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

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

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