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.

P2P between two CC3100

Other Parts Discussed in Thread: CC3100, CC3100SDK

Hi,

I want to send a data from one TM4c1294xl to other TM4c1294xl over wi-fi. I am using cc3100 modules.

I want to use P2P mode to transfer the data.I find a code example for p2p in CC3100SDK but the code is for msp430 board. is there p2p code available for TM4c1294? If yes please let me know the link.

if no,What all changes should be done in the code so that i should use it for TM4c1294 board?

i am configuring one as group owner and the other in client mode.
 So what all changes should be done in the code of group owner and client code with reference to the code given in CC3100SDK?

Thank you,

Regards

Jaiprasad

  • Hi,

    The p2p example code in CC3100 SDK is not platform specific. What you should do is make the getting started with wlan station work for TM4C1294XL + CC3100 BP, which is located at the platforms folder in CC3100 SDK. Then replace the main.c file with the p2p main.c file. If there are compile errors after build, solve it.

    - ke
  • Hi Markel,
    Thank you for your reply,I have done the same thing and changed the followings.

    for group owner
    {
    retVal = sl_WlanPolicySet(SL_POLICY_P2P, SL_P2P_POLICY(SL_P2P_ROLE_GROUP_OWNER,
    SL_P2P_NEG_INITIATOR_ACTIVE),NULL,0);

    and
    #define P2P_REMOTE_DEVICE "cc3100owner"
    #define P2P_DEVICE_NAME "cc3100client"
    }
    for client
    {
    retVal = sl_WlanPolicySet(SL_POLICY_P2P, SL_P2P_POLICY(SL_P2P_ROLE_CLIENT,
    SL_P2P_NEG_INITIATOR_ACTIVE),NULL,0);

    and also
    #define P2P_REMOTE_DEVICE "cc3100client"
    #define P2P_DEVICE_NAME "cc3100owner"
    }

    and rest the code is almost same.
    what all further changes should be done in group owner code and client code?
    How can i verify whether the data is sent or not?
    i am not understanding the code flow can u help me out here

    spi write code:
    while(len)
    {
    while(SSIDataPutNonBlocking(SSI3_BASE, (unsigned long)*pBuff) != TRUE);
    while(SSIDataGetNonBlocking(SSI3_BASE, &ulDummy) != TRUE);
    pBuff++;
    len--;
    }

    spi read code:

    for(i=0; i< len; i++)
    {
    while(SSIDataPutNonBlocking(SSI3_BASE, 0x47) != TRUE);
    while(SSIDataGetNonBlocking(SSI3_BASE, &ulBuff) != TRUE);
    pBuff[i] = (unsigned char)ulBuff;
    }

    Thank you,
    Regards
    Jaiprasad