Hi mist4u,
mist4u1 wrote:I am running libnfc 1.4.1 on the PC. I am trying out the libnfc examples from the command line.
Please stop using obsolete version :-)
Switch to 1.5.1 libnfc's version.
mist4u1 wrote:Could someone please suggest the best possible way to approach the following:
a. To transfer BT and WiFi setup info from phone to PC?
You will need to implement "Connection Handover Technical Specification" from NFC Forum (actually Connection Handover 1.2).
mist4u1 wrote:b. BT and WiFi setup without user intervention on Ubuntu 11.04?
This will need some develoments... If you want to integrate NFC into Ubuntu desktop and support "Connection Handover", you will need to:
- Wrote a service (daemon) that handle NFC device, poll for target, extract tag content and expose it for "user".
A contributor have made NFCd¹ last year but the project is now dead and need a lot of code cleanning...
- Next, you will need to have a client in desktop environment, to receive and do action depending on target content.
The same contributor wrote a plasmoid² (for KDE) which was working a bit, but he did not continue his project.
Both, NFCd and DeskNFC are available at nfc-tools repository.
mist4u1 wrote:c. Transfer a file from phone to the PC?
To do that, you will need to use LLCP (logical link control protocol) which is a "link protocol" to be able to made a connection between the phone and PC. Next, you will need to create a LLCP service compiliant to Android NPP (NDEF Push Protocol).
Fortunately, this part is already done in libnfc-llcp³ and its nexus-get-tag example but no documentation available ATM.
[1] http://code.google.com/p/nfc-tools/wiki/nfcd
[2] http://code.google.com/p/nfc-tools/wiki/desknfc
[3] http://code.google.com/p/nfc-tools/sour
ibnfc-llcp
Romuald Conty