Using Wired Ethernet on the ESP8266

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ม.ค. 2025

ความคิดเห็น • 135

  • @Romenadan
    @Romenadan 8 ปีที่แล้ว +84

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

    • @devrim-oguz
      @devrim-oguz 6 ปีที่แล้ว +1

      Omg I laughed so hard xD

  • @serverguy2
    @serverguy2 7 ปีที่แล้ว +9

    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!

    • @CNLohr
      @CNLohr  7 ปีที่แล้ว

      haha yeah!

  • @isfiyiywafibc6qaiiiiiiiiii570
    @isfiyiywafibc6qaiiiiiiiiii570 8 ปีที่แล้ว +27

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

  • @robertpoynton9923
    @robertpoynton9923 6 ปีที่แล้ว +3

    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?

  • @iamjimgroth
    @iamjimgroth 8 ปีที่แล้ว +12

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

  • @ivanfangio
    @ivanfangio 3 ปีที่แล้ว +2

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

  • @samykamkar
    @samykamkar 8 ปีที่แล้ว +24

    Sweet!

    • @jonathanemery9557
      @jonathanemery9557 7 ปีที่แล้ว

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

  • @snouthusky3554
    @snouthusky3554 5 ปีที่แล้ว +3

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

  • @Anvilshock
    @Anvilshock 8 ปีที่แล้ว +7

    Please glue the focus shut ...

  • @naoki95957
    @naoki95957 5 ปีที่แล้ว +2

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

  • @TheTinkerDad
    @TheTinkerDad 5 ปีที่แล้ว

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

  • @dieselgeezer18
    @dieselgeezer18 ปีที่แล้ว

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

  • @TheDrivenMind
    @TheDrivenMind 8 ปีที่แล้ว +2

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

    • @CNLohr
      @CNLohr  8 ปีที่แล้ว +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 6 ปีที่แล้ว

      @@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.

  • @DreitTheDarkDragon
    @DreitTheDarkDragon 8 ปีที่แล้ว +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  8 ปีที่แล้ว

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

    • @DreitTheDarkDragon
      @DreitTheDarkDragon 8 ปีที่แล้ว

      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  8 ปีที่แล้ว

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

  • @ThePurza
    @ThePurza 6 ปีที่แล้ว

    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  6 ปีที่แล้ว

      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 6 ปีที่แล้ว

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

    • @CNLohr
      @CNLohr  6 ปีที่แล้ว +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."

  • @k1ngjulien_
    @k1ngjulien_ 8 ปีที่แล้ว +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  8 ปีที่แล้ว +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.

  • @CodeAsm
    @CodeAsm 8 ปีที่แล้ว

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

    • @CNLohr
      @CNLohr  8 ปีที่แล้ว +1

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

    • @CodeAsm
      @CodeAsm 8 ปีที่แล้ว

      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  8 ปีที่แล้ว +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 8 ปีที่แล้ว

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

  • @kprodoorieukhiencuacuon5583
    @kprodoorieukhiencuacuon5583 3 ปีที่แล้ว

    can it be used with Blynk?

  • @gelisob
    @gelisob 8 ปีที่แล้ว

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

    • @CNLohr
      @CNLohr  8 ปีที่แล้ว

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

  • @sto2779
    @sto2779 2 ปีที่แล้ว

    can you make a wired lan router using this?

    • @CNLohr
      @CNLohr  2 ปีที่แล้ว +1

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

    • @sto2779
      @sto2779 2 ปีที่แล้ว

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

  • @ElsuhdElectronics
    @ElsuhdElectronics 5 ปีที่แล้ว

    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 ?

  • @seyyedamirhossein7778
    @seyyedamirhossein7778 4 ปีที่แล้ว

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

    • @CNLohr
      @CNLohr  3 ปีที่แล้ว

      Not well!

  • @DKolha
    @DKolha 7 ปีที่แล้ว

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

    • @CNLohr
      @CNLohr  7 ปีที่แล้ว +1

      Not really, and even less that would include wifi!

  • @bdot02
    @bdot02 8 ปีที่แล้ว

    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  8 ปีที่แล้ว

      +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 8 ปีที่แล้ว

      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  8 ปีที่แล้ว

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

    • @bdot02
      @bdot02 8 ปีที่แล้ว

      +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  8 ปีที่แล้ว

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

  • @justDIY
    @justDIY 8 ปีที่แล้ว

    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  8 ปีที่แล้ว +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 2 ปีที่แล้ว

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

    • @CNLohr
      @CNLohr  2 ปีที่แล้ว

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

  • @LandscapeInMotion
    @LandscapeInMotion 6 ปีที่แล้ว

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

    • @CNLohr
      @CNLohr  6 ปีที่แล้ว

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

    • @LandscapeInMotion
      @LandscapeInMotion 6 ปีที่แล้ว

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

    • @CNLohr
      @CNLohr  6 ปีที่แล้ว +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.

  • @IaEmon
    @IaEmon 4 ปีที่แล้ว +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  4 ปีที่แล้ว

      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.

  • @dave_dennis
    @dave_dennis 7 ปีที่แล้ว

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

  • @skopyhoTechChannel
    @skopyhoTechChannel 8 ปีที่แล้ว

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

  • @DerSolinski
    @DerSolinski 8 ปีที่แล้ว

    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  8 ปีที่แล้ว

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

    • @DerSolinski
      @DerSolinski 8 ปีที่แล้ว

      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  8 ปีที่แล้ว

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

    • @DerSolinski
      @DerSolinski 8 ปีที่แล้ว

      cool
      And thx for it and colorchord

    • @CNLohr
      @CNLohr  8 ปีที่แล้ว

      I have my sights set on colorchord next! :)

  • @Konecny_M
    @Konecny_M 8 ปีที่แล้ว

    What HMD is wearing the collegue in the background?

    • @BHBalast
      @BHBalast 8 ปีที่แล้ว

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

  • @jesuishalil
    @jesuishalil 8 ปีที่แล้ว

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

    • @CNLohr
      @CNLohr  8 ปีที่แล้ว

      github: cnping

  • @igrewold
    @igrewold 8 ปีที่แล้ว +1

    so how fast is this? 1Kbps?

    • @CNLohr
      @CNLohr  8 ปีที่แล้ว

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

    • @igrewold
      @igrewold 8 ปีที่แล้ว

      thanx so it is as fast as 802.11n

    • @CNLohr
      @CNLohr  8 ปีที่แล้ว

      no! no! Much much slower!

    • @igrewold
      @igrewold 8 ปีที่แล้ว +1

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

    • @popeyeelmarino6555
      @popeyeelmarino6555 5 ปีที่แล้ว

      hahah 1Kbps yeah yeah! (sarcasm)

  • @mradaChris
    @mradaChris 8 ปีที่แล้ว +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  8 ปีที่แล้ว

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

    • @mradaChris
      @mradaChris 8 ปีที่แล้ว +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  8 ปีที่แล้ว

      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  8 ปีที่แล้ว

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

    • @mradaChris
      @mradaChris 8 ปีที่แล้ว

      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.

  • @arslanqayyum8389
    @arslanqayyum8389 6 ปีที่แล้ว

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

    • @CNLohr
      @CNLohr  6 ปีที่แล้ว +1

      theoretically, but it would be awful!

    • @arslanqayyum8389
      @arslanqayyum8389 6 ปีที่แล้ว

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

    • @CNLohr
      @CNLohr  6 ปีที่แล้ว

      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.

  • @ncr7922
    @ncr7922 7 ปีที่แล้ว

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

  • @markingle8980
    @markingle8980 8 ปีที่แล้ว

    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  8 ปีที่แล้ว +1

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

  • @localbroadcast
    @localbroadcast 8 ปีที่แล้ว

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

  • @MarkHopewell
    @MarkHopewell 2 ปีที่แล้ว

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

    • @CNLohr
      @CNLohr  2 ปีที่แล้ว +1

      it is

  • @timonix2
    @timonix2 8 ปีที่แล้ว +6

    soo.. is this real?

    • @CNLohr
      @CNLohr  8 ปีที่แล้ว +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 8 ปีที่แล้ว

      CNLohr put this in the desription of the video.

  • @lemonbirdo1353
    @lemonbirdo1353 3 ปีที่แล้ว

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

    • @CNLohr
      @CNLohr  3 ปีที่แล้ว

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

  • @rajatheking5
    @rajatheking5 6 ปีที่แล้ว

    Really irritating with unstable zooming of camera

  • @slowbro2539
    @slowbro2539 8 ปีที่แล้ว

    What about a Bluetooth interface?

    • @CNLohr
      @CNLohr  8 ปีที่แล้ว +1

      The ESP32's got one!

    • @slowbro2539
      @slowbro2539 8 ปีที่แล้ว

      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.

  • @Regular6782
    @Regular6782 8 ปีที่แล้ว

    You sir, are a God.

  • @Crux161
    @Crux161 7 ปีที่แล้ว +2

    Great project but.... no tripod?

  • @zaidhussain5206
    @zaidhussain5206 8 ปีที่แล้ว

    Thank you so much for sharing this knowledge

  • @haydenc2742
    @haydenc2742 7 ปีที่แล้ว +1

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

    • @CNLohr
      @CNLohr  7 ปีที่แล้ว +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"

  • @nictamer
    @nictamer 8 ปีที่แล้ว

    April 1st?

    • @CNLohr
      @CNLohr  8 ปีที่แล้ว +2

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

  • @papaman1037
    @papaman1037 7 ปีที่แล้ว +1

    Just excellent.

    • @papaman1037
      @papaman1037 7 ปีที่แล้ว +1

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

  • @shodanxx
    @shodanxx 8 ปีที่แล้ว

    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  8 ปีที่แล้ว +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 8 ปีที่แล้ว

      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  8 ปีที่แล้ว

      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 8 ปีที่แล้ว

      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  8 ปีที่แล้ว

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

  • @fedyfausto
    @fedyfausto 4 ปีที่แล้ว

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

    • @CNLohr
      @CNLohr  4 ปีที่แล้ว

      Sure, but it would be really hard to use.

  • @_XoR_
    @_XoR_ 7 ปีที่แล้ว

    It just works!

  • @leozendo3500
    @leozendo3500 7 ปีที่แล้ว

    I fell like you are turning into a computer

  • @will11m
    @will11m 8 ปีที่แล้ว +1

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

    • @will11m
      @will11m 8 ปีที่แล้ว +2

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

  • @umloginqualquer
    @umloginqualquer 8 ปีที่แล้ว

    Wow. Just wow.

  • @brandonpillay9025
    @brandonpillay9025 5 ปีที่แล้ว

    Thanks!

  • @GhettoRanger01
    @GhettoRanger01 6 ปีที่แล้ว

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

  • @DmitriDonRU
    @DmitriDonRU 8 ปีที่แล้ว

    amazing! :)

  • @onedegreespot
    @onedegreespot 6 ปีที่แล้ว

    Wicked!

  • @himanilsharma2147
    @himanilsharma2147 6 ปีที่แล้ว

    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! 😱😱

  • @eriklaken1025
    @eriklaken1025 6 ปีที่แล้ว

    Wauw!

  • @xTR123x
    @xTR123x 7 ปีที่แล้ว