maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   toggle bluetooth code - NFC (https://talk.maemo.org/showthread.php?t=87735)

wout.martens 2012-11-06 08:20

toggle bluetooth code - NFC
 
Hi

Want to program NFC tag to toggle Bluetooth.
Can this be done via NFC interactor?

Could better contact them directly but someone might know how to do this? Thanks!

thedead1440 2012-11-06 09:01

Re: toggle bluetooth code - NFC
 
Did you try using profilematic?

wout.martens 2012-11-06 11:09

Re: toggle bluetooth code - NFC
 
Well have some NFC stickers and want to program them.
So stick that sticker in my car, tapping it and BT starts or connects to my kit.

ProfileMatic can be configured by Cell-ID or so but this is not the same...

Lucazz990 2012-11-06 11:14

Re: toggle bluetooth code - NFC
 
Quote:

Originally Posted by wout.martens (Post 1290978)
Well have some NFC stickers and want to program them.
So stick that sticker in my car, tapping it and BT starts or connects to my kit.

ProfileMatic can be configured by Cell-ID or so but this is not the same...

The latest version of profilematic also supports NFC tags :) you can find it in the store or in the official thread...
http://talk.maemo.org/showthread.php?t=79642

wout.martens 2012-11-06 12:02

Re: toggle bluetooth code - NFC
 
Yes true and for activating it this works perfectly.
But not for deactivating it.

slarti 2012-11-06 13:08

Re: toggle bluetooth code - NFC
 
It works also for deactivation. Just enable the toggle condition in the NFC condition and in Bluetooth action restore previous mode.

Edit: My approach was a little different. I didn't enable the toggle condition as my NFC tag is on the car holder. My ProfileMatic rule activates and remains active as long as it "sees" the NFC tag. Once I remove the phone from the holder the NFC tag is no longer seen and everything set in that rule returns to previous mode.

Right now I have this set up like this:

On rule activate:

- Turn on BT
- Start Music Player
- Start In Car Home Screen

On rule deactivate:

- Turn off BT
- Kill Music Player, In Car Home Screen and Nokia Drive (if I've started it from the In Car Home Screen)

I should add activate lock screen to my script that kills the apps but I haven't gotten around to it...

wout.martens 2012-11-06 13:50

Re: toggle bluetooth code - NFC
 
Alright that's a good idea.
could you share your script in order to have a look?

thanks again for answer.

slarti 2012-11-06 17:43

Re: toggle bluetooth code - NFC
 
5 Attachment(s)
Quote:

Originally Posted by wout.martens (Post 1291021)
Alright that's a good idea.
could you share your script in order to have a look?

thanks again for answer.

Sure.

Here are the ProfileMatic settings and scripts. Start commands for the apps are copied straight from their .desktop-files.

slarti 2012-12-22 12:46

Re: toggle bluetooth code - NFC
 
Look here for a much better solution for this.


All times are GMT. The time now is 09:24.

vBulletin® Version 3.8.8