How to run into function tnep_svc_one_selected()?

As the title, in the project "ncs\v3.2.1\nrf\samples\nfc\tnep_tag", how to runt into  function tnep_svc_one_selected()?

I use the NFC tools, Send the hex data, want to select the servive, what hex data must be send? Is there a complete example or debugging method?

Parents
  • Hi

    The tnep_svc_one_selected() is triggered from the NFC_TNEP_TAG_SERVICE_DEF and the information from the brief there should cover how to use it:

     @brief Macro to define TNEP service.
     *
     * TNEP Service instance contains information about Services Parameter
     * and callback s for NDEF application. The Service Parameter contains
     * the Service Name URI of the Service and the TNEP parameters used to
     * communicate with the Service. The Reader/Writer will configure
     * the TNEP communication according to the announced parameter
     * in the Service Parameter record.

    Best regards,

    Simon

  • I know that tnep_svc_one_selected is defined by NFC_TNEP_TAG_SERVICE_DEF, but it just doesn't execute. When I read it with an NFC tag reader, the service can be detected. Now I'm using an NFC debugger and want to send hexadecimal data for interaction, aiming to read the specific content of the service, such as the “svc_one_msg” message here.

    Maybe I need an Android version of the verification software that matches this sample program.

Reply
  • I know that tnep_svc_one_selected is defined by NFC_TNEP_TAG_SERVICE_DEF, but it just doesn't execute. When I read it with an NFC tag reader, the service can be detected. Now I'm using an NFC debugger and want to send hexadecimal data for interaction, aiming to read the specific content of the service, such as the “svc_one_msg” message here.

    Maybe I need an Android version of the verification software that matches this sample program.

Children
No Data
Related