Thursday, September 03, 2009

Zigbee module configuration for multi-pole comm

By default, the Zigbee module from Maxstream can communicate with one another as serial comm port. However, in my project, I need one of the modules to talk to two different modules - a form of master/slave communication.

Without making things difficult, I resort to using the master in the broadcast mode while the rest remains in unicast mode. First I change the slaves source address to 0x0008 while leaving the destination address unchanged. Then I change the destination address of the master to 0xFFFF to enable broadcast mode. The source address of the master remains unchanged at 0x0000.

To configure the master module:
+++ // Enter into command mode
ATDLFFFF<CR> // Change Dest Addr Lo to 0xFFFF
ATWR<CR> // Write to non-volatile mem
ATCN<CR> // Exit command mode

To configure the slave module:
+++ // Enter into command mode
ATMY0008<CR> // Change Source Addr to 0x0008
ATWR<CR> // Write to non-volatile mem
ATCN<CR> // Exit command mode

HTML code for image

A simple html code to insert a picture in a blog:

<a href="http://www.blogger.com/..."><img align="left" hspace="30" src="...jpg" /></a>