Analog.com Analog Dialogue Wiki English
Analog.com Analog Dialogue Wiki 简体中文
EngineerZone
EngineerZone
  • Site
  • User
  • Site
  • Search
  • User
EngineerZone
EngineerZone
  • Log in
  • Site
  • Search
  • Log in
  • Home
  • Blogs ⌵
    • EngineerZone Spotlight
    • The Engineering Mind
  • 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
    • 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
    • Wide Band RF Transceivers
    • Wireless Sensor Networks Reference Library
  • My EZ
  • More
  • Cancel
  • 主页
  • 浏览 ⌵
    • 收件箱
    • 个人设置
    • 会员
    • 专区列表
  • 论坛专区 ⌵
    • 放大器专区
    • 精密转换器专区
    • 音频专区
    • ADE电能计量专区
    • MEMS和传感器专区
    • 接口和隔离专区
    • Power 中文专区
    • ADUC微处理器专区
    • 锁相环专区
    • 开关和多路复用器专区
    • 温度传感器
    • 基准电压源专区
    • 资源库
    • 论坛使用指南
    • 技术支持参考库
    • 在线研讨会
    • 论坛社群活动
    • 论坛激励活动
  • 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

    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.

    • sensor mask
    • sensormask
    • Share
    • History
    • More
    • Cancel
    Comments
    Anonymous
    Related
     
    社交网络
    快速链接
    • 关于ADI
    • Partners
    • 模拟对话
    • 职业
    • 联系我们
    • 投资信息
    • 新闻中心
    • 质量和可靠性
    • 办事处与代理商
    • Analog Garage
    语言
    • English
    • 简体中文
    • 日本語
    • Руccкий
    电子快讯

    欲获得最新ADI产品、设计工具、培训与活动的相关新闻与文章,请从我们的在线快讯中选出您感兴趣的产品类别,每月或每季度都会发送至您的收件箱。

    订阅
    Switch to mobile view
    Analog Logo
    © 1995 - 2021 Analog Devices, Inc. All Rights Reserved 沪ICP备09046653号-1
    • ©
    • 1995 - 2021 Analog Devices, Inc. All Rights Reserved
    • 沪ICP备09046653号-1
    • 网站地图
    • 隐私和保密政策
    • 隐私设置
    • 使用条款
     
    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 - 2021 Analog Devices, Inc. All Rights Reserved 沪ICP备09046653号-1
    • ©
    • 1995 - 2021 Analog Devices, Inc. All Rights Reserved
    • 沪ICP备09046653号-1
    • 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.