Deactivate NVC connection to NFC Tag type 4 before closing to avoid app crash (Known Issue)
mahbub_s60
(Talk | contribs) (Mahbub s60 -) |
(Chintandave er - edited ArticleMetdata and added Created date and author) |
||
| Line 1: | Line 1: | ||
[[Category:Near Field Communication (NFC)]][[Category:Qt Mobility]][[Category:Code Snippet]] | [[Category:Near Field Communication (NFC)]][[Category:Qt Mobility]][[Category:Code Snippet]] | ||
| − | |||
{{ArticleMetaData <!-- v1.1 --> | {{ArticleMetaData <!-- v1.1 --> | ||
|sourcecode= <!-- Link to example source code e.g. [[Media:The Code Example ZIP.zip]] --> | |sourcecode= <!-- Link to example source code e.g. [[Media:The Code Example ZIP.zip]] --> | ||
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) --> | |installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) --> | ||
| − | |devices= | + | |devices= Nokia C7 |
|sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Qt SDK 1.1.4]) --> | |sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Qt SDK 1.1.4]) --> | ||
|platform= <!-- Compatible platforms - e.g. Symbian^1 and later, Qt 4.6 and later --> | |platform= <!-- Compatible platforms - e.g. Symbian^1 and later, Qt 4.6 and later --> | ||
| Line 21: | Line 20: | ||
|update-by= <!-- After significant update: [[User:username]]--> | |update-by= <!-- After significant update: [[User:username]]--> | ||
|update-timestamp= <!-- After significant update: YYYYMMDD --> | |update-timestamp= <!-- After significant update: YYYYMMDD --> | ||
| − | |creationdate= | + | |creationdate= 20120206 |
| − | |author= | + | |author= [[User:mahbub_s60]] |
}} | }} | ||
Revision as of 09:31, 7 February 2012
Article Metadata
Tested with
Article
Contents |
Introduction
When a NFC application is run on Symbian Anna/Belle that communicate with NFC tag type 4 then we see a problem. The problem is that our application closed. Our application get a panic when the tag is removed. This happen because of a bug in NFC implementation. The bug has been identified and is fixed in platform release that will be available in the coming release after Belle.
How to produce the bug
-Use the following code when a tag is removed away from the C7 (for example) This does not work and give panic though the API should be used like this way.
void CNfcHandler::TagLost()
{
iTag->CloseConnection(*iIso14443Connection);
delete iIso14443Connection;
iIso14443Connection = 0;
}
-Run the application
-Bring an NFC tag type 4 and remove it (Our NFC app is closed because of panic)
Work Around
Because of the bug it does not work as it should be. We can try the following code if we develop application for platform up to Belle. Following code works.
void CNfcHandler::TagLost()
{
if(iIso14443Connection->IsActivated())
{
iIso14443Connection->Deactivate();
}
iTag->CloseConnection(*iIso14443Connection);
delete iIso14443Connection;
iIso14443Connection = 0;
}
Device SW used to test
Use C7 with FW 022.013 and FW022.014

