| | |
| | |
|
| | | public class ElectLock_ComBase {
|
| | |
|
| | | public static final int Lock_BluetoothCheckTimeLong = 20; //监测蓝牙计划开启间隔
|
| | | |
| | | public static final int Lock_MaxLineCount = 254; //一个串口服务器最大连接锁具个数
|
| | | public static final int Lock_MaxCardCount = 100; //一个电子锁最大授权ID卡数量
|
| | | |
| | | public static final int Lock_Model_OffLine = 0; //离线模式
|
| | | public static final int Lock_Model_OnLine = 1; //在线模式
|
| | | |
| | | public static final int Lock_Bluetooth_Close = 0; //蓝牙关闭
|
| | | public static final int Lock_Bluetooth_Open = 1; //蓝牙开启
|
| | | |
| | | |
| | | public static final int CMD_Fail = -1; //失败
|
| | |
|
| | | public static final int CMD_ClearIdCard = 0x10; //清空所有授权卡
|
| | |
| | | public static final int CMD_RemoveIdCard = 0x20; //移除授权卡ID
|
| | | public static final int CMD_RemoveIdCard_Ack = 0x21; //移除授权卡ID成功
|
| | |
|
| | | public static final int CMD_OpenBluetooth = 0x24; //开启蓝牙
|
| | | public static final int CMD_OpenBluetooth_Ack = 0x25; //开启蓝牙成功
|
| | |
|
| | | public static final int Auth_Fail = 0; //授权失败
|
| | | public static final int Auth_Success = 1; //授权成功
|
| | | public static final int CMD_CloseBluetooth = 0x26; //关闭蓝牙
|
| | | public static final int CMD_CloseBluetooth_Ack = 0x27; //关闭蓝牙成功
|
| | |
|
| | |
|
| | | public static final int LOCK_REAL_ADDR = 0; //实时数据地址
|
| | | |
| | | public static final int LOCK_CLEAR_AUTH_ADDR = 0; //清空所有授权地址
|
| | | public static final int LOCK_REMOTE_OPEN_ADDR = 1; //远程开锁地址
|
| | | public static final int LOCK_RESTART_ADDR = 2; //远程重启地址
|
| | | |
| | | public static final int LOCK_SET_ADDR_ADDR = 0; //设置设备地址
|
| | | public static final int LOCK_Add_ID_AUTH_ADDR = 1; //授权ID卡地址
|
| | | public static final int LOCK_Clear_ID_AUTH_ADDR = 3; //取消授权ID卡地址
|
| | | public static final int Auth_Fail = 0; //授权失败
|
| | | public static final int Auth_Success = 1; //授权成功
|
| | |
|
| | |
|
| | | public static final int RegCount_Sigle = 1; //单点控制时点位
|
| | | public static final int RegCount_Double = 2; //ID卡控制时点位
|
| | | public static final int LOCK_REAL_ADDR = 0; //实时数据地址
|
| | | |
| | | public static final int LOCK_CLEAR_AUTH_ADDR = 0; //清空所有授权地址
|
| | | public static final int LOCK_REMOTE_OPEN_ADDR = 1; //远程开锁地址
|
| | | public static final int LOCK_RESTART_ADDR = 2; //远程重启地址
|
| | | |
| | | public static final int LOCK_SET_ADDR_ADDR = 0; //设置设备地址
|
| | | public static final int LOCK_Add_ID_AUTH_ADDR = 1; //授权ID卡地址
|
| | | public static final int LOCK_Clear_ID_AUTH_ADDR = 3; //取消授权ID卡地址
|
| | | public static final int LOCK_SET_Model_ADDR = 5; //设置锁具工作模式
|
| | | public static final int LOCK_SET_Bluetooth_ADDR = 6; //设置蓝牙开关地址
|
| | |
|
| | | |
| | | |
| | | public static final int LOCK_IDCard1_ADDR = 100; //已录入锁具ID卡
|
| | | public static final int LOCK_IDCard2_ADDR = 200; //已录入锁具ID卡
|
| | | |
| | | |
| | | public static final int RegCount_Sigle = 1; //单点控制时点位
|
| | | public static final int RegCount_Double = 2; //ID卡控制时点位
|
| | |
|
| | | public static final int Control_Value = 0xFF00; //控制时写入值
|
| | |
|
| | |
| | | public static final int CtlType_RemoveIdCard = 6; //移除授权卡ID
|
| | | public static final int CtlType_Bluetooth = 7; //蓝牙开锁
|
| | | public static final int CtlType_IDCardOpen = 8; //ID开锁
|
| | | public static final int CtlType_BluetoothOpen = 9; //蓝牙开启
|
| | | public static final int CtlType_BluetoothClose = 10; //蓝牙关闭
|
| | | /************************************************************************************/
|
| | |
|
| | |
|