-->
Page 1 of 1

struggling with wifi-modes

PostPosted: Sat Aug 11, 2018 10:43 am
by AugustQ
Hi,

I'm new here and I have a simple question.

My Purpose: I want to use the ESP8266 for a demonstration. I want to show that it is possible to connecdt to the internet using such a cheap device. Speed is not of interest, I only want to show that this is possible.

I need some help here because I was not succesful yet.

What I did already:
I changed the name of the Wifi to “EineKugelEis”, no password. I set the mode to 3.

In my smartphone and my notebook I can see the network with this name and I can connect them both to this network.

Now I want the ESP8266 to connect to the network “GRONAU” and route all queris via “EineKugelEis” to th network “GRONAU”

My network is in the rang 192.168.0.x, the devices connected to the ESP-device have IP-adresses in the range 192.168.4.x.


So here is what I achieved:
Code: Select allAT+GMR

AT version:1.3.0.0(Jul 14 2016 18:54:01)
SDK version:2.0.0(5a875ba)
Farylink Technology Co., Ltd. v1.0.0.2
May 11 2017 22:23:58
OK
AT+RST
..........
AT+CWMODE=3
OK
AT+CWLAP
.......
+CWLAP:(4,"GRONAU",-78,"90:5c:xx:xx:xx:xx",6,8,0)
.....

OK
AT+CWJAP="GRONAU","yyyyyyyyy"
WIFI DISCONNECT
WIFI CONNECTED
WIFI GOT IP

OK
AT+CWLIF
192.168.4.3,1c:4b:xx:xx:xx:xx
192.168.4.2,00:08:xx:xx:xx:xx

OK
AT+CIPAP?
+CIPAP:ip:"192.168.4.1"
+CIPAP:gateway:"192.168.4.1"
+CIPAP:netmask:"255.255.255.0"

OK
AT+CIFSR
+CIFSR:APIP,"192.168.4.1"
+CIFSR:APMAC,"6a:c6:xx:xx:xx:xx"
+CIFSR:STAIP,"192.168.0.184"
+CIFSR:STAMAC,"68:c6:xx:xx:xx:xx"

OK

As you can see communication to the device works. I can see the existing wifi-networks in my area.

On my router I deactivated the MAC-filter.

I do not see the mac-address of the ESP to appear in the list of devices connected to my router.

I can connect my smartphone and my notebook via “EineKugelEis” to the ESP-device.

But I cannot start a ping to any device on my normal network (like: ping 192.168.0.10).

So what is missing here? What did I do wrong?

Re: struggling with wifi-modes

PostPosted: Mon Aug 13, 2018 10:59 am
by AugustQ
I found this piece of software: https://github.com/martin-ger/esp_wifi_repeater

It looks like this is what I am looking for.

Also I downloaded the esptools for flashing the device.

Now it looks like this:
Code: Select allaugust@August-Ryzen:~/Configs/Esp8266/esptool-master$ sudo python /home/august/Configs/Esp8266/esptool-master/esptool.py --port /dev/ttyUSB0 write_flash -fs 4MB -ff 80m -fm dio 0x00000 /home/august/Configs/Esp8266/0x00000.bin 0x10000 /home/august/Configs/Esp8266/0x10000.bin
esptool.py v2.5.1-dev
Serial port /dev/ttyUSB0
Connecting........_____....._____....._____....._____....._____....._____....._____

A fatal error occurred: Failed to connect to Espressif device: Timed out waiting for packet header
august@August-Ryzen:~/Configs/Esp8266/esptool-master$


It repeatedly stops after outputting these number of characters.

Do you have any idea what to do?

Thanks
August

Re: struggling with wifi-modes

PostPosted: Tue Aug 14, 2018 8:47 am
by AugustQ
I got these error messages:
Code: Select allA fatal error occurred: Failed to connect to Espressif device: Timed out waiting for packet header

or

A fatal error occurred: Failed to connect to Espressif device: Invalid head of packet (0x7F)

or

A fatal error occurred: Failed to connect to Espressif device: Invalid head of packet (0x08)


I've used 2 different adapter:
- ch341-uart converter
- cp210x converter

with both adapters I'm unable to flash the device. It always stops at the same point.

Do you have any tips?

August