Page 1 of 1

Newbie problem - WebREPL unaccessable

Posted: Fri Oct 11, 2019 6:39 pm
by wecametoconquer
Hello!;
I have purchased ESP32 module (board says its ESP32 DEVKIT V1), its simple ESP32 module with soldered out pins, micro usb and couple of buttons;
First thing I did was erasing its flash with esptool.py, than accoding to this website guide I've downloaded and flashed latest stable firmware available.
Things went smooth, module turned on and I've connected to it with Tera Term.
Next step was is setting up WebREPL. I've followed guide aswell (its for 8266 as far as I understood, but process should be same),
Did import webrepl_setupd, executed it, pressed E, entered simple password and restarted. However, no network appeared, so I did
import network
ap_if = network.WLAN(network.AP_IF)
ap_if.active(True)

access point started with following log:

Code: Select all

W (100946) phy_init: failed to load RF calibration data (0x1102), falling back to full calibration
I (101096) phy: phy_version: 3960, 5211945, Jul 18 2018, 10:40:07, 0, 2
I (101106) wifi: mode : softAP (24:0a:c4:31:f1:21)
And I've instantly found open AP with some sort of ESP32XXXX name, connected to it.
after that I did webrepl.start() which reported me

Code: Select all

WebREPL daemon started on ws://192.168.4.1:8266
Started webrepl in normal mode
However, when trying to access 192.168.4.1:8266 browser hangs for some seconds and then sends ERR_CONNECTION_REFUSED
While terminal shows

Code: Select all

WebREPL connection from: ('192.168.4.2', 51179)
Traceback (most recent call last):
  File "webrepl.py", line 42, in accept_conn
  File "websocket_helper.py", line 34, in server_handshake
OSError: Not a websocket request

WebREPL connection from: ('192.168.4.2', 51180)
I (130726) wifi: station: 38:d4:0b:a0:30:2b leave, AID = 1
I (130726) wifi: n:1 0, o:1 0, ap:1 1, sta:255 255, prof:1
Im sorry if I miss something common, bit new to micropython over esp's

Thanks in advance!

Re: Newbie problem - WebREPL unaccessable

Posted: Fri Oct 11, 2019 6:50 pm
by Roberthh
Did you use on your PC the webrepl script from this place: https://github.com/micropython/webrepl
Or did you simply try top connect in the browser?
Please take notice of the README.md documentation.

Re: Newbie problem - WebREPL unaccessable

Posted: Fri Oct 11, 2019 7:10 pm
by wecametoconquer
Hello Roberthh !
Thanks for the tip, yeah, looks like I've missed this at some point.. Will dig through it now.
I was trying to connect with android phone because my PC has no Wi-Fi.
But I will look for PCI Wifi card, had it somewhere.
Thanks! :)

Re: Newbie problem - WebREPL unaccessable

Posted: Fri Oct 11, 2019 7:31 pm
by Roberthh
I just tried with my android phone, and it does not work. I get a connection, but keypad data is not sent to the device.
An android tablet failed too,

Re: Newbie problem - WebREPL unaccessable

Posted: Fri Oct 11, 2019 7:59 pm
by jomas
For android there is an apk to use WebRepl

https://microcontrollerelectronics.com/ ... n-android/

I tried it and it works.

Re: Newbie problem - WebREPL unaccessable

Posted: Fri Oct 11, 2019 9:12 pm
by Roberthh
Thanks. I'm sure, many people will enjoy it.

Re: Newbie problem - WebREPL unaccessable

Posted: Fri Oct 11, 2019 9:16 pm
by wecametoconquer
Oh, thanks, Ill give app a try tomorrow hopefully.

Yeah, tried to run on phone, didnt work for me aswell