Ask / Submit
1

? How to make use of NFC to start/stop specific programs, WiFi, BT, GPS, etc. ?

asked 2018-02-12 20:40:51 +0200

ds1979 gravatar image

updated 2018-02-12 20:43:50 +0200

Hello together!

I am jumping into and out of different cars/trucks all the time. I would like to automate Bluetooth, GPS, poor maps, etc. with NFC tags that are glued to the car holder. This shall turn off WiFi, turn on Bluetooth connection, GPS and 4G. And when I leave the car it shall go back to "normal" and turn off GPS and Bluetooth and turn Wifi on.

I have read about the trouble with TOH and NFC and that it is turned off at some point so you can't scan NFC tags.

Any ideas?

Thank you in advance!

Cheers!

edit retag flag offensive close delete

Comments

AFAIK the problem with NFC and Jolla 1 was that NFC was solely used for TOH recognition and not available for other interaction. However as Jolla 1 is already legacy and the future of Jolla seems to be Sailfish X I think it should be possible to get NFC for interaction in some forseeable future. And if so, maybe situations app will provide NFC based situations...

naytsyrhc ( 2018-02-12 23:07:03 +0200 )edit

3 Answers

Sort by » oldest newest most voted
2

answered 2018-02-13 17:13:51 +0200

Moo-Crumpus gravatar image

Read the blog!

> After Mouhijoki we will add support for some device features that have been missing, such as NFC and fingerprint authentication...

edit flag offensive delete publish link more

Comments

3

@Moo-Crumpus

Reading the blog is of no help to the OP, who makes no mention of SonyX/SailfishX, but he does refer to TOH, which implies Jolla1.

Edz ( 2018-02-13 17:55:27 +0200 )edit

Hi Edz, could you please define the abbreviation "OP"? I have read many postings and comments lately with a lot of abbreviations which I don't understand right. Thanks!

ds1979 ( 2018-02-14 10:52:57 +0200 )edit
1

@ds1979 - OP = Original Poster

I know what you mean about abbreviations, I'm still learning myself.

Edz ( 2018-02-14 11:29:58 +0200 )edit
0

answered 2018-02-12 21:57:36 +0200

LVPVS gravatar image

Hei,

Simply install Sotuations app from Jolla Store and configure condition to connected BT carkits. Or a situation whith charger and headset connected. Or whatever you like... :)

LVPVS out.

edit flag offensive delete publish link more
-1

answered 2018-02-12 21:04:06 +0200

figgis-diggis gravatar image

updated 2018-02-12 21:04:48 +0200

Well, I suppose you'd need something like the NFC Interactor, very nice MeeGo app that was.

The problem is, I highly doubt there will be something that powerful for Sailfish. Of course you could use android app like NFC Tools (that is, if the NFC would work in android apps), but I also have my doubts about it being able to change Sailfish system-wide settings like wireless interfaces state.

So, writing a custom script seems to me the only viable option. As far as I know, people quite often use pcsc (or some variation of it, I'm not awfully competent in that area) to read NFC tags in Linux. So I suppose you would have to trigger the script with udev event (or wherever nfc chip would tell the system that it is enabled) and listen to pcsc output. If that would contain data of certain tag — then call rfkill to do whatever you want with the wireless.

Easier said than done.

edit flag offensive delete publish link more

Comments

1

The NFC is locked down to only be used in conjunction with 'the other half', nothing else. There are some clever people frequenting this forum, yet I've not seen any evidence of any user developing/creating anything for use with NFC.

Edz ( 2018-02-13 11:11:15 +0200 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2018-02-12 20:40:51 +0200

Seen: 542 times

Last updated: Feb 13