Description of functional types
DoorDeviceAccessProxy
Control the overall initialization, configuration, and resource release operations of communication devices such as GPIO ports and serial ports of the control device, and perform specific door opening operations.
DoorAccessConfig getConfig()
Get Door Access Configuration
DoorAccessDevice getDevice(int deviceType)
void changeOpenDoorDevice(int mode)
void init(String uartName)
void openDoor(String cardNumber)
void setConfig(DoorAccessConfig config)
set Door Access Configuration
void setCardReaderCallback
(WiegandReaderDevice.CardReaderCallback cardReaderCallback)
set Wiegand Card Reader Callback
void setCustomWiegandDataReceivedCallback
(WiegandReaderDevice.OnDataReceivedCallback dataReceivedCallback)
Set Custom Wiegand Data Interface Callback
void setICardNumberAnalysis
(WiegandDoorDevice.ICardNumberAnalysis cardNumberAnalysis)
Set Wiegand Card Number Analysis Mode
Description of Member Function
DoorAccessConfig getConfig()
Get Door Access Configuration
Parameter
None
Return
Door Access Configuration Instance
Exception
None
DoorAccessDevice getDevice(int deviceType)
Get device reference according to device type
Parameter
Return
Exception
None
void changeOpenDoorDevice(int mode)
Change Open Door Mode
Parameter
DoorAccessConfig Door Access Configuration
Return
None
Exception
None
void closeRelayDoor()
Close Relay Door
Parameter
None
Return
None
Exception
None
Initialization without serial port number, refer to [void init(String uartName)](#void init(String uartName))
Parameter
None
Return
None
Exception
None
void init(String uartName)
Initialization with serial port number
Parameter
Return
None
Exception
None
void openDoor(String cardNumber)
Open the door, execute the door opening action according to the set open door mode
Parameter
Return
No
Exception
No
Release Resource
Parameter
None
Return
None
Exception
None
void setConfig(DoorAccessConfig config)
Set Door Access Configuration
Parameter
Door Access Configuration
Return
None
Exception
None
void setCardReaderCallback(WiegandReaderDevice.CardReaderCallback cardReaderCallback)
Set Card Read Callback
Parameter
WiegandReaderDevice.CardReaderCallback
Wiegand Card Reader Callback
Return
None
Exception
None
void setCustomWiegandDataReceivedCallback(WiegandReaderDevice.OnDataReceivedCallback dataReceivedCallback)
Set Custom Wiegand Data Interface Callback
Parameter
WiegandReaderDevice.OnDataReceivedCallback
Wiegand Passthough Data Received Callback
Return
No
Exception
No
void setICardNumberAnalysis(WiegandDoorDevice.ICardNumberAnalysis cardNumberAnalysis)
Set Wiegand Card Number String Parsing Method
Parameter
WiegandDoorDevice.ICardNumberAnalysis
Card Number String Parsing Method
Return
No
Exception
No
PassDoorDeviceAccessProxy
Control some door access devices of Pass and Thunder series
void enableRS485(RS485Device.RS485ReceiveListener listener)
void enableRS485(int baudrate, int readBufferSize, RS485Device.RS485ReceiveListener listener)
void enableRS485(int baudrate, int readBufferSize, RS485Device.RS485ReceiveListener listener, int readTimeout, SerialPortReader.OnReadTimeOutListener timeOutListener)
void pressDoorBell(int pressDownDuration)
void setDoorStateCallback(DoorMagnetismStateCallback callback)
void setOnClickDoorButtonListener
(DoorButtonDevice.DoorButtonOnClickListener listener)
Door Button On Click Listener
void setReceiveFireSignListener
(FireSignalDevice.ReceiveFireSignListener listener)
void sendDataByRS485(byte[] data)
Description of Member Function
void closeBackLight()
Close Back Light
Parameter
None
Return
None
Exception
None
void enableRS485(RS485Device.RS485ReceiveListener listener)
Enable RS485
Parameter
RS485Device.RS485ReceiveListener
Return
None
Exception
None
void enableRS485(int baudrate, int readBufferSize, RS485Device.RS485ReceiveListener listener)
Enable RS485
Parameter
The length of the data to be read
RS485Device.RS485ReceiveListener
Return
None
Exception
None
void enableRS485(int baudrate, int readBufferSize, RS485Device.RS485ReceiveListener listener, int readTimeout, SerialPortReader.OnReadTimeOutListener timeOutListener)
Enable RS485
Parameter
The length of the data to be read
RS485Device.RS485ReceiveListener
SerialPortReader.OnReadTimeOutListener
Data read timeout callback
Return
None
Exception
None
void openBackLight()
Open Back Light
Parameter
None
Return
None
Exception
None
void pressBuzzer()
press Buzzer (Only support SensePass and SenseThunderE-mini)
Parameter
None
Return
None
Exception
None
void pressDoorBell(int pressDownDuration)
press Door Bell
Parameter
press Down Duration, unit millisecond
Return
None
Exception
None
void pressAlarmBell()
Press Alarm Bell to Turn the Alarm On
Parameter
None
Return
None
Exception
None
void releaseAlarmBell()
Release Alarm Bell
Parameter
None
Return
None
Exception
None
void releaseBuzzer()
Buzzer Off (Only supports SensePass020)
Parameter
None
Return
None
Exception
None
void setDoorStateCallback(DoorMagnetismStateCallback callback)
Set Door State Callback, Door Open/Close Status Listener
Parameter
DoorMagnetismStateCallback
Return
None
Exception
None
Door Button On Click Listener
Parameter
DoorButtonDevice.DoorButtonOnClickListener
Door Button On Click Listener
Return
None
Exception
None
void setReceiveFireSignListener(FireSignalDevice.ReceiveFireSignListener listener)
Receive Fire Sign Listener
Parameter
FireSignalDevice.ReceiveFireSignListener
Return
None
Exception
None
void sendDataByRS485(byte[] data)
Send Data By RS485
Parameter
Return
None
Exception
None
void turnOnIrLight()
Turn on IR Light, Support Pass and Thunder series
Parameter
None
Return
None
Exception
None
void turnOffIrLight()
Turn off IR Light, Support Pass and Thunder series
Parameter
None
Return
None
Exception
None
Description of Entities
DoorAccessConfig
Door Access Configuration
Description of Properties
static final int OPEN_DOOR_MODE_RELAY
static final int OPEN_DOOR_MODE_IP_RELAY
static final int OPEN_DOOR_MODE_WIEGAND26_24_BIT
static final int OPEN_DOOR_MODE_WIEGAND26_8_16_BIT
static final int OPEN_DOOR_MODE_WIEGAND32
static final int OPEN_DOOR_MODE_WIEGAND34
static final int OPEN_DOOR_MODE_CUSTOM
static final int WIEGAND26_24_BIT
static final int WIEGAND26_8_16_BIT
static final int WIEGAND32
static final int WIEGAND34
static final int WIEGAND_INPUT_CUSTOM
GPIO Configuration
static final int GPIO_IN_NONE
GPIO Input not Configured
static final int GPIO_IN_DOOR_MAGNETISM
GPIO Input Configuration DOOR MAGNETISM
static final int GPIO_IN_DOOR_BUTTON
GPIO Input Configuration DOOR BUTTON
static final int GPIO_IN_FIRE_SIGNAL
GPIO Input Configuration FIRE SIGNAL
static final int GPIO_OUT_NONE
GPIO Output not configured
static final int GPIO_OUT_DOOR_BELL
GPIO Output Configuration DOOR BELL
static final int GPIO_OUT_ALARM
GPIO Output Configuration ALARM
Settable Properties
int mDoorMagnetismTimeout
RS485 Serial Port Baud Rate
boolean mIsSupportRS485GpioAutoControl
Support RS485 GPIO Auto Control
boolean mReverseCardNumber
Description of Method
Build an Instance of DoorAccessConfig
DoorAccessDevice
Door Access Device
Description of Method
void setConfig(DoorAccessConfig config)
boolean isDeviceCreated()
CardReaderCallback
WIEGAND Device Card Reader Callback
Description of Method
void onRead(String cardNumber)
Card Read Successful and Get Card Number
OnDataReceivedCallback
Wiegand Passthough Data Received Callback
Description of Method
void onDataReceived(byte[] cardData)
cardData: Customized Wiegand Card Number Data
ICardNumberAnalysis
Analysis of Customized Wiegand Card Number Data
Description of Method
byte[] analysis(String cardDataString)
The card string is parsed into byte[] data
cardDataString card Data String Return the custom Wiegand data corresponding to the card
DoorMagnetismStateCallback
Door Magnetism State Callback
Description of Method
void onDoorStateChanged(int state)
Door Magnetism State Callback
ReceiveFireSignListener
Fire Sign Listener
Description of Method
ReceiveDismantleSignListener
Dismantle Sign Listener
Description of Method
Sensor Data change interface
Description of Method
void onSensorChanged(String value)
OnSensorChangedListener
Ir Listener
Description of Method
void onInfraredSignalRead()
RS485ReceiveListener
RS485 Data Read Listener
Description of Method
void onReceive(byte[] data,long dataLength)
dataLength: Data Length; data: Data Read
OnReadTimeOutListener
RS485 Data Read Time Out Callback
Description of Method
void onTimeout(byte[] data,long dataLength)
RS485 Data Read Time Out Callback
dataLength: Data Length; data: Data read when timeout
Door Button On Click Listener
Description of Method
Door Button On Click Callback