| | |
| | |
|
| | |
|
| | | // public static int Reg_Count_Real = 8; //寄存器数量
|
| | | public static int Reg_Count_Real = 11; //寄存器数量
|
| | | // public static int Reg_Count_Real = 11; //寄存器数量
|
| | | public static int Reg_Count_Real = 12; //寄存器数量
|
| | |
|
| | | private Date record_time = new Date(0); //'更新时间',
|
| | | private String gprs_sn; //'gprs模块SN码',
|
| | |
| | | private int op_cmd; //'控制命令',
|
| | | private int id_card_set; //'授权ID卡号',
|
| | | private int lock_addr_set; //'设置设备地址[慎用]',
|
| | | private int workmodel; //工作模式【0-离线模式 1-在线模式】
|
| | |
|
| | | private int lock_online; //锁具在线状态[0-离线 1-在线]
|
| | |
|
| | |
| | | for(int k =0;k<mac_addr.length;k++) {
|
| | | mac_addr[k] = ComBase.changeByteToInt(buffer.get());
|
| | | }
|
| | | workmodel = ComBase.changeShortToInt(buffer.getShort()); |
| | |
|
| | | // System.out.println("BlutoothMAC:" + getLockMacAddr());
|
| | |
|
| | |
| | | }
|
| | |
|
| | |
|
| | | public int getWorkmodel() {
|
| | | return workmodel;
|
| | | }
|
| | |
|
| | |
|
| | | public void setWorkmodel(int workmodel) {
|
| | | this.workmodel = workmodel;
|
| | | }
|
| | |
|
| | |
|
| | | public int getMax_id_count() {
|
| | | return max_id_count;
|
| | | }
|