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.

beaglebone cc2650 gateway config.tlg

Other Parts Discussed in Thread: CC2531, Z-STACK

Hello TI People

I would like to get the temperature and light sensor data to bind to the beaglebone and cc2531 while using z stack Linux gateway.  At the present there is only on/off and level cluster that have been added . Is there a revised source code with temperature and light sensor data added to it. I have been posting this for a long time. Should we sign an SLA to get the revised source code.  I would like to get the modified gateway config .tlg file with temperature and light sensor endpoint clusters added to it.

  • Hi,


    You should be able to read the temperature from a temperature sensor using the out-of-the-box Z-Stack Linux Gateway package from www.ti.com/z-stack.

    Using the gateway sample application, open the network for joining (by pressing 'j'), then add to the network a device that has an endpoint serving a temperature-sensor cluster. Then select this device and endpoint from the device list, and press 't'. The temperature will be read from the device and displayed in the device list, alongside the respective endpoint.

    If you want automatic periodic reading of the temperature attribute, press 'a' to enable automatic-sensor-reading. This will enable this feature for all the sensors in the network, regardless of the sensor currently selected in the device list. You should see the temperature display update every 5 seconds (assuming the sensor report new temperature). To disable automatic sensor reading, press 'a' again.


    Reading other attributes can be achieved in a similar way, by modifying the sample application. You may need to use the read attribute API, which allows you to read any attribute. The full code for the sample application is included in the official gateway software package, which is available at the link above.

    Best regards,

    OD

  • Cool and Thanks for sharing. These information are not reveal anywhere in TI wiki or document. Maybe put these information on TI wiki is a good for newbies.
  • Hi YK,

    While the 't' is indeed a hidden option (but can be easily seen in the code), the 'a' is actually documented in section 6.3.3.3 (Temperature/Humidity sensor) in the Z-Stack Linux Gateway User Guide.pdf.

    Thanks,
    OD
  • Sorry, I don't even note that it is already in section 6.3.3.3 of  Z-Stack Linux Gateway User Guide.pdf.

  • Just have a test on it and it works like magic. Thanks OD.
  • Thanks OD for your timely help. Works for me as well. I want the light and the pressure sensor reading as well. How do I get it in the gateway. how to define the attributes.
  • I would also like to get the battery status . is it possible to get the battery status in real time. Where do I find the full source code
  • Yes, you can get battery status. To get battery status, you have to implement power configuration cluster on device and revise Z-Stack Linux Home gateway source code. The application source codes of Z-Stack Linux Home gateway source code are under /opt/Z-Stack_Linux_Gateway-1.0.1/Source/Projects/zstack/linux.