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: Help required to connect to IBM Bluemix

Part Number: CC3200

Dear Sir,

I have a cc3200 launchpad and i want to connect to IBM Bluemix IOT cloud , I have tried with the MQTT_Clinet project provided with cc3200 SDK but could not succeeded. We have to develop a product based on CC3200 for IOT application. I need help from ti to make a working prototype with cc3200 launchpad. Is there any sample project available with ti to connect to IBM cloud?

Thanks & Regards

Asish Banerjee

  • Hi,

    As first please check this thread if is not related to your issue: e2e.ti.com/.../562600

    Jan
  • Hi Jan,
    This will not of help for me. As i do not have any issue with the example code as such. Rather i want a example project to connect to IBM Bluemix.

    Thanks & Regards
    Asish Banerjee
  • Asish,

    The MQTT client example on the SDK is the only one using MQTT with IBM.

    Currently, it seems broken probably because something has changed on IBM server (I know they added the secured connection but not sure if they blocked the unsecured flavor).

    Anyway, the example does work with "iot.eclipse.org" for example so the code is good.

    Regards,

    Shlomi

  • Hi Shlomi,
    Thanks for the information. But still i am not been able to find a proper way to start my project. Let me check with eclips broker. Then i will post the test result at earliest.

    Thanks & Regards
    Asish Banerjee
  • Hello,

    Any update on the post?

    Regards,
    Shlomi

  • Hello Shlomi,

    So far no development in this issue.

    Thanks & Regards

    Asish

  • Hello Shlomi,

    1) I want to connect CC3200 to cloud . I tried AWS but the CC3200 is hanging at VERIFY PROTOCOL in driver.c This issue seems difficult to resolve so I'm thinking about IBM Bluemix but when I read this thread , I'm bit confused whether it is still broken ? Or a secured connection shouldn't have a issue?

    2) I can't run the sample MQTT-Server example of cc3200 which connects to the broker: messagesight.demos.ibm.com as you wrote above the example works with "iot.eclipse.org" , should I enter this in server field in m2m.demos.ibm.com/.../ or in MQTT Lens app? Which app should I use MQTT Client or MQTT Lens?

    Best Regards,
    Techinspired
  • Hello Techinspired,

    I would suggest starting with the mqtt_client example which is smaller test example.

    Configure your test application to connect to the iot.eclipse.org remote MQTT broker on port 1883.

    Then use a command line client, like mosquitto (for example), to directly connect to the same remote broker on the same port (1883) to view the messages sent. Using the web-clients requires websocket support which may or may not be available with your client/broker/network configuration.

    For example, you can subscribe to the messages coming from the mqtt_client application via the broker as follows :-

    $ mosquitto_sub -h iot.eclipse.org -p 1883 -t /cc3200/#

    [ Note, though that this is public broker, so you can expect that there may be other boards that are already sending data to the /cc3200 topic space, so you may want to configure a more unique topic for your testing. ]

    [ Note2, you should also specify a new 'clientId' in the cc3200 application to ensure your connection to the broker is unique. [default is "user1" in sdk 1.30].

    Hope that helps,
    ~roger
  • Hello Asish,

    Regarding your original question about connecting to IBM Watson MQTT broker. Did you get that working?

    If not, there are couple of things you should configure that might help here :-

    For IBM QuickStart Broker (1 way, test broker, transmit only), here are a few steps that might help :-

    1. Configure the server (broker) to be : "quickstart.messaging.internetofthings.ibmcloud.com"
    2. Configure the clientId to be : "d:quickstart:iotsample-ti-cc3200:<id>", where id is a unique identifier for your board
    3. Publish data on the following topic space : "iot-2/evt/status/fmt/json", preferably with format, something like "{\"d\":{\"temp\":%d }}" [sending temperature data as an example]
    4. Set WILL_TOPIC to NULL
    5. Remove code that subscribes (since quickstart is 1-way comms)
    6. View data using IBMs quickstart viewer (quickstart.internetofthings.ibmcloud.com/, where <id> is as above.

    For IBM Registered Broker service (2 way, full IBM service) :-

    1. Register your device with IBM Watson (developer.ibm.com/.../). This will give you a device <organisation>, <type> and <key> to use with your device <id>. You will need to define, or create a device <type> to use here as well if this is the first such device being registered in your account.
    2. Configure the server (broker) to be : "<myorganisation>.messaging.internetofthings.ibmcloud.com", where myorganisation was obtained in step1.
    3. Configure the clientId to be : "d:<myorganisation>:<type>:<id>", as obtained/configured while registering.

    4. Configure the username to be "use-token-auth", and configure the password to be "<key>" as obtained above.

    5. Publish data on the following topic space : "iot-2/evt/status/fmt/json", preferably with format, something like "{\"d\":{\"temp\":%d }}" [sending temperature data as an example]
    6. Subscribe on the following topic space : "iot-2/cmd/+fmt/json"
    7. Ensure WILL TOPIC is NULL or configured to match allowed topic space "iot-2/evt/status/fmt/json" (as basic example).
    8. View data using IBMs device dashboard (as used above when registering the device), or custom IBM Watson based application.

    Hope that helps,
    ~roger

  • Hello Roger,

    Sorry for late reply and thanks a lot for your valued suggestion. I will check the same at my end and update soon.

    Thanks & Regards,

    Asish Banerjee