This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TRF7970A p2p communciate with Android smartphone as well as with other trf7970a as Initiator

Other Parts Discussed in Thread: TRF7970A, MSP430F5529, DLP-7970ABP

Hi,

I want setup a p2p connection between the TRF7970A and an Android smartphone as well as p2p connection between 2 TRF7970A. I get the p2p Android smartphone to trf7970A connection working after I followed the link below (downloaded 6457.NFC_P2P_eZ430G2553.zip).

e2e.ti.com/.../141745

Now I want another trf7970A to act as Initiator (in stead of Android smartphone) and setup a p2p connection between the two. However the example code which I used above doesn't contain any Initiator example. Does anyone has an example which I can use to get it to work?

gr. Ralf

  • Hey Ralf,

    That code example you found is quite old and I'm not familiar with it. What hardware are you using?

    We have a detailed P2P TI Design that works with both phones and other TRF7970As. It supports both passive and active, target and initiators. It can be found here: www.ti.com/.../TIDM-NFC-P2P;tisearch=tidesigns

    This Card Emulation TI Design was built on top of the P2P design, so it's code base supports both. www.ti.com/.../TIDM-NFC-CE;tisearch=tidesigns

    Hope this helps!

    Thanks,
    JD
  • Hi John,

    Thanks for the quick response.

    I'm using 2 TRF7970AEVM boards.

    The P2P demo code looks promising , thanks for the tip.

    gr. Ralf
  • Hey Ralf,

    We don't currently have any good P2P demo's on the EVM boards.

    The code I linked you too can run on our Launch pad + booster pack combos, found here: store.ti.com/nfclink-bndl.aspx

    Thanks,
    JD
  • Hi John,

    I uploaded the MSP430F5529_P2P_Demo.hex file with MSP430 Flasher and it all seemed to go well. I started up 'TI NFC Tool' software, choose the com port (MSP430 Application UART1, visible in my Device Manager), pressed Connect and on the left bottom of the screen the text changes to 'Connected' and turned green.

    The problem is that I don't get a software version (sloa192 shows a software version, page 29) and when I hold my smartphone close to the DLP-7970ABP pcb it vibrates (so there seems some kind of communication), but I don't see anything happening in the COM log screen of the TI NFC Tool software!?

    Do you know what is going wrong here?

    Ralf

  • Ralf -
    When using the -F5529 Experimenters board, you are correct that if you leave it connected on the debug side it enumerates as Application, UART, but i would recommend here to move the mini USB over to the 5529 USB side and move the power switch up to select LDO, then you will see it enumerate as Virtual COM Port (CDC), then double check its at 115.2kbps, 8N1 and then start up the GUI and it should have that selection now in the drop down menu and you should get FW version # as you expect (and you are correct, it not being there indicates its not truly connected - this small bug in the GUI is being fixed or has been fixed already for next release of the GUI, which is coming very soon.

    When using the -F5529 LaunchPad, the Virtual COM Port (CDC) is the one you need to connect to for it to operate correctly. The board enumerates as Application UART, Debug Interface and a VCP .
  • Josh,

    I'm using the -F5529 LaunchPad, but I only see the Application UART and the Debug Interface and not the Virtual COM port!?

  • Only thing i can think of is to unplug and replug the USB connection. Usually the USB driver install process for the MSP430 is a two step process, can you try that please? 

  • I did that already a couple of times. I noticed a warning in my Device Manager, I see that 'MSP430-USB Example' has a driver warning. Maybe this is the Virtual COM port once the driver has been installed. When I try to automatically find the driver it fails. Do you know where I can get the driver from?
  • ahh..yes that is it, you do need to point it to the driver now - in this download you will be able to point to directory for the inf file

    i have attached it here in case you don't have it already on your PC.

    1CDC_descTool.zip

  • Great. I can see the FW version now (1.00.35). Now I have another problem. After clicking connect the Target and Initiator panels should be enabled, but that doesn't happen!
  • Ralf - 

    if you check the modes you want, then click the 'Start P2P' button, you will be all set (see section 8.1 of the SLOA192). Refer to the charts (section 9) in the SLOA192 regarding your phone and what it supports, if its on that list. 

  • Josh,

    The problem is that I can't select any of the modes. Even though I get a FW version at the bottom of the screen when I press 'Connect', the selection windows remain disabled. So I can't select Target Mode or Initiator Mode?!

    Ralf

  • Hi Ralf,

    Can you please tell me which version of the NFC TI Tool you are using to try to connect to 5529 LaunchPad? Also if you can post a screenshot of how the GUI looks in that state, that would be helpful as well. 

  • The version of the NFC TI Tool is ver. 1.5.

  • Hi Ralf,

    The FW Version 1.00.35 you have loaded into the board is for our older P2P only code, but the GUI you are using is for the newer P2P stack which includes Card Emulation. Since it looks like you installed all of the files for the newer project, please update the code on your board with the latest firmware that can be found in the C:\TI\msp430\TRF7970A_CE_1.00.14\MSP430F5529_NFC_Card Emulation_Demo folder. This firmware contains our newest P2P stack, and will operate with the TI NFC Tool Ver 1.5 GUI.

  • Great! This worked. Thanks for your help