revtel / react-native-nfc-manager

React Native NFC module for Android & iOS
MIT License
1.32k stars 312 forks source link

Problem with iso15693_readMultipleBlocks command #697

Closed dosser66 closed 1 month ago

dosser66 commented 5 months ago

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.

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 1 month ago

This issue was closed because it has been stalled for 5 days with no activity.