Re: Testing wanted for Linux NFC subsystem

From: Vincent Knecht
Date: Tue May 18 2021 - 15:43:17 EST


Le vendredi 14 mai 2021 à 08:23 -0700, Mark Greer a écrit :
> On Thu, May 13, 2021 at 05:37:19PM +0200, Stephan Gerhold wrote:
> > On Thu, May 13, 2021 at 07:48:55AM -0700, Mark Greer wrote:
> > > On Thu, May 13, 2021 at 01:49:53PM +0200, Stephan Gerhold wrote:
> > > > I have a couple of "recycled" smartphones running mainline Linux
> > > > and some of them do have NFC chips. I have two with NXP PN547
> > > > (supported by nxp,nxp-nci-i2c), one with Samsung S3FWRN5
> > > > (samsung,s3fwrn5-i2c) and even one with Broadcom BCM2079x I think
> > > > (this one does not have a driver for the Linux NFC subsystem sadly).
> > > >
> > > > +Cc phone-devel@xxxxxxxxxxxxxxx, in case other people there are
> > > > interested in NFC :)
> > > >
> > > > The NXP/Samsung ones seems to work just fine. However, since there are
> > > > barely any userspace tools making use of Linux NFC all my testing so far
> > > > was limited to polling for devices with "nfctool" and being happy enough
> > > > when it realizes that I hold some NFC tag close to the device. :S
> > >
> > > There is a user-level daemon that is the counterpart for the in-kernel
> > > NFC subsystem.  It is called neard and is available here:
> > >
> > >         git://git.kernel.org/pub/scm/network/nfc/neard.git
> > >
> > > There are a few test script in it that will let you read and write NFC
> > > tags, and do some other things.  We can add some more tests to that set
> > > as we go.
> > >
> >
> > Yeah, I packaged that for Alpine Linux / postmarketOS.
> > "nfctool" also comes from "neard" as far as I can tell :)
> >
> > I think I also played with the Neard test scripts a bit at some point,
> > and managed to read some NFC tag thing inside an old Yubikey NEO
> > that I found, but didn't really know what else to do.
>
> Yeah, there isn't a whole lot you can do but beyond reading/writing
> tags and peer-to-peer, there are things like Bluetooth and Wifi
> handover, Android Application Record support, and at least some
> support for Secure Engine.

Could sniffing and injection work, like for wifi ?
Guess that depends on specific chip drivers, and libpcap support for sniffing ?

https://wiki.wireshark.org/SampleCaptures#Radio_Frequency_Identification_.28RFID.29.2C_and_Near-Field_Communication_.28NFC.29

https://code.google.com/archive/p/wireshark-nfc/