Simple point-to-point communication with an embedded platform and an Android smartphone

Il 11/08/2014 11:46, Nils ha scritto: > [...]

How difficult is to develop an Andorid app that uses NFC functionalities of the phone?

Reply to
pozz
Loading thread data ...

Depends on your level of Android application knowledge. If you have already developed one application or test-program (e.g. you know what an Intent is, and how the life-cycle of an android app looks like) it is easy.

In the manifest you just declare that you want to get activated if a NFC tag gets detected. Inside your application you implement an intent-filter for NFC tag intents. In this handler you'll get a NFC-Message (can be anything) along with a tag-object that you can use for raw or structured data-transfer.

Overall, it's less than 100 lines for basic communication. With basic knowledge about Android you have something working within a day. Without any knowledge you may need 3 or 4 days.

The nice thing if you use dynamic NFC tags is, that you get a lot of cool functionality for free:

- Your embedded device gets a wakeup signal from the dynamic tag if the tag detects RF activity. That makes it easy to implement energy-saving stuff.

- If you store a NFC action-record in the first bytes of the tag, the Android NFC subsystem will start your application automatically or redirect the user to the Android store for App download. (This feature is extremely convenient because you don't have to install anything).

You can use the free memory behind the NDEF action-record for generic shared memory message passing between the phone and your device. That part is a bit tricky but can be done.

If you want to read about it, try the official specification:

formatting link

(You can ignore anything about Android Beam or HCE-Services because you're pretty much only using basic reader/writer functionality)

/Nils

Reply to
Nils

Most phones don't have NFC so the NFC approach doesn't sound that promising. BT or wifi are surely the best for user convenience. Audio cable would be cheapest in terms of hardware.

Reply to
Paul Rubin

you can even buy a board,

formatting link

-Lasse

Reply to
langwadt

For a long time it was "bluetooth is for audio apps only" with Apple so headsets and other audio thingies sure. Heart rate monitors, step counters, tethering, file transfers, networking, whatever, no way over bluetooth.

But that all changed a few years ago with the iphone 4S and BT LE support. I guess Apple likes BT LE since there's no user-confusing pairing required and hence things "just work" in the way Apple likes things.

In fact Apple did a great service to everyone by pushing the standard

3.5 mm jack. Before that almost everyone tried to gouge customers with their proprietary headphone jacks. Sony-Ericsson especially comes to mind, what a stain on Sony who brought us Walkmans in the 80s to try and push substandard and overprices headphones... Others had some weird concept for a "music" phone which would include the jack and an MP3 player while other phone models wouldn't (Nokia...)
Reply to
Anssi Saari

Il 11/08/2014 19:42, Nils ha scritto:

Thank you for your suggestions. I nevere developed app for Android OS, but I have "normal skills" in programming. The question was if I need advanced/guru Android/Linux skills to develop NFC app or not.

Reply to
pozz

Ironic. Microsoft used to do the analogous thing with software standards. "Embrace and Extend" they called it. Without Jobs, Apple is drifting aimlessly. The cool factor is getting clammy.

Reply to
J.A. Legris

old thread but, some Android tablets have the capability to use zigbee i th ink, not sure on the phones. Apps seem to be available. And I know WinSyste ms (probably others) offered a Zigbee PC/104 board in the past. If you need plug-n-play option. data sheet

formatting link
.pdf

Reply to
1 Lucky Texan

I am looking a block of applications that need something like a smartphone or a lowcost tablet with an app as a user controller and a standalone application doing some specialized function. One of these is control of long exposure images on a telescope. Wires are both bothersome and often are responsible for adding to vibration in the images.

The current approach is to use bluetooth or wifi.

When low-cost tablets with WiFi have come to the $50-$60 range there just isn't an point in doing anything more than writing an app.

w..

Reply to
Walter Banks

Except that WiFi transceivers are rather power hungry, of the order of 250mA. Some other transceivers are 30mA to 40mA.

Reply to
edward.ming.lee

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.