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.

CC3100 to Android Application on Smart Phone.

Other Parts Discussed in Thread: CC3100

Hi Ankur ,

I have to connect one CC3100 board to android app on my smart phone and I am using P2P example code given in SDK. I still have a few doubt wrt to same.

1. Should I configure mobile or CC3100 as group owner or client or leave them in negotiate mode ?
2. Do I need to configure IP and port of CC3100 device in android app in my mobile ?
3. What type of data packet shall be  transmitted  from mobile app to CC3100 ? Do I need to take care  of it while receiving in the code or is it already implemented in the code ?

 

Regards,

Vivek

  • Hi Vivek,

    1. You can leave it in negotiate mode.
    2. IP is leased to client by the GO. You don't need to configure it manually. By port do you mean port for TCP/UDP connection? it should be configured in the application. Please refer to the example provided in SDK.
    3. It depends on app used on the android. If you are using iperf it sends a predefined string.

    Regards,
    Ankur
  • Hi Ankur,

    Thanks for your reply.

    I will put CC3100 in negotiate mode as you suggested. I still have a few more doubts .

    1. As per my understanding, for communication between mobile and CC3100 we need to use either TCP or UDP. If I am using TCP, then we need to open the port for communication and close it back after the communication is completed.
    If it is so, then how can I hardcode CC3100 port number in my mobile app ? Or I just have to provide CC3100 port number in the code ?

    If my understanding is wrong, Please correct me.

    2. I have got the app from an android developer. So, what else shall I ask him to confirm about the data packet ?.


    Regards,
    Vivek
  • Hi Vivek,

    1. I will suggest you to go check the p2p and tcp_spcket example provided in the SDK.

    2. Can you please elaborate your question?

    Regards,
    Ankur
  • Hi Vivek,

    I am closing this thread, for follow up queries please open a new thread and add a link to this one for reference.

    Regards,
    Ankur