Development

Examples:

Communication / ZigBee

» ZB 02a: Join known network

Last edition: Jan 10th, 2017 |

This program shows how to join a router device to a known network. It is mandatory to known the operating 64-bit PAN ID the coordinator is running on.

» ZB 02b: Join unkown network

Last edition: Jan 10th, 2017 |

This program shows how to search for a new coordinator when network parameters are unknown. It is necessary to scan a new coordinator setting different channels to be scanned

» ZB 03: Send packets

Last edition: Jan 10th, 2017 |

This program shows how to send packets to a gateway indicating the MAC address of the receiving XBee module.

» ZB 05a: Send broadcast

Last edition: Jan 10th, 2017 |

This program shows how to send packets with XBee-ZigBee modules. Broadcast address (0x000000000000FFFF) is specified as destination address

» ZB 06: Get RSSI

Last edition: Jan 10th, 2017 |

This program shows how to get the RSSI value from the last received packet. For this protocol, there is an API function which shows this information. Before running this example, make sure there is another emitter sending packets to this XBee module in order to receive information.

» ZB 07a: Expansion board TX

Last edition: Jan 10th, 2017 |

This example shows how to use two XBee modules simultaneously in Waspmote using the Expansion board. Two different objects are created in this code, each one is used for each module. One is connected in the standard socket (SOCKET0) and the other one is connected to the Expansion board (SOCKET1)

» ZB 09a: Complete example TX

Last edition: Jan 10th, 2017 |

This is a complete example for XBee-ZigBee. This example shows how to send a packet using unicast 64-bit destination address. After sending the packet, Waspmote waits for the response of the receiver and prints all available information

» ZB 09b: Complete example RX

Last edition: Jan 10th, 2017 |

This is a complete example for XBee-ZigBee. This example shows how to receive a packet. When the source address is the expected one, an answer is sent back to the sending Waspmote

» ZB 10: Scan network

Last edition: Jan 10th, 2017 |

This program shows how to scan the XBee's network in order to find other XBee modules. This example prints all available data within the API structures

» ZB 11a: Search node TX

Last edition: Jan 10th, 2017 |

This program shows how to search for a specific node inside the XBee's network. Once the node has been found a packet is sent to this node. Keep in mind that there must be a node with the specific Node ID(NI parameter) so as to be scanned

» ZB 11b: Search node RX

Last edition: Jan 10th, 2017 |

This program shows how to search for a specific node inside the XBee's network. Once the node has been found a packet is sent to this node. Keep in mind that there must be a node with the specific Node ID(NI parameter) so as to be scanned