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 Simplify Network Monitoring: Building an ESP32-Powered Solution -- Episode 617
  • 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: 23 Aug 2023 5:14 PM Date Created
  • Last Updated Last Updated: 24 Aug 2023 11:00 PM
  • Views 21897 views
  • Likes 12 likes
  • Comments 11 comments

Simplify Network Monitoring: Building an ESP32-Powered Solution -- Episode 617

In this episode, Mark guides us through creating a network monitor using the ESP32 microcontroller. The project addresses two key needs: firstly, identifying the IP addresses of devices connected to the network, and secondly, tracking network access for security. Mark's motivation stems from the necessity to quickly access the IP address assigned to microcontrollers connected via Wi-Fi. Traditionally, obtaining this information required connecting the device to a computer, but Mark's solution eliminates this hassle. 

Watch the Video:

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

The project's objectives are clear: design a user-friendly device that sends real-time notifications via Telegram whenever a device connects to the network. The ESP32's Wi-Fi capability makes it possible to configure the device without reprogramming it. Additionally, Mark explores the web browser programming feature, which allows users to program the ESP32 by simply connecting it to a computer and pointing their browser to a specific address. Mark also explains that the hardware for this project is minimal, requiring only an ESP32 module, power cable, and adapter. 

image

Mark delves into the software aspects, detailing the setup of the Arduino sketch and essential libraries. The ESP32 framework's Espressif library is a prerequisite, along with specific libraries such as Arduino JSON for data handling. Mark walks us through the sketch's functions, including setup and loop functions, network monitoring, and message parsing. He then covers how to handle incoming messages from Telegram.  

 image

The video also showcases how to integrate Telegram notifications. Mark guides viewers through creating a Telegram bot using BotFather, obtaining a unique token key and user ID for authentication. He emphasizes the convenience of the Wi-Fi Manager, which facilitates network reconfiguration without the need for reprogramming. By grounding pin 13 during bootup, users can access the Wi-Fi Manager to enter credentials, making the device highly adaptable for different networks. 

 image

The result is an accessible network monitor that automatically sends notifications about connected devices through Telegram. Mark's clear and methodical explanations, coupled with the ESP32's versatile features, make this project a valuable addition to any maker's toolkit. With applications ranging from home network management to security enhancement, this element14 presents episode showcases the power of DIY technology in simplifying everyday tasks. 

image

Bonus Content:

  • GitHub:  https://github.com/donnersm/NetworkMonitor
  • ESP32 board library: https://donnersm.github.io/NetworkMonitor/flash.html
  • Download Code
  •  Episode 572: How to Use an ESP32 & Camera to Know You've Got Mail!   

Bill of Material:

Product Name Manufacturer Quantity Buy Kit
Battery Retainer Clip Bud Industries 1 Buy Now
 

Additional Parts:

9V Battery PP3 format

element14 presents

element14 presents  |  About Mark Donners |  Project Videos

  • esp32
  • Network Monitor
  • e14p_MD
  • arduino
  • friday_release
  • safety
  • Share
  • History
  • More
  • Cancel
Actions
  • Share
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • donnersm
    donnersm over 2 years ago +1
    This is an easy project that you can build and test quickly. If you have any questions, feel free to ask!
  • phoenixcomm
    phoenixcomm over 1 year ago in reply to donnersm

     donnersm "complicated setup"?? you are joking??  

    from my console: 

    apt-get install apt-get install tcpdump

    harrison@whirlwind:~$ su root
    Password:  
    root@whirlwind:/export/home/harrison# tcpdump
    tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
    listening on enp9s0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
    16:29:13.669064 IP a173-222-219-5.deploy.static.akamaitechnologies.com.https > whirlwind.phoenixcomm.net.52100: Flags [P.], seq 301524376:301524402, ack 2801384143, win 864, options [nop,nop,TS val 2399805390 ecr 319473378], length 26
    16:29:13.669103 IP whirlwind.phoenixcomm.net.52100 > a173-222-219-5.deploy.static.akamaitechnologies.com.https: Flags [.], ack 26, win 501, options [nop,nop,TS val 319479471 ecr 2399805390], length 0
    16:29:13.671194 IP whirlwind.phoenixcomm.net.35094 > Linksys06730.domain: 23990+ PTR? 5.219.222.173.in-addr.arpa. (44)
    16:29:13.694077 IP Linksys06730.domain > whirlwind.phoenixcomm.net.35094: 23990 1/0/0 PTR a173-222-219-5.deploy.static.akamaitechnologies.com. (109)
    16:29:13.774844 IP whirlwind.phoenixcomm.net.44469 > Linksys06730.domain: 56675+ PTR? 1.1.168.192.in-addr.arpa. (42)
    16:29:13.775583 IP Linksys06730.domain > whirlwind.phoenixcomm.net.44469: 56675* 1/0/0 PTR Linksys06730. (68)
    16:29:14.606735 IP whirlwind.phoenixcomm.net.ssh > 218.92.0.118.42675: Flags [P.], seq 3765565779:3765565859, ack 2470112143, win 503, options [nop,nop,TS val 3065741019 ecr 10235242], length 80
    16:29:14.610897 IP whirlwind.phoenixcomm.net.47392 > Linksys06730.domain: 63536+ PTR? 118.0.92.218.in-addr.arpa. (43)
    16:29:14.624290 IP Linksys06730.domain > whirlwind.phoenixcomm.net.47392: 63536 NXDomain 0/1/0 (92)
    16:29:14.773206 IP 218.92.0.118.42675 > whirlwind.phoenixcomm.net.ssh: Flags [P.], seq 1:97, ack 80, win 262, options [nop,nop,TS val 10236230 ecr 3065741019], length 96
    16:29:14.773241 IP whirlwind.phoenixcomm.net.ssh > 218.92.0.118.42675: Flags [.], ack 97, win 503, options [nop,nop,TS val 3065741185 ecr 10236230], length 0
    ^C
    11 packets captured
    11 packets received by filter
    0 packets dropped by kernel
    root@whirlwind:/export/home/harrison#



    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • donnersm
    donnersm over 1 year ago in reply to kmikemoo

    The online version uses a bin file drom a esp32 wroom compilation it will not work with the new espc3. You have to load the arduino sketch and compile it for your board

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • kmikemoo
    kmikemoo over 1 year ago

    donnersm The online programmer doesn't like my new ESP32C3. Unamused  Not sure if it's the ESP32 because after the first upload, I started getting USB communication problems and corrupted dump / CRC errors.  SO... I quit and went to bed.  Maybe more success tonight.

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

    Yes, that would work but it involves some complicated setup, at least for the average person…

    • Cancel
    • Vote Up -1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • phoenixcomm
    phoenixcomm over 2 years ago

    Several questions:

    1. have you ever herd of snoop? which is a utility that lets you snoop your network no muss no fuss!
    2. ALL of the the equipment in my shop and home runs on fixed IP address. why don't you?
    3. I consider ALL WIFI Hostile, and by definition be on their own sub-net!
    4. consider on install another private sub-net with no access to other nodes (equipment) for your GUESTS and unlock it or use guest as the password

    If you use my setup consider this:

    • ALL nodes must be hard wired with CAT5 or 6
    • from your isp (internet provider) -> router with 4 ports. lets call the output 192.168.1.1 (mask 255.255.255.0) this goes to your devices
    • on the fourth port lets call it 192.0.0.1 this goes to a WIFI router / Access point for your GUEST NETWORK.  
    • if you have VOIP phones mine are CISCO and go to Asterisk server on a PI which boots off of a hard-drive, as well as an second Ethernet net adapter with connects to my VoIP switch this also powers my phones. ie. no 48vdc wall rats!.
    • The Pi also serves as a DNS server with pi-hole installed.

    BTW sorry snoop is from Sun Solaris you will have to use tcpdump -i "interface" 

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

    yeah..might be a bit more tweaking then what you think..but might work just fine

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

    donnersm I haven't been able to find my ESP32 but I did find my ESP8266 - so I'll have to do a little tweaking.  Good stuff. Thumbsup

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

    Nice build.

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

    Fantastic project.  I will have to find my ESP32.  Right now, I do it the hard way by logging into the router and plugging and unplugging the device (either power or network).  Silly but it works.

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

    I really like how simple you make it to program the ESP32.

    • Cancel
    • Vote Up 0 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