java - Maximum APDU size in host card emulation. Can it be longer? -
i trying send data android phone in host card emulation mode reader application. understand maximum size of apdu should 260bytes. need send beyond (a few thousand bytes). know can divide data , send in "chunks", worried cost of on general performance.is there anyway can send bigger apdu 260 bytes. don't mind little hack if have to. cheers
to answer own question. there 2 types of apdus according maximum size of data accommodate. normal sized apdus (256 bytes) , extended apdus payload of upto 65536 bytes. not smartcards , readers support extended apdu length.
now on android side of things, extended length apdus not supported android os. though of nfc controllers support it. therefore software limitation , not hardware one. see getmaxtransceivelength method in https://android.googlesource.com/platform/packages/apps/nfc/+/master/nci/src/com/android/nfc/dhimpl/nativenfcmanager
Comments
Post a Comment