Using Wired Ethernet on the ESP8266

Sdílet
Vložit
  • čas přidán 27. 08. 2024
  • It's pronounced E S peethernet. It's a way to communicate with ESP8266's via 10BASE-T Ethernet instead of via the wifi interface. This project is still in its infancy but it works. Somehow, it works! Check out the hackaday article: hackaday.com/20...
    Github link for the web interface: cnlohr.github.i...
    Github project link: github.com/cnlo...
    Patreon: / cnlohr

Komentáře • 138

  • @Romenadan
    @Romenadan Před 8 lety +82

    "Hmm, too much noise. Filter it to attenuate? Nah, I'll just whop on an antenna and radiate it!" Absolute hilarious genious.

  • @serverguy2
    @serverguy2 Před 6 lety +7

    That was pretty cool putting an antenna to radiate the bad frequencies away. Yes, a capacitor would be better in a commercial project but finding that little kludge worked was so funny. Electronics is so fun!

  • @isfiyiywafibc6qaiiiiiiiiii570

    When you plugged a wire into the breadboard and packet loss went down, I couldn't stop laughing.

  • @iamjimgroth
    @iamjimgroth Před 8 lety +11

    As soon as I saw that circuit board I knew it was CNLohr. ^^

  • @samykamkar
    @samykamkar Před 8 lety +24

    Sweet!

    • @jonathanemery9557
      @jonathanemery9557 Před 7 lety

      Samy Kamkar But Most Of All Samy Is My Hero... Sorry I Just Had To.

  • @naoki95957
    @naoki95957 Před 5 lety +2

    This seems like a great router for when there's just a random port to plug into but no ssid that is open.

  • @snouthusky3554
    @snouthusky3554 Před 4 lety +3

    Gets a Like for the wire-antenna solution. Definitely best part of the show. :D

  • @TheTinkerDad
    @TheTinkerDad Před 5 lety

    Jesus, this is easily the most hacky solution I've seen in a while! LOVE IT! :)

  • @Anvilshock
    @Anvilshock Před 8 lety +7

    Please glue the focus shut ...

  • @robertpoynton9923
    @robertpoynton9923 Před 5 lety +2

    Does this mean that we can use any WiFi smart switch sonoff, Philips etc and hard wire it to the network to prevent drop out etc?

  • @k1ngjulien_
    @k1ngjulien_ Před 8 lety +4

    Did you write all that code yourself, or did the guys in the background help you :D?
    Also: How long did it take you to write this?
    Edit: The thing with the antenna that gets rid of signal disruption seems a little odd :D( Is it really not a really really good april fools prank?)

    • @CNLohr
      @CNLohr  Před 8 lety +4

      +K1ngjulien_ I believe I coded everything myself, except for the FCS CRC that I can remember. I also borrowed bits and pieces of Sprite TM's I2S code, but that's largely mine now. I also use jQuery on the webpage.
      This whole video is legitimate. I actually did everything. The ONLY part that is April fools is where I say the ESP8266 has an Ethernet module.

  • @lemonbirdo1353
    @lemonbirdo1353 Před 3 lety

    "...it's radiated into the atmosphere where it's somebody else's problem to deal with"
    oh honey...

    • @CNLohr
      @CNLohr  Před 2 lety

      It's a joke. It's very little power.

  • @skopyhoTechChannel
    @skopyhoTechChannel Před 7 lety

    Amazing job! it is really awesome what you do with esp8266!

  • @dave_dennis
    @dave_dennis Před 7 lety

    Very Cool! I love messing around down at layer 1.

  • @TheDrivenMind
    @TheDrivenMind Před 8 lety +2

    Wait, why wouldn't you want to use an FTDI chip in a commercial product? Am I missing something?
    Please elaborate. :)

    • @CNLohr
      @CNLohr  Před 8 lety +3

      Because FTDI is a terrible kludge. The parts have more stringent requirements than most of their competitors not that you should use any of that anyway. ADDITIONALLY if you use an FTDI branded chip in your design and there was confusion in the sources, you run a high risk of having a product that will be deliberately bricked by FTDI. If it has an FTDI stamp on the top throw it in the trash.

    • @Germanwtb
      @Germanwtb Před 5 lety

      @@CNLohr So you have a problem with generic UART to USB interfaces or anything more particular to this design?
      Because in anything low volume and/or low throughput I think having this trivial/standard way to interface is just better than the hassle trying to make a custom usb interface.

  • @bdot02
    @bdot02 Před 8 lety

    What's the difference between the NodeMCU board and the ESP8266? The node just looks like it's a breakout for the ESP? Is that at all correct?

    • @CNLohr
      @CNLohr  Před 8 lety

      +bdot02 The NodeMCU board is a breakout for the ESP8266 ESP-12E, however, it does not have a line driver (ISL3177) and so the ESP is acting as the line driver as well.

    • @bdot02
      @bdot02 Před 8 lety

      Ah so the board isn't janky, just the setup. I'm just curious since I've been playing around with arduino and wanna start learning the ESP8266. Your channel is very helpful.

    • @CNLohr
      @CNLohr  Před 8 lety

      Correct. NodeMCU boards are great! Just not for Ethernet :-p

    • @bdot02
      @bdot02 Před 8 lety

      +CNLohr out of curiosity do you have any 'getting started with' sort of videos for the ESP? Or are there any guides you'd recommend? I'm coming from Arduino and would appreciate some sort of hello world tutorial.

    • @CNLohr
      @CNLohr  Před 8 lety

      Check out "Making your own C programs for the ESP8266"

  • @justDIY
    @justDIY Před 8 lety

    So bit-banged ethernet is faster than the native WiFi connection, at least in terms of websockets? For comparison, what refresh rate does your websockets code score on an official arduino ethernet shield, or a beaglebone black?

    • @CNLohr
      @CNLohr  Před 8 lety +1

      +Gordon McLellan It is comparable to the wifi connection, just more predictable timing, you don't have peaks. Either the packet comes in in 1 ms, or it doesn't at all. I've never tested it on those devices... BUT... It "feels" slighly faster than even an ENC424j600 based controller solution.

  • @stevemilchuck9241
    @stevemilchuck9241 Před rokem

    I love it! I want to build a commercial product on the second option lol.
    Seriously though, great job!

    • @CNLohr
      @CNLohr  Před rokem

      Please don't. It would be 𝓽𝓮𝓻𝓻𝓲𝓫𝓵𝓮

  • @DreitTheDarkDragon
    @DreitTheDarkDragon Před 8 lety +1

    So...what about making of WiFi access point? It would be awesome to have just tiny board with RJ45 connector, powered by PoE, hanging behind wardrobe on UTP cable and spreading data to whole room.

    • @CNLohr
      @CNLohr  Před 8 lety

      That may be possible! I just don't know how to intercept the IP packets :(

    • @DreitTheDarkDragon
      @DreitTheDarkDragon Před 8 lety

      Yay!
      When I saw your projects, I'm pretty sure you can solve that in few minutes. To be honest, I thought that simple forwarding of data flow would work some way. When you have ethernet to serial and WiFi to serial converter, first thing that comes to my mind is to simply connect serial interfaces and check what will happen (and analyze if it even does something, or where it fails).

    • @CNLohr
      @CNLohr  Před 8 lety

      I don't understand what you are saying...

  • @dieselgeezer18
    @dieselgeezer18 Před rokem

    Man thats cool(the maximum jank contraption). It would be nice if you could share the schematic and code

  • @ivanfangio
    @ivanfangio Před 2 lety +1

    Can u make a ethernet Sonoff switch? that's secure for sniffer neighbors!

  • @IaEmon
    @IaEmon Před 4 lety +1

    Hello bro
    First of all thank you for giving us such a beautiful and informative video.
    I had some questions about ESP8266 NodeMCU v3. If I want to make a repeater with it. So my question is
    1 / What will be the maximum range of NodeMCU repeater?
    2 / What is the maximum data speed of NodeMCU WiFi?
    3 / NodeMCU repeater maximum number of people can use together?

    • @CNLohr
      @CNLohr  Před 4 lety

      Sorry your comment was in the spam bucket. I do not recommend you make a project with this. It would be a lot of work and be janky. Your range would depend on your environment. I've done ESP8266 range tests at up to 1km, but realistically 100 feet or so is what you should expect less in urban or high RF areas, or going through walls. (2) About 5mbits/s. (3) 4 people.

  • @MarkHopewell
    @MarkHopewell Před rokem

    It looked like the wire antenna was acting as an improvised stub.

  • @zaidhussain5206
    @zaidhussain5206 Před 7 lety

    Thank you so much for sharing this knowledge

  • @ThePurza
    @ThePurza Před 6 lety

    Hi; how this project makes the most sense, is with the arduino connecting via wifi, and providing that connection via ethernet to an ethernet-only device. I have a need for that right now, I am searching for a solution for my Pioneer AVR. What a device like this needs though, is for the ethernet port to receive an IP from the same subnet as the wifi. So the software needs to pass the likes of DHCP through to the ethernet client.. in fact it needs to pass all broadcast traffic back and forth to accomodate the likes of airplay, DLNA and bonjour etc.
    Could this project do that?

    • @CNLohr
      @CNLohr  Před 6 lety

      nooooooo. Don't do this for that. This was mostly as a proof of concept. It takes a lot of tweaking to get this to work and a lot of custom code to send specific packets.

    • @ThePurza
      @ThePurza Před 6 lety

      Oh well. It did seem miraculous, for a wee ESP-01 to handle all that..!

    • @CNLohr
      @CNLohr  Před 6 lety +1

      IT DOES! It's just a little janky. If you are an advanced maker, this project is definitely something you can do. It's just not as simple as "make this circuit and it'll work every time easily."

  • @ElsuhdElectronics
    @ElsuhdElectronics Před 5 lety

    This is what we can call it awesome work so congrats. i really like to hear your advice about what is recommended way to made a device that has wired Ethernet with builtin web server for control and manage some outputs and inputs devices ?

  • @CodeAsm
    @CodeAsm Před 7 lety

    So... I could also "read" packets? and then send them over wifi to my laptop? (uisng a Star LAN Tap )

    • @CNLohr
      @CNLohr  Před 7 lety +1

      yep. Would need to be a little different, and could only tap a 10 MBit network, but yes.

    • @CodeAsm
      @CodeAsm Před 7 lety

      Thx, the ESP can only talk 10Mbit? I remember Scott explaining me it will downgrade 1Gbit nets on a Con ive been to. It will be a proof of concept I gues. if I realy want to "wirelessly sniff/spy" Im better off with devices(with PHY) you explained in the videos.

    • @CNLohr
      @CNLohr  Před 7 lety +1

      Indeed... But, of interest to you may be the ESP32 which has a MAC built in, so you can talk 100MBit ethernet.

    • @CodeAsm
      @CodeAsm Před 7 lety

      I see your love for the ESP8266 and its pricetag ;)

  • @DKolha
    @DKolha Před 7 lety

    Isn't there any other microcontroller rather than ESP that is already ethernet based? (which is easy to use like ESP)?

    • @CNLohr
      @CNLohr  Před 7 lety +1

      Not really, and even less that would include wifi!

  • @markingle8980
    @markingle8980 Před 8 lety

    This is exactly what I have been looking for! I have an idea to capture utility usage (power and water) and transporting the data to the utility companies as a service. To pull this off I need to connect the ESP to the Ethernet port on the ONT devices that are typically mounted to the side of homes by communication companies.....I will pull the code and see if I can get it to compile. Fingers crossed!!!

    • @CNLohr
      @CNLohr  Před 8 lety +1

      If you need help, feel free to open issues over at github.

  • @seyyedamirhossein7778
    @seyyedamirhossein7778 Před 4 lety

    hi , can it do jobs like wifi connecting when we connect it to router?

  • @jesuishalil
    @jesuishalil Před 8 lety

    I'm impressed, what is that little blue red terminal you use for your feedback?

  • @sto2779
    @sto2779 Před 2 lety

    can you make a wired lan router using this?

    • @CNLohr
      @CNLohr  Před 2 lety +1

      You could! I didn't but you absolutely can!

    • @sto2779
      @sto2779 Před 2 lety

      @@CNLohr How can you make one? Is it possible to make a video about it some day as a guide? Thanks.

  • @mradaChris
    @mradaChris Před 8 lety +2

    I found this interesting but the unfocusing and jumpy video was really getting on my nerves. I am looking for a device like this that can eventually control external relays in coordination with my HVAC thermostat (Basically controlling the operation of my HVAC).

    • @CNLohr
      @CNLohr  Před 8 lety

      This totally can. It gives 3.3v output signals that can go directly into logic-level mosfets for high current applications.

    • @mradaChris
      @mradaChris Před 8 lety +1

      I am learning electronics so I'll have to research what mosfets are. In my app, I am working with 24VAC power and the relays are 5VDC activated. Just don't know how this wireless device interjects the signal to the relay. Am I missing something? Maybe that header I see in blue has at least 3 pins I can use as GPIO?
      This looks alot different that what I have seen on ebay... www.ebay.com/itm/321970765761

    • @CNLohr
      @CNLohr  Před 8 lety

      Aah, those are the ESP-01 modules... the ones I use are ESP-12-F modules now. The outputs cannot drive relays directly, but with the help of a mosfet, you'll be set!

    • @CNLohr
      @CNLohr  Před 8 lety

      P.s. Yes, several GPIOs are available on the ESP-12-F's

    • @mradaChris
      @mradaChris Před 8 lety

      I checked one out and now I can see where a header can be added to give you access to a GPIO. The older model was frying my brain. Still don't know enough about electronics and mosfets but I can take your word on it.

  • @chbrules
    @chbrules Před 8 lety +1

    Who's the guy with the Oculus in the background?

    • @CNLohr
      @CNLohr  Před 8 lety +1

      +chbrules Adam - he's in some of my other youtube videos.

    • @CNLohr
      @CNLohr  Před 8 lety +1

      I think just playing with it.

  • @Regular6782
    @Regular6782 Před 8 lety

    You sir, are a God.

  • @gelisob
    @gelisob Před 7 lety

    What about usin the last hack solution with MQTT protocol and QoS = 1 to ignore the packetloss? :)

    • @CNLohr
      @CNLohr  Před 7 lety

      I have just never found a use for MQTT, it is just another layer! UDP is where it's at!

  • @kprodoorieukhiencuacuon5583

    can it be used with Blynk?

  • @Konecny_M
    @Konecny_M Před 8 lety

    What HMD is wearing the collegue in the background?

    • @BHBalast
      @BHBalast Před 8 lety

      +Martin Konečný It looks like Oculus CV1, but I'm not sure about this.

  • @papaman1037
    @papaman1037 Před 6 lety +1

    Just excellent.

    • @papaman1037
      @papaman1037 Před 6 lety +1

      You may call it Jank, I call it fun. I especially love the minimalist extension at the end of the video.

  • @timonix2
    @timonix2 Před 8 lety +6

    soo.. is this real?

    • @CNLohr
      @CNLohr  Před 8 lety +13

      +Tim Jadeglans Yes, the ESP can talk 10BASE-T Ethernet. The fools is that it does not have a controller. It talks ethernet using software.

    • @DaniloMajhenic
      @DaniloMajhenic Před 7 lety

      CNLohr put this in the desription of the video.

  • @DerSolinski
    @DerSolinski Před 8 lety

    lol.... btw you have a node mcu there.... would it be wise to fetch i2s direct from the esp? I want to use your ws2812 driver stuff :-D

    • @CNLohr
      @CNLohr  Před 8 lety

      +Tim Solinski (MrFaul) You basically are fetching it right from the ESP when you hook into the RX pin.

    • @DerSolinski
      @DerSolinski Před 8 lety

      That is my intention :-) build a massiv ceiling lamp with ws2812 stripes and was to lazy to build a controller for it so it is sitting for about 2 - 3 years in a corner now xD time to finish it... one question those two bin files on git hub are those functional builds for flashing it?

    • @CNLohr
      @CNLohr  Před 8 lety

      Yep! They accept packets via UDP port 7777 I believe.

    • @DerSolinski
      @DerSolinski Před 8 lety

      cool
      And thx for it and colorchord

    • @CNLohr
      @CNLohr  Před 8 lety

      I have my sights set on colorchord next! :)

  • @LandscapeInMotion
    @LandscapeInMotion Před 6 lety

    Nice! Is it possible to add an RJ45 connector to a sonoff device? So you can control it via Ethernet not wireless.

    • @CNLohr
      @CNLohr  Před 6 lety

      though impractical, and probably janky, the answer is technically yes.

    • @LandscapeInMotion
      @LandscapeInMotion Před 6 lety

      CNLohr great! Can you point me to a resource that has done it?

    • @CNLohr
      @CNLohr  Před 6 lety +1

      Only the resources I have available here and on the github link in description. No one else is crazy enough to do much with it.

  • @ncr7922
    @ncr7922 Před 7 lety

    5:09: I paused this video and start to picking up my phone.

  • @igrewold
    @igrewold Před 8 lety +1

    so how fast is this? 1Kbps?

    • @CNLohr
      @CNLohr  Před 8 lety

      Much faster. I think I was getting ~150 kBps when first working with it. Probably could go much faster than that!

    • @igrewold
      @igrewold Před 8 lety

      thanx so it is as fast as 802.11n

    • @CNLohr
      @CNLohr  Před 8 lety

      no! no! Much much slower!

    • @igrewold
      @igrewold Před 8 lety +1

      CNLohr
      ok just noticed you said K, I though M ;D

    • @popeyeelmarino6555
      @popeyeelmarino6555 Před 5 lety

      hahah 1Kbps yeah yeah! (sarcasm)

  • @arslanqayyum8389
    @arslanqayyum8389 Před 6 lety

    can we use ESP8266 as a wifi router through this technique ?

    • @CNLohr
      @CNLohr  Před 6 lety +1

      theoretically, but it would be awful!

    • @arslanqayyum8389
      @arslanqayyum8389 Před 6 lety

      but why ?
      is it speed ?
      complexity ?
      r anything else

    • @CNLohr
      @CNLohr  Před 6 lety

      The ethernet on this system is janky. It won't work over really long runs and might not work to all switches. That and I don't think there's an easy way of telling the wifi subsystem that this device is the default gateway and to use it as such.

  • @localbroadcast
    @localbroadcast Před 8 lety

    i want it to respond to my ridiculous package...

  • @Crux161
    @Crux161 Před 6 lety +2

    Great project but.... no tripod?

  • @rajatheking5
    @rajatheking5 Před 6 lety

    Really irritating with unstable zooming of camera

  • @_XoR_
    @_XoR_ Před 7 lety

    It just works!

  • @slowbro2539
    @slowbro2539 Před 7 lety

    What about a Bluetooth interface?

    • @CNLohr
      @CNLohr  Před 7 lety +1

      The ESP32's got one!

    • @slowbro2539
      @slowbro2539 Před 7 lety

      Acknowledged, but the ESP-07S is cheaper (that $5 price difference matters for some, myself included), more widely available, FCC-approved (are any ESP32 boards approved? I know the chip is...), and has an external antenna port. So how about a Bluetooth interface? :-D I've asked in the forum, no response yet.

  • @haydenc2742
    @haydenc2742 Před 7 lety +1

    Raw Packet interception + wireshark or aircrack-ng or other packet analyzers = hmmmmmmm
    But it is a April 1 release...so...hmmmmm

    • @CNLohr
      @CNLohr  Před 7 lety +1

      If this is too much work for you, you can get raw 802.11 packets from just about any wifi USB dongle, too. Look up "monitor mode"

  • @leozendo3500
    @leozendo3500 Před 7 lety

    I fell like you are turning into a computer

  • @umloginqualquer
    @umloginqualquer Před 8 lety

    Wow. Just wow.

  • @fedyfausto
    @fedyfausto Před 3 lety

    Wait wait wait, so actually that is possible to make a “bridge” Ethernet - lowpan lowpan - Ethernet :D

    • @CNLohr
      @CNLohr  Před 3 lety

      Sure, but it would be really hard to use.

  • @nictamer
    @nictamer Před 8 lety

    April 1st?

    • @CNLohr
      @CNLohr  Před 8 lety +2

      +d0c13dff943c5b67f411732304b6f46f The original title was "Ethernet driver found in the ESP8266" Which was the april fools joke.

  • @brandonpillay9025
    @brandonpillay9025 Před 5 lety

    Thanks!

  • @shodanxx
    @shodanxx Před 8 lety

    So what about starting by cannibalizing a 2$ ebay ENC28J60 ethernet module, would that reduce the jank factor or would it just break your code ?
    Also can I program my doo-dad in the arduino ide and like, just #include you code when I need to send random ethernet packets ? or do I need to use IDE you used during development ?

    • @CNLohr
      @CNLohr  Před 8 lety +1

      No. An ENC28J60 is WORSE than this! ENC28J60's ARE JUST AWFUL. NO ONE should be using them. The enc424j600 is at least reasonable, but it makes me sick that people think that a 28j60 is a legitimate chip to do anything with.

    • @Anvilshock
      @Anvilshock Před 8 lety

      Wow, did someone hack your account to post this kind of hate speech? ... If not: Since they are described as rather popular on hackaday, and even mentioned in your very own espthernet article on there, would you perhaps mind elaborating on your rant a bit more objectively? Thanks.

    • @CNLohr
      @CNLohr  Před 8 lety

      There's so many things wrong with the enc28j60, such limited space, lacking on the memory indexing modes, can't handle half-duplex correctly. I really don't understand why it became the standard when a chip that mostly works is available, the 424j600

    • @shodanxx
      @shodanxx Před 8 lety

      Probably because it is slightly cheaper (like the guide) ! Also compared with I2S Ethernet emulation, surely you jest that the enc28j60 is worse ? At least it has a PHY !

    • @CNLohr
      @CNLohr  Před 8 lety

      This thing totes works with a line driver. That counts, right?

  • @DmitriDonRU
    @DmitriDonRU Před 8 lety

    amazing! :)

  • @onedegreespot
    @onedegreespot Před 5 lety

    Wicked!

  • @will11m
    @will11m Před 8 lety +1

    1
    ------- th of a
    1200 second???

    • @will11m
      @will11m Před 8 lety +2

      +will11m This is fake! At 6:57 you can see some of the Perl code that actually does the work.

  • @GhettoRanger01
    @GhettoRanger01 Před 5 lety

    What the fuck do you actually use the damn thing for????

  • @eriklaken1025
    @eriklaken1025 Před 6 lety

    Wauw!

  • @himanilsharma2147
    @himanilsharma2147 Před 5 lety

    Hi whatever you were doing and explaining is interesting and out of my level 😀😂🤣🤣 but I want to know one thing can we make a normal usb printer to a wifi printer with this small powerful beast 'ESP8266'? and if yes then how? might be your next video on this would be a million views video! 😱😱

  • @xTR123x
    @xTR123x Před 6 lety