RFID算法获取卡片ID [英] RFID algorithm to get card ID
问题描述
我在收到一张卡时从RFID读卡器接收字节,但我无法弄清楚如何从这些字节中获取卡ID。
例如,例如,我有一张印有这些号码的卡: 0007625328 116,23152 。我认为这是该卡的ID,对吗?
对于这张卡,我从读卡器获得以下字节(十六进制表示): 74> 74> <5A> 70 。
十进制数0007625328转换为 0x00745A70
>数字116,23152实际上是相同数值(0007625328)的不同表示:
十六进制中的0x74
。
十进制中的23152十六进制中的 0x5A70
。
0x00745A70
。
您收到的值( 42 09 01 74 00 74 5A 70
)似乎是某种形式前缀值的串联( 0x42090174
)和打印的卡片序列号( 0x00745A70
)。
I receive bytes from an RFID reader when presenting a card, but I'm unable to figure out how to derive the card ID from these bytes.
For example, I have a card that has these numbers printed on it: 0007625328 116,23152. I would expect that this is the ID of that card, right?
For this card, I get the following bytes from the reader (in hexadecimal representation): <42><09><01><74><00><74><5A><70>.
The decimal number 0007625328 translates to 0x00745A70
in hexadecimal representation.
The number 116,23152 is actually a different representation of that same value (0007625328):
- 116 in decimal is
0x74
in hexadecimal. - 23152 in decimal is
0x5A70
in hexadecimal. - Combined, this also gives
0x00745A70
.
So the value that you receive (42 09 01 74 00 74 5A 70
) seems to be the concatenation of some form of prefix value (0x42090174
) and the printed card serial number (0x00745A70
).
这篇关于RFID算法获取卡片ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!