Rokato. IcodeSli

IcodeSli/SliX操作类

Constructor

new IcodeSli(iso15693)

构造IcodeSli/SliX操作对象

Parameters:
NameTypeDescription
iso15693Iso15693

Iso15693操作对象

Members

BLOCK_SIZE

块大小

(static, readonly) FlagType :number

特殊标志类型

Type:
  • number
Properties
NameTypeDescription
EASnumber
AFInumber

(static, readonly) PwdId :number

密钥ID

Type:
  • number
Properties
NameTypeDescription
ReadWriteKillnumber
EASAFInumber

Methods

(async) checkEAS() → {Promise}

检查EAS

Returns:

err/msg + retval+data

Type: 
Promise

(async) disableEAS() → {Promise}

禁用EAS

Returns:

err/msg + retval

Type: 
Promise

(async) enableEAS() → {Promise}

启用EAS

Returns:

err/msg + retval

Type: 
Promise

(async) kill(pwd) → {Promise}

永久销毁 如果存在锁定数据则无法销毁

Parameters:
NameTypeDescription
pwdstring

十六进制有效密码

Returns:

err/msg + retval

Type: 
Promise

(async) lockEAS() → {Promise}

锁定EAS

Returns:

err/msg + retval

Type: 
Promise

(async) lockPassword(id) → {Promise}

锁定密码

Parameters:
NameTypeDescription
idnumber

参考Rokato.IcodeSli.PwdId

Returns:

err/msg + retval

Type: 
Promise

(async) passwordProtect(type) → {Promise}

密码保护 注意永久激活不可取消

Parameters:
NameTypeDescription
typenumber

参考Rokato.IcodeSli.FlagType

Returns:

err/msg + retval

Type: 
Promise

(async) readAuthStartAddr() → {Promise}

读授权起始块地址 读取成功代表尚未锁定快速初始化模式且默认地址为A5

Returns:

err/msg + retval/authStartAddr

Type: 
Promise

(async) stayQuietPersistent(uid) → {Promise}

永久持续保持安静 进入安静状态后不在响应查找Id 必须resetToReady复位解除

Parameters:
NameTypeDescription
uidstring

十六进制有效UID

Returns:

err/msg + retval

Type: 
Promise

(async) verifyPassword(pwd, id) → {Promise}

验证密码提权 注意验证失败将无法继续操作任何指令,除非重置RF射频感应

Parameters:
NameTypeDescription
pwdstring

十六进制有效密码

idnumber

参考Rokato.IcodeSli.PwdId

Returns:

err/msg + retval

Type: 
Promise

(async) writeAuthStartAddr(authStartAddr) → {Promise}

写授权起始块地址 永久锁定并退出快速初始化模式

Parameters:
NameTypeDescription
authStartAddrnumber

授权起始块地址

Returns:

err/msg + retval

Type: 
Promise

(async) writePassword(pwd, id) → {Promise}

写密码 成功后需重新验证密码提权

Parameters:
NameTypeDescription
pwdstring

十六进制有效密码

idnumber

参考Rokato.IcodeSli.PwdId

Returns:

err/msg + retval

Type: 
Promise

(async) writeTwoBlock(blockAddr, data) → {Promise}

写两个连续块

Parameters:
NameTypeDescription
blockAddrnumber

有效块地址

datastring

两块数据

Returns:

err/msg + retval

Type: 
Promise