Nevermind… I just needed an agent on the Debian side to perform the SSP "JustWorks" pairing.
Thanks, André On 14 Jun, 21:38, André Cruz <andrefc...@gmail.com> wrote: > Bluetooth with createInsecureRfcommSocketToServiceRecord() or > listenUsingInsecureRfcommWithServiceRecord() would be an option, so > that pairing is not needed, but I've yet to successfully establish a > RFCOMM channel this way with devices other than Androids. In my case > I'm trying to establish a connection with a Debian system and I can't > seem to configure the Bluez framework there to create these insecure > channels, it always requires pairing… > > Best regards,André > > On 9 Jun, 13:20, Nick Pelly <npe...@google.com> wrote: > > > > > The current NPP API's do not encourage the use of NPP for > > challenge/response. > > > However you can use NPP to exchange enough information to switch to > > Bluetooth, for which we have public API's for an RFCOMM channel. > > > Cheers, > > Nick > > > On Mon, May 30, 2011 at 1:02 PM,AndréCruz <andrefc...@gmail.com> wrote: > > > Hello. > > > > I've successfully established a LLCP connection between a SCL3711 desktop > > > reader (using nfcpy) and a Nexus S. I've also implemented NPP client and > > > server support so I can send NDEF messages from the desktop and receive > > > them > > > on the Android, and vice-versa. > > > > But I am struggling with the AndroidNFCAPI to accomplish something as > > > simple as receiving a NPP message first, and then sending a response also > > > via NPP. This is because the enableForegroundNdefPush() call has to be > > > executed on the onResume() method and the NdefPushClient only sends the > > > message if it is available as soon as the LLCP channel is established. > > > > In my use case the phone would be put next to my reader, which would > > > trigger the establishment of a LLCP channel, and the reader would push an > > > NDEF message. My application is launched, it is the only one that catches > > > that specific intent, and produce a NDEF response based on the NDEF > > > received > > > and would push it to the reader via enableForegroundNdefPush(). But by now > > > the LLCP channel is established, so the message does not get sent, and my > > > application is processing the onNewIntent() method so I can't > > > use enableForegroundNdefPush(). > > > > Am I doing something wrong? Surely this simple use case must be possible > > > to > > > implement. > > > > Thanks, > > >André > > > > -- > > > 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