Tagged: Card Emulation
August 29, 2019 at 4:51 am #65758
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?
LoganSeptember 4, 2019 at 1:19 pm #65780
I’m still having issues with this. I’m using the swift sdk.September 6, 2019 at 9:15 am #65787
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 #65789
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?
LoganSeptember 10, 2019 at 8:03 am #65803
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
updateCeNdefonce the reader is initialised, maybe there is another issue. What is the firmware of your reader?
ScottSeptember 10, 2019 at 5:30 pm #65805
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:
P/N: ACR 1255U-J1
Power: 5VDC, 500mA
In 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.
LoganSeptember 10, 2019 at 5:32 pm #65806
I should also mention that everything else with the reader is working. I am able to read and write tags with no problems.
You must be logged in to reply to this topic.