Stories
Slash Boxes
Comments

SoylentNews is people

posted by martyb on Saturday March 25 2017, @08:39AM   Printer-friendly
from the but-can-it-run-gopher? dept.

Looks like a fun weekend project:

This post is to shows how to exchange arbitrary data between an Android phone and an NFC reader application. To make things a bit more interesting, we'll tunnel an HTTP download over NFC. The Android app provides a URL which the terminal (we assume it's connected to the Internet) will download and send back to the app.

Specifically, this post will show how to build:

  • An Android app that uses NFC with Host Card Emulation to perform bidirectional communication with an NFC reader application.
  • A simple NFC reader application based on libnfc and libcurl.

Full sample code for this post is available at https://github.com/classycodeoss/android-nfc-http-tunnel.


Original Submission

This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
(1)
  • (Score: 2) by Justin Case on Saturday March 25 2017, @02:42PM (1 child)

    by Justin Case (4239) on Saturday March 25 2017, @02:42PM (#484112) Journal

    My usually nefarious imagination is failing me today. Is this to hack the NFC reader? No, it seems the reader must cooperate. So it is just a bizarre proxy?

    Inspire me...

(1)