Home › Forums › Ask the Flomies › FloBLE – SDK
-
AuthorPosts
-
June 9, 2016 at 9:58 am #55680
Hi We have an issue with the FLoBLE and the Flomio SDK2.0
The development is Android and the IDE is Android Studio
We have the connection working perfectly.We present a card and can see the Device Connected status fine in the Notification Call Back.
At this point we need to send two separate APDU commands and record the response from the second.
Can you advise the best way to do this please?
Does the reader try multiple times to do the same action (eg APDU)?Regards
Mark
June 9, 2016 at 1:32 pm #55685Hello Mark,
In order to send APDU command you must call the ‘reader’ method of a FMBluetoothDevice.
The FMSessionManager.SDKdidNewDeviceConnected call back will give you a list of all the connected devices, you can get them with something like this:
List
values = (List)message.get(“connectedDevices”); In the list you select the device you want and send the APDU command like this:
selectedDevice.reader.sendAPDU(“some APDU string”);
You can see the test app ReadersActivity.java file for a working implementation.
Let me know if you have any other comment or question.
Boris.
June 9, 2016 at 2:10 pm #55686Hi Boris,
We are having issues with the reader locking up for few seconds, even with the flomio test app.
We are sending apdu and receiving the response.
But it’s not consistent.
We send an apdu and get the reader freeze for about 1sec with blue light on.
Then it’s not working till we re pair the ble.
I need to know after connecting(which works great)
How to make apdu, get a response make second different apdu and her that response, in a very robust manor.
Can you help please?
June 9, 2016 at 2:12 pm #55687Hello Mark,
Let me ask you a question just to clarify:
You are trying to send 2 consecutive APDU commands and then the device locks up, right?
June 9, 2016 at 2:17 pm #55690No,
We may be doing something really wrong.
But we use the notification call back to see if card connected.
Then send first apdu.We get very mixed result.
Sometimes maybe(1 in 5) get a response correct.
But mostly get lock for second with blue light on the device solid. Then after that we never get a read.
We have same experience with the flomio sample app.
We are using a device we have direct from ACS if that may make a difference???
I can send some logs tomorrow, but was hoping it was a quick fix. I’m on UK time BTW.
June 9, 2016 at 2:26 pm #55691OK,
Now two more questions:
1) Can you send me the command and a brief description of the APDU you’re sending?
2) What kind of card you are using? is it an NDEF card?
I’ll try to replicate the issue here.
Thanks,
Boris.
June 9, 2016 at 2:33 pm #55693I’m on uk time Boris.
And I’m in between office and home now.
I’ll send the apdu commands to Richard tomorrow
Because he will need them for other projects.I’d prefer to have the rest of this convo off the public forum. Can you send me your email so we can chat private, Richard or Dan will give you mine.
Best Regards
M
June 9, 2016 at 2:35 pm #55694No problem, I’ll email you directly.
Cheers,
Boris. -
AuthorPosts
You must be logged in to reply to this topic.