Forum Replies Created

  • Re: Reply To: Mifare authentication string

    3. August 2017 at 7:23
    in reply to: Mifare authentication string
    Thanks Claudio,
    I'll start with the Functional Specs you told me, and i will contact the producer of reader, to help me with the commands.

    + 0  |  - 0

    Re: Reply To: Mifare authentication string

    2. August 2017 at 13:48
    in reply to: Mifare authentication string
    Ok, in agreement here, but in C# the code for doing the authentication is a tad different, What bytes do i need to send to the serial interface to log in ?

    i always get 01 00 15 01 09 76 D0 ... reading all the manuals , i can't get for the likes of it any date out of this...

    The code is below

    public void AuthSector12()
    {
    try
    {
    byte[] array = new byte[]
    {
    // what do i put here ?
    };

    SerialPort1.Write(array, 0, 8);
    Thread.Sleep(25);
    string text = "";
    int bytesToRead = SerialPort1.BytesToRead;
    byte[] array2 = new byte[bytesToRead];
    SerialPort1.Read(array2, 0, bytesToRead);
    for (int i = 0; i < bytesToRead; i++)
    {
    uint num = Convert.ToUInt32(array2);
    text = text + string.Format("{0:x2}", num).ToUpper() + " ";
    }
    }
    catch (Exception)
    {
    }
    }
    + 0  |  - 0
Viewing 2 posts - 1 through 2 (of 2 total)