maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   NFC APIs to control hardware functions (https://talk.maemo.org/showthread.php?t=83020)

balisingh 2012-03-13 20:02

NFC APIs to control hardware functions
 
I have fancied the use of NFC ever since I found out about it in the N9. I bought tags (MIFARE ULC) and I try to find use for them (besides checking in on Foursquare, which is cool).
Some other interesting uses i found was control of hardware and profiles. I noticed no one on this forum has really shown any interest into NFC besides using it for payments (which is awesome but not going to be easy in the US even after having a Secure element with a SWP connection the chip, operators, banks and phone makers (google) have yet to slug it out on who gets the revenue). That aside What i really want to do is be able to turn on bluetooth automatically by scanning a Tag when i get in my car or make my phone silent at work by scanning a TAG, turn on wifi by scanning a Tag? etc. I am not lazy but that would just be plain awesome.
Is this possible to do through a daemon that runs on the N9 through QT development like through DoAction? Or is that something Nokia keeps locks on? since clearly that could easily be a problem than a solution!

Kozzi 2012-03-13 20:08

Re: NFC APIs to control hardware functions
 
After watching the promo video of Sony's Smarttags, I also though if this same feature is possible on N9, better yet write profiles you want on an old rfid card and use them instead of buying those smarttags. I hope we will get something similar :)

balisingh 2012-03-13 20:12

Re: NFC APIs to control hardware functions
 
Quote:

Originally Posted by Kozzi (Post 1179033)
After watching the promo video of Sony's Smarttags, I also though if this same feature is possible on N9, better yet write profiles you want on an old rfid card and use them instead of buying those smarttags. I hope we will get something similar :)

Ya, its also possible on android, but android doesnt give a boot about security.

Those Tags were like 50cents each.

MartinK 2012-03-13 20:16

Re: NFC APIs to control hardware functions
 
The main issue might be that the N950, which many developers have, does not support NFC. :)

Kozzi 2012-03-13 21:04

Re: NFC APIs to control hardware functions
 
Quote:

Originally Posted by balisingh (Post 1179044)
Who cares about the developers and their n950s. We can develop for the N9.

lol they are mainly the ones developing apps/tools for N9, therefore....

jalyst 2012-03-17 16:49

Re: NFC APIs to control hardware functions
 
Quote:

The main issue might be that the N950, which many developers have, does not support NFC. :)
Many but not all* devs have only the N950.
I like this concept too, it'd be great if it took-off.

*probably not even most.

WhitP 2012-03-31 22:28

Re: NFC APIs to control hardware functions
 
I've bought a few tags off EBay to play with when they arrive.

Given that the Play360 speakers do bluetooth toggling and pairing (nice speaker BTW) it should be perfectly possible to control the N9 with NFC tags. I'd also like to be able to toggle bluetooth getting in/out of a car.

The only issue I see is that the N9 tag writers so far don't seem to support tasks like the Android and Blackberry apps. Some fiddling may be required... or finding someone with Android NFC Task Launcher to program the tags....

achilles333 2012-04-06 17:06

Re: NFC APIs to control hardware functions
 
This sounds awesome! If this thing got working then there will be more possibilities using NFC. I love to see this on N9 & show others what my N9 can do!!

vitaminj 2012-04-11 18:20

Re: NFC APIs to control hardware functions
 
n.b. Rodrigo Linfati's "NFC Tag Writer" app in the store has a wizard to write a bluetooth audio tag for a non-nfc bluetooth headset.
And the NFC Interactor app lets you do a raft of super-advanced stuff, but you need a good grip on the NFC spec (which I can't claim to), or a lot of patience. There's free and paid versions in the store, but it's also open source, so...

e0x 2012-04-11 20:26

Re: NFC APIs to control hardware functions
 
Quote:

Originally Posted by balisingh (Post 1179028)
I have fancied the use of NFC ever since I found out about it in the N9. I bought tags (MIFARE ULC) and I try to find use for them (besides checking in on Foursquare, which is cool).
Some other interesting uses i found was control of hardware and profiles. I noticed no one on this forum has really shown any interest into NFC besides using it for payments (which is awesome but not going to be easy in the US even after having a Secure element with a SWP connection the chip, operators, banks and phone makers (google) have yet to slug it out on who gets the revenue). That aside What i really want to do is be able to turn on bluetooth automatically by scanning a Tag when i get in my car or make my phone silent at work by scanning a TAG, turn on wifi by scanning a Tag? etc. I am not lazy but that would just be plain awesome.
Is this possible to do through a daemon that runs on the N9 through QT development like through DoAction? Or is that something Nokia keeps locks on? since clearly that could easily be a problem than a solution!

hello , maybe you can do what i dream to do ( my programing knowledment was too little ) is add the feature to profilematic ( http://store.ovi.com/content/216122 , https://github.com/ajalkane/profilematic ) is rule base in NFC tags read.

is exactly what are you want i think.

MINKIN2 2012-04-11 21:38

Re: NFC APIs to control hardware functions
 
Not sure if this is of any help to you guys http://doc.qt.nokia.com/qtmobility/c...ivity-api.html

I was thinking what if you had a tag on your PC and a Bluetooth dongle, if you could encode the tag to activate BT on the phone and run a script to read the URL of the webpage viewed on the handset... We could send that URL to the PC in a "touch-to-share" manner?

This idea (if made possible) could easily be used on ANY PC type no matter what format or age.

It's ust an Idea mind, but would be cool.

WhitP 2012-04-12 01:07

Re: NFC APIs to control hardware functions
 
My tags arrived! It sounds silly but currently it's easier to set up a bluetooth pairing than simply toggling bluetooth on and off (easy to turn on with the N9 but not so easy to keep it on without pairing to something...).

For the time being I used NFC Tag Writer to set up pairing with my non-NFC hands-free for the car. With this setup a second tap on the tag unpairs the hands-free but doesn't turn off the bluetooth, so this is a work in progress...

WhitP 2012-04-14 19:45

Re: NFC APIs to control hardware functions
 
OK, I've had a chance to fiddle with this for a while. All that we want to do is possible but it needs someone with a bit of coding experience (not me) to sort out some details. The easy way within the NDEF standard to autostart an application is with a URI with a 'file://' prefix. To toggle bluetooth on/off if ToggleBT is installed should be easy..... If someone knows how to modify ext:nokia.com:bt so it doesn't shut off BT after a few seconds without an active pairing it's even easier...

Unfortunately there might be a glitch in the N9's handling of URI as it doesn't recognize 'file://' as in the NDEF standard. The hex form '0x1D' is recognized but without adding the application to the NDEF handler (http://doc.qt.nokia.com/qtmobility/q...ldmanager.html)it assumes it should be opened as a web document. NFCInteractor got added to the NDEF handler on installation so it's possible for someone who knows what they're doing - i.e. not me.....

Ckris 2012-04-14 19:55

Re: NFC APIs to control hardware functions
 
Quote:

Originally Posted by WhitP (Post 1192156)
OK, I've had a chance to fiddle with this for a while. All that we want to do is possible but it needs someone with a bit of coding experience (not me) to sort out some details. The easy way within the NDEF standard to autostart an application is with a URI with a 'file://' prefix. To toggle bluetooth on/off if ToggleBT is installed should be easy..... If someone knows how to modify ext:nokia.com:bt so it doesn't shut off BT after a few seconds without an active pairing it's even easier...

Unfortunately there might be a glitch in the N9's handling of URI as it doesn't recognize 'file://' as in the NDEF standard. The hex form '0x1D' is recognized but without adding the application to the NDEF handler (http://doc.qt.nokia.com/qtmobility/q...ldmanager.html)it assumes it should be opened as a web document. NFCInteractor got added to the NDEF handler on installation so it's possible for someone who knows what they're doing - i.e. not me.....

Any further progress? I bought few Mifare tags as well, currently I can only open web page, send sms or call someone. (Or launch nfcInteractor app). I got NFC religion :D after purchasing Nokia Play (not cared about nfc at the time) and see it working and also thanks to Sony Experia demo.
Currently ProfileMatic seems like most promising.

WhitP 2012-04-14 20:20

Re: NFC APIs to control hardware functions
 
Quote:

Originally Posted by Ckris (Post 1192159)
Any further progress? I bought few Mifare tags as well, currently I can only open web page, send sms or call someone. (Or launch nfcInteractor app). I got NFC religion :D after purchasing Nokia Play (not cared about nfc at the time) and see it working and also thanks to Sony Experia demo.
Currently ProfileMatic seems like most promising.

I think you must have posted about 5 minutes after me!

Unfortunately in that time I noticed that the 0x1D wasn't working either. All the URI's append http:// if it's not already there in the tag :(

What we really need is some expertise from the person behind nfcInteractor as he obviously does know what he's doing!
Ideally we need a small utility to link an installed application (and service if possible) to a custom ext: tag in the NDEF handler.

Ckris 2012-04-14 20:28

Re: NFC APIs to control hardware functions
 
Quote:

Originally Posted by WhitP (Post 1192169)
I think you must have posted about 5 minutes after me!

Yes, you are right, silly me.

Quote:

Originally Posted by WhitP (Post 1192169)
Unfortunately in that time I noticed that the 0x1D wasn't working either. All the URI's append http:// if it's not already there in the tag :(

What we really need is some expertise from the person behind nfcInteractor as he obviously does know what he's doing!
Ideally we need a small utility to link an installed application (and service if possible) to a custom ext: tag in the NDEF handler.

Ok, lets hope.

balisingh 2012-07-28 21:52

Re: NFC APIs to control hardware functions
 
Quote:

Originally Posted by WhitP (Post 1190985)

For the time being I used NFC Tag Writer to set up pairing with my non-NFC hands-free for the car. With this setup a second tap on the tag unpairs the hands-free but doesn't turn off the bluetooth, so this is a work in progress...

ya, i am experiencing the same thing. I will see if i can find a way to turn off the Bluetooth after unpairing. Maybe an application that listens to same ndef commands that is issued when unpairing. Is there anyone who can confirm Bluetooth can be turned off through the qt mobility APIs?

MohammadAG 2012-07-29 01:40

Re: NFC APIs to control hardware functions
 
Quote:

Originally Posted by balisingh (Post 1244308)
ya, i am experiencing the same thing. I will see if i can find a way to turn off the Bluetooth after unpairing. Maybe an application that listens to same ndef commands that is issued when unpairing. Is there anyone who can confirm Bluetooth can be turned off through the qt mobility APIs?

QBluetoothLocalDevice::setHostMode(QBluetoothLocal Device::HostPoweredOff)

godofwar424 2012-07-29 09:58

Re: NFC APIs to control hardware functions
 
Honest to GOD!

What is the point asking when you ignored the dude on the other page!

PROFILEMATIC! It does all this stuff! I have a tag in my car that is set to toggle bluetooth on AND off using PROFILEMATIC!

Its in the Nokia Store, stop doing such awkward methods and use it :D

balisingh 2012-07-29 18:12

Re: NFC APIs to control hardware functions
 
I dont know, i m doing it to do it.

balisingh 2012-07-29 18:19

Re: NFC APIs to control hardware functions
 
Quote:

Originally Posted by MohammadAG (Post 1244335)
QBluetoothLocalDevice::setHostMode(QBluetoothLocal Device::HostPoweredOff)

hey thanks. I overlooked that when.i was going through it.

Tetlee 2012-07-29 22:01

Re: NFC APIs to control hardware functions
 
On this subject, I wonder if the N9 will pair/disconnect with the upcoming Parrot Minikit Neo using NFC as it does with the 360 Play?

http://www.engadget.com/2012/07/10/p...ng-off-handed/

I'm needing a new hands-free kit for the car and I too would like to utilise the super easy NFC pairing of the N9, really praying it works on this device.


All times are GMT. The time now is 22:03.

vBulletin® Version 3.8.8