AnsweredAssumed Answered

Open Session and Deselect in Android Studio

Question asked by mantel.andre on Aug 11, 2015
Latest reply on Aug 23, 2016 by France Berthelot
Hi,

I'm using the M24SR Discovery Board and I'm having some trouble when I want to communicate with the board via NFC.
I'm trying to open a RF session with my Smartphone so that the GPO of the M24SR is driven low. Then I want to read some values out of the EEPROM and after that I want to close the session again (Deselect).
Sounds easy, but I really do not get it how to send the right command for open session and deselect.
My other code looks like this:

//Select NFC T4 application
                    iso.transceive(global.getT4select());
                    //Select NDEF file
                    iso.transceive(global.getNDEFselect());
                    //Verify the Read password
                    pw = iso.transceive(global.getVerify_read());
                    if(pw[0] == global.check_string[0] && pw[1] == global.check_string[1] ) {
                        /*Read beyond NDEF message*/
                        //Read temperature
                        temp = iso.transceive(new byte[]{(byte) 0xA2, (byte) 0xB0, 0x00, (byte) 0x80, 0x04});
                        //Read operating hours
                        time = iso.transceive(new byte[]{(byte) 0xA2, (byte) 0xB0, 0x00, (byte) 0x84, 0x04});
}

All of the commands are working well, but I do not know how to code the open session and deselect command. I hope you can help me!

Andre

Outcomes