react-native-nfc-manager icon indicating copy to clipboard operation
react-native-nfc-manager copied to clipboard

Problem with iso15693_readMultipleBlocks command

Open dosser66 opened this issue 1 year ago • 0 comments

react-native: 0.71.7 nfc-manager: 13.14.12 protocol: ISO 15693 OSX: Ventura 13.6.3 xCode: 15.1 xCode Project Build: 12.0 and 14.0 iPhones: 7 iOS 15.8, 12 iOS 17.2.1 Tag: STMicroelectronics Compatibility Protocols: NDEF, NfcV, ISO15693 iOS app for reference: NFCTap (by STMicroelectronics written in Swift)

Experience:

Have been successful in a few commands for example: present password (NB. As you all know, there's no need for request flag 0x22, Manufacturer flag 0x02, nor the UID. The default password is also just 8 zeros)

const checkPasswordIosCmd = { flags: Nfc15693RequestFlagIOS.HighDataRate, customCommandCode: 0xb3, customRequestParameters: [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00], }; const checkPasswordCmd = await NfcManager.iso15693HandlerIOS.customCommand(checkPasswordIosCmd);

Screenshot 2024-02-02 at 9 28 03 AM

Problem:

Want to perform a readMultipleBlock command:

Screenshot 2024-02-02 at 9 29 01 AM

The command will be as follows:

const resultIpv4ReadIosCmd = { flags: Nfc15693RequestFlagIOS.HighDataRate, customCommandCode: 0x23, customRequestParameters: [0x00, 0x03], }; resultIpv4Read = await NfcManager.iso15693HandlerIOS.customCommand(resultIpv4ReadIosCmd);

xCode console result:

-[NFCISO15693Tag customCommandWithRequestFlag:customCommandCode:customRequestParameters:completionHandler:]:589 Custom command code must be between 0xA0 to 0xDF inclusively

This is a non-sensical error which tells me the problem is somewhere else and not caught/dealt with properly.

Am I missing something? Thx for the help.

dosser66 avatar Feb 02 '24 15:02 dosser66