Analog.com Analog Dialogue Wiki 简体中文
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
    • Optical Sensing
    • Precision Technology Signal Chains
    • 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

    Recent Discussions

    • Pluto + GNURADIO frequency change
    • Pluto SDR
    • pluto sdr pyadi-iio continous iq recording
    • attribute error
    • gps-sdr-sim is not working with my ADALM-PLUTO

    Places

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

    Latest Webinars

    • Optimizing GaN and GaAs RF Amplifier Performance Using Novel Biasing Techniques
    • Webinar Improving Switch-Mode Power Supplies Using Noise Cancelling Technology
    • Webinar Accelerate Your Design With a 2 to 24 GHz Wideband Transceiver Reference Design
    • How to Design an Optimized Motion Control System for Intelligent Edge Based Surveillance Camera
    • How to Enhance High Precision Current Sensing Systems
    View All
  • Community Hub

    Challenge Yourself!

      KCC's Quizzes: Buffers and Fan Out
    View All

    Places

    • Community Help
    • Logic Lounge

    Resources

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

     

    How To Design Fieldbus Agnostic Smart Factory Sensors

     

    You Passed EMC Testing… But Wait, Is There More?

    Latest Blogs

    • The 5 Things You Need to Know about RF Matching Networks
    • Does Reliability Prediction Uncertainty Justify Mandating Two Channel Safety?
    • An Inside Look at 2022
    • Meet the Person Behind the Quizzes
    • Updates Required: Why Newer is Better
    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
AD6LoWPAN Reference Library
  • Wireless Sensor Networks Reference Library
AD6LoWPAN Reference Library
Documents Data Packets from Node WSN
  • Members
  • Tags
  • More
  • Cancel
  • Documents
  • ADF7242 with RaspberryPi
  • ADUCRF101 Software and Application framework; Mesh Network in Sub-GHz
  • ADWSN-UI tool displaying "unknown device" on my centerpoint node
  • ADWSN: AD6LoWPAN Support Community
  • ADXL362
  • ADXL362 sleep time and activity
  • Can I send commands from Border Router to Node in AD6LoWPAN?
  • Can I send data from Node to Border Router in AD6LoWPAN?
  • Can MDuCM3029 + ADF7030-1 be used for AD6LoWPAN ?
  • Concept of "Orbit" in AD6LoWPAN? Why is it introduced?
  • Data Packets from Node WSN
  • Default configuration for AD6LoWPAN devices
  • Device types in AD6LoWPAN EDK?
  • Explain the 3-Node demo procedure and required tools
  • FAQ: AD6LoWPAN 3-Node demonstration - procedure and required tools
  • FAQ: Commands from Border Router to Node in AD6LoWPAN
  • FAQ: How to interpret the sensor data collected on ADWSN tool?
  • FAQ: Is the packet format in AD6LoWPAN same as standard one?
  • FAQ: Node Joining Process in 6LoWPAN - ND, RPL
  • FAQ: Operating Modes & Supported data rates in AD6LoWPAN
  • FAQ: RPL Non-Storing mode in AD6LoWPAN
  • GPIO and Transceiver Interrupts
  • HOW CAN I GET THE TINY WSN SCHEMATICS
  • How different is AD6LoWPAN from Contiki OS based implementation?
  • How does a 6LoWPAN device register to network?
  • how many number of sensors can be displayed in the monitor?
  • How to interpret the different messages received on the UI tool?
  • How to interpret the sensor data collected on ADWSN tool?
  • How to send “User Defined Commands”  from Border Router to Node?
  • How to set sleep mode in ADXL362(MEMS)?
  • I have WSN Bunch version kit, Can this be used for AD6LoWPAN also?
  • IP address allocation for my 6LoWPAN devices in the network?
  • Is AD6LoWPAN implementation standards based solution?
  • Is AD6LoWPAN network autonomous, self-forming & self-healing?
  • Key features & Product details of AD6LoWPAN EDKv1.0
  • Maximum payload in AD6LoWPAN?
  • My WSN nodes are not communicating
  • Node not joining the network after firmware upgrade from PC tool
  • Packet format for 6LoWPAN/AD6LoWPAN?
  • question on multi-channel, and channel hopping
  • Received packets size
  • Significance of port number in communication from Border Router to Node?
  • Supported PHY options in AD6LoWPAN?
  • unable to detect my devices in the pc tool and sometimes displaying as “unknown devices”.
  • unable to flash my Bunch WSN boards
  • What are the different standards followed in AD6LoWPAN?
  • What are the different types of messages used in 6LoWPAN?
  • What do I get with this AD6LoWPAN EDK? Is this for everyone or Is it more apt for protocol experts?
  • What happens when the border router resets?
  • What is the default tx power in AD6LoWPAN EDKv1.0, and how do I change it?
  • What type of routing (source/non-source) is supported in AD6LoWPAN?
  • What type of routing is supported in AD6LoWPAN? Can you explain it briefly?
  • Wireless Sniffer with AD6LoWPAN? Is it offered free of cost along with the EDK?
  • With one USB-SWD/UART-EMUZ, how do I setup 3-node demo?

Data Packets from Node WSN

Original Question: Data Packets from Node WSN by Ramya

how to stop receiving packets for 30 sec once the 1st packet is received from the node WSN , even though their s activities detected in sensors


Verified Answer: RE: Data Packets from Node WSN by schennu

Hi Ramya, The function Config_Ext_Ints(), configures the external interrupts. And is called just before the device enters hibernate mode. In your application, it is not required to call this every time, but only after the required time elapses. So, you can add a condition to execute this only when needed.


Question: RE: Data Packets from Node WSN by schennu

Hi Ramya, Thank you for posting a query. This seems like a custom implementation you're trying and is not covered within the EDK support terms. But to help you out on this;  
I recollect there was similar query from Pixzee a month or two ago; to send data only on ADXL362 events. Is this an extension to that work? If so you can tag that post, so that we can answer quickly.

Coming to the issue, it seems like you wish to disable the interrupt for 30 seconds post the first packet (or every packet?). You can do this by disabling the interrupt pin connected to ADXL362 just before the first packet is sent.
Assuming it is the same system & software we released as part of AD6LoWPAN01_EDK;

Use below function to disable the interrupt after the first (or every) packet is sent.

adi_GPIO_DisableIRQ(EINT1_IRQn);

Once 30 seconds are counted, you can re-enable the interrupt by calling below function.
adi_GPIO_EnableIRQ(EINT1_IRQn, ADI_GPIO_IRQ_RISING_EDGE);

You can use a counter variable to count 30 seconds time and re-enable this interrupt after every packet sent.
clock_seconds() funtion will give you number of seconds since the node is powered up.

Hope this helps.

Note: It would be helpful if you mention the release version being used in your project as there are several releases with different protocols we support. 


Question: RE: Data Packets from Node WSN by Ramya

hi schennu

thank you for your reply, coming to the query ,yes it is an extension to the work asked in the post Restrict End Node from pushing packets continuously. 

We are working on AD6LoWPAN01 EDKv1.0   Platform: EV-ADRN-WSN-1Z   with the Protocol: AD6LoWPAN

i want to restrict the packets once the 1st packet is sent for the desired amount time , you have told to disable adi_GPIO_DisableIRQ(EINT1_IRQn); please can you let me know where i can find the trigger point, and the information about the 1st packet reception(which function?).

since clock_seconds() function gives me the number  of seconds since the node is powered up, to obtain the 30 sec count ,extra function is to be written or i can make use of any inbuilt counter in the program.

thanks

Ramya


Question: RE: Data Packets from Node WSN by schennu

Hi, You can call that API at the end of send_packet() in udp_client.c file.

And to get the count you could read the current_seconds into a local variable in the main() and write a condition to check for +30 (or whatever the time you wish to disable event) and then re-enable the interrupt by calling adi_GPIO_EnableIRQ(EINT1_IRQn, ADI_GPIO_IRQ_RISING_EDGE);

Hope you find this helpful.


Question: RE: Data Packets from Node WSN by schennu

Hi,

Can you make sure the interrupt is not re-enabled in anywhere else? Also, when do you see the packets get transmitted? Are these transmitted periodically? Then you need to set larger sleep period as we mentioned in the answer for the previous post.

First, make sure the packets are sent only on the external interrupt from ADXL362 and NOT periodically. Then try to disable the interrupt after the first packet. 


Question: RE: Data Packets from Node WSN by Ramya

hi, thanks for your suggestion, i called  adi_GPIO_DisableIRQ(EINT1_IRQn); at the end of send_packet(), and after some delay i re enabled the interrupt,but no luck their was a continuous transmission of packets ,

and i tried with one more test case where i just disabled the interrupt and didn't re-enabled it , i was expecting no packet reception but their is a reception packets even though the interrupt is  been disabled, 


Question: RE: Data Packets from Node WSN by Ramya

Hi,

The Sleep time is set to 5000, and i have no where re- enabled the interrupt, and the  packets are sent only on the external interrupt from ADXL362, it doesn't send packets periodically.

The API adi_GPIO_EnableIRQ(EINT1_IRQn, ADI_GPIO_IRQ_RISING_EDGE) is called by function  Config_Ext_Ints(), in lpm_hal.c 

  • Share
  • History
  • More
  • Cancel
Related
Recommended
 
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 - 2023 Analog Devices, Inc. All Rights Reserved 沪ICP备09046653号-1
  • ©
  • 1995 - 2023 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.