主权项 |
1. A near field communication (NFC) data transmission method, the method comprising:
establishing, by an NFC controller of an electronic device, an NFC link between the electronic device and an NFC device; determining, by the NFC controller, a value of an identifier of a storage space and a value of an address of the storage space based on a relationship and a Link Service Class (LSC) of the established NFC link, wherein the relationship linking the address of the storage space, the identifier of the storage space, a type of application-layer data, and a LSC supported by the type of application-layer data, wherein the relationship is stored in the NFC controller, and wherein the storage space is located in the NFC controller; sending, by the NFC controller, a data acquisition instruction to the storage space identified by the value of the address of the storage space and the value of the identifier of the storage space; receiving, by the NFC controller, an application-layer data sent by the identified storage space; and sending, by the NFC controller, the application-layer data to the NFC device via the NFC link. |