Languages

Menu
Sites
Language
Tizen Wearable SDK NFC in Emulator

Hi,

We are developing a stand alone app using Tizen Wearable SDK.

We need to incorporate NFC for the app.

We have implemented NFC in our app using the sample given in the following link

https://developer.tizen.org/dev-guide/2.4/org.tizen.tutorials/html/web/tizen/communication/nfc_tutorial_w.htm

But we are unable to test NFC using the Tizen Emulator. We have used NFC event injector in the emulator but the tag is not getting detected. The steps we followed are

1. Deployed NFC app to emulator

2. Open Control Panel --> Event Injector --> NFC

3. Added NDEF message and selectged record

4. Attached NDEF Tag after opening our app in emulator

 

Is NFC can be tested using the emulator using Event Injector?

If it is supported, please provide us the steps to do it.

Thanks in advance.

View Selected Answer

Responses

8 Replies
daniel kim

Hi,

I found that below NFC privileges are not supported in wearable emulator using tizen.systeminfo.getCapability().

    http://tizen.org/privilege/nfc.p2p

    http://tizen.org/privilege/nfc.tag

    http://tizen.org/privilege/nfc.cardemulation

    http://tizen.org/privilege/nfc.common

Regards

Tintu Thilak

Hi,

Thanks for the reply.

 

We have read NFC API is supported in all Emulators from the following link.  

https://developer.tizen.org/dev-guide/2.4/org.tizen.tutorials/html/web/tizen/communication/nfc_tutorial_w.htm

 

We printed tizen.systeminfo.getCapability() .

There only two values related to NFC in there, nfc : true and nfcReservedPush : false

Is this what you mean ?

 

 

daniel kim

Hi,

I've checked it on wearable emulator once again and sorry to confuse you. It looks like that I 've used wrong parameter for tizen.systeminfo.getCapability();  NFC is supported in wearable emulator. but, I could observe same situation on wearable emulator with event injector and tag was not detected anyhow.

Regards

 

  

 

AVSukhov

Hello,

More info about providing NFC data using Event Injector can be found here:

https://developer.tizen.org/development/tools/common-tools/emulator/event-injector

Tintu Thilak

Hi,

We had followed the steps in that link and the tag is not detected by the application.

Mark as answer
daniel kim

Hi,

I've checked it once agian and can confirm that wearable emulator doesn't support NFC event injector for web application. so that document will be updated soon, I think.

However, my colleague found that NFC event injector is working for native application on wearable emulator.

Regards

Tintu Thilak

Hello,

 

An update on this

We tried to deploy the app to Samsung Gear S2.

We are getting the error. Tag is not supported.

Tintu Thilak

We have also tried the native application and deployed in Samsung Gear S2

We are getting the error code as NFC_ERROR_NOT_SUPPORTED for the following line

int error_code = nfc_manager_set_tag_discovered_cb(on_nfc_tag_discovered, NULL);