No connection to webrepl

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
Mentro
Posts: 2
Joined: Sat Oct 21, 2017 10:35 am

No connection to webrepl

Post by Mentro » Sat Oct 21, 2017 1:01 pm

Hi,

the last couple of days I try to connect to webrepl using different esp8266 12e (my esp looks like the picture at goo.gl/8Chrd2) and different pc's.

At the beginning I flashed the esp using the following command:

- - - - -
sudo esptool.py --chip esp8266 --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect 0 /home/mentro/Extra/esp8266-20170823-v1.9.2.bin -fm dio
...
esptool.py v2.1
Connecting........_____.
Chip is ESP8266
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0240
Compressed 601136 bytes to 392067...
Wrote 601136 bytes (392067 compressed) at 0x00000000 in 8.8 seconds (effective 544.0 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting...
- - - - -

After a reset I am able to see the following:

- - - - -
>>> s$dܞ|�l�|�$�b|���p�{�#�#�p~�o�lNo���cp�l{l{lp�n��$bN�|�$��c�|�o�l��$`�oN�$N{���N�l p�o�s�����co�|$c��No��l �n$�$`or���o��l `�n��B�ol���on��dp�o�{�ܜ����BN�|��B��oN�$�l �2on�s$n{�ےn���${��N���$`�$��|��2srn#���$�c�l#�ܜ�"�bd`ll������rn#���ld��B�B�ܜ�"c��l{l�dܞ����rn#���l��"�B�ܜ�#�db$����o�|2s��o|�$$ld`��{�l�l�$`��r�l�l�l �o�$���$l {l��sd��#��b�bbr�r��n�oN�l���l��l��l$��$����sl�n���#ll�rp���b$�brlrlr�o�����Nܟ��b��l�l��������lrl��lN�pr$�l������#4 ets_task(40100164, 3, 3fff837c, 4)
OSError: [Errno 2] ENOENT

MicroPython v1.9.2-8-gbf8f45cf on 2017-08-23; ESP module with ESP8266
Type "help()" for more information.
>>>
- - - - -

Afterwards I imported webrepl:

- - - - -
>>> import webrepl_setup
WebREPL daemon auto-start status: disabled

Would you like to (E)nable or (D)isable it running on boot?
(Empty line to quit)
> E
Would you like to change WebREPL password? (y/n) y
New password: Panadon
Confirm password: Panadon
Changes will be activated after reboot
Would you like to reboot now? (y/n) y
>>>
ets Jan 8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 31220, room 16
tail 4
chksum 0xf1
load 0x3ffe8000, len 1088, room 4
tail 12
chksum 0x53
ho 0 tail 12 room 4
load 0x3ffe8440, len 3248, room 12
tail 4
chksum 0x56
csum 0x56
�l������rn#����l�c��b䌜���db�#$`ll������{ob��$d��b�#�ܜ�cb��lrl�l�����rrn#���l��B�b䌜��B�$#l����N�r��o|�ll$l ��r�$�$�l ��r�$�l�l`��r�$���ll sl��{$���b��b�bbr�ۄc�p~�oo�l��l�l��ld��$����{l�o���"$$��c���#l�brlrdr�N�����oܟ��c���$�$������l��lr$��lo�pr$�$ܟ|���#4 ets_task(40100164, 3, 3fff837c, 4)
OSError: [Errno 2] ENOENT

MicroPython v1.9.2-8-gbf8f45cf on 2017-08-23; ESP module with ESP8266
Type "help()" for more information.
>>>
- - - - -

Then, I connected to the ESP-8266 AP using the "micropythoN" password. I started the webrepl webpage but I am not able to connect to the esp8266 via webinterface. I am able to ping the device but a telnet to 192.168.4.1 at tcp port 8266 looks like that there is no service behind that port.

Maybe I did something wrong when I flashed the esp8266 ?
I also used the flash mode dout instead the dio mode but the result is the same ?

Does anyone an idea, how it is possible to connect to the esp8266 via webrepl.

BR Mentro

Mentro
Posts: 2
Joined: Sat Oct 21, 2017 10:35 am

Re: No connection to webrepl

Post by Mentro » Mon Oct 23, 2017 8:24 pm

Hi again,

could anyone confirm that the command I used to flash the ESP8266 is correct (especially the flash mode command). This would be the first step to narrow down the issue.

BR Mentro

Post Reply