Home › Forums › Ask the Flomies › Card Emulation
Tagged: Card Emulation
-
AuthorPosts
-
August 29, 2019 at 4:51 am #65758
Hello,
I have a kFloBlePlus and I am having trouble getting the card emulation to work.
Below is my config:
let defaultConfiguration: FmConfiguration = FmConfiguration();
defaultConfiguration.deviceType = .kFloBlePlus;
defaultConfiguration.transmitPower = .highPower;
defaultConfiguration.scanSound = false;
defaultConfiguration.scanPeriod = 1000;
defaultConfiguration.powerOperation = .autoPollingControl;
defaultConfiguration.allowMultiConnect = false;
defaultConfiguration.isCeMode = true
flomioSDK = FmSessionManager.init(configuration: defaultConfiguration);
flomioSDK.delegate = self;Once my deviceUid is set, I update my message:
flomioSDK.updateCeNdef(FmNdefMessage, withDeviceUid: deviceUid)
However, I am unable to read anything from the reader. Am I missing a step?
Thanks,
LoganSeptember 4, 2019 at 1:19 pm #65780I’m still having issues with this. I’m using the swift sdk.
September 6, 2019 at 9:15 am #65787Hi Logan,
Looks like your FmNdefMessage is the class name rather than an object?
You need to do the Swift equivalent to:
` FmNdefMessage *ndef = [FmNdefMessage createURIWithString:url];
[flomioSDK updateCeNdef:ndef withDeviceUid: @XXXXX];`
Hope that helps,
ScottSeptember 6, 2019 at 11:13 am #65789Hi Scott,
I just entered that as a placeholder. I have created a proper ndef message and used that in the updateCeNdef method and it is still not working:
var ndefMessage = FmNdefMessage.createURI(with: “https://flomio.com”)
var deviceUid = XXXXX
flomioSDK.updateCeNdef(ndefMessage, withDeviceUid: deviceUid)Any other suggestions?
Thanks,
LoganSeptember 10, 2019 at 8:03 am #65803Hi Logan,
I’m not sure whether this is just because you omitted it from the code above but you would not manually assign your device id, you should use the device ID returned within the delegate methods.
If you have done that, and called
updateCeNdef
once the reader is initialised, maybe there is another issue. What is the firmware of your reader?Scott
September 10, 2019 at 5:30 pm #65805Hi Scott,
Yes, I have entered in the device ID returned to me in the delegate method. I’m not sure what info you need but here is the firmware info I found:
On back of the device:
ACR1255
P/N: ACR 1255U-J1
Power: 5VDC, 500mAIn Delegate methods:
firmware revision – Optional(“FWV 3.01.00\0”)
hardware revision – Optional(“HWV 1.03\0”)Let me know if you need my S/N /deviceID as well.
Thanks,
LoganSeptember 10, 2019 at 5:32 pm #65806I should also mention that everything else with the reader is working. I am able to read and write tags with no problems.
September 19, 2019 at 2:40 am #65860Hi Scott,
Any updates? My device id is RR499-002493.
Thanks,
Logan -
AuthorPosts
You must be logged in to reply to this topic.