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.

Communication between CC2530 and CC2538 with Z-Stack

Other Parts Discussed in Thread: CC2530, Z-STACK, CC2538, CC2430

I am trying to integrate CC2538 into my existing CC2530 based Z-Stack project. I am using SampleApp project as start up to build my own project. However, the CC2538 side didn't have similar project can be downloaded for now. So, I am using SampleTemperatureSensor project in CC2538 Z-Stack Home Automation project (1.2.0). The CC2538 board (SmartRF06EB) is working as end device in my test, and it can successfully connected to CC2530 (as Coordinator) and get its own short address in network. I am trying to use AF_DataRequest function in CC2538 side to send information to CC2530 coordinator, however, the AF_DataRequest function returns message successfully delivered but nothing shows up in Coordinator side. When I power off the Coordinator, the AF_DataRequest would return message delivered failed. I did the same configuration for AF_DataRequest function in CC2538 side as in CC2530. I don't know why the messages can not be delivered. Any idea why? Thanks.

  • Would you soecify what coordinator example you use on CC2430? By the way, you should use packet sniffer to check what happens between ZC and ZED.

  • I am using SampleApp@Z-Stack 2.5.1a on CC2530 side while using SampleTemperatureSensor@Z-Stack Home 1.2.0. What I am doing is trying to send something from CC2538 (ZED) to CC2530 (ZC) with AF_DataRequest function. I have set the end point descriptor at CC2538 side to use AF_DataRequest, but the data didn't show up in CC2530's application layer. According to Packet Sniffer, the CC2530 did return Acknowledge back to CC2538 indicate it receives the packet. By comparing the network formed by CC2530+CC2530 and CC2530+CC2538, I have found that it seem the CC2538 side didn't set the APS fields correctly while transferring data. The packet goes out from CC2530 set the APS Profile ID/APS Counter correctly, however, the packets from CC2538 always set these two fields as 0. I think this is where the problem.

    I have also tested with SampleSwitch@Z-Stack 2.5.1a on CC2530 (ZC) and SampleSwitch@Z-Stack Home 1.2.0 on CC2538 (ZED). This configuration has the same problem as above where the APS field didn't been set correctly. Any idea why this happen? Thanks

  • If you use AF_DataReq, ProfileID and APS counter are provide by you. You should put Profile ID in simpleDesc.AppProfId and APS counter should be put in transID parameter of AF_DataReq.