element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Project Videos
  • Challenges & Projects
  • element14 presents
  • Project Videos
  • More
  • Cancel
Project Videos
Documents Going Beyond Periodic Wakes: Using WiFi to Revive a Sleeping Device -- Episode 584
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Project Videos to participate - click to join for free!
Related
Recommended
Engagement
  • Author Author: tariq.ahmad
  • Date Created: 4 Jan 2023 2:42 PM Date Created
  • Last Updated Last Updated: 6 Jan 2023 8:24 AM
  • Views 82321 views
  • Likes 8 likes
  • Comments 17 comments

Going Beyond Periodic Wakes: Using WiFi to Revive a Sleeping Device -- Episode 584

What if we could just wake up a sleeping device with a simple WiFi message? Clem thinks there should be an open source variant of everything so nobody is locked in by a vendor cloud service or anything else. And one of the things he´d like to develop is an open source security system. Recently Clem learned about the Renesas DA16200MOD WiFi module, and supposedly it can stay connected to the WiFi network even in deepsleep. So the natural question to ask is, can we also wake it up with a simple UDP message over WiFi instead of having to periodically wake it up like people usually do? The journey to success is troublesome, involved PCB operations under the microscope and a lot of sketchy arduino code...

Watch the Video:

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Bonus Content:

  • Download All the Code and CAD Files for Free

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Bill of Material:

Product Name Manufacturer Quantity Buy Kit
DA16200MOD Renesas/Dialog 1 Buy Now
DA16200MOD-DEVKIT Renesas/Dialog 1 Buy Now
MOLEX USB Connector, USB Type C, USB 3.1, Receptacle, 24 Ways, Surface Mount, Right Angle Molex 1 Buy Now
MULTICOMP Battery Retainer Clip, 2450, 24mm, SMT Multicomp pro 2 Buy Now
 

element14 presents

element14 presents  |  About Clem  |  Project Videos

  • wifi module
  • da16200
  • renesas
  • arduino
  • friday_release
  • deepsleep
  • e14p_CMM
  • Share
  • History
  • More
  • Cancel
Actions
  • Share
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • baldengineer
    baldengineer over 2 years ago +1
    I like the "Ye Olde PCB Grill." This DA16200MOD module is an interesting paradigm shift! I am curious to measure your board with a Power Profiler Kit to see how the current consumption differs during…
  • kmikemoo
    kmikemoo over 2 years ago +1
    Very cool. I can understand why you are excited. Apply it in an adaptive system based on an occupancy sensor or use it in a mobile sensor that isn't always "on duty"... Again, very cool.
  • scottiebabe
    scottiebabe over 2 years ago +1
    Your excitement is contagious! Congrats on a great project, I think there might be some wifi DTIM stuff happening behind the scenes
  • smith1
    smith1 over 2 years ago in reply to mayermakes

    Thank you  Mayermake for your reply. looking forward to seeing further developments with this module.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mayermakes
    mayermakes over 2 years ago in reply to smith1

    A full step  by step guide might be something for a dedicated piece of content on the community.

    but here are some general points:
    you do not need rtOS OR INSTALL any lib to use the module with another mcu.
    The way I do it in the video is simply talking to the module via UART.
    By default the DA16200MOD ships with AT-Firmware. this listens to AT commands transmitted via UART.
    Refer to this doc for the Commands: https://www.renesas.com/eu/en/document/mas/um-wi-003-da16200-da16600-command-user-manual?r=1600061
    You first want to make sure the module is listening. (just by sendinng "AT")
    then set up wifi modes and SSID /passwords.

    these credentials are saved internally.

    reboot the module
    it should now connect to the specified network or open its own accesspoint depending on mode.next choose a way of communication and open a port (I used UDP as it was the easiest to get working)

    Save the config.

    reboot the module again.
    Now on boot login and opening of the port should happen on every boot automatically.

    In my case I used now a tool like packetsender to issue UDP commands and the module can receive them.

    You can now set up Sleep modes (mode 3 stays connected)
    and Wakeup methods (RTC, pin, wifi)
    and activate them with another command.

    Be careful with this step as the DA16200MOD could go back to sleep super quick before you get a chance to transmit the "stay awake command"
    I had to recover mine a few times before I got it right.
    Recovery worked by heaving the command for deactivating Sleep ready in the serial terminal , resetting the chip and sending as it booted. this took a lot of tries until I got the timing right.

    Micropython/circuitpython:
    doing this with a MCU running micropython is easy, it works exactly the same as I did in the video just in micropythonpython.

    no libaries needed. but there are some available, but I dont think they support wifi wakeup yet.

    hope this helps!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • smith1
    smith1 over 2 years ago

    Hi can you do a step by step guide to the tools and configuration of the DA16200MOD?. also a mention of RTOS is this a requirement?.   Could you give some detail or outline on the steps you had made and why you chose them? thank you for the video it was  interesting to see. It will be interesting to see what others can do with this. Maybe running this in mico python and a web server with a file system like the esp32 wifi module.   Thanks for your time and effort to create the videos.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mayermakes
    mayermakes over 2 years ago in reply to DAB

    thanks DAB, I'm sure there are plenty of people whose applications my need exactly that feature.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 2 years ago

    Great device find Clem, it should open the way for a lot of innovative products.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mayermakes
    mayermakes over 2 years ago in reply to dougw

    even if it would take more current in Sleep than any other module, the fact that it wakes up on command over network sets it apart, hence why I wanted to give this a go to see if it really works.

    I may put some more work into this to see if i can get it to do it via other protocolls than UDP,

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dougw
    dougw over 2 years ago in reply to mayermakes

    That is much more impressive.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mayermakes
    mayermakes over 2 years ago in reply to dougw

    its 35mA running normally, according to datashett it takes 3,5uA during sleep 3 (stays conencted to wifi) and as little as 0,2uA when in total deep sleep.
    the wording was a bit confusing on my part.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mayermakes
    mayermakes over 2 years ago in reply to scottiebabe

    thanks, hope to spread the bug to more people that way

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • scottiebabe
    scottiebabe over 2 years ago

    Your excitement is contagious! Congrats on a great project, I think there might be some wifi DTIM stuff happening behind the scenes 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube