Development v12

Warning - Product Update

All the resources present on this section belong to Waspmote v12, Waspmote Plug & Sense! v12 and Meshlium v3.8.

If you have a Waspmote v15, Waspmote Plug & Sense! v15 or Meshlium v4.0 please go to the new Development Section.

Check what is your version and what are the differences between the old and the new one in this document.

Examples:

Communication / 802.15.4

» 802 01: Configure XBee

Last edition: Jan 10th, 2017 | Categories: Communication, 802.15.4

This program shows how to configure basic XBee parameters in order to communicate between different XBee devices using the same network.

» 802 02: Send packets

Last edition: Jan 10th, 2017 | Categories: Communication, 802.15.4

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

» 802 04a: Send unicast @16b

Last edition: Jan 10th, 2017 | Categories: Communication, 802.15.4

This program shows how to send packets with XBee-802.15.4 modules. The destination address is set as a 16-bit network address.

» 802 04b: Receive unicast @16b

Last edition: Jan 10th, 2017 | Categories: Communication, 802.15.4

This program shows how to receive packets with XBee-802.15.4 modules. The source address is read when the packet is received.

» 802 06a: Send broadcast

Last edition: Jan 10th, 2017 | Categories: Communication, 802.15.4

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

» 802 06b: Receive broadcast

Last edition: Jan 10th, 2017 | Categories: Communication, 802.15.4

This program shows how to receive packets with XBee-802.15.4 modules. The packets received were broadcast

» 802 07: Energy scan

Last edition: Jan 10th, 2017 | Categories: Communication, 802.15.4

This program shows how to scan all XBee channels in order to show the energy level of each channel

» 802 08: Get RSSI

Last edition: Jan 10th, 2017 | Categories: Communication, 802.15.4

This program shows how to get RSSI value from the last received packet. In this protocol it is possible to extract this information from each packet. Besides, 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.

» 802 09a: Expansion board TX

Last edition: Jan 10th, 2017 | Categories: Communication, 802.15.4

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)

» 802 10: Set low power mode

Last edition: Jan 10th, 2017 | Categories: Communication, 802.15.4

This program shows how to set different low power states in XBee-802.15.4 modules * Pin Hibernate (SM = 1): XBee is put to sleep and is wake up by setting a pin high and low * Pin Hibernate (SM = 2): The same as before, but more consumption and faster wake up

» 802 11a: Complete example TX

Last edition: Jan 10th, 2017 | Categories: Communication, 802.15.4

This is a complete example for XBee 802.15.4. 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

» 802 11b: Complete example RX

Last edition: Jan 10th, 2017 | Categories: Communication, 802.15.4

This is a complete example for XBee 802.15.4. 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

» 802 13: Scan Network

Last edition: Jan 10th, 2017 | Categories: Communication, 802.15.4

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

» 802 14a: Node search TX

Last edition: Jan 10th, 2017 | Categories: Communication, 802.15.4

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.

» 802 15: Set/Read Power Level

Last edition: Jan 10th, 2017 | Categories: Communication, 802.15.4

This program shows how to set and read the power mode at which the XBee module transmits at. Parameter Range: 0 - 4(default)