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.

CC3200-LAUNCHXL: Guideline for creating an android app to send data to launchpad

Part Number: CC3200-LAUNCHXL
Other Parts Discussed in Thread: CC3200

Hi all, I'm new here! I'm creating an Android Application to control what the launchpad can do. How do i go around it?

I've read through many forums and I'm still confused.

These are what I know so far in order to accomplish my goal. Correct me if I'm wrong..

First, I would have to link the cc3200 and the Android phone via wifi. Then i will have to send TCP/UDP sockets to the launchpad?

Following that, I will have some questions:

1) For connecting via wifi, all I have to do is flash the WLAN AP example to the launchpad or should I use the Out of box example?

2) After connecting via wifi, I will do my programming for sending the socket data in Android Studio right? (Still confused if the CCS should be used for coding instead)

Please help me! Thank you so much :)

  • Hi Eugene,

    1) It depends if you want the CC3200 to connect to an access point, or to be an access point. Either way you can still create sockets and communicate with a mobile device.
    2) Yes, Android Studio is the standard way to develop in android (last I checked).

    Using a simple TCP server on the CC3200 will be the easiest way to go. You will need a method of finding the IP address of the CC3200, if it is operating as a station, so that the Android device can connect to it.

    -Aaron
  • Thanks for the reply, Aaron.

    I would like the CC3200 to be the server, and my android phone to be the client.

    So what I have to do is basically, is taking the code flow from the TCP server example and place it in the main.c file of the WLANAP example right? Sorry, I'm so new to this, I learn better from videos than from reading, hope you understand.

    And is it better if I use the Wifi p2p example instead of setting it up as an access point?

    regards,
    Marcus
  • Hi marcus,

    Did you get any further with this? I wish to do the same thing and could sure do with a some guidance.

    I have an app using wifi-direct that can see the cc3200 launchpad but I'm unsure how to send data from the launchpad.

    If anyone could help please that would be great?

    Thanks
  • Hi Jonathan,

    Yes I managed to set it up successfully.

    The first step is to set up the Launchpad as a wlan access point. You can do so with codes from the "getting_started_with_wlan_ap" example from the Ti sdk folder.

    The next step: you will have to decide, if the launchpad will be the TCP Server or Client. For me, I set it up as the TCP Server. And my android phone as the TCP Client (I programmed it in Android Studio). Then you can use the "TCP Socket" example to set up the launchpad as the TCP Server. Inside the TCP Server codes, there will also be codes for sending data.

    Do remember, If you are sending data from the launchpad, your android phone must be programmed to receive the data from the launchpad. If it is the other way around, then vice versa.

    Very sorry for the late reply, I was enlisted for national service haha!

    Hope i've helped you.

    Regards,
    Marcus