I want to make software that connecting to an HID OMNIKEY 3128 smart card "Aviator chip", I have succeed to connect this device using an API function “SCardConnect”, but according to developer guideline (Page 17) https://www.hidglobal.com/doclib/files/resource_files/plt-03099_a.3_-_omnikey_sw_dev_guide.pdf I must change a voltage sequence to solve Read/Write problem, and this done by sending an APDU command, “How can I send this commands using c++, is there any API function to do that like a SCardConnect?
How can I send APDU command using C++?
1.1k Views Asked by Bassam Najeeb At
1
There are 1 best solutions below
Related Questions in C++
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
- I want to be able to use 4 different variables in a select statement in c ++
- segmentation fault: 11, extracting data in vector
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- How can I print all the values in this linked list inside a hash table?
- Configured TTL for A record(s) backing CNAME records
Related Questions in APDU
- Recovering an ECPublicKey from JavaCard to Java
- Recovering an ECPublicKey from Java to JavaCard
- How to send a data array to my Applet and manipulation it by Applet and return new data in response apdu?
- APDU via USB Connection
- How do I interpret the response from GET PROCESSING OPTIONS?
- javax.smartcardio case 4 APDU vanishing - 6700 response - warning
- Read serial from smartcard with javax.smartcardio
- ACR35: APDU command select file returns status 6A 82 (file not found)
- pcsc-sharp Mifare Authentication
- How to get further data from JavaCard after 0x6310 status?
- Why is my HCE app not getting to my HCEservice?
- Card Emulation, RC522 and Nexus 4's NFC UID
- Test a HostApduService with Robolectric
- Extended APDU in NetBeans Emulator not being parsed
- Type B NFC Chip in US Passport MRTD
Related Questions in OMNIKEY
- C# dotnet core PCSC and the OMNIKEY 3121
- Omnikey 5421 generic card command interface not working for Mifare plus SL1
- HID Omnikey 5427 CK not working in KBW mode
- Writing data to a mifare desfire card
- Send APDU command for ultralight C authentication
- Omnikey 5X21 APDU write command for ultralight C
- What does APDU response 910B mean for a DESFire EV2 card?
- I want to get the omnikey readear running status
- Access a SmartCard iso14443A with Node.js
- omnikey 3121 dynamic emv card reader and writer for windows
- Reading PACS (raw Wiegand) data with Omnikey 5022
- How to get access to Omnikey 3121 smart card reader
- Enable ISO/IEC 14443 Type A in omnikey 5422
- How can I send APDU command using C++?
- How can I read a data from OMNIKEY 3121 smart card device?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Disclaimer first: I did not use the PC/SC API before but became curious with your question as it is remotely related to a project I did long ago. - Thus, the following is untested and should be taken with a grain of salt :-)
If I understand page 26 in your linked document correctly, the functions to be used are either (preferably)
SCardTransmitorSCardControl.A sample, how to transmit an APDU command can be found, e.g. on https://ludovicrousseau.blogspot.com/2010/04/pcsc-sample-in-c.html. It is worth reading descriptions given there. The relevant parts mainly boil down to:
Now, the question is, how to compose
cmd. Here, the C# examples on https://github.com/hidglobal/HID-OMNIKEY-Sample-Codes might be helpful. Specifically, you should look at SetVoltageSequence() and VoltageSequence.SetApdu(). If I understand this correctly, something around the following should work:I assume, that all required code for communicating with the device should be available more or less in the linked C# example code.