mica2
Drivers

Crossbow Mica2/Mica2Dot mote sensor node. More...

Crossbow Mica2/Mica2Dot mote sensor node.

The mica2 driver controls the Crossbow Mica2/Mica2DOT mote sensor node. The MTS310 and MTS510 boards are supported, as well as the M1-mini RFID reader board.

Compile-time dependencies

- none

Provides

- wsn
- rfid

Requires

- none

Configuration requests

- PLAYER_WSN_REQ_POWER
- PLAYER_WSN_REQ_DATATYPE
- PLAYER_WSN_REQ_DATAFREQ
- PLAYER_RFID_REQ_READTAG
- PLAYER_RFID_REQ_WRITETAG

Configuration file options

- port (string)
  - Default: "/dev/ttyS0"
  - Serial port to which the Crossbow MIB510 is attached. If you are using a USB/232 or USB/422 converter, this will be "/dev/ttyUSBx".
- speed (integer)
  - Default: 57600
  - Baud rate. Valid values are 19200 for MICA2DOT and 57600 for MICA2.
- node (integer tupple)
  - These are the calibration values for -1G/+1G for the ADXL202JE accelerometer sensor (see the appropriate data sheet on how to obtain it). Each sepparate board MUST be calibrated! Only usable when requesting data in converted metric units mode.
  - The tuple means: [node_id group_id calibration_negative_1g_x_axis calibration_positive_1g_x_axis calibration_negative_1g_y_axis calibration_positive_1g_y_axis calibration_negative_1g_z_axis calibration_positive_1g_z_axis ]
- converted (integer)
  - Default: 1.
  - Fill the data buffer with converted engineering units (1) or RAW (0) values.
- filterbasenode (integer)
  - Default: 0.
  - Filter the base node (ID 0) in case there is another application != TOSBase installed on it.

Example

    driver
    (
      name "mica2"
      provides ["wsn:0" "rfid:0"]
      port "/dev/ttyS0"
      speed "57600"
      # Calibrate node 0 from group 125 (default) with X={419,532} and Y={440,552}
      node [0 125 419 532 440 552 0 0]
      # Calibrate node 2 from group 125 (default) with X={447,557} and Y={410,520}
      node [2 125 447 557 410 520 0 0]
      # Use RAW values
      converted 0
      # Filter the base node (in case TOSBase is not installed on it)
      filterbasenode 1
    )

Author
  Radu Bogdan Rusu

Last updated 12 September 2005 21:38:45