Incorrect received bytes from PD #237
Unanswered
PavletsovGIT
asked this question in
Q&A
Replies: 1 comment
-
I am not sure if I understand your messages correctly. Did LibOSDP initialize properly and come online, and then the card read data is messed up?
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am writeing C program for CP, as a PD I use cardreader Dahua DHI-ASR2201A-D. About problem: After initialization pd list by libosdp cardreader reply me correct bytes order. But every time when I try to read card cardreader send my not correct bytes order. After first time card read I get bytes
0x42
0x45
instead of Mark-byte0xFF
.I thuoght that its trash bytes so I shift bytes left when I receive messages, but libosdp writes error "Incorrect CRC". Also, I thought that I need to change bits order from little-endian to big-endian, but it's not helpful. If error in bits order I could see byte 0xCA (reverse SOM-byte 0x53) in byte order.
Examples bytes order from debug:
Initialization by libosdp:
Received bytes from PD after initialization:
Received bytes after first time card read:
Received bytes after second time card read:
Beta Was this translation helpful? Give feedback.
All reactions