linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lauro Ramos Venancio <lauro.venancio@openbossa.org>
To: Harald Welte <laforge@gnumonks.org>
Cc: linux-kernel@vger.kernel.org,
	Aloisio Almeida <aloisio.almeida@openbossa.org>,
	Arnd Bergmann <arnd@arndb.de>,
	Waldemar.Rymarkiewicz@tieto.com
Subject: Re: [RFC] NFC subsystem prototype
Date: Mon, 11 Apr 2011 20:31:11 -0300	[thread overview]
Message-ID: <BANLkTinTXNby_zc7yz29hAdRmNK3rRht9A@mail.gmail.com> (raw)
In-Reply-To: <20110409130945.GC3248@prithivi.gnumonks.org>

Hi Harald,

2011/4/9 Harald Welte <laforge@gnumonks.org>:
> Hi Lauro,
>
> On Wed, Apr 06, 2011 at 07:17:19PM -0300, Lauro Ramos Venancio wrote:
>> As previously mentioned in this list, a NFC (Near Field Communication)
>> subsystem is required to standardize the NFC device drivers
>> development and create an unified userspace interface. This email
>> describes our NFC subsystem proposal.
>
> given that I've done quite some work on RFID (mifare, iso14443) and NFC
> software + hardware some years ago, here is some feedback from my side:
>
> 0) why not create a general RFID subsystem instead of locking it down to
>   NFC?  NFC is sort-of a superset of ISO 14443, so it would make more
>   sense to have a generic framework that can support not only Mifare + NFC
>   but all types of ISO 14443 (A / B) as well as ISO 15693.  This would mean
>   other applications like electronic ID cards and ICAO-compliant passports
>   would fit into the picture - even though not being NFC

The prototype supports ISO 14443 (A/B), MIFARE, Felica and Jewel. It's
straightforward to add ISO 15693 support. So I think it is possible to
support these applications using the NFC subsystem.

>
> 1) do you really think a kernel subsystem is the best idea for this?
>   normally, the RFID/NFC ASIC is attached either to USB or serial lines,
>   and there are no timing constraints against userspace drivers using libusb,
>   like the existing libnfc or librfid.
>
>   Yes, there may be multiple applications using RFID/NFC services, but
>   if you look at e.g. the smart card frameworks like OpenCT and/or pcsc-lite,
>   they can do that very well in userspace, without any kernel support.
>
>   If you're worried about SPI-attached RFID/NFC ASICs, then I think the
>   propper approach is to have a generic support for exporting SPI devices to
>   userspace (similar to what we have with usb + libusb).
>
>   I simply do not see the advantage of having this in the kenrel.  There are
>   no latency/timing constraints, and the amount of data you are moving is so
>   small, that performance considerations also don't really play any role.

The advantages appear when you consider the NFC peer-to-peer use case
(LLCP). A socket interface for LLCP would fit better for implementing
some features, such as OBEX over LLCP and IP over LLCP.
The prototype implements in the kernel the minimal set of operations
that will be required by a future LLCP implementation. The same set of
operations are used by userspace applications to implements tag
read/write.



Regards,

Lauro Ramos Venancio
INdT - Instituto Nokia de Tecnologia

  parent reply	other threads:[~2011-04-11 23:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-06 22:17 [RFC] NFC subsystem prototype Lauro Ramos Venancio
2011-04-09 13:09 ` Harald Welte
2011-04-09 17:45   ` Alan Cox
2011-04-12  6:19     ` Harald Welte
2011-04-11 23:31   ` Lauro Ramos Venancio [this message]
2011-04-12  6:08     ` Harald Welte
2011-04-12  7:08       ` Clemens Ladisch
2011-04-14 21:51       ` Lauro Ramos Venancio
2011-04-14 14:17 ` Samuel Ortiz
2011-04-14 22:57   ` Lauro Ramos Venancio
2011-04-14 23:09     ` Samuel Ortiz
2011-04-15 18:27       ` Lauro Ramos Venancio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTinTXNby_zc7yz29hAdRmNK3rRht9A@mail.gmail.com \
    --to=lauro.venancio@openbossa.org \
    --cc=Waldemar.Rymarkiewicz@tieto.com \
    --cc=aloisio.almeida@openbossa.org \
    --cc=arnd@arndb.de \
    --cc=laforge@gnumonks.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).