oe-linux-nfc.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Mark Greer <mgreer@animalcreek.com>
To: linux-nfc@lists.01.org
Subject: Re: About NFC Tag emulation on Linux
Date: Thu, 22 Jul 2021 23:03:28 -0700	[thread overview]
Message-ID: <20210723060328.GA1042603@animalcreek.com> (raw)
In-Reply-To: <CAPNCXk0qkc-5myby0TdzD=6kBXSd_o_iNGy6jjjO5YXeyZqceg@mail.gmail.com>

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

On Thu, Jul 22, 2021 at 01:59:17PM +0300, Vincas Dargis wrote:
> Hi list,

Hi Vincas.

> I see there's "test-device", "test-tag" helpers in neard-tools package
> in Debian, but it looks like it needs actual devices/tags to test
> with..?
> 
> Is there a way to emulate NFC tag, to "emit" NFC tag discovery events
> and NDEF mesages on Linux? Qt supports NFC on Linux via neard daemon,
> so I thought it would be very useful to emulate NFC tags (with various
> payloads) for development and (automated even?) testing.

I won't repeat [much of] what others have said but I can add this:


A: Try nfcsim

Already mentioned in this thread.

B: Use real hardware

B.1: Reader/Writers

PN533 dongles are fairly inexpensive (e.g.,
https://www.mikroe.com/nfc-usb-dongle) but most other are > $50 USD
so they are a little expensive.

B.2: Tags

B.2.i: Use a dynamic tag

That is a fancy term for a programmable device that looks like a "dumb"
NFC tag from the reader/writer side but you can control it (including
the data that is read by the reader) from the other side.  NXP, ST,
and TI all have (or did have) versions.  There may be others.  These
will almost certainly require a programming effort on your part.  If
you chose the TI rf430cl33x, I may be able to help
(e.g., https://www.ti.com/tool/DLP-RF430BP).

B.2.ii: Buy some "dumb" tags

They're cheap so buy a few (e.g., https://store.gototags.com/nfc-tags).
Try different tags types.  Types 2, 3, 4A, 4B, and 5 all work.
In theory type 1 tags work too but I have no way to test them so I
cannot say for sure.

Mark
--

  parent reply	other threads:[~2021-07-23  6:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-22 10:59 About NFC Tag emulation on Linux Vincas Dargis
2021-07-22 11:53 ` Krzysztof Kozlowski
2021-07-22 17:16   ` Vincas Dargis
2021-07-22 12:34 ` Frieder Schrempf
2021-07-22 17:13   ` Vincas Dargis
2021-07-23  6:03 ` Mark Greer [this message]
2021-07-24 10:08   ` Vincas Dargis

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=20210723060328.GA1042603@animalcreek.com \
    --to=mgreer@animalcreek.com \
    --cc=linux-nfc@lists.01.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).