wsn
[Interface specifications]
Collaboration diagram for wsn:
|   | 
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). | |
| #define | PLAYER_WSN_REQ_DATATYPE 2 | 
| Request/reply: change the data type to RAW or converted metric units. | |
| #define | PLAYER_WSN_REQ_DATAFREQ 3 | 
| Request/reply: change the receiving data frequency. | |
| typedef player_wsn_node_data | player_wsn_node_data_t | 
| Structure describing the WSN node's data packet. | |
| typedef player_wsn_data | player_wsn_data_t | 
| Data (PLAYER_WSN_DATA). | |
| typedef player_wsn_cmd | player_wsn_cmd_t | 
| Command: set device state (PLAYER_WSN_CMD_DEVSTATE) This wsncommand sets the state of the node's indicator lights or its buzzer/sounder (if equipped with one). | |
| typedef player_wsn_power_config | player_wsn_power_config_t | 
| Request/reply: Put the node in sleep mode (0) or wake it up (1). | |
| typedef player_wsn_datatype_config | player_wsn_datatype_config_t | 
| Request/reply: change the data type to RAW or converted engineering units. | |
| typedef player_wsn_datafreq_config | player_wsn_datafreq_config_t | 
| Request/reply: Change data delivery frequency. | 
Typedef Documentation
| typedef struct player_wsn_data player_wsn_data_t | 
Data (PLAYER_WSN_DATA).
The WSN data packet describes a wireless sensor network node.
| typedef struct player_wsn_datafreq_config 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.
| typedef struct player_wsn_datatype_config 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.
| 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).
Send a PLAYER_WSN_REQ_POWER request to power or wake up a node in the WSN. Null response.
