Analog.com Analog Dialogue Wiki English 简体中文
EngineerZone
EngineerZone
  • Log In
  • Site
  • Search
  • User
  • Support

    Popular Forums

    • RF and Microwave
    • Power Management
    • Video
    • FPGA Reference Designs
    • Precision ADCs
    • Linux Software Drivers
    • SigmaDSP Processors & SigmaStudio Dev. Tool

    Product Forums

    • A2B
    • Amplifiers
    • Analog Microcontrollers
    • Clock and Timing
    • Data Converters
    • Direct Digital Synthesis (DDS)
    • Energy Monitoring and Metering
    • Interface and Isolation
    • MEMS Inertial Sensors
    • Processors and DSP
    • Switches/Multiplexers
    • Temperature Sensors
    • Voltage References
    View All

    Application Forums

    • Audio
    • Automated Test Equipment (ATE)
    • Condition-Based Monitoring
    • Depth, Perception & Ranging Technologies
    • Embedded Vision Sensing Library
    • Motor Control Hardware Platforms
    • Optical Sensing
    • Precision Technology Signal Chains Library
    • Video
    • Wireless Sensor Networks Reference Library

    Design Center Forums

    • ACE Evaluation Software
    • ADEF System Platforms
    • Design Tools and Calculators
    • FPGA Reference Designs
    • Linux Software Drivers
    • Microcontroller no-OS Drivers
    • Reference Designs
    • Signal Chain Power (SCP)
    • Software Interface Tools
    • System Demonstration Platform (SDP) Support
  • Learn

    Highlighted Webinar

    How ADI is keeping up with security threats in retail, logistics and banking point of sale (POS) systems

    Recent Discussions

    • Csharp bindings for libm2k and calibrateFromContext function
    • ADALM-PLUTO maximum frequency
    • Issue running built programs on Pluto
    • Activity: Simple Op Amps, For ADALM1000 Fig. 1.3 Buffering example
    • ADALM-PLUTO [NETWORK] vs [USB_ETHERNET]

    Places

    • ADI Education Home
    • ADI Education China
    • ADI Education India
    • ADI Education Philippines
    • StudentZone (Analog Dialogue)
    • Virtual Classroom

    Latest Webinars

    • How ADI is keeping up with security threats in retail, logistics and banking point of sale (POS) systems
    • Multidimensional Simulations of Beamformers and other RF Integrated Circuits in Keysight SystemVue
    • Improve Smart Building Energy Efficiency with Industrial Ethernet Controlled Air Conditioning (HVAC) Systems
    • Sustainable Motion Control Solutions for High Performance Servo Drives
    • Audio Design Solutions for Augmented and Virtual Reality (AR/VR) Glasses
    View All Webinars
  • Community Hub

    Challenge Yourself!

      KCC's Quizzes: AQQ 236 about strange marking on airplane engines
    View All

    Places

    • Community Help
    • Logic Lounge

    Resources

    • EZ Code of Conduct
    • Getting Started Guide
    • ADI: Words Matter
    • Community Help Videos
    View All
  • Blogs

    Highlighted Blogs

    Why You Want to Authenticate Everything

     

    Can LTspice Break Physics?

    Latest Blogs

    • Crawl, Walk, And Run - The Journey To Create The Phaser
    • Hardware Holds The Key To Making Industrial Systems IEC 62443 Compliant
    • Behind the Scenes of DIYRadio Blogs: An Introduction
    • Empowering Surveillance Cameras To Capture A Scene Without Being Heard
    • Mastering The Metrics Makes Specifying Encoders Simpler
    Read All Blogs

    ADI Blogs

    • EZ Spotlight
    • The Engineering Mind
  • Partners

    Electronic Design Services - PartnerZone

    • Boston Engineering
    • Calian, Advanced Technologies
    • Colorado Engineering Inc. (DBA CAES AT&E)
    • Clockworks Signal Processing
    • Epiq Solutions
    • Fidus
    • PalmSens
    • Richardson RFPD
    • Tri-Star Design, Inc.
    • VadaTech
    • Vanteon
    • X-Microwave
    View All
ADRadioNet Library
  • Wireless Sensor Networks Library
ADRadioNet Library
Documents How the payload in ADRadioNet protocol is encoded
  • Members
  • Tags
  • More
  • Cancel
  • Documents
  • ADRadioNet for ADuCRF101
  • ADuCRF101 demodulation principle?
  • ADuCRF101 Shows up as "Unknown Device" in ADRadioNet when i click "Find Devices"
  • advantges and disadvantages between the EV-ADRN-WSN-1Z and EV-ADRN WSN-2Z?
  • Are the devices in the evaluation kit programmed and configured before hand
  • can't find the flash programmer tool in the ADRadioNet package
  • Default configuration settings in the evaluation demo
  • Dose ADI have detailed document for ADradioNet?
  • EVAL-ADF7XXXMB4Z Gerber file
  • EVAL-ADUCRF101 add sensor
  • FCC Certification
  • +Frequently Asked Q's
  • how can create a graphic in real time with ev adrn wsn 1z ?
  • How can decrease a sleep time, down one second? ADuCRF101MK
  • How can I capture sensor data and use it in my application?
  • how can install ev adrn wsn 1z on windows 10?
  • How can save the data with ev adrn wsn 1z ?
  • How do I expand my network beyond evaluation demo
  • How the payload in ADRadioNet protocol is encoded
  • How to configure the sensor on Bunch WSN?
  • How to Create alternative application to AnodeCP tool?
  • How to decipher the messages on the ANodeCenterPoint tool?
  • How to decode Temperature and humidity value from Bunch sensor board that is seen at AnodeCP GUI?
  • How to recover the setting on EV-ADRN-WSN-1Z
  • How to wake up the EP to capture the active EP data?
  • Identifying sensors enabled and sensors data, from a data packet of End Point in a network
  • Multi-band, Multi-PHY, Multi-channel?
  • my endpoint is not acting immediately on CP commands
  • Node not joining the network after flashing with new firmware
  • port numbers in ADRadioNet?
  • programme microcontroller
  • Prolem with ADuCRF101MK, I don't see the bunch on AnodeCenterPoint
  • Question on data rate selection in router
  • Questions about the ADRadioNet, how to deploy a network?
  • Radio profiles with ADF7024
  • Unable to connect my EndPoint to the ANodeConfig tool.
  • unable to detect BUNCH EP on ANodeConfig tool with ADRadioNet01_EDKv2.0
  • Unable to detect device with ANodeConfig tool
  • Unable to see the node performance of Router
  • What is "Upstream" and "Downstream" in ADRadioNet
  • What's the difference between the WSN development kits EV-ADRN-WSN-1Z and EV-ADRN-WSN-2Z? When and where can they be ordered?
  • Will I loose my configuration settings if the device looses power?
  • WSN Bunch Node PCB Layout File
  • WSN Bunch Node sometimes cannot register

How the payload in ADRadioNet protocol is encoded

Original Question: How the payload in ADRadioNet protocol is encoded by harish.katam

 

Is there a description of how the payload in ADRadioNet protocol is encoded? It's in hex but I suspect there is another step to extract some useful info from it.


Verified Answer: RE: How the payload in ADRadioNet protocol is encoded by NagarjunaG

This can be better explained with the ADRadioNet PC tool. The [Start] tab in the ANodeCenterPoint tool displays the total packets received in byte streams format, as shown in the following snapshot. This consists of - Link layer header, Message header & Payload (Sensor Data + Local statistics).

 

The port number (byte #25-#26 in the message header) is used to differentiate between network & data. Users can define their own unused port numbers in the source code to communicate with other device. Please note that the payload starts from 27th byte onwards in the data stream.

Packet format at MAC layer

SRD_BUFFER_SIZE (128 Bytes Max.)

LLH_LEN

(9 Bytes)

MB_MSGHEADLEN

(17 Bytes)

Payload(102 Bytes)

 

 

Data

(66 Bytes)

Local statistics (36 Bytes)

Added if Local Statistics are enabled to send

The Data field of the payload in the above packet format contains:

  • Sensor Packet => Sensor information
  • Registration Packet => Configuration parameters
  • Heartbeat Packet => No Data

The following explains how the ADRadioNet protocol encapsulates different types of data, like sensor data (66 bytes) and statistics (36 bytes). Put together with link layer header (9 bytes) message header length (17 bytes), the total size is 128 bytes. However, when this has to be sent over UART to the PC, additional headers get added taking the requirement to 134 bytes as shown below. Needless to say, the useful sensor data in this example is 66 bytes. The additional data bytes are dedicated for displaying useful statistics information (36 bytes).

As shown above the payload comprising of sensor data along with statistics information (corresponding to a specific sensor mote) is encapsulated with required headers and is sent over the UART. This is deciphered on the PC side to show the results on the ANodeCenterPoint tool. Please note that in the example shown above the sensors are organized in a pre-defined manner. It is up to the user to define this order or make a new schema to decipher information based on the requirement.

The example UART sensor information packet received at the ANodeCenterPoint tool from CP is given below.

ADRadioNet

Each and every component in the payload is associated with a mark byte to define the length and type of the variable as shown below.

Mark Tag

Value in Hex

Length in bytes

STR_MARK(string )

0x73

1 byte length+(1*string length) + 1 byte NULL

LONG_MARK   

0x6C

4

SINGLE_MARK 

0x66

4

INT_MARK     

0x69

2

BYTE_MARK   

0x63

1

BYTEARY_MARK 

0x61

1 byte length +(1* size of array)

 

An example sensor information captured by the ANodeCenterPoint tool is shown as below

  • AD7151    => Proximity Sensor
  • SHT21      => Sensirion Temperature & Humidity Sensor
  • ADXL362  => Accelerometer


The sensor data is followed by statistics. The sensor data is highlighted in different colors above.

Yellow          =>  LED Information (LED5 and LED6 are ON)

Turquoise       => SHT21 (Temperature and Humidity)

Dark Green    => Proximity turquoise

Grey Color     => Accelerometer (X, Y and Z axis)

 

Hope this helps.

  • Share
  • History
  • More
  • Cancel
Related
Recommended
Social
Quick Links
  • About ADI
  • ADI Signals+
  • Analog Dialogue
  • Careers
  • Contact us
  • Investor Relations
  • News Room
  • Quality & Reliability
  • Sales & Distribution
  • Incubators
Languages
  • English
  • 简体中文
  • 日本語
Newsletter

Interested in the latest news and articles about ADI products, design tools, training and events? Subscribe today!

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