CCID, Smartcard

  1. 3 years ago

    Jaap C

    17 Oct 2016 Pre-Release Testers, Xojo Pro Europe, Holland

    Hi, for a customer I have to build an Win+Mac app with can read info of a smarcard.
    They are using Mifare Smarcard's already and want to use reader ACR122U .

    Is there already a Xojo plugin for reading info from a CCID device like this?

  2. Christian S

    17 Oct 2016 Pre-Release Testers, Xojo Pro, XDC Speakers, Third Party Store Germany

    We have a SmartCard class:
    http://www.monkeybreadsoftware.net/pluginpart-smartcard.shtml

  3. Jaap C

    18 Oct 2016 Pre-Release Testers, Xojo Pro Europe, Holland

    @ChristianSchmitz We have a SmartCard class:
    http://www.monkeybreadsoftware.net/pluginpart-smartcard.shtml

    Thx! It's connecting, I mail you some questions about it!

  4. Christian S

    18 Oct 2016 Pre-Release Testers, Xojo Pro, XDC Speakers, Third Party Store Germany

    Have fun!

  5. Valdemar D

    18 Oct 2016 Pre-Release Testers, Xojo Pro Europe ( France, Paris )

    Is there a sample code for test ?

  6. Jaap C

    18 Oct 2016 Pre-Release Testers, Xojo Pro Europe, Holland
    Edited 3 years ago

    @Valdemar De SOUSA Is there a sample code for test ?

    No!

  7. Christian S

    18 Oct 2016 Pre-Release Testers, Xojo Pro, XDC Speakers, Third Party Store Germany

    http://www.monkeybreadsoftware.net/smartcard-smartcardmbs-method.shtml#12

    did you get the version with this Transmit call?

  8. Christian S

    18 Oct 2016 Pre-Release Testers, Xojo Pro, XDC Speakers, Third Party Store Germany

    oh, there may be an error.
    The header must use 2 for T1, I think.

  9. Jaap C

    19 Oct 2016 Pre-Release Testers, Xojo Pro Europe, Holland
    Edited 3 years ago

    The code in your documents to get the Version is returning error -2146435064

  10. Christian S

    19 Oct 2016 Pre-Release Testers, Xojo Pro, XDC Speakers, Third Party Store Germany

    Maybe I find time tonight to try it myself...

  11. Christian S

    19 Oct 2016 Pre-Release Testers, Xojo Pro, XDC Speakers, Third Party Store Germany

    So, I wrote a sample which shows here version number and queries serial number.
    Seems to work for me.

    I've emailed it to Jaap and Valdemar.

  12. Valdemar D

    26 Oct 2016 Pre-Release Testers, Xojo Pro Europe ( France, Paris )

    I receive today my reader and test the sample. I get the same error when as Jaap when connect to reader. :(

  13. Christian S

    26 Oct 2016 Pre-Release Testers, Xojo Pro, XDC Speakers, Third Party Store Germany

    please try newer version of the example.

  14. Christian S

    26 Oct 2016 Pre-Release Testers, Xojo Pro, XDC Speakers, Third Party Store Germany

    error -2146435060 is a missing smart card!

  15. 2 years ago

    Hi, i can connect with example, but nothing possible after...

    when i try to transmit, i never receive data

    other ACR122 soft works well

    my code used:

    		dim header as new memoryBlock(8)
    		
    		header.Int32Value(0) = 2 // T1
    		header.Int32Value(4) = 8 // size of this block
    		
    		dim command as new MemoryBlock(5)
    		command.Int8Value(0) = &h0
    		command.Int8Value(1) = &hCA
    		command.Int8Value(2) = &h1
    		command.Int8Value(3) = &h82
    		command.Int8Value(4) = &h2
    		
    		dim buffer as new MemoryBlock(512)
    		dim ReceiveHeader as new MemoryBlock(8)
    		
    		dim RecvLength as UInt32
    		card.Transmit(header, command, command.Size, ReceiveHeader, buffer, RecvLength)
    		
    		DebugWindow.DebugWindow.AppendText(  "Received Header " + EncodeHex(ReceiveHeader,true)+" bytes" + chr(13) )
    		DebugWindow.DebugWindow.AppendText(  "Received "+str(RecvLength)+" bytes" + chr(13) )
    		
    		

    Thanks for help

  16. Christian S

    12 Apr 2017 Pre-Release Testers, Xojo Pro, XDC Speakers, Third Party Store Germany

    I think you should set Recvlength to 512 to specify how much space is in buffer.

or Sign Up to reply!