SHORT-RANGE WIRELESS COMMUNICATIONS
A method for near field communication (NFC) wireless connectivity, comprising receiving, by an electronic device from a mobile device, an NFC command; issuing, by the electronic device to the mobile device, an NFC response including an incomplete status code to trigger a polling operation by the mobile device; issuing, by the electronic device to the mobile device, the incomplete status code during an execution of the NFC command; and issuing, by the electronic device to the mobile device, a response to the NFC command when the electronic device completes the execution of the NFC command.
1 . A method for near field communication (NFC) wireless connectivity, comprising:
receiving, by an electronic device from a mobile device, an NFC command;
issuing, by the electronic device to the mobile device, an NFC response including an incomplete status code to trigger a polling operation by the mobile device;
issuing, by the electronic device to the mobile device, the incomplete status code during an execution of the NFC command; and
issuing, by the electronic device to the mobile device, a response to the NFC command when the electronic device completes the execution of the NFC command.
2 . The method of claim 1 , wherein during the execution of the NFC command, the mobile device performs a polling operation that includes sending a response retrieval command to the electronic device requesting the response to the NFC command and the electronic device, in response, issues the incomplete status code to the mobile device.
3 . The method of claim 1 , wherein the polling interval is dynamically adjusted based on the expected processing time of the command.
4 . The method of claim 1 , wherein the electronic device includes an electronic tag.
5 . The method of claim 1 , wherein, the electronic device includes at least one response buffer and a secure element for cryptographic operations.
6 . The method of claim 5 , further comprising:
outputting, by the mobile device, at least one response retrieval command of a polling request of the polling operation;
responding, by the electronic device, to each polling request with contents of the response buffer; and
updating by the electronic device the response buffer with a result of a completed command.
7 . The method of claim 5 , wherein the response buffer includes a unique command identifier to correlate responses with the originating command.
8 . The method of claim 1 , wherein the mobile device ceases polling only after receiving a response with a status code other than the incomplete status code.
9 . A method for structuring NFC communication between a mobile device and an electronic tag, comprising:
generating, by the mobile device, an NFC command comprising a unique command identifier and a command payload;
receiving, by the electronic tag, the NFC command and storing the unique command identifier in a response buffer;
issuing, by the electronic tag, an NFC response comprising the same unique command identifier, a status code, and a response payload;
updating, by the electronic tag, the response buffer with the status code and response payload;
enabling, by the mobile device, retrieval of the response buffer contents using the unique command identifier during polling operations.
10 . The method of claim 9 , wherein the status code comprises an incomplete value indicating that the command is still being processed.
11 . The method of claim 9 , wherein the response payload includes confirmation that the command payload was cryptographically verified.
12 . The method of claim 9 , wherein the response buffer is configured to store multiple command identifiers and their associated responses.
13 . The method of claim 9 , wherein the mobile device uses the unique command identifier to correlate polling requests with specific commands.
14 . The method of claim 9 , wherein the response buffer is cleared or overwritten upon successful transmission of the final response.
15 . A method for structuring NFC communication between a mobile device and an electronic tag, comprising:
generating, by the electronic tag, a unique command identifier (a n-once);
requesting, by the by the mobile device that unique command identifier;
receiving, by the mobile device that unique command identifier;
generating, by the mobile device, an NFC command comprising that unique command identifier and a command payload;
receiving, by the electronic tag, the NFC command and storing the unique command identifier in a response buffer;
issuing, by the electronic tag, an NFC response comprising the same unique command identifier, a status code, and a response payload;
updating, by the electronic tag, the response buffer with the status code and response payload;
enabling, by the mobile device, retrieval of the response buffer contents using the unique command identifier during polling operations.
16 . The method of claim 15 , wherein the status code comprises an incomplete value indicating that the command is still being processed.
17 . The method of claim 15 , wherein the response payload includes confirmation that the command payload was cryptographically verified.
18 . The method of claim 15 , wherein the response buffer is configured to store multiple command identifiers and their associated responses.
19 . The method of claim 15 , wherein the mobile device uses the unique command identifier to correlate polling requests with specific commands.
20 . The method of claim 15 , wherein the response buffer is cleared or overwritten upon successful transmission of the final response.