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.

Sending data to End Devices through Serial Port TI API

Other Parts Discussed in Thread: CC2430, Z-STACK

Hi,

 

I have a Coordinator with Z-Stack and CC2430 connected through Serial Port to the PC.

 

I am newbye with Zigbee and I just would like to send a simple set of messages from Zigbee Cluster Library through MT_Commands from Z-Stack Monitor and Test API. What I try is to create a set of bytes as indicated in Z-Stack Monitor and Test API and send them with a Java Application to the Serial Port to the Coordinator. I just wrap the data following the Z-Stack Monitor and Test API and ZCL rules and send them via Serial Port.

 

if I am not wrong, some of these MT_Commands messages can be used by send Configuration or change configuration attributes in the Zigbee End Devices in the same network that my Coordinator. My simple question is, what kind of MT_Commands do  I have to send via Serial Port to achieve modifiying or read information from an Zigbee End Device connected to the same network as my Coordinator?

 

What I tried was to send a Configure Reporting Command through  APP_MSG  (MT_APP Command) in which I fixed like DestAddress and EndPoint the End Device ones. In this message I followed the structure fixed in Zigbee Cluster Library for Configure Reporting Command in order to change the Maximum Interval in which the Temperature is reported.

FE 01 69 00 00 68 --> Which is a SUCESS RESPONSE of APP_MSG message The problem is there is no change in the reporting period for the End Device.

 

Can I use this APP_MSG or I  have to use another MT_COMMAND?

 

Thanks in advance

  • Hi David,

    APP_MSG permit to send commands to application devices only (coordinator in your case). If you want send a command to an end_device,

    you have to use MT_AF_DATA_REQUEST as I said you in another topic. For payload, look at ZCL specification to build your message.

    Launix.

  • Ok. That's the reason. Thank Launix, I was trying to do the same thing without success for a few days!! The doc say "this command is sent to the target..." and it does not specify wich target (the one connected by serial or a remote one).Besides that, the argument list includes a "application endpoint of the outgoing message" that sounds to me like a source endpoint (an endpoint belonging to the connected device). Well I'll do it the right way, and then I ask you a question: The steps to send a command (or msg) to an end device would be:

    1)suscribe to af callbacks.

    2) send MT AF_REGISTER

    3) send MT AF_DATA_REQUEST

    4)wait for MT AF_INCOMING_MSG

    Is this OK?

    thanks again