mica2.h
#define PLAYER_RFID_REQ_READTAG
Request/reply: read data from the RFID tag - to be implemented.
Definition: player_interfaces.h:4304
char * guid
The Globally Unique IDentifier (GUID) of the tag.
Definition: player_interfaces.h:4323
player_rfid_tag_t * tags
The list of RFID tags.
Definition: player_interfaces.h:4334
int32_t group_id
The Group ID of the WSN node.
Definition: player_interfaces.h:4449
float accel_z
The node's acceleration on Z-axis from an acceleration sensor.
Definition: player_interfaces.h:4397
int32_t node_id
The ID of the WSN node.
Definition: player_interfaces.h:4473
Request/reply: Put the node in sleep mode (0) or wake it up (1).
Definition: player_interfaces.h:4444
static bool MatchMessage(player_msghdr_t *hdr, int type, int subtype, player_devaddr_t addr)
Helper for message processing.
Definition: message.h:158
float temperature
The node's templerature measurement from a temperature sensor.
Definition: player_interfaces.h:4405
virtual int Subscribe(QueuePointer &, player_devaddr_t)
Subscribe to this driver.
Definition: driver.h:342
virtual int MainSetup(void)
Sets up the resources needed by the driver thread.
Definition: driver.h:657
#define PLAYER_WSN_REQ_DATATYPE
Request/reply: change the data type to RAW or converted metric units.
Definition: player_interfaces.h:4378
virtual void MainQuit(void)
Cleanup method for driver thread (called when main exits)
Definition: driver.h:663
const char * ReadString(int section, const char *name, const char *value)
Read a string value.
#define PLAYER_WSN_REQ_POWER
Request/reply: put the node in sleep mode (0) or wake it up (1).
Definition: player_interfaces.h:4375
#define PLAYER_WSN_CMD_DEVSTATE
Command subtype: set device state
Definition: player_interfaces.h:4372
Definition: mica2.h:67
float battery
The node's remaining battery voltage.
Definition: player_interfaces.h:4407
player_wsn_node_data_t data_packet
The WSN node's data packet.
Definition: player_interfaces.h:4422
#define PLAYER_MSGTYPE_RESP_ACK
A positive response message.
Definition: player.h:111
int32_t node_id
The ID of the WSN node.
Definition: player_interfaces.h:4447
virtual int ProcessMessage(QueuePointer &resp_queue, player_msghdr *hdr, void *data)
Message handler.
static bool MatchDeviceAddress(player_devaddr_t addr1, player_devaddr_t addr2)
Compare two addresses.
Definition: device.h:200
float magn_x
The node's magnetic measurement on X-axis from a magnetometer.
Definition: player_interfaces.h:4399
float light
The node's light measurement from a light sensor.
Definition: player_interfaces.h:4389
#define PLAYER_MSGTYPE_RESP_NACK
A negative response message.
Definition: player.h:124
uint8_t value
Power setting: 0 for off, 1 for on.
Definition: player_interfaces.h:4451
Request/reply: Change data delivery frequency.
Definition: player_interfaces.h:4470
uint32_t node_type
The type of WSN node.
Definition: player_interfaces.h:4416
float mic
The node's accoustic measurement from a microphone.
Definition: player_interfaces.h:4391
int ReadDeviceAddr(player_devaddr_t *addr, int section, const char *name, int code, int index, const char *key)
Read a device id.
float accel_x
The node's acceleration on X-axis from an acceleration sensor.
Definition: player_interfaces.h:4393
#define PLAYER_RFID_REQ_WRITETAG
Request/reply: write data to the RFID tag - to be implemented.
Definition: player_interfaces.h:4307
int ReadTupleInt(int section, const char *name, int index, int value)
Read an integer from a tuple field.
Definition: mica2.h:44
virtual int Unsubscribe(QueuePointer &, player_devaddr_t)
Unsubscribe from this driver.
Definition: driver.h:368
uint32_t node_parent_id
The ID of the WSN node's parent (if existing).
Definition: player_interfaces.h:4420
uint32_t tags_count
The number of RFID tags found.
Definition: player_interfaces.h:4332
float magn_z
The node's magnetic measurement on Z-axis from a magnetometer.
Definition: player_interfaces.h:4403
#define PLAYER_WSN_REQ_DATAFREQ
Request/reply: change the receiving data frequency.
Definition: player_interfaces.h:4381
float magn_y
The node's magnetic measurement on Y-axis from a magnetometer.
Definition: player_interfaces.h:4401
Definition: mica2.h:79
Command: set device state (PLAYER_WSN_CMD_DEVSTATE) This wsn command sets the state of the node's ind...
Definition: player_interfaces.h:4428
float accel_y
The node's acceleration on Y-axis from an acceleration sensor.
Definition: player_interfaces.h:4395
Definition: mica2.h:57
Request/reply: change the data type to RAW or converted engineering units.
Definition: player_interfaces.h:4459
uint8_t value
Data type setting: 0 for RAW values, 1 for converted units.
Definition: player_interfaces.h:4462
double frequency
Requested frequency in Hz.
Definition: player_interfaces.h:4477
int32_t group_id
The Group ID of the WSN node.
Definition: player_interfaces.h:4475