Wireless Sensor Networks. More...

Detailed Description

Wireless Sensor Networks.

The WSN interface provides access to a Wireless Sensor Network (driver implementations include WSN's such as Crossbow's MICA2 motes and TeCo's RCore particles).

The current implementation supports a single group of network nodes. Support for multiple groups will be added in the future.

#define PLAYER_WSN_DATA_STATE   1
 Data subtypes.
 
#define PLAYER_WSN_CMD_DEVSTATE   1
 Command subtype: set device state.
 
#define PLAYER_WSN_REQ_POWER   1
 Request/reply: put the node in sleep mode (0) or wake it up (1). More...
 
#define PLAYER_WSN_REQ_DATATYPE   2
 Request/reply: change the data type to RAW or converted metric units. More...
 
#define PLAYER_WSN_REQ_DATAFREQ   3
 Request/reply: change the receiving data frequency. More...
 
typedef struct player_wsn_node_data player_wsn_node_data_t
 Structure describing the WSN node's data packet. More...
 
typedef struct player_wsn_data player_wsn_data_t
 Data (PLAYER_WSN_DATA_STATE) More...
 
typedef struct player_wsn_cmd player_wsn_cmd_t
 Command: set device state (PLAYER_WSN_CMD_DEVSTATE) This wsn command sets the state of the node's indicator lights or its buzzer/sounder (if equipped with one). More...
 
typedef struct player_wsn_power_config player_wsn_power_config_t
 Request/reply: Put the node in sleep mode (0) or wake it up (1). More...
 
typedef struct player_wsn_datatype_config player_wsn_datatype_config_t
 Request/reply: change the data type to RAW or converted engineering units. More...
 
typedef struct player_wsn_datafreq_config player_wsn_datafreq_config_t
 Request/reply: Change data delivery frequency. More...
 

Macro Definition Documentation

◆ PLAYER_WSN_REQ_DATAFREQ

#define PLAYER_WSN_REQ_DATAFREQ   3

Request/reply: change the receiving data frequency.

◆ PLAYER_WSN_REQ_DATATYPE

#define PLAYER_WSN_REQ_DATATYPE   2

Request/reply: change the data type to RAW or converted metric units.

◆ PLAYER_WSN_REQ_POWER

#define PLAYER_WSN_REQ_POWER   1

Request/reply: put the node in sleep mode (0) or wake it up (1).

Typedef Documentation

◆ player_wsn_cmd_t

Command: set device state (PLAYER_WSN_CMD_DEVSTATE) This wsn command sets the state of the node's indicator lights or its buzzer/sounder (if equipped with one).

◆ player_wsn_data_t

Data (PLAYER_WSN_DATA_STATE)

The WSN data packet describes a wireless sensor network node.

◆ player_wsn_datafreq_config_t

Request/reply: Change data delivery frequency.

By default, the frequency set for receiving data is set on the wireless node. Send a PLAYER_WSN_REQ_DATAFREQ request to change the frequency. Fill in the node ID or set -1 for all nodes. Null response.

◆ player_wsn_datatype_config_t

Request/reply: change the data type to RAW or converted engineering units.

Send a PLAYER_WSN_REQ_DATATYPE request to switch between RAW or converted engineering units values in the data packet. Null response.

◆ player_wsn_node_data_t

Structure describing the WSN node's data packet.

◆ player_wsn_power_config_t

Request/reply: Put the node in sleep mode (0) or wake it up (1).

Send a PLAYER_WSN_REQ_POWER request to power or wake up a node in the WSN. Null response.