the sleep time is programmable, for end-nodes (in the original ZigBee). The new version of ZigBee changes this concept.
In the old version (2004), the scheme was driven by home automation use cases. Here, the battery powered nodes are the hand-held push-button controllers. They wakeup when you push a button, as a rule. They then talk to the nearest ZigBee node that’s installed and runs on AC line power - like a light switch or AC outlet. Thus, the battery powered controller sleeps until you push a button. It can also sleep and wake up every n seconds to see if the network is trying to talk to it - to get status, to assure it has a neighbor-router to talk to, or if it needs to change which router it will use.
Point being: the zigBee nodes controlling lights/appliances get their power from the AC mains.
Now the new standard allows for routers to be battery powered. So they can be nomadic, such as a communications device attached to things that move, like shipping containers and trailers. Or nomadic in the sense that the platform on which the ZigBee radio is located changes so it’s impractical to hard-wire it.
Many ZigBee networks will have all nodes being routers, no end-point devices than cannot route. This makes the mesh more robust.
The PC / Host interface for a ZigBee module (not a chip) like the Maxstream XBee/XBeePro, or the Silicon Labs or Hellicom, or the many other modules, is either RS232 or USB.
Every ZigBee network has a “Coordinator” node. This node is often a module (in a box) with a USB link to a PC and from there, onward to wide area networks via some application software messaging.
The ZigBee coordinator is responsible for network addresses (kind of like a DHCP server, but IP isn’t used in ZigBee networks). It also help create and sustain the self-forming, self-healing mesh (uses AODV which is an Internet RFC standard).
So all this meshing is transparent to the application program. When you move a ZigBee node, it will find a new neighbor and form a route to reach whatever other node it is trying to communicate with. The Network addresses in ZigBee, like IP addresses, don’t define what MAC layer addresses are used to route packets. Every ZigBee node has a neighbor table and a route table; these are discovered and updated as the mesh changes.
It’s all pretty amazing, given the whole module is $20 with ZigBee meshing and the radio (or $35 for the higher transmit power version), at least in the case of XBee.
Z-Wave is a similar network, for home automation, and is in production whereas ZigBee home automation stuff is not expected until late '06. However, Z-Wave does not have a IEEE standard MAC and PHY as does ZigBee. Z-Wave is proprietary to one company and licensed to affiliates.
ZigBee is also an aliance but the MAC/PHY is IEEE 802.15.4 meaning there are many manufacturers of compatible chips. That is, ZigBee standards and compliance proof is to IEEE 802.15.4 what WiFi is to IEEE 802.11a/b/g.
The ZigBee protocols are firmware that you download into the chip (on the OEM module). You can talk to the module using RS232 or serial.
It makes no sense to start with ZigBee chips given the price of modules.