Other Parts Discussed in Thread: Z-STACK, CC2530, CC-DEBUGGER, CC2530EM, CC2531, STRIKE
Hi
I'm a beginner in Zigbee development and I've been studying the protocol for couple of weeks but now I decided to take it to the next step. So I have bought a couple of very little and cheap CC2530 modules. It's a 15*24mm module without a PA. So I designed an expansion board with 4 LEDs and 2 Switches to evaluate Z-stack HA SampleLight and SampleSwitch examples (apparently they are equivalent to the Hello World program!)
Now I have completely learned about IAR environment and its different workspaces (Coordinator, Router, EndDevice), Linker files, Zigbee settings in XCL files, Compile options, CC-Debugger and a couple more of related things. I also almost learned the structure of the projects (SampleLight and SampleSwitch in Z-Stack Home 1.2.2) and the program itself (things like registering stuff, Clusters, Attributes, Commands, events, OSAL, HAL, ...)
After looking into SmartRF05EB schematic I tried to use the same pins for LEDs and switches in my expansion board (however SmartRF05EB schematic is a nightmare!). Now since I don't have CC2530 Development Kit (stuff like SmartRF05EB and CC2530EM) I feel like I'm doing something wrong. I programmed one module as Coordinator with SampleLight project and the other module as Router with SampleSwitch project. in Coordinator (SampleLight) what happens is that one LED turns on and another LED turns on too after few seconds and they both stay that way. In Router (SampleSwitch) the first LED blinks every 1 second. After I push both switches nothing happens.
I know first a network should form by Coordinator. Seems like it does. I didn't change PANID in xcl file (default is 0xFFFF). And I know that these two modules should bind together to be able to talk to each other and I think this is where I'm doing something wrong and they're not connected (bind) together for some reason
Unfortunately I don't have a Sniffer so I'm not sure what is going on exactly.
Could one of you guys kindly help me through this? If I could get this simple example to work I'm sure I'd have a better perspective over Zigbee concepts.