Discussion:
[Interest] [NFC] RFID tag reading
Oleg Evseev
2017-03-13 11:27:26 UTC
Permalink
Hi,

I'm trying to run ndefeditor example on one android tablet (with android
4.4.4), app prints QtNfc getStartIntent to console, but
targetDetected/targetLost signals aren't fired, until I add

<intent-filter>
<action android:name="android.nfc.action.TAG_DISCOVERED"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>

to AndroidManifest (as suggested here with same issues
http://stackoverflow.com/questions/33346378/how-to-get-nfc-working-on-android-using-qt-5-6
)

But when I do that Android trying to launch app every time I put down rfid
to nfc reader (and app crash), even if it's already launched. The only way
when it tag can be read in this situation is the first time app launch
after click retrieve button (tag is already detached from sensor).

On another tablet with 4.4.2, signals are fired correctly even if app is
not default rfid tag reader.

Tag is NXP MIFARE Classic 1k

I'm pretty sure that it's a hardware aspect issues, but maybe somebody from
Qt community had encountered such things and has alternative solutions.

With best regards, Oleg
Oleg Evseev
2017-03-13 12:08:24 UTC
Permalink
> I'm pretty sure that it's a hardware aspect issues, but maybe somebody
from Qt community had encountered such things and has alternative solutions.

I hurried with that. I wonder why then nfc app from google play (for
example NFC Tools) is working properly on first tablet (4.4.4 android) even
if it is not default app tag reader.
So maybe the reason of issues may be with QtNfc.java intent?
Oleg Evseev
2017-03-13 19:03:43 UTC
Permalink
Finally solved this one http://stackoverflow.com/a/42771453/5765076 (at
least for my tablet).
Add suggestion to Jira https://bugreports.qt.io/browse/QTBUG-59455
Hopes it will helps someone.

With best regards, Oleg
Alex Blasche
2017-03-14 09:00:46 UTC
Permalink
Hi Oleg,

thank you for figuring this out. Would you be willing to submit a patch to Qt (codereview.qt-project.org) for this problem (target branch 5.9)? If you put me on review I am happy to accept it.

--
Alex
________________________________________
From: Interest <interest-bounces+alexander.blasche=***@qt-project.org> on behalf of Oleg Evseev <***@gmail.com>
Sent: Monday, 13 March 2017 8:03:43 PM
To: Qt Project
Subject: Re: [Interest] [NFC] RFID tag reading

Finally solved this one http://stackoverflow.com/a/42771453/5765076 (at least for my tablet).
Add suggestion to Jira https://bugreports.qt.io/browse/QTBUG-59455
Hopes it will helps someone.

With best regards, Oleg
Oleg Evseev
2017-03-14 09:43:16 UTC
Permalink
Hi Alex,

I did https://codereview.qt-project.org/#/c/188351/. You can change
description as you wish.
Thanks for your work!

2017-03-14 12:00 GMT+03:00 Alex Blasche <***@qt.io>:

> Hi Oleg,
>
> thank you for figuring this out. Would you be willing to submit a patch to
> Qt (codereview.qt-project.org) for this problem (target branch 5.9)? If
> you put me on review I am happy to accept it.
>
> --
> Alex
> ________________________________________
> From: Interest <interest-bounces+alexander.blasche=***@qt-project.org>
> on behalf of Oleg Evseev <***@gmail.com>
> Sent: Monday, 13 March 2017 8:03:43 PM
> To: Qt Project
> Subject: Re: [Interest] [NFC] RFID tag reading
>
> Finally solved this one http://stackoverflow.com/a/42771453/5765076 (at
> least for my tablet).
> Add suggestion to Jira https://bugreports.qt.io/browse/QTBUG-59455
> Hopes it will helps someone.
>
> With best regards, Oleg
>
Oleg Evseev
2017-03-15 10:37:35 UTC
Permalink
But I still didn't understand how those different filtering in setContext()
and in start() work? Why they are different, where m_filters is used?

2017-03-14 12:43 GMT+03:00 Oleg Evseev <***@gmail.com>:

> Hi Alex,
>
> I did https://codereview.qt-project.org/#/c/188351/. You can change
> description as you wish.
> Thanks for your work!
>
>
> 2017-03-14 12:00 GMT+03:00 Alex Blasche <***@qt.io>:
>
>> Hi Oleg,
>>
>> thank you for figuring this out. Would you be willing to submit a patch
>> to Qt (codereview.qt-project.org) for this problem (target branch 5.9)?
>> If you put me on review I am happy to accept it.
>>
>> --
>> Alex
>> ________________________________________
>> From: Interest <interest-bounces+alexander.blasche=***@qt-project.org>
>> on behalf of Oleg Evseev <***@gmail.com>
>> Sent: Monday, 13 March 2017 8:03:43 PM
>> To: Qt Project
>> Subject: Re: [Interest] [NFC] RFID tag reading
>>
>> Finally solved this one http://stackoverflow.com/a/42771453/5765076 (at
>> least for my tablet).
>> Add suggestion to Jira https://bugreports.qt.io/browse/QTBUG-59455
>> Hopes it will helps someone.
>>
>> With best regards, Oleg
>>
>
Loading...