|  |  | 
 |  |  | package com.dayu.qihealonelibrary.card; | 
 |  |  |  | 
 |  |  | import com.dayu.baselibrary.tools.HexUtil; | 
 |  |  | import com.dayu.qihealonelibrary.dao.AppDatabase; | 
 |  |  | import com.dayu.qihealonelibrary.utils.MyCommon; | 
 |  |  | import com.dayu.qihealonelibrary.dao.QHAloneAppDatabase; | 
 |  |  | import com.dayu.qihealonelibrary.utils.CardCommon; | 
 |  |  |  | 
 |  |  | import java.io.Serializable; | 
 |  |  |  | 
 |  |  | 
 |  |  |  * 为方便现场更换设备时重新注册的问题,配置设备信息卡,首先刷卡,把原设备的注册号和ID号读到卡内,同时卡状态则00修改为FF,再新设备上刷此卡时,注册号和ID号自动写到控制器内,可以直接刷卡使用 | 
 |  |  |  */ | 
 |  |  | public class ConfigureDeviceRegistrationCrad extends BaseCard implements Serializable { | 
 |  |  |     public String cardType = MyCommon.CONFIGURATION_CARD_TYPE;//卡类型 | 
 |  |  |     public String cardType = CardCommon.CONFIGURATION_CARD_TYPE;//卡类型 | 
 |  |  |     public String cardData = "A0B1C289";//标识码 | 
 |  |  |  | 
 |  |  |     public String getCardData() { | 
 |  |  |         return cardData; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public byte[] toByte(AppDatabase appDatabase) { | 
 |  |  |         setCardData(appDatabase, cardType); | 
 |  |  |     public byte[] toByte(QHAloneAppDatabase QHAloneAppDatabase) { | 
 |  |  |         setCardData(QHAloneAppDatabase, cardType); | 
 |  |  |         Zero zero = new Zero(); | 
 |  |  |         return zero.toByte(); | 
 |  |  |     } |