NFC enable NFC enabling process

Classmates, don't quit, I am the most powerful WIFI/BT/GPS/NFC analysis blogger on the whole network, I have written hundreds of articles, please click below to understand this column, enter the blogger's homepage to have a look before leaving , You won’t regret it, remember to read the top article on the homepage.

NFC enable NFC enabling process

The best way to understand how the nfc system works is to understand the various processes of nfc. The following is the enabling process of nfc:

The upper layer service com.android.nfc of NFC starts and enables the entire nfc system, and initializes the underlying related so library through NativeManager.nfcManager_doInitialize() of the JNI layer.

During the entire enabling process, you must remember the callback functions set down layer by layer . These callback functions are the channels through which the bottom layer data will be transmitted to the upper layer in the future. The detailed process of Enable is as follows:

 The related functions marked in red font above are very important callbacks in the entire NFC system. After the module is opened, the completion result is reported through the HAL_NFC_OPEN_CPLT_EVT event. The open completion event reporting process is shown in the figure below:

Guess you like

Origin blog.csdn.net/weixin_45534242/article/details/128986441