All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Greer <mgreer@animalcreek.com>
To: Stephan Gerhold <stephan@gerhold.net>
Cc: Mark Greer <mgreer@animalcreek.com>,
	Frieder Schrempf <frieder.schrempf@kontron.de>,
	Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>,
	Jakub Kicinski <kuba@kernel.org>,
	"David S. Miller" <davem@davemloft.net>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-nfc@lists.01.org, Alex Blasche <alexander.blasche@qt.io>,
	phone-devel@vger.kernel.org
Subject: Re: Testing wanted for Linux NFC subsystem
Date: Fri, 14 May 2021 08:23:50 -0700	[thread overview]
Message-ID: <20210514152350.GA301895@animalcreek.com> (raw)
In-Reply-To: <YJ1Hr/hov9I42GK1@gerhold.net>

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@vger.kernel.org, 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.

> > > I would be happy to do some more testing if someone has something useful
> > > that can be tested. However, I guess ideally we would have someone who
> > > actually uses Linux NFC actively for some real application. :)
> > 
> > Ideally, you should have some NFC tags of various types.  Types 2, 3,
> > 4A, 4B, and 5 tags are supported.  Peer-to-peer mode is supported too

I should have mentioned type 1 as well but I don't have the hardware
to test it.

> > so you should be able to transfer data from one of your phones to the
> > other over NFC (and do a BT hand-over, if you're interested).
> > 
> 
> I guess this is where I kind of lack hardware as well at the moment,
> I don't have any programmable NFC tags at the moment (although I guess
> those should be quite cheap). I might play with the peer-to-peer mode
> a bit when I find time.

Please let me/us know how it goes.

> > Note that the specified range for NFC is only 4 cm and poor antenna
> > design, etc. means that the actual range is usually much less (e.g.,
> > they amost have to touch).  Also note that there are timing constraints
> > so you may need to make the scheduling priority of the interrupt thread
> > of your NFC driver real-time.
> > 
> 
> Yeah I noticed, always need to search for a while to find the right spot
> on the phone. :)

Yeah, it can be an Easter egg hunt on many phones.  :)

Mark
--

WARNING: multiple messages have this Message-ID (diff)
From: Mark Greer <mgreer@animalcreek.com>
To: linux-nfc@lists.01.org
Subject: [linux-nfc] Re: Testing wanted for Linux NFC subsystem
Date: Fri, 14 May 2021 08:23:50 -0700	[thread overview]
Message-ID: <20210514152350.GA301895@animalcreek.com> (raw)
In-Reply-To: YJ1Hr/hov9I42GK1@gerhold.net

[-- Attachment #1: Type: text/plain, Size: 3322 bytes --]

On Thu, May 13, 2021@05:37:19PM +0200, Stephan Gerhold wrote:
> On Thu, May 13, 2021@07:48:55AM -0700, Mark Greer wrote:
> > On Thu, May 13, 2021@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@vger.kernel.org, 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@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@least some
support for Secure Engine.

> > > I would be happy to do some more testing if someone has something useful
> > > that can be tested. However, I guess ideally we would have someone who
> > > actually uses Linux NFC actively for some real application. :)
> > 
> > Ideally, you should have some NFC tags of various types.  Types 2, 3,
> > 4A, 4B, and 5 tags are supported.  Peer-to-peer mode is supported too

I should have mentioned type 1 as well but I don't have the hardware
to test it.

> > so you should be able to transfer data from one of your phones to the
> > other over NFC (and do a BT hand-over, if you're interested).
> > 
> 
> I guess this is where I kind of lack hardware as well@the moment,
> I don't have any programmable NFC tags@the moment (although I guess
> those should be quite cheap). I might play with the peer-to-peer mode
> a bit when I find time.

Please let me/us know how it goes.

> > Note that the specified range for NFC is only 4 cm and poor antenna
> > design, etc. means that the actual range is usually much less (e.g.,
> > they amost have to touch).  Also note that there are timing constraints
> > so you may need to make the scheduling priority of the interrupt thread
> > of your NFC driver real-time.
> > 
> 
> Yeah I noticed, always need to search for a while to find the right spot
> on the phone. :)

Yeah, it can be an Easter egg hunt on many phones.  :)

Mark
--

WARNING: multiple messages have this Message-ID (diff)
From: Mark Greer <mgreer@animalcreek.com>
To: linux-nfc@lists.01.org
Subject: Re: Testing wanted for Linux NFC subsystem
Date: Fri, 14 May 2021 08:23:50 -0700	[thread overview]
Message-ID: <20210514152350.GA301895@animalcreek.com> (raw)
In-Reply-To: <YJ1Hr/hov9I42GK1@gerhold.net>

[-- Attachment #1: Type: text/plain, Size: 3345 bytes --]

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(a)vger.kernel.org, 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.

> > > I would be happy to do some more testing if someone has something useful
> > > that can be tested. However, I guess ideally we would have someone who
> > > actually uses Linux NFC actively for some real application. :)
> > 
> > Ideally, you should have some NFC tags of various types.  Types 2, 3,
> > 4A, 4B, and 5 tags are supported.  Peer-to-peer mode is supported too

I should have mentioned type 1 as well but I don't have the hardware
to test it.

> > so you should be able to transfer data from one of your phones to the
> > other over NFC (and do a BT hand-over, if you're interested).
> > 
> 
> I guess this is where I kind of lack hardware as well at the moment,
> I don't have any programmable NFC tags at the moment (although I guess
> those should be quite cheap). I might play with the peer-to-peer mode
> a bit when I find time.

Please let me/us know how it goes.

> > Note that the specified range for NFC is only 4 cm and poor antenna
> > design, etc. means that the actual range is usually much less (e.g.,
> > they amost have to touch).  Also note that there are timing constraints
> > so you may need to make the scheduling priority of the interrupt thread
> > of your NFC driver real-time.
> > 
> 
> Yeah I noticed, always need to search for a while to find the right spot
> on the phone. :)

Yeah, it can be an Easter egg hunt on many phones.  :)

Mark
--

  reply	other threads:[~2021-05-14 15:24 UTC|newest]

Thread overview: 67+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-12 14:43 [PATCH 1/2] MAINTAINERS: nfc: add Krzysztof Kozlowski as maintainer Krzysztof Kozlowski
2021-05-12 14:43 ` Krzysztof Kozlowski
2021-05-12 14:43 ` [linux-nfc] " Krzysztof Kozlowski
2021-05-12 14:43 ` [PATCH 2/2] MAINTAINERS: nfc: include linux-nfc mailing list Krzysztof Kozlowski
2021-05-12 14:43   ` Krzysztof Kozlowski
2021-05-12 14:43   ` [linux-nfc] " Krzysztof Kozlowski
2021-05-12 15:15   ` Mark Greer
2021-05-12 15:15     ` Mark Greer
2021-05-12 15:15     ` [linux-nfc] " Mark Greer
2021-05-12 15:11 ` [linux-nfc] [PATCH 1/2] MAINTAINERS: nfc: add Krzysztof Kozlowski as maintainer Daniel Lezcano
2021-05-12 15:11   ` Daniel Lezcano
2021-05-12 15:11   ` [linux-nfc] " Daniel Lezcano
2021-05-12 15:43   ` [linux-nfc] " Krzysztof Kozlowski
2021-05-12 15:43     ` Krzysztof Kozlowski
2021-05-12 15:43     ` [linux-nfc] " Krzysztof Kozlowski
2021-05-12 16:49     ` Mark Greer
2021-05-12 16:49       ` Mark Greer
2021-05-12 16:49       ` [linux-nfc] " Mark Greer
2021-05-12 20:22       ` Krzysztof Kozlowski
2021-05-12 20:22         ` Krzysztof Kozlowski
2021-05-12 20:22         ` [linux-nfc] " Krzysztof Kozlowski
2021-07-09  9:24       ` Krzysztof Kozlowski
2021-07-09  9:24         ` Krzysztof Kozlowski
2021-07-09  9:24         ` [linux-nfc] " Krzysztof Kozlowski
2021-07-15 18:34         ` Mark Greer
2021-07-15 18:34           ` Mark Greer
2021-07-15 18:34           ` [linux-nfc] " Mark Greer
2021-07-16 10:17           ` Krzysztof Kozlowski
2021-07-16 10:17             ` Krzysztof Kozlowski
2021-07-16 10:17             ` [linux-nfc] " Krzysztof Kozlowski
2021-07-16 17:15             ` Mark Greer
2021-07-16 17:15               ` Mark Greer
2021-07-16 17:15               ` [linux-nfc] " Mark Greer
2021-07-16 18:17               ` Krzysztof Kozlowski
2021-07-16 18:17                 ` Krzysztof Kozlowski
2021-07-16 18:17                 ` [linux-nfc] " Krzysztof Kozlowski
2021-07-16 19:32                 ` Mark Greer
2021-07-16 19:32                   ` Mark Greer
2021-07-16 19:32                   ` [linux-nfc] " Mark Greer
2021-05-12 15:15 ` [linux-nfc] " Mark Greer
2021-05-12 15:15   ` Mark Greer
2021-05-12 15:15   ` [linux-nfc] " Mark Greer
2021-05-12 15:32 ` [linux-nfc] " Frieder Schrempf
2021-05-12 15:32   ` Frieder Schrempf
2021-05-12 15:32   ` [linux-nfc] " Frieder Schrempf
2021-05-12 17:01   ` [linux-nfc] " Mark Greer
2021-05-12 17:01     ` Mark Greer
2021-05-12 17:01     ` [linux-nfc] " Mark Greer
2021-05-12 20:21     ` [linux-nfc] " Krzysztof Kozlowski
2021-05-12 20:21       ` Krzysztof Kozlowski
2021-05-12 20:21       ` [linux-nfc] " Krzysztof Kozlowski
2021-05-13  1:35       ` [linux-nfc] " Mark Greer
2021-05-13  1:35         ` Mark Greer
2021-05-13  1:35         ` [linux-nfc] " Mark Greer
2021-05-13 11:49     ` Testing wanted for Linux NFC subsystem Stephan Gerhold
2021-05-13 14:48       ` Mark Greer
2021-05-13 14:48         ` Mark Greer
2021-05-13 14:48         ` [linux-nfc] " Mark Greer
2021-05-13 15:37         ` Stephan Gerhold
2021-05-14 15:23           ` Mark Greer [this message]
2021-05-14 15:23             ` Mark Greer
2021-05-14 15:23             ` [linux-nfc] " Mark Greer
2021-05-18 19:18             ` Vincent Knecht
2021-05-12 21:20 ` [PATCH 1/2] MAINTAINERS: nfc: add Krzysztof Kozlowski as maintainer patchwork-bot+netdevbpf
2021-05-12 21:31   ` Krzysztof Kozlowski
2021-05-12 21:31     ` Krzysztof Kozlowski
2021-05-12 21:31     ` [linux-nfc] " Krzysztof Kozlowski

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=20210514152350.GA301895@animalcreek.com \
    --to=mgreer@animalcreek.com \
    --cc=alexander.blasche@qt.io \
    --cc=davem@davemloft.net \
    --cc=frieder.schrempf@kontron.de \
    --cc=krzysztof.kozlowski@canonical.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nfc@lists.01.org \
    --cc=netdev@vger.kernel.org \
    --cc=phone-devel@vger.kernel.org \
    --cc=stephan@gerhold.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.