Package net.rim.device.api.io.nfc.readerwriter

Examples of net.rim.device.api.io.nfc.readerwriter.ISO14443Part3Connection


     * @param target
     *            The ISO 14443 3 target that has been detected
     */
    public void readISO14443Part3(final String uri, final Target target) {
        _screen.addTargetInfo("URI: " + uri);
        ISO14443Part3Connection c = null;

        // Try to open a connection to the tag and send it a command
        try {
            c = (ISO14443Part3Connection) Connector.open(uri);

            // Get some metadata about the tag so we can determine
            // what command set to use on it.
            _screen.addTargetInfo("Name: " + target.getProperty("Name"));

            // Note: For the sake of this demo, we are hardcoding the request
            // that we will send the tag as the "Capability Container Select"
            // command.

            // Capability Container select command
            final byte[] response =
                    c.transceive(new byte[] { (byte) 0x00, (byte) 0xA4,
                            (byte) 0x00, (byte) 0x00, (byte) 0x02, (byte) 0xE1,
                            (byte) 0x03 });

            // Parse the response bytes to see if the
            // command was a success or not.
View Full Code Here

TOP

Related Classes of net.rim.device.api.io.nfc.readerwriter.ISO14443Part3Connection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.