ubports / ubuntu-touch

Ubuntu Touch's issue inbox is now migrated to GitLab.
https://gitlab.com/ubports/ubuntu-touch
1.28k stars 110 forks source link

Sending data over NFC #245

Closed PhoenixLandPirate closed 3 years ago

PhoenixLandPirate commented 6 years ago

It would be nice to be able to send data like browser pages, youtube videos, contacts, photos, to other devices using NFC.

photo_2017-09-17_12-32-49

https://www.youtube.com/watch?v=Ixri3uAZzhI https://www.youtube.com/watch?v=cwU4TvQEq0g

Flohack74 commented 6 years ago

I think the problem is currently that while libhybris supports NFC already there are no low-level components in Ubuntu at all that would support this. I mean, our ubuntu Touch comes mostly from the desktop, and its very unlikely that a desktop PC has NFC builtin. So we are missing the Ubuntu side of things here, and I am not sure we can implement this without any good lib from some upstream.

NeoTheThird commented 6 years ago

Yep, that's true. But with GNU/Linux (ie not bionic based) becoming more and more popular, a solution for that might just come along. Let's keep this issue open, maybe someone comes up with an easy solution.

PhoenixLandPirate commented 6 years ago

Can we not steal any nfc librarys from android, or see what plasma mobile does?

NeoTheThird commented 6 years ago

@ChloeWolfieGirl

Can we not steal any nfc librarys from android

That's not how it works. Android runs below libhybris which does also support NFC, but we need a library to expose and implement NFC into the OS. Since we don't want to do any not-invented-here bullshit (small team, limited resources, more pressing issues, blah blah), we shouldn't create that from scratch.

see what plasma mobile does?

That's what we need to do. If Plasma Mobile, Sailfish OS or other libhybris-based projects supporte NFC, we can probably use their solution as well. Feel free to do some research ;)

topiasv commented 5 years ago

Sailfish OS just got NFC support on the latest update and seems like it can be found on the mer gitlab. This might help you get started with implementing NFC on Ubuntu Touch. Check it out here.

mariogrip commented 3 years ago

nfc is now in the latest devel, but we are still missing the p2p data sending, so will keep this open.

Created this to track the nfc itself https://github.com/ubports/ubuntu-touch/issues/1697

fredldotme commented 3 years ago

Missing piece: https://gitlab.com/ubports/core/apparmor-easyprof-ubuntu/-/merge_requests/1

Happy easter! :)

fredldotme commented 3 years ago

This is now included in devel. A demo on how to access P2P functionality: https://github.com/fredldotme/ut-nfcd-p2p-demo

Ecorous commented 3 years ago

Has this been added?

fredldotme commented 3 years ago

@ExoPlant Yes. OTA-17 includes this functionality and a demo on how to build P2P applications is in the link above your comment.

Ecorous commented 3 years ago

👍

Ecorous commented 3 years ago

I'd update devices.ubuntu-touch.io ASAP

fredldotme commented 3 years ago

The NFC listing depends on the porter or community members updating the details. See the Pixel 3a: https://devices.ubuntu-touch.io/device/sargo/

Ecorous commented 3 years ago

The NFC listing depends on the porter or community members updating the details. See the Pixel 3a: https://devices.ubuntu-touch.io/device/sargo/

I've updated the default in a merge request now