April 13, 2016 at 11:14 pm #55103
I just got a FloBLE Plus and I followed the readme directions to get an iOS app up and running. It detects NFC tags (type 2 as well as our own Trusted Tag). Pretty cool!
Now I’d like to read the NDEF records. Sorry if this is a stupid question but what is the process for that? I see the didFindDataBlocks callback, but it never seems to be fired. I’m sure it’s some obvious thing.
Thanks for your help,
TerryApril 13, 2016 at 11:39 pm #55108
Hey Terry, you need to set the ReaderManager.operationState to
kReadDataBlocksin order to get the didFindDataBlocks callback to fire. The NDEF parser is still not wired up completely to the data block parser. We’re working on getting that done but have been interrupted with some other maintenance work. It’ll take a few days if you can bare with us. In the meantime, here’s a sample app with the didFindDataBlocks callback firing that you can play with:
RichardApril 14, 2016 at 12:16 am #55115
Thanks for the quick response (shouldn’t we be asleep?)
I tried kReadDataBlocks but it still only fires the UID callback.
sharedManager.operationState = kReadDataBlocks; //kReadUUID or kWriteDataBlocks
Found tag UUID: 04 34 42 0A E8 2C 80 from device:RR330-000150
There’s nowhere else in my code where this is being set,other than viewDidLoad.
-TerryApril 14, 2016 at 12:21 am #55116
Sleep, what’s that? LOL…
Can you try the TestFlomioSDKv1.9 bundle I sent you last to make sure it’s not something build related? I was getting didFindDataBlocks callbacks on that. It’s a quick sanity check.. lemme know.April 14, 2016 at 12:28 am #55117
Sorry, I should have said, I am using the regular SDK.
Here’s my ViewController.m
Hang on, will try the sample code you just sent.
April 14, 2016 at 12:35 am #55121
- This reply was modified 4 years, 7 months ago by Terry.
Hm, something’s wrong:
2016-04-14 00:33:58.359 TestFlomioSDKv1.9[16618:9543772] -[ABTAcr1255uj1Reader checksumFromBuffer:length:]: unrecognized selector sent to instance 0x1757dbf0
2016-04-14 00:33:58.361 TestFlomioSDKv1.9[16618:9543772] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[ABTAcr1255uj1Reader checksumFromBuffer:length:]: unrecognized selector sent to instance 0x1757dbf0’
I only changed the app in two places:
and changed target OS to 8.3April 14, 2016 at 12:37 am #55122
Ok, now I know what the problem is. I had tested the bundle I sent you with the FloJack MSR but not with the FloBLE Plus. Seems to be an issue with the delegate setting in the FloBLE Plus class. Let me see if I can correct and post another SDK bundle for you to try. We have this working on the Test App which I can share with you via TestFlight. Sometimes in graduating these updates to the Flomio SDK we miss testing some features. I’ll update this thread once I have something you can try. It make take a couple days though given our current work load.
RichardApril 14, 2016 at 12:41 am #55123
Would like to try the test app — so we can at least see the end-to-end flow.
By the way, is the Android SDK able to read tag data?
TerryApril 14, 2016 at 12:42 am #55124
Not sure if this will help but looking at the error it looked familiar… try adding this to the build flags if it’s not there.April 14, 2016 at 12:46 am #55125
The Android SDK is currently limited to reading tag UUIDs and sending/receiving APDUs. The latest beta is in the Flomio SDK bundle under Android folder.
In order to send you the Test App I’ll need your Apple ID.. to avoid spammers don’t post it on Forums, just PM it to me to info at flomio dot com.April 14, 2016 at 12:47 am #55126
Yes, adding -ObjC flag did fix that error. Now the app runs, but it only gets the UID and not the data.
I wonder if it’s a bug — is not properly parsing the enum (kReadUUID versus kReadDataBlocks), or something like that, for the FloBLE Plus.April 14, 2016 at 1:08 am #55127
Ok, at least at sane. It’s likely a trivial bug but will take a couple days to look at it carefully and publish a new SDK bundle. Will report back once we’ve gotten to that. In the meantime, sending you the Test App for you to try. You can use the APDU form at the bottom of the FloBLE Plus view to read data blocks. So for instance:
APDU Format Command Class INS P1 P2 (1byte) Le (1byte) Read Binary Blocks FFh B0h 00h Block Number of Bytes to Number Read Example APDU: FF B0 00 04 10 => Reads 4 data blocks (16 bytes) starting at data block 4April 15, 2016 at 9:42 am #55145
Testflight says “Invite code has expired”April 15, 2016 at 12:54 pm #55146
As Richard may have mentioned we are going to release a 2.0 Version of the SDK soon, it’s mostly complete and we are testing, nevertheless we can give you access to it.
The new version of the Test App has a new approach, there’s no longer a “Read Data Blocks Option”, we just enabled an interface to send APDUs, with that you can test the ability of our SDK of reading data blocks just by sending a FF B0 00 04 10 command for example.
Please let me know if this is something you can use to test our SDK, and we’ll give you access to the new version.April 15, 2016 at 1:46 pm #55151
@Terry, I shared the Test App (with SDK v1.9) yesterday with your @me.com account. In order to install the app from TestFlight, check the Apple instructions here.
let us know if you still have issues.
RichardApril 18, 2016 at 11:08 pm #55183
The following is a temporary link for the SDK2.0-Beta
follow the readme file instructions to install and let me know if you have any question.April 19, 2016 at 10:25 am #55191
ReaderManager.h is missing, project won’t build. Deprecated?April 19, 2016 at 11:51 am #55192
ReaderManager.h doesn’t exists anymore (it was substituted by FMSessionManager), you need to replace the whole SDK with the new one and change all the references to ReaderManager as it’s in the Readme file.May 24, 2016 at 4:32 pm #55551
I have FloBLE Plus and SDKv2.0.
I am able to read UUID of the tag.
How can I read NDEF record?
Thank you in advance.
RomanJune 1, 2016 at 2:17 am #55595
Hi Roman, we are still working on fully supporting NDEF on iOS. You can try our Test Application via TestFlight if you send us your Apple ID to info at flomio dot com.
You must be logged in to reply to this topic.