No, you cannot read/write APDUs from your application while working with an
external reader. When card emulation is enabled APDUs are routed directly
to SE from NFC Controller. APDU communication with SE has other objective,
main application processor can not emulate a PICC, that is the task of SE.
When communicating main processor with SE you can theoretically load/remove
cardlets, interact with them and so on. For the time being Mifare embedded
inside SmartMX chip can not be accessed from an application. At least
AFAIK.

On Tue, Jan 31, 2012 at 2:22 AM, malls <masubha...@gmail.com> wrote:

> Fernando,
>
> Thanks I could create custom image with nfc enabled by using your
> help.
>
> Just to clarify myself, if we are connected to external reader, I
> should be able to directly read/write APDUs from my app right.
> should I be using NFCService.transceive(..) method to read/write from
> the external reader.
>
> regards
> malls
>
> On Jan 4, 6:17 am, Fernando Miguélez <fernando.migue...@gmail.com>
> wrote:
> > Well, options are enabled in cascade. The problem comes because the first
> > option is not enabled. Besides, if you look at the Wireless Settings
> > screen, there is only the "NFC Settings" option, but not the one that
> lets
> > you enalbe/disable NFC directly from that screen. That is beacuse the Nfc
> > service in not available. Connection to a computer in debug mode will
> draw
> > some light.
> >
> > Instead of compiling the whole image again I suggest you to compile just
> > the Nfc.apk system application and replace the original one. You must
> > remount /system partition in read/write mode and overwrite the apk inside
> > /system/app. Then you must kill the nfc service by means of DDMS view of
> > the ADT (you must connnect the phone in debug mode and since you have
> > compiled in userdebug mode you will see all the running proccesses). The
> > service will restart automatically.
> >
> > When it comes to read/write the card by means of an external reader, any
> > Mifare Classic 4K compatible RFID reader will do. If you try to access
> > directly to the SE from an Android application I am afraid to disappoint
> > you but that is not possible, at least I wasn't successful at it and
> nobody
> > I know either. The reasons are well described in other posts and on
> > stackoverflow.
> >
> > Regards
> >
> >
> >
> >
> >
> >
> >
> > On Wed, Jan 4, 2012 at 2:56 PM, s.rawat <imsaurabhra...@gmail.com>
> wrote:
> > > Thanks !
> > > I will also try from my side recompiling it.So you mean I should get
> the
> > > Check boxes enabled for
> > > > *Only Card EmulationMode*
> > > and
> > > > *Use External SE*
> >
> > > My main aim is to write to the NFC card in card emulation mode so that
> it
> > > can be read by any Card Reader.is it possible after your patches are
> > > applied using teh android SDKs or do we have to write some native
> > > application.
> > > Rgds,
> > > Softy
> > > "..pain is temporary.....quitting lasts forever......"
> >
> > > 2012/1/4 Fernando Miguélez <fernando.migue...@gmail.com>
> >
> > >> Great work.
> >
> > >> Obviously there is something wrong with the compilation. Have you
> tried
> > >> to connect in debug mode the phone to a computer with Android
> Development
> > >> Tools and see what the traces look like. They may offer a clue. My
> > >> suspicion is that NfcService is crashing. I will review my notes
> tomorrow
> > >> if I find something different to the steps you followed to build the
> image.
> >
> > >> On Wed, Jan 4, 2012 at 9:17 AM, softy <imsaurabhra...@gmail.com>
> wrote:
> >
> > >>> Hi All,
> > >>> Thanks Fernando Miguélez Palomo for posting the patches.I have
> applied
> > >>> it to 2.3.4-r1 Android gingerbread and compiled /flashed it on
> Samsung
> > >>> Nexus S and was able to see the NFC Settings changed(though i cant
> select
> > >>> them, they are disabled)
> > >>> I have blogged the whole steps here<
> http://techshek4u.blogspot.com/2012/01/applying-card-emulation-patch-...>.Plz
> let me know if I miss something.
> >
> > >>> @ Fernando Miguélez Palomo
> > >>> What next after that.How can i test this.Any source code or tool
> /card
> > >>> reader description will be enlightening.
> > >>> Rgds,
> > >>> softy
> >
> > >>> --
> > >>> You received this message because you are subscribed to the Google
> > >>> Groups "Android Developers" group.
> > >>> To post to this group, send email to
> android-developers@googlegroups.com
> > >>> To unsubscribe from this group, send email to
> > >>> android-developers+unsubscr...@googlegroups.com
> > >>> For more options, visit this group at
> > >>>http://groups.google.com/group/android-developers?hl=en
> >
> > >>  --
> > >> You received this message because you are subscribed to the Google
> > >> Groups "Android Developers" group.
> > >> To post to this group, send email to
> android-developers@googlegroups.com
> > >> To unsubscribe from this group, send email to
> > >> android-developers+unsubscr...@googlegroups.com
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/android-developers?hl=en
> >
> > >  --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to