zigbee comm. between coordi n end device

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
priyaranjan
Posts: 4
Joined: Fri Oct 15, 2010 10:45 am

zigbee comm. between coordi n end device

Post by priyaranjan »

hello everybody,
i am using two v3 pic dev kit one connected to zigbee coordinator and another connected to end device. now i have tried a lot to run example 2 of zigbee given in matrixmultimedia site. Its not working. :cry:

according to me the coordinator sends '1' to end device. end device receives it and sends '2' to coordinator but coordinator is unable to receive '2' send by end device. so coordinator remains in loop n never goes further.
one thing more i want you tell that the zigbee module (maxstream ic) of these e-blocks are not working. so, i replaced them with another maxstream zigbee module which has wired antenna.

friends, kindly tell me where i am lacking. i am stuck in between, i have to complete it soon.

also kindly tell about the correct position of jumpers in both end device and coordinator zigbee e-block.
and any settings required to do in properties of zigbee block in flowcode.
i m using flowcode v3.

friends please help me.
waiting for reply.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: zigbee comm. between coordi n end device

Post by Benj »

Hello,

First of all the firmware on the new Zigbee module you are using must be setup to be either a Coordinator or a Router/end node. Have you set this up correctly for the new module you are using?

Secondly have you confirmed that your clock speed and configuration settings in Flowcode are correct by running a simple 1 second flasher program on your hardware?

Jumpers should probably be C and 1 for a 16F877A chip but you should be able to refer to the E-block datasheet to confirm this.

priyaranjan
Posts: 4
Joined: Fri Oct 15, 2010 10:45 am

Re: zigbee comm. between coordi n end device

Post by priyaranjan »

hello benj,
thank for ur reply.
i think zigbee module are set to be either a Coordinator or a Router/end node by coding in initialization macro. if its not then should i set it by connecting modules to computer and using x-ctu software.

i want code of simple 1 second flasher program if u have. otherwise i want to know that it means that led blinks for every 1 sec.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: zigbee comm. between coordi n end device

Post by Benj »

Hello,

The firmware for the XBEE module needs to be setup prior to use with the E-blocks with the X-CTU software. The Zigbee component simply specifies which properties and functions are available for the specific board types.

For the 1 second flasher program simply create a while 1 infinite loop. Then switch on a LED, wait for 1 second, switch off an LED, wait for 1 second.

If the delays on the actual hardware seem to be equal to 1 second then your clock speed and configuration settings are confirmed as correct.

priyaranjan
Posts: 4
Joined: Fri Oct 15, 2010 10:45 am

Re: zigbee comm. between coordi n end device

Post by priyaranjan »

HELLO SIR,

thank for ur reply.

i think we can set the module co-ordinator or end device by entering into command mode and then sending command "atce 1" for coordinator and "atce 0" for end device.

except these is there any more command required to set these modules as end device or coordinator.

priyaranjan

priyaranjan
Posts: 4
Joined: Fri Oct 15, 2010 10:45 am

Re: zigbee comm. between coordi n end device

Post by priyaranjan »

sir ,
the 1 sec flasher program is not giving accurate output. the led is blinking more than 1 sec..

so what should i do ?

priyaranjan

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: zigbee comm. between coordi n end device

Post by Benj »

Hello,

You must check that the clock speed setting in Flowcode matches your crystal speed.

You must also check that the chip configuration settings are correct for your hardware.

Post Reply