Analog.com Analog Dialogue Wiki 简体中文
EngineerZone
EngineerZone
  • Log in
  • Site
  • Search
  • Log in
  • Home
  • Blogs ⌵
    • EngineerZone Spotlight
    • The Engineering Mind
    • Analog Garage
  • Browse ⌵
    • All Groups
    • All Members
  • Support ⌵
    • 3D ToF Depth Sensing
    • Amplifiers
    • Analog Microcontrollers
    • Audio
    • Clock and Timing
    • Data Converters
    • Design Tools and Calculators
    • Direct Digital Synthesis (DDS)
    • Embedded Vision Sensing
    • Energy Monitoring and Metering
    • FPGA Reference Designs
    • Industrial Ethernet
    • Interface and Isolation
    • Low Power RF Transceivers
    • MeasureWare
    • MEMS Inertial Sensors
    • Motor Control Hardware Platforms
    • Optical Sensing
    • Power By Linear
    • Processors and DSP
    • Reference Circuits
    • RF and Microwave
    • Switches/Multiplexers
    • Temperature Sensors
    • Video
    • Wireless Sensor Networks Reference Library
  • My EZ
  • More
  • Cancel
Wireless Sensor Networks Reference Library
Wireless Sensor Networks Reference Library
Documents FAQ: How to handle different types of sensors used in WSN solution?
    Wireless Sensor Networks Reference Library requires membership for participation - click to join
    • Documents
    • FAQ: How to handle different types of sensors used in WSN solution?
    • FAQ: Packet format used in AD6LoWPAN & ADRadioNet software
    • FAQ: PCB and gerber files for EV-ADuCRF101QSP1Z
    • Wireless Sensor Networks Support Community

    You are currently reviewing an older revision of this page.

    • History View current version

    FAQ: How to handle different types of sensors used in WSN solution?

    This is applicable to both ADWSN solutions (ADRadioNet and AD6LoWPAN). 


    The specific sensor values that are being sent from a given sensor mote can be determined by the "sensor mask" value. This value is part of the payload sent from the node. The feature of sensor mask is added in the ADRadioNet EDKv2.0 & AD6LoWPAN EDKv1.0. Users can download the latest code from the download link from  EngineerZone pages (ADRadioNet and AD6LoWPAN), or, directly from http://www.analog.com/wsn

    The two byte "sensor mask" is as shown below.


    In both ADRadioNet & AD6LoWPAN, the above "sensor mask" is assumed. If some sensors are to enabled in a specific node, those alone will be enabled in the sensor mask register. The sensor data corresponding to these enabled sensors will be available in the prescribed order as defined by the user (from LSB side). The length of the each sensor payload is defined a priori (for example, the accelerometer sensor will have 3 float values corresponding to x, y & z-axis. Similarly, for ALS, it is a single value. All values are assumed "float" for ease of implementation).

    Please find the example sensor information packet below, captured by the PC UI tool, by enabling the following sensors

    • ADT75 ==> Temperature
    • ADXL362 ==> Accelerometer
    • SHT21 ==> Temperature and Relative Humidity
    • ALS   ==> Ambient Light Sensor APDS9005

    The sensor data is color coded in this example as below. The statistics information is available right after the sensor data.

    Yellow color ==> INT_MARK     

    Light Green  ==> SINGLE_MARK 

    Red color     ==> Sensor Enable Mask

    Dark Green   ==> Temperature Data

    Dark Yellow ==> Accelerometer (X, Y and Z axis)

    Grey color   ==> Temperature and Relative Humidity

    Pink color    ==> Ambient Light Sensor APDS9005


    In this example, the sensor mask = 0x0056, indicating the following sensors are enabled in the system - ADT75, ADXL362, SHT21 and ALS (APDS9005). The below table shows how the value of mask is calculated.

    The sensor data representation corresponding to this example, at “Network overview” window of PC tool will be as below

    Sensor Data

    FLOAT[0]

    ADT75 Temperature

    FLOAT[1]

    ADXL362 X-axis

    FLOAT[2]

    ADXL362 Y-axis

    FLOAT[3]

    ADXL362 Z-axis

    FLOAT[4]

    SHT21 Temperature

    FLOAT[5]

    SHT21 Relative Humidity

    FLOAT[6]

    ALS (APDS9005)

    Please note, the overall schema of this sensor representation can be changed based on user requirement. (like for example - the easiest is changing the sensor mask register as per user requirement; for this few modifications in code are required). It is up to the user to add an application level logic to handle the sensor data as desired.


    This FAQ was generated from the following discussion: Identifying sensors enabled and sensors data, from a data packet of WSN node in a network.

     
    Social
    Quick Links
    • About ADI
    • Partners
    • Analog Dialogue
    • Careers
    • Contact us
    • Investor Relations
    • News Room
    • Quality & Reliability
    • Sales & Distribution
    • Analog Garage
    Languages
    • English
    • 简体中文
    • 日本語
    • Руccкий
    Newsletters

    Interested in the latest news and articles about ADI products, design tools, training and events? Choose from one of our 12 newsletters that match your product area of interest, delivered monthly or quarterly to your inbox.

    Sign Up
    Switch to mobile view
    Analog Logo
    © 1995 - 2019 Analog Devices, Inc. All Rights Reserved 沪ICP备09046653号
    • ©
    • 1995 - 2019 Analog Devices, Inc. All Rights Reserved
    • 沪ICP备09046653号
    • Sitemap
    • Privacy & Security
    • Privacy Settings
    • Terms of use
    EngineerZone Uses cookies to ensure you get the best experience in our community. For more information on cookies, please read our Privacy & Security Statement.