且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

RFID - 一个标签在两个不同的阅读器中提供两个不同的 ID

更新时间:2023-10-26 11:44:22

好吧,我觉得自己很傻.

Right, I feel stupid.

但如果您偶然发现这个问题,这里有一个答案:

But if you stumble upon this question, here's an answer:

ID 通常在一个数字中包含更多信息.在这种特殊情况下,ID 的最后 2 个字节(16 位)是卡号:

The ID often comes with more info in a single number. In this particular case the last 2 bytes (16 bits) of the ID are the card number:

6628180 = [....] 0010 0011 0101 0100 -> 如果将 Windows 计算器切换到程序员模式,您可以在 Windows 计算器中获得这些值.

6628180 = [....] 0010 0011 0101 0100 -> you can get those in the Windows calculator if you switch it to programmer mode.

有些设备只是将两个代码直接放在一个 ID 中:

Some devices just straight place both codes in a single ID:

10109044 = [....] 0100 0000 0111 0100 -> 我们可以确认它们不一样

10109044 = [....] 0100 0000 0111 0100 -> we can confirm that they are not the same

但是,如果我们对 ID 的最后 5 位数字(在本例中为 101 - 09044)进行切片,我们得到:

However, if we slice the 5 last digits of the ID (in this case 101 - 09044), we get:

09044 = 0010 0011 0101 0100 -> 与第一个值中存储的 2 个字节相同.

09044 = 0010 0011 0101 0100 -> the same as the 2 bytes stored in the first value.

ID 的读取基于摩托罗拉卡定义.希望有帮助.

The reading of ID is based according to Motorola cards definition. Hope it helps.