CCID 插槽状态字节

CCID slot status byte

看了CCID规范,想知道Slot StatusbStatus字节)的内在结构是什么,设置在header响应(入站批量传输)消息。

只有前两位和后两位用于 bmIccStatusbmCommandStatus,但我不确定如何使用。

给定 (JavaScript) 二进制符号 0bxx0000yybmCommandStatus 是否由 xx 表示?

给定 (JavaScript) 二进制表示法 0bxx0000yy:

  • xx .. bmCommandStatus(掩码0xC0
  • yy .. bmICCStatus(掩码 0x03

参考资料here(我确实检查了CCID Rev 1.1,但是无法在这里找到位顺序- - 即 MSB 优先或 LSB 优先)。

您可能会发现使用 wireshark extremely useful as it supports USB sniffing with CCID support