'How to read multiple block data from Sony Felica NFC card?

To read data from Sony Felica NFC card I am sending below shown command from android:

 byte[] command = new byte[]{
                    (byte)0x10, //Length
                    (byte)0x06, //Command Code
                    (byte)0x01, (byte)0x2e, (byte)0x41, (byte)0x39, (byte)0x9c, (byte)0xc9, (byte)0x3a, (byte)0x51, // IDm
                    (byte)0x01,//Number of service
                    (byte)0x09, (byte)0x00,//Service code
                    (byte)0x01,//Number of block
                    (byte)0x80,  (byte)0x03 // Block Data
            };

Through transceive() function

byte[] responsePacket = nfc.transceive(command);

I am getting data of block 3 in response.

But I want to read multiple block data from the card with one command. Like I want to read block data of block 3 and 4 at a time. Couldn't achieve this. Any reference should be helpful too.



Solution 1:[1]

Finally I figured out how to read multiple data. showing below example code. If anyone faces a problem reading multiple data.

byte[] command = new byte[]{
                    (byte)0x10, //Length
                    (byte)0x06, //Command Code
                    (byte)0x01, (byte)0x2e, (byte)0x41, (byte)0x39, (byte)0x9c, (byte)0xc9, (byte)0x3a, (byte)0x51, // IDm
                    (byte)0x01,//Number of service
                    (byte)0x09, (byte)0x00,//Service code
                    (byte)0x03,//Number of block
                    (byte)0x80,  (byte)0x01, // Block 1
                    (byte)0x80,  (byte)0x02, // Block 2
                    (byte)0x80,  (byte)0x03, // Block 3
            };

In response we will get data of 3 block.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 jps