ESP32 boards

Moderators: BertB, Voyager, Stuntteam, Martinus, LisaM

Message
Author
Jeff
Normal user
Posts: 26
Joined: 18 Nov 2016, 18:35

Re: ESP32 boards

#111 Post by Jeff » 15 Jan 2018, 22:55

Hello, thank you for your development :D
I try the upyeasy for amusing on my Wemos ESP32 lolin oled and that work :mrgreen:
If i use a AP wifi open without key, it's ok, on the other hand if i tried an other AP with WPA_PSK, i lost the connexion and i must reset the esp32, an idea :?
I ested the command upyeasy.setwifi with more combination, but error

Code: Select all

>>> upyeasy.setwifi ('IOT','xxxxxxxxxx','','',80)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "upyeasy/__init__.py", line 29, in setwifi
  File "upyeasy/utils.py", line 46, in setwifi
  File "filedb.py", line 73, in update
OSError: [Errno 2] ENOENT
I tested a switch with domoticz, doesn't work, it was fast test.
I you want, i can test a oled plugin :?

waspie
Normal user
Posts: 27
Joined: 09 Feb 2017, 19:35

Re: ESP32 boards

#112 Post by waspie » 16 Jan 2018, 14:30

when attempting to flash using :
esptool.py --port COM9 write_flash --baud 460800 --compress 0x1000 upyeasy_v54_20180113_test_esp32_2048.bin

i get:
esptool write_flash: error: argument <address> <filename>: Must be pairs of an address and the binary filename to write there

any tips?

scratch that, removed the "baud" statement and it flashed. leaving this here in case it's helpful to someone else

BertB
Normal user
Posts: 836
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#113 Post by BertB » 28 Jan 2018, 16:17

I hate it when stuff does not work reliably.
I think I followed all the steps in the books.
I have Python36 and pip and ampy and pyserial.
When I start pyton i get the >>> signs
when I enter import serial, again I get >>>

But when I enter esptool.py --port COM6 erase_flash in the shell, I get

Traceback (most recent call last):
File "D:\Program Files\Python\Python36\esptool.py", line 34, in <module>
import serial
ImportError: No module named serial

What stupid thin am I forgetting?

Oh, by the way, some week ago I got it working.
And I really want to play with upyeasy Beta ....

LisaM
Normal user
Posts: 382
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#114 Post by LisaM » 28 Jan 2018, 16:26

BertB wrote:
28 Jan 2018, 16:17
I hate it when stuff does not work reliably.
I think I followed all the steps in the books.
I have Python36 and pip and ampy and pyserial.
When I start pyton i get the >>> signs
when I enter import serial, again I get >>>

But when I enter esptool.py --port COM6 erase_flash in the shell, I get

Traceback (most recent call last):
File "D:\Program Files\Python\Python36\esptool.py", line 34, in <module>
import serial
ImportError: No module named serial

What stupid thin am I forgetting?

Oh, by the way, some week ago I got it working.
And I really want to play with upyeasy Beta ....
Espressif instructions: https://github.com/espressif/esptool
More help on installation of esptool: https://diyprojects.io/esp-easy-flash-f ... y-esp8266/

BertB
Normal user
Posts: 836
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#115 Post by BertB » 28 Jan 2018, 16:46

Thanks, but i did that:

Code: Select all

D:\Program Files>cd python\python36

D:\Program Files\Python\Python36>esptool.py --port COM6 erase_flash
Traceback (most recent call last):
  File "D:\Program Files\Python\Python36\esptool.py", line 34, in <module>
    import serial
ImportError: No module named serial

D:\Program Files\Python\Python36>pip install esptool
Requirement already satisfied: esptool in d:\program files\python\python36\lib\site-packages
Requirement already satisfied: ecdsa in d:\program files\python\python36\lib\site-packages (from esptool)
Requirement already satisfied: pyserial>=2.5 in d:\program files\python\python36\lib\site-packages (from esptool)
Requirement already satisfied: pyaes in d:\program files\python\python36\lib\site-packages (from esptool)

D:\Program Files\Python\Python36>esptool.py --port COM6 flash_id
Traceback (most recent call last):
  File "D:\Program Files\Python\Python36\esptool.py", line 34, in <module>
    import serial
ImportError: No module named serial

D:\Program Files\Python\Python36>mode

Status for device COM6:
-----------------------
    Baud:            115200
    Parity:          None
    Data Bits:       8
    Stop Bits:       1
    Timeout:         OFF
    XON/XOFF:        OFF
    CTS handshaking: OFF
    DSR handshaking: OFF
    DSR sensitivity: OFF
    DTR circuit:     OFF
    RTS circuit:     OFF

LisaM
Normal user
Posts: 382
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#116 Post by LisaM » 28 Jan 2018, 16:55

BertB wrote:
28 Jan 2018, 16:46
Thanks, but i did that:

Code: Select all

D:\Program Files>cd python\python36

D:\Program Files\Python\Python36>esptool.py --port COM6 erase_flash
Traceback (most recent call last):
  File "D:\Program Files\Python\Python36\esptool.py", line 34, in <module>
    import serial
ImportError: No module named serial

D:\Program Files\Python\Python36>pip install esptool
Requirement already satisfied: esptool in d:\program files\python\python36\lib\site-packages
Requirement already satisfied: ecdsa in d:\program files\python\python36\lib\site-packages (from esptool)
Requirement already satisfied: pyserial>=2.5 in d:\program files\python\python36\lib\site-packages (from esptool)
Requirement already satisfied: pyaes in d:\program files\python\python36\lib\site-packages (from esptool)

D:\Program Files\Python\Python36>esptool.py --port COM6 flash_id
Traceback (most recent call last):
  File "D:\Program Files\Python\Python36\esptool.py", line 34, in <module>
    import serial
ImportError: No module named serial

D:\Program Files\Python\Python36>mode

Status for device COM6:
-----------------------
    Baud:            115200
    Parity:          None
    Data Bits:       8
    Stop Bits:       1
    Timeout:         OFF
    XON/XOFF:        OFF
    CTS handshaking: OFF
    DSR handshaking: OFF
    DSR sensitivity: OFF
    DTR circuit:     OFF
    RTS circuit:     OFF
Path set correctly?:

Code: Select all

Python -V
Esptool version?:

Code: Select all

esptool.py -h
Re-installing?:

Code: Select all

pip uninstall esptool
pip install esptool

BertB
Normal user
Posts: 836
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#117 Post by BertB » 28 Jan 2018, 17:41

LisaM wrote:
28 Jan 2018, 16:55
Path set correctly?:
I can start python from everywhere on the pc
after issuing Path, I get a lot of stuff, including:
D:\Program Files\Python\Python36\Scripts;D:\Program Files\Python\Python36

Code: Select all

Python -V
C:\Users\berbe>python -V
Python 3.6.2
Esptool version?:

Code: Select all

esptool.py -h
D:\Tools\uPython>esptool.py -h
Traceback (most recent call last):
File "D:\Program Files\Python\Python36\esptool.py", line 34, in <module>
import serial
ImportError: No module named serial
Re-installing?:

Code: Select all

pip uninstall esptool
pip install esptool
Does not seem to help at all ...

But when I first start python and then import serial:
D:\Tools\uPython>python
Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import serial
>>>

BertB
Normal user
Posts: 836
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#118 Post by BertB » 28 Jan 2018, 18:46

Solved it ... I got one esptool.py to many ...
:oops: :mrgreen:

LisaM
Normal user
Posts: 382
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#119 Post by LisaM » 28 Jan 2018, 18:48

BertB wrote:
28 Jan 2018, 18:46
Solved it ... I got one esptool.py to many ...
:oops: :mrgreen:
:D Cool! Next step...

BertB
Normal user
Posts: 836
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#120 Post by BertB » 28 Jan 2018, 18:53

yeah ... growing up hurts ...
But, I had a esptool in the directory of Python36.
And one in Lib/site-packages.

When I run esptool from site-packages, there is no nagging about serial.
So, I removed esptool from the home directory of Python.

Now I have the following:
D:\Program Files\Python\Python36>esptool.py --port COM6 erase_flash
'esptool.py' is not recognized as an internal or external command,
operable program or batch file.

So, that was the wrong de-fuse wire :-)
In site-packages is also the serial directory.


So, where do I put all this stuff?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest