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.

TI-15.4-STACK-GATEWAY-LINUX-SDK: Sending Data from TI 15.4-Stack to a Custom Cloud Platform (Not AWS/IBM)

Part Number: TI-15.4-STACK-GATEWAY-LINUX-SDK

Tool/software:

Hello!

I've successfully set up the TI 15.4-Stack Linux Gateway Sample Project, and I’m currently able to send temperature data to a local gateway (192.168.XX.XX:XXXX) using the host_collector application on my Raspberry Pi 4 Model B.

However, my goal is to send this data to a custom cloud server using the MQTT protocol.

I've looked into the TIDEP0084 Sub-1 GHz Sensor to Cloud Industrial IoT Gateway Reference Design for Linux Systems, but I'm not sure how to adapt it for my specific application.

Additionally, the MQTT credentials I have for connecting to the HiveMQ cloud server include:

  • Cluster URL
  • Port
  • Username
  • Password
  • MQTT Topic
  • Database Name

Here are my questions:

  1. How can I configure the Linux Gateway example to forward data to a custom cloud server using MQTT?
  2. Where can I find the file that contains the sensor data being sent to the Linux Gateway? I need to access this data so that I can extract it and forward it to the cloud server.

Any advice or guidance would be greatly appreciated!

  • Hi Timothy,

    I'm afraid this is outside of my area of expertise. You could try posting on Raspberry Pi forum?

    I'll close the thread but if any community members has a suggestion they can still post it.

    Cheers,

    Marie H

  • Hi Timothy,

    1. That is more of a general software question. You could have a look at different MQTT libraries for your preferred programming language. For instance, paho-mqtt for Python.

    2. In prebuilt, in appclient.js, you can find received data in there: appC_processDeviceDataRxIndMsg

    Regards,

    Arthur

  • Hello, Arthur!

    I was able to successfully send the data by integrating an MQTT function directly into the appClient.js file.

    I have a few more questions related to my ongoing project:

    1. If I want to add more external sensors and include their data (e.g., SGP30, SPS30, SEN0377) in addition to the built-in sensors on the LPSTK-CC1352R, which files should I modify within the sensor and coprocessor example project? Note: I already have a functioning I2C code using the i2ctmp example (found under TI Drivers).
    2. On the gateway side, are there any files I need to modify besides the appClient.js for my project?

    Thank you very much!