No video

ESP8266 WiFi Repeater (NAT Router)

  Рет қаралды 140,897

Martin Ger

Martin Ger

7 жыл бұрын

Find the sources at github.com/mar... .
A similar project for the ESP32 can be found here: github.com/mar...

Пікірлер: 550
@youradvertisehere
@youradvertisehere 7 жыл бұрын
Starkes Projekt. Habe mir derweil einige angesehen, die so ziemlich das selbe machen sollten, das deine scheint mir aber by far the most adult, das bestentwickelte zu sein. Glückwunsch und Danke für deine Arbeit!
@franktek
@franktek 4 жыл бұрын
I just wanted to say thank you. This works great and I hope you keep developing for the platform.
@Mailmartinviljoen
@Mailmartinviljoen 6 жыл бұрын
I built this. But i built it into a light socket and encaptulated the whole ordeal with resin. Now i have wifi extender that looks like a light bulb and it saved me from drilling holes and routing cable all over the place. Im actually watching this video over this wifi extender :-) works well, on your git page you said i can handle 5mbs I actually got 7.8 which is where im throtled at. It tends to decrease speed and then in bursts go faster on average i get around 4mbs. This has been running for a week now. Thanks again this is very usefull!!!! And thanks also for assisting on your git page. Initially i couldnt get it programmed due to the dio setting on the flasher that was set to something else (you may want to warn people)
@offtherails2010
@offtherails2010 6 жыл бұрын
WOW RESIN ENCAPSULATION !!! ooohhhh please please please would you be able to link a photo of what this looks like when encapsulated in Resin ?? im a HUGE FAN of Resin encapsulated projects,, please please please can i see a photo or quick video :)) GREAT JOB ! Also Martin Ger; YOU'RE AWESOME !!!!! Instructables instructable is fantastic - GENIUS !
@gmag11
@gmag11 7 жыл бұрын
Great idea! It's amazing what this device can do. The more I know it the more I find to learn about it.
@lexb
@lexb 7 жыл бұрын
Perfect idea, works fine with my esp-01. All fine except show command. Speed test results are 8.58Mbps down, 8.70 Mbps up.
@sabatimmm
@sabatimmm 7 жыл бұрын
Hello martin and thanks for the FW, i have tested in a esp-07 work perfect. Good work man.
@mnmufid
@mnmufid 4 жыл бұрын
Good for mash connection between sensors on wide area with only one AP. Don't expect more from $4 device. It is not for streaming/watching video relay. Thanks for the great Video.
@thisoldjeepcj5
@thisoldjeepcj5 2 жыл бұрын
Thank you for sharing your work. This seems similar to the GE Harris Mercury/ Inet radios I used to work on. Amazing capabilities in such a small device.
@xelionizer
@xelionizer 6 жыл бұрын
Thanks, Dankesehr, Tak! Brilliant. These small ESP-devices are really cool;) Nice of you to make and provide your source for all of us to use..! Very much appreciated!!
@M7XOM
@M7XOM 6 жыл бұрын
Hi Martin. Just wanted to say thank you very much for this project. I'm using 4 NodeMCU devices running your code and I'm getting wifi coverage all over my house and (finally) in my garage. I used the binaries, it was very easy to set up once I used the esp_init_data_default 'fix'. Thank you!
@martinger327
@martinger327 6 жыл бұрын
Hi Kevin, happy to read that! :-)
@soupie187
@soupie187 7 жыл бұрын
Holy shit it took forever to setup. This is the correct tutorial video to be watching using maker sagas instructions, all the other ones were bogus. Thanks thumbs up.
@martinmilner2019
@martinmilner2019 6 жыл бұрын
Installed and and just have to say WOW. What a nice bit of analysis, programming, and documentation.
@matthewkleinmann
@matthewkleinmann 6 жыл бұрын
Thank you for publishing this. It is nice to see all the positive comments. You did a great job on the readme file too. Every time I thought I had a question I re-read that file and found the answer.
@eventhorizon8014
@eventhorizon8014 4 жыл бұрын
4:01 "In a normal nutcase" lol (Yeah i know, its NAT case) ---- Really cool project, that esp8266 is totally awesome ! Well done :)
@wtwrva
@wtwrva 7 жыл бұрын
I had no idea this module was so powerful! Thanks!
@gokulraj2829
@gokulraj2829 6 жыл бұрын
Nice work Martin, Thanks for sharing. Wifi Repeater works great for me.
@moadbekkal3121
@moadbekkal3121 4 жыл бұрын
hi Gokul Raj, do u know how he got at the minute 9:35 this external IP-add 192.168.178.67 ? and whats the context between this and the CMD portmap add TCP ... ? i dont get this external IP-add from the CMD "show stats". Thank u alot.
@svizztech
@svizztech 3 жыл бұрын
Hier wegen dem CT Artikel ;) danke.
@jeffreyosborne6747
@jeffreyosborne6747 6 жыл бұрын
As a newcomer to the ESP from Arduino land, this looks insane. If I can fix some WiFi holes in the house and around garden with this app I will be very pleased. Can't wait to start with my NodeMCU. If this was available in the Arduino IDE environment it would go viral I'm sure.
@hypercube33
@hypercube33 4 жыл бұрын
It cant since its not running on that platform. Its running on lower level binaries.
@chanhien4000
@chanhien4000 7 жыл бұрын
Works really well. My iphone 6's wifi range is too bad that I need to use this. First time trying this and feels really good.
@palashproduction4723
@palashproduction4723 Жыл бұрын
Nat router on esp32 Is usable alternative to commercial products. I just finished my portable router. Thank you, your work Is great.
@xerix32
@xerix32 Жыл бұрын
Hi @palashproduction4723, I used an ESP32 too, but speed rate is 6 Mbit/s maximux, with a low rate of 1-2.. Your experience?
@palashproduction4723
@palashproduction4723 Жыл бұрын
Hello @xerix32, my results are a bit worse than yours. I never got to 6 Mbps, 3-4 was my maximum, with same rates as you had. My network infrastructure is not the best.
@alfaspeedy4838
@alfaspeedy4838 4 жыл бұрын
Tolles Projekt, mit Ihrer Hilfe ist es mir gelungen einen entfernten Solarregler Epever mit eBox-WIFI-o1 in mein Heimnetz einzubinden, vielen Dank.
@antaris42
@antaris42 6 жыл бұрын
Very nice job ! And it’s really a great tool for IoT 👍 Thanks Martin
@martinbirrell57
@martinbirrell57 4 жыл бұрын
Great work. Just what I need for my farm to monitor my pump and other things. I have a few Wemos D1 Mini's that I am going to test with the mesh option. Have already flashe 1 and it works well. Thank you
@MushFarmer
@MushFarmer 6 жыл бұрын
Excellent work, I can use this for many situations on the farm
@moadbekkal3121
@moadbekkal3121 4 жыл бұрын
hi MushFarmer, do u know how he got at the minute 9:35 this external IP-add 192.168.178.67 ? and whats the context between this and the CMD portmap add TCP ... ? i dont get this external IP-add from the CMD "show stats". Thank u alot.
@Baklazan72
@Baklazan72 3 жыл бұрын
Hello Martin, fantastic work, thanks a lot for your contribution to arduino/esp community! I tried it on ESP8266 as well as on ESP32 and it works great. I assume there is no possibility of port forwarding, or switching the router to bridge mode, so the "AP" clients would be accessible from the "STA" network, am I right? I wanted to extend the wifi range to my outdoor cameras but then I realized I am not able to access their RTSP stream port needed by NVR. Any chance of idea how to access it on "AP" side?
@coling777
@coling777 6 жыл бұрын
Thank you for sharing. This works really well.
@martinger327
@martinger327 7 жыл бұрын
Up to now, I heard of no problems on any ESP12 based HW. Should run with the standard firmware version. I only had a problem with some newer ESP01 (after booting only random output on the serial. blue LED on) - there the firmware-1.5.4 works. Please check, what happens on the serial output (at 115200) just after resetting the flashed modul. Verify, that your setup can sucessfully flash other firmware files (e.g. AT-firmware).
@braselectron
@braselectron 5 жыл бұрын
Dear Martin, thank you for sharing. Excellent!
@AlexeyAinger
@AlexeyAinger 6 жыл бұрын
speed of reception and impact how much?
@Justin-lj1ny
@Justin-lj1ny 2 жыл бұрын
Hi Martin, I've seen your work with the esp32 as a nat router. How would you configure it to work with a W2AP enterprise network? The native interface on the github build doesn't seem to give an option for a user ID.
@martinger327
@martinger327 2 жыл бұрын
No, this is not yet implemented for the ESP32.
@Justin-lj1ny
@Justin-lj1ny 2 жыл бұрын
@@martinger327 I think I have managed to connect with the W2AP network and can download html code after pinning a website. I'm a bit suck trying to set up the routing. Do you have any advice for figuring out how to route the STA to the AP?
@mrgeerders
@mrgeerders 5 жыл бұрын
Do you have another video on flashing the ESP with the code to start someone from scratch? I'm looking to build my own for my camper that I will have to configure with each move, but don't know where to start, I bought an ESP with a programmer... And that's as far as I got
@martinger327
@martinger327 5 жыл бұрын
If you have a board with USB connector flashing is easy. Description can be found here: github.com/martin-ger/esp_wifi_repeater#building-and-flashing .
@vtech8716
@vtech8716 6 жыл бұрын
Thanks from Russia, very good project.
@NullByteWHT
@NullByteWHT 5 жыл бұрын
This is super cool
@shadman1911
@shadman1911 7 жыл бұрын
Amazing stuff! I send you this message through one of this routers. I use nodemcu board, mine is inside a DDS tape case with an external antenna running from old cell phone battery
@evgen-y2k
@evgen-y2k 6 жыл бұрын
Martin, thank you for great work!
@berniewolf6740
@berniewolf6740 5 жыл бұрын
Nice project and nicely explained. Thanks.
@franktek
@franktek 4 жыл бұрын
I just wanted to add some findings that may help with using this for outdoor/mesh/range extender. I was getting inconsistent internet speed results and it was driving me crazy. I really wanted and needed this to work. I am trying to ensure emergency network coverage for my remote property(using Viasat). for E911 and cameras etc. I have a note 9 and all is good on normal WiFi, barely 1mbps on esp82xx. It turns out, if you enable airplane mode, then turn WiFi back on it seems to work quite well! I am now reaching 5-6 Mbps consistently. I hope this helps someone else in the same shoes. Would love to see the ESP32 in mesh config! and a larger mesh node count. like 100 node. :-) Setup as follows, still tweaking but close. esp8266-12F External antenna Mod Tp4056 Charging Module single 18650 2500mah 2.5W 5V/500mAh Solar Panel
@tddstudiotv
@tddstudiotv 4 жыл бұрын
Hey Martin, I'm having a bit of trouble while configuring NodeMCU when the original SSID has spaces. Can you help me?
@dirkkm3548
@dirkkm3548 4 жыл бұрын
Just use %20 instead of a blank/space. For example: My%20SSID. It is easier from the console port.
@tddstudiotv
@tddstudiotv 4 жыл бұрын
@@dirkkm3548 thanks you, I will try it
@dergamer2345
@dergamer2345 2 жыл бұрын
Lol bei mir geht alles bis auf das speichern des passwort oder auch des namen LEL
@lindnerlars81
@lindnerlars81 4 жыл бұрын
Hi Martin, super Projekt, vielen Dank :) Ich habe vor kurzem deinen "esp32_nat_router" auf einem NodeMCU ESP32 Wifi - Modul installiert und die Download- und Upload-Geschwindigkeit getestet und festgestellt, dass sie wesentlich langsamer als, als mit meinem Standard Home Router..... Kann man die Geschwindigkeit des "esp32_nat_router" noch erhoehen?
@martinger327
@martinger327 4 жыл бұрын
Ich wüste nicht wie. Es ist auf jeden Fall langsamer als direkt, weil ja alles 2x geschickt werden muss. Aber je nach Empfangsstärke kommt man schon auf mehr als 10 MBit/s.
@kitecattestecke2303
@kitecattestecke2303 4 жыл бұрын
Auf 160Mhz gestellt? ;-)
@lindnerlars81
@lindnerlars81 4 жыл бұрын
Wie mache ich das??
@arielcasali2583
@arielcasali2583 5 жыл бұрын
Hello Martin, your project is Genial! Congratulations!! Is there a way to increment the number of max -clients?
@martinger327
@martinger327 5 жыл бұрын
Sorry, no. This is a limit in the closed source driver from Espressif.
@capiberra4118
@capiberra4118 3 жыл бұрын
Very cool! I'll be giving this a try, THANKS! Are there any significant disadvantages / advantages to use of ESP32 version over ESP8266 version?
@martinger327
@martinger327 3 жыл бұрын
The ESP32 version has a significantly better performance, when used for higher bandwidth clients. The ESP8266 version has much more features, including port mapping, ACLs, monitoring, MQTT management, GPIO support, and AutoMesh (and the ESP8266 is slightly cheaper). If you are only looking for a basic range extender, the ESP32 is the better choice.
@avinashkachare2482
@avinashkachare2482 4 жыл бұрын
Danke für das tolle Projekt. Kann esp8266 im Repeater-Modus als Tor Access Point verwendet werden? so dass der gesamte Verkehr durch diesen Zugangspunkt geht, wird anon sein. als hätten wir torghost unter Linux.
@amanmittal4232
@amanmittal4232 4 жыл бұрын
The nodemcu board is working fine but the internet speed is too slow?? How to solve this problem??
@4x4inGreece
@4x4inGreece 4 жыл бұрын
Obviously the speed depends on the CPU speed of the board. So I believe that with Arduino boards cannot be faster. Give $50-70 and buy a Mikrotik Router that is a firewall / router / repeater / switch / and_more board that can be configured as you wish with settings, scripts, schedules, etc
@MrFredericPlante
@MrFredericPlante 7 жыл бұрын
It could be interesting to be able to "repeat" back and foward from the Serial also. This way we could integrate a GMS/GPRS modem into the network, since they became so affordable these days.. I know the max pace for those modem are low like 115200, but, when the goal is sending/getting and small data packet, it is still just perfect. In this case, the ESP become the internet router.
@martinger327
@martinger327 7 жыл бұрын
Actually, the code is prepared for that and i already did a similar thing. Look into my repository github.com/martin-ger/esp_slip_router . All one has to do, is to write a netif implementation for the modem interface. Used one for the simple SLIP but probably a GPRS-model has a more sophisticated protocol. Do you know a spec there?
@MrFredericPlante
@MrFredericPlante 7 жыл бұрын
I use this guy: www.aliexpress.com/item/Smallest-SIM800L-GPRS-GSM-Module-MicroSIM-Card-Core-BOard-Quad-band-TTL-Serial-Port-NEW/32535199738.html Has for datasheet this one was suttable for me: cristiansteib.github.io/Sim800l/info/SIM800+Series_AT+Command+Manual_V1.09.pdf
@martinger327
@martinger327 7 жыл бұрын
Thanks - this looks cool. Will order one and look into it...
@markbowhill
@markbowhill 4 ай бұрын
Ausome work!!! Im testing this option. Can i use one ESP8266 to work like NAT Router and like Relay controler (mqtt on the cloud) at the same time? The NAT Router is runing very well but the mqtt client on the same NAT ROUTER ESP8266 no connect.
@nomnom914
@nomnom914 2 ай бұрын
is there a guide on how to flash and program this thing? I found the github but cant find any code, I need it since i got two nodemcus and wanted to extend my wifi for my cctvs
@MrAyeah
@MrAyeah 6 жыл бұрын
thanks @martin Ger very helpful
@ashutoshmohanty
@ashutoshmohanty 4 жыл бұрын
Great work Martin.
7 жыл бұрын
Really great project! Sorry if it has been already asked (I haven't seen it), how about the performance (eg. original speedtest results vs NAT router results)?
@martinger327
@martinger327 7 жыл бұрын
There are some speedtest from other users below in the comments: 5-8 Mbps have been measured.
@ankitpatil223
@ankitpatil223 7 жыл бұрын
superb work,hands off!!!!!!!!!!!!!!!
@veereshy5444
@veereshy5444 5 жыл бұрын
Hi Martin . Thanks a bunch .!.. Cool setup.. I will try the mqtt client part in my projects.. Just wanted to check with you on the QOS support of mqtt client. Do the mqtt client interface support QOS (0 and 1)? Thanks...
@martinger327
@martinger327 5 жыл бұрын
Currently it use QOS 0. The lib supports 0, 1, and 2. Small adaptions in the code will enable that. Will try to enable that from the CLI in the next version.
@darioercole
@darioercole 7 жыл бұрын
Hi Martin, really great idea.
@martinger327
@martinger327 7 жыл бұрын
The board in the video at 8:35 is a cheap (
@dirkkm3548
@dirkkm3548 4 жыл бұрын
Hey Martin, tolles Projekt, läuft super! Jetzt hätte ich gene noch ein OLED Display integriert. Öffnest du dein Projekt für eine mögliche Platformio o.ä. Ebene irgendwann?
@martinger327
@martinger327 4 жыл бұрын
Danke. Das Projekt ist ja Open Source. Das Problem ist, dass ich keine gute Lib für die OLED-Ansteuerung für das SDK kenne. Es gibt NAT inzwischen ja auch für Arduino, so kann man es leichter mit einer Anzeige kombinieren, nur gibt es dann eben nicht unmittelbar alle Zusatzfunktionen des esp_wifi_repeaters jenseits des einfachen NAT.
@dirkkm3548
@dirkkm3548 4 жыл бұрын
@@martinger327 Danke das du dir die Zeit nimmst alle Fragen zu beantworten. Jetzt habe ich mal versucht das ganze auf eine VS-Code Ebene umzuheben. Leider kommen beim Kompilieren mit -make- einige Fehler hoch die überwiegend MQTT verursacht. Kannst du mir die "Basics" nennen wie du dieses Projekt kompilierst (mit welchem Tool)??
@martinger327
@martinger327 4 жыл бұрын
@@dirkkm3548 Ich nutze das esp_open_sdk mit dem entsprechenden Makefile, also "make", dann "make flash". Und wenn du in "user_config.h" erstmal "#define MQTT_CLIENT 1" auskommentierst, sollte zumindest die Abhängigkeit von MQTT raus sein.
@dirkkm3548
@dirkkm3548 4 жыл бұрын
Hallo Martin, nach langem tüddeln hab ich es endlich hinbekommen. Wenn ich dein Projekt mit Make übersetze passt die Checksumme nicht mehr, nach dem Flashen funktioniert der D1-mini pro, zeigt jedoch keine Weboberfläche. Wenn ich deine orig. Files flashe funktioniert er einwandfrei. OK soweit so gut. Jetzt nochmals zum Thema MQTT: Anbindung Broker läuft, bekomme auch alle Informationen angezeigt. Wenn ich jetzt einen GPIO setzen möchte habe ich das Verständnisproblem mit dem publish Befehl. sollte die onboard LED aktivieren. Funzt aber nicht. show mqtt = MQTT command topic: Aussen/ESProuter/command. Könntest du nochmals dein Wissen kundtun? Vielen DANK!!!!!
@ziggyspaz
@ziggyspaz 3 жыл бұрын
Just came across this, thanks 🙏
@aparaajithac4033
@aparaajithac4033 5 жыл бұрын
I have connected esp (esp with enc28j60 I/f) to home router via WiFi . then I connected enc28j60 to first-pc via Ethernet. Then if I connect second-pc to esp AP directly .... I can ping my first-pc from second-pc, I can ping home-router gw, I can ping google.com also from second-pc. But my problem is when I connect my second-pc to my home-router via WiFi ... I cannot ping first-pc. I tried port forwarding using portmap on esp but the port is being filtered out by the esp. Nmap utility reports the port as filtered. What other config do I need to make.
@zachreyhelmberger894
@zachreyhelmberger894 3 жыл бұрын
Wonderful project!!! Thank you for posting this clear and concise video!! Is there a tutorial on how to actually program the ESP? I am an Arduino IDE Noob and when I downloaded the zip file, I could not find a .ino file anywhere. Is there a tutorial on how to use/compile/upload all of the files in the zip? I am rather clueless on how to proceed. I am on a Linux machine, so do I have to install some special programs on my laptop in order to make this go on my ESP-12 dev board?
@martinger327
@martinger327 3 жыл бұрын
Please look here for instructions: github.com/martin-ger/esp_wifi_repeater#building-and-flashing This is not an Arduino project.
@EEAbhiramShajee
@EEAbhiramShajee Ай бұрын
How can i increase the range , if soldered an external antenna with it , does it solve the problem ?
@johanponin1360
@johanponin1360 7 жыл бұрын
Very very, very very very nice. Thanks
@wei48221
@wei48221 5 жыл бұрын
Awesome project.. Thanks for sharing..
@rj8875
@rj8875 5 жыл бұрын
Thank you very much for your work.
@ohaiyo1040
@ohaiyo1040 4 ай бұрын
yo, i tried to use esp32 flash tools but when i tried flashing, it says no xmc flash detected. how to fix? any help would be appreciated
@ankitpatil223
@ankitpatil223 7 жыл бұрын
hello tried to flash bin's inside firmware folder,it flashes successfully and after resetting it the blue led flashes rapidly and wifi not appearing,terminal outputting junk continuously,pls help
@EmilePolka
@EmilePolka Жыл бұрын
is it possible to do transparent bridge with the repeater? doing NAT is kinda nasty.
@martinger327
@martinger327 Жыл бұрын
No, only NAT possible.
@huseyint
@huseyint 7 жыл бұрын
Thanks for the video. Can you please share your schematic (fritzing?) of the circuit where you are using a battery.
@martinger327
@martinger327 7 жыл бұрын
Don't have a schematic tool, but it is just a standard 18650 li-ion battery with a switch and SI-diode in line to protect the ESP from more than 3,7V. Later I added a TP4056 over-/undercharging protection circuit with micro USB connector for re-charging in place.
@ankeetgugale9894
@ankeetgugale9894 7 жыл бұрын
Hello Martin, I am working with esp8266 where i am receiving data through "esp8266" from a server using putty. The problem I am facing is that when I am sending data to esp8266 through server I am not receiving all the data in the string. for eg:- if I am trying to send "helloworld" through server, I am only getting "hello" in my string. my received string should contain "helloworld" the full data, but that is not happening. Can anyone help why this is happening? This is the process I've followed with esp8266 communicating via UART AT AT+CWMODE=1 AT+CIPMUX=1 AT+CWJAP="USSID","PASSWORD" AT+CIFSR (HERE I AM GETTING IP address of esp8266) AT+CIPSERVER=1,PORT NUMBER I am connecting to server using IP address of esp8266, Thank you in advance.
@martinger327
@martinger327 7 жыл бұрын
This questions refers to the original AT-firmware that is actually replaced by my software. I have no further experiences with this firmware - sorry. Think, you shout send this to a general ESP8266 board.
@aparaajithac4033
@aparaajithac4033 5 жыл бұрын
Hi Martin , amazing work. I have set up en28j60 and from first-PC connected to en28j60 (as IP 192.168.5.2) and the esp connected to my home router as STA IP 192.168.1.5 I cannot ping/reach my home router gateway 192.168.1.1 from first-pc thru en28j60. From a second-pc I connect to esp with telnet to 192.168.1.5 7777 and from within I can ping IP 192.168.5.2, IP 192.168.1.1, and even ping google.com. Do I need to set up static routes for the Ethernet interface?. Can you help me with a sample route map that I can add to esp to route Ethernet to home router gateway/network. I am stuck here for a while
@markludwig5805
@markludwig5805 6 жыл бұрын
Great job…Love it. I have some static IP addresses on my network and would like to exclude a range of IP addresses. What is the command via telnet to do this? Or maybe there is a command to have Nat router assign an IP based on a MAC address?
@martinger327
@martinger327 6 жыл бұрын
You can save the current DHCP leases with "save dhcp". This will preserve IP assingments after reboot.
@moadbekkal3121
@moadbekkal3121 4 жыл бұрын
hi Martin, Thank u so much for all this Infos, i still have a question. how did u get at the minute 9:35 this external IP-add 192.168.178.67 ? and whats the context between this and the CMD portmap add TCP ... ? i dont get this external IP-add from the CMD "show stats". Thank u alot.
@martinger327
@martinger327 4 жыл бұрын
The external IP is usually given by the uplink AP via DHCP. It can be different after each connect. You don't use it explicitly in the portmap command. Here you specify the external port and the internal IP/port. Then you can reach the internal IP/port by connecting to the external IP/port. This external IP is the listed IP again.
@moadbekkal3121
@moadbekkal3121 4 жыл бұрын
@@martinger327 also this external IP is in my case is the STA IP of the ESP when i type "show stats" CMD? Then i should put this IP and Port 7777 in theTelnet and open a Monitor on port 8888! The NetCat is not necessary, can i put the STA IP and the Port 8888 dictly in the Wireshark? and the PC where the Wireshark is installed musst not be connected to MyAp! Thank u so much indeed.
@ankitpatil223
@ankitpatil223 7 жыл бұрын
**SOLVED** 1.5.4 WORKS THANKS ANYWAYS!!!
@euritiumauwolf
@euritiumauwolf 7 жыл бұрын
Ankit Patil i have the same problem the version that you say. Is in windows?
@guidoramirez8457
@guidoramirez8457 3 жыл бұрын
Hi Martin, it's a great project. I have a question... It's possible using the esp32 as a NAT router and only allow some ports to be use? I mean, if a user wants to communicate to PORT 80 and I don't allow that port, the station receives nothing. How can i do that?
@martinger327
@martinger327 3 жыл бұрын
The ESP8266 version allows for port filtering, the ESP32 version not yet.
@guidoramirez8457
@guidoramirez8457 3 жыл бұрын
@@martinger327 Thank you so much for your answer. I'm new implementing Wifi to an esp project so I will be glad if you can guide me with in which part of lwip I should study to implement port filtering in esp32.
@faizquraishi6129
@faizquraishi6129 4 жыл бұрын
Flashing was done on the development board and how did esp 01 started working as repeater. Can you please make a more detailed video explaining all steps related to esp 8266 01 and everything else. Thanks.
@martinger327
@martinger327 4 жыл бұрын
It is the same procedure as with every binary on the ESP-01. Just the same adresse as the ESP-12 development board. See e.g. here: medium.com/@aallan/getting-started-with-the-esp8266-270e30feb4d1
@nielsdaemen
@nielsdaemen 7 жыл бұрын
Works great but why can't i change the wifi channel?
@martinger327
@martinger327 7 жыл бұрын
The WiFi channel is determined by the Uplink AP. In StationAP mode the softAP must have the same channel as the station.
@xiv3r
@xiv3r Жыл бұрын
nice work
@markludwig5805
@markludwig5805 6 жыл бұрын
I am using openHAB2, home automation software, running on the Pi in my RV and Boat. So the NAT Router works great repeating the RV Parks/Marinas WIFI, or my mobile hotspot, since there is no wired internet in such mobile applications. Here’s my question…I’m running into the max number of connections to the NAT Router. I’ve read that 4 or 5 is the max, your documents indicate 8 is the max. I use the NAT Router as my WIFI repeater/AP with the Pi and several home brew esp8266’s, some sonoff/tasmota power outlets, Echo Dot, smart phone, tablet, and laptop, etc all on same network all communicating via MQTT to the Pi/MQTT broker. What might be your solution to get all devices on the network??? Thanks for this great project.
@martinger327
@martinger327 6 жыл бұрын
The limitation is built into the binary blobs of the ESPs WiFi-Driver. One solution could be to cascade two repeaters and to connect especially the low-bandwidth clients to the second one.
@markludwig5805
@markludwig5805 6 жыл бұрын
Cascading two repeaters works, I was surprised how easy it was. 1st repeater IP 192.168.0.1/ssid = First, and 2nd repeater 192.168.1.1/ssid second. Thanks so much for your effort. Auf Wiedersehn.
@boyiscola
@boyiscola 7 жыл бұрын
Is there a limit to how many soft-APs you can chain? I plan to setup about 50 outdoor sensors/relay controllers (irrigation valves and moisture/pressure sensors) using Wemos D1 Mini in a line configuration (one device connected to each soft-AP) with 30-100m between units. Will it work to use 50 soft-APs?
@martinger327
@martinger327 7 жыл бұрын
From the protocol side this should be no problem, bandwidth also probably not. Individual config of 50 sensors should be a pain in the a... . I guess the main problems would be error propagation and debugging. If each hop has a success probability of 99,9% (which is somewhat reasonable at least for a single packet) it will be only about 95% for the whole line. Experiences from wireless multi-hop networks show, that something around 5-10 hops is a reasonable diameter. Things could be better if you have a known fixed topology. I would start with 10 in a row. In fall semester I will make some experiments with multi-hop ESP networks. I am curious about the results...
@boyiscola
@boyiscola 7 жыл бұрын
Thanks Martin. I currently only have 3 D1 minis and one D1 pro so I cannot test full scale yet. I agree about the config being cumbersome but for a one-off project it will be ok. To reduce the number of hops I will try to use D1 pros with external antennas (slightly longer range) and have stars of D1 minis around these.
@nserme
@nserme 3 жыл бұрын
Huge fan or the routers, a bit stuck with the installation of the pre built binaries on the more expansive nat router. I am no docker user and the pre built binaries seem to do nothing when flashed to the esp... am I missing a button press or something? I'm using the esp download tool and a nodemcu esp 32
@martinger327
@martinger327 3 жыл бұрын
It only works on an ESP8266. For ESP32 look here: github.com/martin-ger/esp32_nat_router
@deenadayalan4040
@deenadayalan4040 2 жыл бұрын
Dear martin, I could connect internet through single esp8266.But I couldn't connect internet through 3 nodes with auto mesh configuration.is there any procedure to get internet?
@wolves2.075
@wolves2.075 2 жыл бұрын
Hi I flashed it using arduino uno, but I can't find any ap of esp 01
@domingoscastelhano1702
@domingoscastelhano1702 3 жыл бұрын
Hi Martin,congratulations for this great job.I built an extender based on a esp32 ,I see on the serial monitor that there ia a station connected ,DHCP assigns an IP to the station (a nodemcu tasmotized) but I can't acess to that IP. Any idea what can be the problem? Regards
@martinger327
@martinger327 3 жыл бұрын
If you want to access the connected NodeMCU from the upstream network, (e.g. via HTTP) you will need a port-forward. In the ESP32 version this has to be added in the source code. However, the STAs can connect from their side e.g. to an upstream MQTT broker. This is normal for a NATed network.
@domingoscastelhano1702
@domingoscastelhano1702 3 жыл бұрын
@@martinger327 Thank you;the extender is needed because the place of the nodemcu as poor wifi
@capannolimaurizio
@capannolimaurizio 4 жыл бұрын
Thankyou Martin, it works perfectly! Can you suggest a tested model with better antenna or with antenna connector onboard?
@eclecticlife
@eclecticlife 4 жыл бұрын
The D1 Mini Pro has a connection for an external antenna.
@capannolimaurizio
@capannolimaurizio 4 жыл бұрын
@@eclecticlife Thank you John!
@eclecticlife
@eclecticlife 4 жыл бұрын
@@capannolimaurizio YW I forgot to mention that you need to desolder a resistor when connecting the external antenna to the D1 Mini Pro. Make sure to do a search, there is plenty information on how to do it. Thanks
@francim123
@francim123 3 жыл бұрын
How do I 'reset factory'? Great software. I configured STA & AP settings via the browser using WPA2. When it came time to log in to the new wifi network, the connection has always been refused. How do I 'reset factory' to wipe out wifi configs? Maybe I mistyped the password or it is too long (16 char). I cannot access via telnet. telnet 192.168.4.1 777, always results in 'Operation timed out', whether I connect the ESP8266 to my computer or to a power source. I cannot enter the 'reset factory' command via telnet. I have tried to flash the 'blink' example code, then flash wifi repeater code again, but the wifi settings are always preserved. The Wifi network never resets back to MyAP. Any suggestions?
@martinger327
@martinger327 3 жыл бұрын
'reset factory' from the serial console sets all params back to initial values.
@francim123
@francim123 3 жыл бұрын
@Martin Ger How? As I wrote, I cannot access via telnet. The following results in an 'Operation timed out' when one end of the cable is connected to the computer and the other end is connected to the ESP8266: telnet 192.168.4.1 7777. What command do I use when the wifi network is enforcing a password I do not have? I am new to Arduino. How do I establish a connection to a serial console, that will listen to the command 'reset factory'? Do I use esptool.py or or an AT command? As I mentioned, I tried the telnet command. Thanks.
@martinger327
@martinger327 3 жыл бұрын
@@francim123 Use the serial connection. If this fails, the sw isn't installed correctly at all.
@AnakJaringan
@AnakJaringan 2 жыл бұрын
Hi Martin, that's an awesome project! I have a question, what about the web interface? if I edit it how can I make it like your project?
@AnakJaringan
@AnakJaringan 2 жыл бұрын
How do I make the firmware?
@martinger327
@martinger327 2 жыл бұрын
@@AnakJaringan github.com/martin-ger/esp_wifi_repeater#building-and-flashing
@carstenjones847
@carstenjones847 2 жыл бұрын
Hi Martin Erstmal super Arbeit die du geleistet hast. Wäre es möglich diesen auch als wirklichen Repeater zu nutzen? Also das er nicht als NAT fungiert? Er soll im gleichen Netzsegment laufen wie die Clients die direkt am Router hängen. Möchte mein Netz erweitern um IOT Geräte zu steuern und da ist es ja nötig das alle im gleichen Netz sind. Ich danke dir schon mal im Voraus
@martinger327
@martinger327 2 жыл бұрын
Ich habe das mit dem Treiber nicht geschafft, direkt auf Schicht 2 weiterzuleiten. Vielleicht habe ich mich zu dumm angestellt, aber ich habe das bis jetzt auch noch nirgendwo anders gesehen.
@carstenjones847
@carstenjones847 2 жыл бұрын
@@martinger327 ich leider auch nicht. Nun eventuell geht das auch nicht da die Leistung nicht reicht.
@SergiyGryb
@SergiyGryb 5 жыл бұрын
UPDATE: I've upgraded 1MB flash memory chip on ESP-07 module with the following 4MB chip: got.by/3mbvyj and it works flawlessly now. So, looks like 1MB flash memory is not enough... Dear Martin. Great Project! Thank you! Need your help. Flashed bin files to NodeMCU (4MB) - works perfectly. Flashed to ESP-07 module (with Antenna connector, 1MB) - seems it does not start, MyAP does not appear (blue LED is off all the time). Managed to catch the following at COM port at boot (speed of 74880kb/s): load 0x40100000, len 1328, room 16 tail 0 chksum 0xef load 0x00000000, len 0, room 8 tail 0 chksum 0xef csum 0xef csum err ets_main.c Appreciate your response!
@martinger327
@martinger327 5 жыл бұрын
Did you try DIO mode for flashing? 1 MB should be no problem.
@ArunJayapal
@ArunJayapal 4 жыл бұрын
Great work 👍 Appreciated the fact that I could vnc into my machine (connected to upstream AP) from my phone (connected to a downstream Esp AP). Are there any wired solutions that can complement this repeater? Like esp ↔️ wired ↔️ esp
@martinger327
@martinger327 4 жыл бұрын
The difficulty is, that there is no port with an equivalent speed compared to wfi. UART is too slow, SPI might be a chance, but I don't have a driver for SPI Master/Slave both on ESP and I don't think it will work for a longer distance.
@dianed4938
@dianed4938 4 жыл бұрын
I tried it with a Node MCU and got terrible up and down speeds as well as 30-50% packets loss. Will give it try with an ESP 01 when I get the chance. Surely there must be something wrong on my side?
@martinger327
@martinger327 4 жыл бұрын
That's a bad performance, but it heavily depends on signal strength. What kind of perf test do you use?
@pedrongTinapay2023
@pedrongTinapay2023 5 жыл бұрын
The program works up until the part where we write the SSID and the password but after pressing the "set" button, the ESP8266 restarts but does not turn back on again. followed the steps in the github link. tried changing the power source, but still the same. any comments on this? :)
@martinger327
@martinger327 5 жыл бұрын
Latest update should fix this.
@hansmaier3689
@hansmaier3689 5 жыл бұрын
Hi Martin, nice project, in my case it is working as far as there is only one client connected. With two clients connected almost no throughput?!?
@christianfrericks5531
@christianfrericks5531 5 жыл бұрын
Fixed with newest firmware (0x20000 and 0x82000)
@militantpotato8671
@militantpotato8671 6 жыл бұрын
Node mcu keeps restarting. In mode 4. Please help. What should I do?
@ItalicSix
@ItalicSix 7 жыл бұрын
Great tutorial. I'm posting this from down the end of the garden thanks to you. I seem to be dropping out when I turn on my Bluetooth speaker and especially when I turn on Bluetooth on my iPad. Any ideas?
@martinger327
@martinger327 7 жыл бұрын
Guess, you are facing the general interference problem of WiFi (in the 2,4 GHz band) and Bluetooth (e.g. blog.commander.com/how-to-prevent-wifi-and-bluetooth-interference/ ). Especially if you have lower signal power at wider ranges and more traffic (the repeater of course re-sends any packet) this might occur. You might try to set the WiFi mode to 1 (b-only). This is an option I added lately. If you router allows b-only clients to connect, this can give you some more dB signal strength and a more robust enconding (but less speed).
@ItalicSix
@ItalicSix 7 жыл бұрын
Thanks for the reply :)
@albertocelano5402
@albertocelano5402 4 жыл бұрын
Hi Martin, thanks for the video. I've only one question, I'm not able to ping some device connected to the AP from pc connected to the home router..instead i can do the opposite, could you suggest something? thanks
@martinger327
@martinger327 4 жыл бұрын
This is because of the NAT. It is the normal behavior. You can reach devices via TCP or UDP using Port forwards, but you cannot forward ICMP
@albertocelano5402
@albertocelano5402 4 жыл бұрын
@@martinger327 thanks for quick answer, so I can use mqtt to send/receive message between two device, first in home network and second in ap network, right ?
@martinger327
@martinger327 4 жыл бұрын
@@albertocelano5402 If the broker is in the home network it will work direktly. If it is in the ESP's network you will need a port forward TCP 1883 to the brokers IP and 1883. From the home network you then have to connect MQTT to the ESP's address. It will be forwarded to the real broker.
@farmtech2
@farmtech2 7 жыл бұрын
hi, what speed can it do up/down as wifi range extender ?
@martinger327
@martinger327 7 жыл бұрын
Thanks to Ribeiro Santos, who did a speed test at "www.esp8266.com/viewtopic.php?f=11&t=13002". He measured: "Using speedtest.net, 2 meters far the router, it shows Down: 6.03Mbps and Upload: 4.83Mbps."
@farmtech2
@farmtech2 7 жыл бұрын
Yes almost as i got 6.8mbs up & 5.87mbs down
@dwallace
@dwallace 7 жыл бұрын
Here are some performance testing results I got using 6x ESP8266 (WeMos), each subsequent ESP used the previous unit as its access point... essentially to test any degradation of throughput if using multiple ESP units extending each other. Testing each unit by connecting a Linux laptop and measuring the internet speed test (Ookla) and simple Ping, assessing both complex and simple traffic. Interesting to note that while the first test slowly degraded in performance with each hop, the simple traffic test using ping degraded very little (if at all). Home PC with direct internet connection Download 66.6 Mbps, Upload 28 Mbps 1 Hop (AP1 as Entry Point) (1x ESP8266) -Download 9.2 Mbps, Upload 8.6 Mbps -Ping bbc.com 16031ms, 5% packet loss 2 Hop (AP2 as Entry Point)(2x ESP8266) -Download 5.5 Mbps, Upload 5.6 Mbps -Ping bbc.com 16033ms, 5% packet loss 3 Hop (AP3 as Entry Point)(3x ESP8266) -Download 3.7 Mbps, Upload 4.1 Mbps -Ping bbc.com 16020ms, 5% packet loss 4 Hop (AP4 as Entry Point)(4x ESP8266) -Download 1.7 Mbps (odd result!!), Upload 3.4 Mbps -Ping bbc.com 16012ms, 5% packet loss 5 Hop (AP5 as Entry Point)(5x ESP8266) -Download 2.1 Mbps, Upload 2.2 Mbps -Ping bbc.com 16006ms, 5% packet loss 6 Hop (AP6 as Entry Point)(6x ESP8266) -Download 2.1 Mbps, Upload 2.2 Mbps -Ping bbc.com 16002ms, 5% packet loss Great work Martin!!!
@wernerlingenhel1688
@wernerlingenhel1688 3 жыл бұрын
Hallo Martin. Erstmal Gratulation zu deiner Arbeit! Ich hätte aber noch eine Frage: Kann es sein, dass beim Setzen des 'password' eine Längenbegrenzung gilt. Ich habe einige Sonderzeichen und gebe diese mit 'http style hex encoding' ein. Es werden aber prinzipiell nur 66 Zeichen gesamt akzeptiert - ansonsten kommt der Fehler 'invalid command'. Kannst Du mir vielleicht weiterhelfen? Das Problem taucht bei allen Eingabemethoden auf. liebe Grüsse Werner
@martinger327
@martinger327 3 жыл бұрын
Eine längere Eingabezeile in github.com/martin-ger/esp_wifi_repeater/blob/master/user/user_config.h#L22 sollte das lösen.
@wernerlingenhel1688
@wernerlingenhel1688 3 жыл бұрын
@@martinger327 Vielen Dank für die rasche Antwort - werde es morgen versuchen und berichten ...
@wernerlingenhel1688
@wernerlingenhel1688 3 жыл бұрын
HalloMartin. Neue Firmware funktioniert nun einwandfrei mit dem langen Schutzwort. Vielen Dank für dein Bemühen!
@soupie187
@soupie187 7 жыл бұрын
Have purchased a 2nd esp 12e after getting the first one working last month. Have flashed it trying with both bin files. The esp AP doesn't show up. Whats going on? Do you think it is a bunk chip? the logo looks like pacman with 'Hysiry' written on it. edit: turns out this mcu worked with flashing using nodemcu-flasher - also had to power cycle before and after flashing. The other very similar looking mcu did not.
@avon9798
@avon9798 7 жыл бұрын
try using the other group firmware mine too dose not work with 0x10000 firmware i mean 0x40000
@avon9798
@avon9798 7 жыл бұрын
set [ap_mac|sta_mac] xx:xx:xx:xx:xx:xx: work on yours?
@tmdrake
@tmdrake 6 жыл бұрын
I wonder if ESP8266 support RIP instead of using NAT routing...much better as nat stacking can cause issues in NAT tables.
@martinger327
@martinger327 6 жыл бұрын
Currently working on that...
@hypercube33
@hypercube33 4 жыл бұрын
@@martinger327 Any update? I love this project
@martinger327
@martinger327 4 жыл бұрын
@@hypercube33 No further progress on that, sorry.
@mikeefpv
@mikeefpv 2 жыл бұрын
thank you very much for your work. it is impossible to make one subnet on different mesh levels? routing and portmap takes a long time to set up every time. if disable nat/dhcp on softAP and bridge two interfaces
@martinger327
@martinger327 2 жыл бұрын
Due to NAT this is not possible
@mikeefpv
@mikeefpv 2 жыл бұрын
@@martinger327 it is also strange that the esp32_nat_router project works in esp32 dev kit v4 but wifirepeater project not
@martinger327
@martinger327 2 жыл бұрын
@@mikeefpv esp_wifi-repeater is an ESP8266 project (and the older one), thus it needs a completly different devel environment.
@mikeefpv
@mikeefpv 2 жыл бұрын
@@martinger327 understood. the mesh project has great functionality that would be very useful on hardware where external antennas are available
@moadbekkal3121
@moadbekkal3121 4 жыл бұрын
Hallo Martin, Danke nochmal fuer das Video. Bis zum oeffnen von Port durch "monitor on 8888" habe ich es geschaft, aber fehlt mir noch den Schritt "netcat [external_ip_of_the_repeater] [portno] | sudo wireshark -k -S -i -", die nicht bei mir in Win7 funktioniert wollte, was soll ich stattdessen schreiben? also senden von external IP + Port in die Standard Input of wireshark.
@martinger327
@martinger327 4 жыл бұрын
Ehrlich gesagt, weiss ich nicht, wie und ob das auf Windows geht. Was bei mir einfach klappt ist eine Linux VM auf Windows.
@moadbekkal3121
@moadbekkal3121 4 жыл бұрын
@@martinger327 okay ich probiere es auf Linux. VielenDank :)
@gruneranfanger6947
@gruneranfanger6947 6 жыл бұрын
Hallo Martin, ich arbeite unter WIN7 mit einem ESP8266 NODEMCU mit einem 12E CHip. Den Chip habe ich mit den beiden Dateien unter firmware geflasht , was auch einwandfrei funktoniert hat. Nach powerOn blinkt die blaue LED für ca. 3 Sek. schnell und erlischt anschließend. Es gelingt mir nicht, das Modul mit dem Serialmonitor anzusprechen. Es erscheint auch MyAP nicht. Was kann die Ursache sein??
@gruneranfanger6947
@gruneranfanger6947 6 жыл бұрын
Hat sich erledigt, nachdem ich mir die Kommentare durchgelesen hatte. Die Ursache war in der Tat ESP_ini... Sorry
@MauricioVidalAstudillo
@MauricioVidalAstudillo 7 жыл бұрын
I would like to implement a wireless network that allows me to collect UDP messages (30 bytes each every 30 seconds) of several sensors placed inside 14 closed and contiguous rooms whose total area is about 60x15 square meters. I haven't able to get a reliable connection as the wireless signal of the sensors is very weak outside their rooms. Even with two conventional Access Points we have dead areas inside the rooms. My planned solution is to place on the roof of each room 1 ESP loaded with your esp_wifi_repeater firmware. Then every ESP will advertise an unique SSID and will act as the router of the sensors inside its room. And all the ESPs will be connected to the main network via a single Access Point that allow one listening device to collect the broadcasted UDPs messages on that network. So far my concern is related to the "congestion" of the wireless network. Considering that there will be about 57 radios operating at the same time (14 ESP + 3 sensors per room + 1 AP), could this result in a saturated network for that "small" area? Could it be a problem if all the ESP use the same channel, or does the firmware as a way to select a less congested channel for its AP side? If this "structure" does not seems reasonable, I would appreciate any lights that lead me on the proper direction. Thank you!
@martinger327
@martinger327 7 жыл бұрын
Congestion will not be an issue - 30 Bytes every 30 seconds is about nothing and a client that doesn't send a message doesn't consume any bandwidth. An AP, i.e. each ESP, does send a Beacon every 100 ms- also not quite a lot. Different channels is not possible as the repeater always works on the channel of the uplink AP. The only limitation I see is, that each ESP cannot manage more than 8 clients, but your design is pobably below this limit. If all the 14 ESP can connect directly to the one central AP I assume, that one ESP per room is not absolutly required, mayby one ESP for 2 neighbouring rooms might work as well.
@MauricioVidalAstudillo
@MauricioVidalAstudillo 7 жыл бұрын
Thank you Martin!
The Greenwich Meridian is in the wrong place
25:07
Stand-up Maths
Рет қаралды 723 М.
Hacking a weird TV censoring device
20:59
Ben Eater
Рет қаралды 3 МЛН
Challenge matching picture with Alfredo Larin family! 😁
00:21
BigSchool
Рет қаралды 15 МЛН
IQ Level: 10000
00:10
Younes Zarou
Рет қаралды 13 МЛН
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 34 МЛН
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 36 МЛН
Using Wired Ethernet on the ESP8266
8:11
CNLohr
Рет қаралды 104 М.
Arduino To ESP32: How to Get Started!
9:26
Robonyx
Рет қаралды 287 М.
#292 Wi-Fi Antennas with Gain and ESP32 Long-Range Mode (part2)
12:00
Andreas Spiess
Рет қаралды 90 М.
ESP32 WiFi Repeater | Range Extender
7:51
SYNC BYTE
Рет қаралды 26 М.
Why Did I Pick Wi-Fi over ESPNow?
4:53
MrDIY
Рет қаралды 19 М.
ESP8266 Wifi Range Extender Repeater $4 Low Cost
8:19
Viral Science - The home of Creativity
Рет қаралды 48 М.
Mechanical  Switches are Obsolete?! Switch to a Latch Circuit! EB#53
10:36
Challenge matching picture with Alfredo Larin family! 😁
00:21
BigSchool
Рет қаралды 15 МЛН