From dfb5fa3de4a4cf3df60194c3efcc2b24524d80e1 Mon Sep 17 00:00:00 2001 From: Jakub Kramarz Date: Mon, 6 Jan 2025 12:15:59 +0100 Subject: [PATCH] armsrc/sam_seos.c: add SoRootOID in sam_request_pacs As described in 5326-903 OMNIKEY 5326 Software Developer Guide (https://www.hidglobal.com/documents/omnikey-5326-dfr-developers-guide). Seems like it should be here since the beginning, but worked fine without. --- armsrc/sam_seos.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/armsrc/sam_seos.c b/armsrc/sam_seos.c index 5ac73ceb9..f3afd568e 100644 --- a/armsrc/sam_seos.c +++ b/armsrc/sam_seos.c @@ -217,11 +217,14 @@ static int sam_request_pacs(uint8_t * pacs, uint8_t * pacs_len){ // send get pacs static const uint8_t payload[] = { - 0xa0, 5, // <- SAM command - 0xa1, 3, // <- get PACS + 0xa0, 19, // <- SAM command + 0xA1, 17, // <- SamCommandGetContentElement 0x80, 1, - 0x04 + 0x04, // <- implicitFormatPhysicalAccessBits + 0x84, 12, + 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0xE4, 0x38, 0x01, 0x01, 0x02, 0x04 // <- SoRootOID }; + sam_tx_len = sizeof(payload); memcpy(sam_tx_buf, payload, sam_tx_len);