NFC Error Codes
Note:
Currently in the beta phase.
Note:
The following describes only the module-specific error codes. For general error codes, please refer to the Universal Error Code Documentation.
3100101
Error Message
NFC state is abnormal in service.
Error Description
The NFC service encountered an exception while executing NFC activation or deactivation internally.
Possible Causes
- Communication exception with the NFC service.
- Communication exception with the NFC chip.
Handling Steps
- Retry activating or deactivating NFC.
- Retry activating or deactivating NFC, or restart the device.
3100201
Error Message
Tag running state is abnormal in service.
Error Description
The NFC service encountered an error while executing Tag business logic.
Possible Causes
- The Tag parameter values do not match the requirements of the called function.
- The NFC state was deactivated during Tag operations.
- The Tag was already disconnected before the operation.
- The Tag chip returned an error status or response timeout.
- No binding relationship was established with the NFC service, making it impossible to call the interface.
Handling Steps
- Verify that the NFC parameters match the called interface.
- Activate the device's NFC.
- Call the connection first before performing read/write operations.
- Retry tapping to read the card.
- Exit the application and retry reading the card.
3100202
Error Message
The element state is invalid.
Error Description
When calling the interface, the page state of the application reading the card was incorrect, as the page was not in the foreground.
Possible Causes
The page state of the application reading the card was incorrect, as the page was not in the foreground.
Handling Steps
- Only allow the interface to be called from the application's foreground page.
3100203
Error Message
The off() can be called only when the on() has been called.
Error Description
The off() interface can only be called after the on() interface has been called.
Possible Causes
- The application's foreground page directly called the off() interface without first calling the on() interface.
Handling Steps
- The application's foreground page should first execute the on() interface and then call the off() interface upon page exit.
3100204
Error Message
Tag I/O operation failed.
Error Description
NFC Tag I/O operation failed.
Possible Causes
- The NFC Tag does not support the executed read/write operation.
Handling Steps
- The application should handle the exception or provide prompts based on the business scenario.
3100301
Error Message
Card emulation running state is abnormal in service.
Error Description
The NFC service encountered an error while executing card emulation business logic.
Possible Causes
- The NFC state was deactivated during card emulation.
- The NFC chip returned an error status or response timeout.
Handling Steps
- If the NFC is deactivated, prompt the user to activate it.
- Prompt the user to deactivate and reactivate NFC to reinitialize the hardware.
3200101
Error Message
Connected NFC tag running state is abnormal in service.
Error Description
An error occurred while executing active NFC Tag business logic.
Possible Causes
- The active NFC Tag parameter values do not match the requirements of the called function.
- The active NFC Tag chip returned an error status or response timeout.
Handling Steps
- Verify that the active NFC Tag parameters match the called interface.
- Retry tapping to read the card.