Это видео недоступно.
Сожалеем об этом.

Using Wired Ethernet on the ESP8266

Поделиться
HTML-код
  • Опубликовано: 31 мар 2016
  • 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

Комментарии • 138

  • @Romenadan
    @Romenadan 8 лет назад +82

    "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 6 лет назад +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!

    • @CNLohr
      @CNLohr  6 лет назад

      haha yeah!

  • @isfiyiywafibc6qaiiiiiiiiii570
    @isfiyiywafibc6qaiiiiiiiiii570 8 лет назад +24

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

  • @iamjimgroth
    @iamjimgroth 8 лет назад +11

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

  • @snouthusky3554
    @snouthusky3554 4 года назад +3

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

  • @samykamkar
    @samykamkar 8 лет назад +24

    Sweet!

    • @jonathanemery9557
      @jonathanemery9557 7 лет назад

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

  • @TheTinkerDad
    @TheTinkerDad 5 лет назад

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

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

  • @robertpoynton9923
    @robertpoynton9923 5 лет назад +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?

  • @Anvilshock
    @Anvilshock 8 лет назад +7

    Please glue the focus shut ...

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

  • @stevemilchuck9241
    @stevemilchuck9241 Год назад

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

    • @CNLohr
      @CNLohr  Год назад

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

  • @skopyhoTechChannel
    @skopyhoTechChannel 7 лет назад

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

  • @dave_dennis
    @dave_dennis 7 лет назад

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

  • @dieselgeezer18
    @dieselgeezer18 11 месяцев назад

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

  • @lemonbirdo1353
    @lemonbirdo1353 3 года назад

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

    • @CNLohr
      @CNLohr  2 года назад

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

  • @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 ?

  • @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 5 лет назад

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

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

  • @Regular6782
    @Regular6782 8 лет назад

    You sir, are a God.

  • @zaidhussain5206
    @zaidhussain5206 7 лет назад

    Thank you so much for sharing this knowledge

  • @ivanfangio
    @ivanfangio 2 года назад +1

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

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

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

  • @jesuishalil
    @jesuishalil 8 лет назад

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

    • @CNLohr
      @CNLohr  8 лет назад

      github: cnping

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

  • @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 7 лет назад

      CNLohr put this in the desription of the video.

  • @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"

  • @papaman1037
    @papaman1037 6 лет назад +1

    Just excellent.

    • @papaman1037
      @papaman1037 6 лет назад +1

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

  • @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!

  • @ncr7922
    @ncr7922 7 лет назад

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

  • @kprodoorieukhiencuacuon5583
    @kprodoorieukhiencuacuon5583 3 года назад

    can it be used with Blynk?

  • @chbrules
    @chbrules 8 лет назад +1

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

    • @CNLohr
      @CNLohr  8 лет назад +1

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

    • @CNLohr
      @CNLohr  8 лет назад +1

      I think just playing with it.

  • @MarkHopewell
    @MarkHopewell Год назад

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

  • @seyyedamirhossein7778
    @seyyedamirhossein7778 3 года назад

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

    • @CNLohr
      @CNLohr  3 года назад

      Not well!

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

  • @gelisob
    @gelisob 7 лет назад

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

    • @CNLohr
      @CNLohr  7 лет назад

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

  • @Crux161
    @Crux161 6 лет назад +2

    Great project but.... no tripod?

  • @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! :)

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

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

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

  • @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)

  • @CodeAsm
    @CodeAsm 7 лет назад

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

    • @CNLohr
      @CNLohr  7 лет назад +1

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

    • @CodeAsm
      @CodeAsm 7 лет назад

      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  7 лет назад +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 7 лет назад

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

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

  • @_XoR_
    @_XoR_ 7 лет назад

    It just works!

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

  • @localbroadcast
    @localbroadcast 8 лет назад

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

  • @fedyfausto
    @fedyfausto 3 года назад

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

    • @CNLohr
      @CNLohr  3 года назад

      Sure, but it would be really hard to use.

  • @rajatheking5
    @rajatheking5 6 лет назад

    Really irritating with unstable zooming of camera

  • @slowbro2539
    @slowbro2539 7 лет назад

    What about a Bluetooth interface?

    • @CNLohr
      @CNLohr  7 лет назад +1

      The ESP32's got one!

    • @slowbro2539
      @slowbro2539 7 лет назад

      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.

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

  • @umloginqualquer
    @umloginqualquer 8 лет назад

    Wow. Just wow.

  • @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"

  • @leozendo3500
    @leozendo3500 7 лет назад

    I fell like you are turning into a computer

  • @brandonpillay9025
    @brandonpillay9025 5 лет назад

    Thanks!

  • @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?

  • @onedegreespot
    @onedegreespot 5 лет назад

    Wicked!

  • @DmitriDonRU
    @DmitriDonRU 8 лет назад

    amazing! :)

  • @himanilsharma2147
    @himanilsharma2147 5 лет назад

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

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

  • @eriklaken1025
    @eriklaken1025 6 лет назад

    Wauw!

  • @xTR123x
    @xTR123x 6 лет назад

  • @GhettoRanger01
    @GhettoRanger01 5 лет назад

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