Constructor
new IcodeSli(iso15693)
构造IcodeSli/SliX操作对象
Parameters:
Name | Type | Description |
---|---|---|
iso15693 | Iso15693 | Iso15693操作对象 |
- Source
Members
BLOCK_SIZE
块大小
- Source
(static, readonly) FlagType :number
特殊标志类型
Type:
Properties- number
Name | Type | Description |
---|---|---|
EAS | number | |
AFI | number |
- Source
(static, readonly) PwdId :number
密钥ID
Type:
Properties- number
Name | Type | Description |
---|---|---|
ReadWriteKill | number | |
EASAFI | number |
- Source
Methods
(async) checkEAS() → {Promise}
检查EAS
- Source
Returns:
err/msg + retval+data
- Type:
- Promise
(async) disableEAS() → {Promise}
禁用EAS
- Source
Returns:
err/msg + retval
- Type:
- Promise
(async) enableEAS() → {Promise}
启用EAS
- Source
Returns:
err/msg + retval
- Type:
- Promise
(async) kill(pwd) → {Promise}
永久销毁 如果存在锁定数据则无法销毁
Parameters:
Name | Type | Description |
---|---|---|
pwd | string | 十六进制有效密码 |
- Source
Returns:
err/msg + retval
- Type:
- Promise
(async) lockEAS() → {Promise}
锁定EAS
- Source
Returns:
err/msg + retval
- Type:
- Promise
(async) lockPassword(id) → {Promise}
锁定密码
Parameters:
Name | Type | Description |
---|---|---|
id | number | 参考Rokato.IcodeSli.PwdId |
- Source
Returns:
err/msg + retval
- Type:
- Promise
(async) passwordProtect(type) → {Promise}
密码保护 注意永久激活不可取消
Parameters:
Name | Type | Description |
---|---|---|
type | number | 参考Rokato.IcodeSli.FlagType |
- Source
Returns:
err/msg + retval
- Type:
- Promise
(async) readAuthStartAddr() → {Promise}
读授权起始块地址 读取成功代表尚未锁定快速初始化模式且默认地址为A5
- Source
Returns:
err/msg + retval/authStartAddr
- Type:
- Promise
(async) stayQuietPersistent(uid) → {Promise}
永久持续保持安静 进入安静状态后不在响应查找Id 必须resetToReady复位解除
Parameters:
Name | Type | Description |
---|---|---|
uid | string | 十六进制有效UID |
- Source
Returns:
err/msg + retval
- Type:
- Promise
(async) verifyPassword(pwd, id) → {Promise}
验证密码提权 注意验证失败将无法继续操作任何指令,除非重置RF射频感应
Parameters:
Name | Type | Description |
---|---|---|
pwd | string | 十六进制有效密码 |
id | number | 参考Rokato.IcodeSli.PwdId |
- Source
Returns:
err/msg + retval
- Type:
- Promise
(async) writeAuthStartAddr(authStartAddr) → {Promise}
写授权起始块地址 永久锁定并退出快速初始化模式
Parameters:
Name | Type | Description |
---|---|---|
authStartAddr | number | 授权起始块地址 |
- Source
Returns:
err/msg + retval
- Type:
- Promise
(async) writePassword(pwd, id) → {Promise}
写密码 成功后需重新验证密码提权
Parameters:
Name | Type | Description |
---|---|---|
pwd | string | 十六进制有效密码 |
id | number | 参考Rokato.IcodeSli.PwdId |
- Source
Returns:
err/msg + retval
- Type:
- Promise
(async) writeTwoBlock(blockAddr, data) → {Promise}
写两个连续块
Parameters:
Name | Type | Description |
---|---|---|
blockAddr | number | 有效块地址 |
data | string | 两块数据 |
- Source
Returns:
err/msg + retval
- Type:
- Promise