0

pyPortal ESP32 issues
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

pyPortal ESP32 issues

by southernskeptic on Tue Jun 11, 2019 4:54 pm

I've purchased several pyPortals and have successfully updated all of them to the latest firmware version and assoc. libs.

Unfortunately, one of them just won't connect to my WiFi network. I'm attaching photos of the back, and screen shots from the ESP32 Webclient test code that I ran when it would never connect and show quotes from Adafruit.

I've cleared the device and reloaded the firmware and libs to no avail. I'm happy to send it back for a replacement, please.
Attachments
pyPortal Back.JPG
Photo of back of non-working pyPortal
pyPortal Back.JPG (531.12 KiB) Viewed 311 times
Webclient Test Screen 2.JPG
Second screen shot from Webclient test
Webclient Test Screen 2.JPG (437.07 KiB) Viewed 311 times
Webclient Test Screen 1.JPG
First screen shot from Webclient test
Webclient Test Screen 1.JPG (402.75 KiB) Viewed 311 times

southernskeptic
 
Posts: 22
Joined: Sun Jan 12, 2014 6:42 pm

Re: pyPortal ESP32 issues

by adafruit_support_carter on Tue Jun 11, 2019 6:46 pm

When you say you updated the firmware, was that the CircuitPython firmware, like this:
https://learn.adafruit.com/adafruit-pyp ... r-pyportal
or was it the ESP32 firmware, like this:
https://learn.adafruit.com/adafruit-pyp ... 2-firmware
or both?

adafruit_support_carter
 
Posts: 12971
Joined: Tue Nov 29, 2016 2:45 pm

Re: pyPortal ESP32 issues

by southernskeptic on Tue Jun 11, 2019 9:53 pm

Greetings and thanks for the reply. I updated the circuitpython firmware and libs to 4.0.1

I haven’t updated the ESP32 firmware on the pyPortal. Didn’t know I needed to. I’ll give it a try.

southernskeptic
 
Posts: 22
Joined: Sun Jan 12, 2014 6:42 pm

Re: pyPortal ESP32 issues

by adafruit_support_carter on Wed Jun 12, 2019 12:05 pm

Yep, go ahead and try that so everything is running latest. And then we'll see what happens.

adafruit_support_carter
 
Posts: 12971
Joined: Tue Nov 29, 2016 2:45 pm

Re: pyPortal ESP32 issues

by southernskeptic on Wed Jun 12, 2019 5:20 pm

Ok, I updated the ESP32 firmware. Still won't properly connect/work. :-( Photos of the test printout attached.
Attachments
Webclient Test Screen 2 (post esp32 firmware update).JPG
Test screen 2 (post esp32 firmware update)
Webclient Test Screen 2 (post esp32 firmware update).JPG (453.1 KiB) Viewed 271 times
Webclient Test Screen 1 (post esp32 firmware update).JPG
Test screen 1 (post esp32 firmware upgrade)
Webclient Test Screen 1 (post esp32 firmware update).JPG (372.13 KiB) Viewed 271 times

southernskeptic
 
Posts: 22
Joined: Sun Jan 12, 2014 6:42 pm

Re: pyPortal ESP32 issues

by southernskeptic on Wed Jun 12, 2019 7:36 pm

Hello again. So, I tried to update the ESP32 firmware on another pyPortal - one that worked. And now it won't connect. Guess I'll head out to github and will look for the version that did work. HELP!
Attachments
Screen from one that used to work.JPG
pyPortal that doesn't work after ESP32 firmware update
Screen from one that used to work.JPG (674.08 KiB) Viewed 262 times

southernskeptic
 
Posts: 22
Joined: Sun Jan 12, 2014 6:42 pm

Re: pyPortal ESP32 issues

by adafruit_support_carter on Thu Jun 13, 2019 12:22 pm

So now this is happening to two PyPortals? So it sounds software related, and not something with the PyPortal hardware.

Is your secrets.py all correct with the necessary info to connect to your wifi? It looks like it does connect at some point. How far are you from your router?

adafruit_support_carter
 
Posts: 12971
Joined: Tue Nov 29, 2016 2:45 pm

Re: pyPortal ESP32 issues

by southernskeptic on Thu Jun 13, 2019 1:30 pm

Greetings! I agree that is seems to be software related. I'm less than 30 feet from the router/AP. BTW, I kept at it with the one that used to work and got it to connect after rebooting/resetting the pyPortal several times. Then I figured I would install the ISS tracker project - a very cool project. Got that installed and working - but after running for a few hours, it stops/hangs up. Seems like perhaps an index is out of range and data is being written to code memory? Just a swag.

At this point, I'm reluctant to make any more updates to my other pyPortals until I can get a project to work for more than just a few hours.

Appreciate any help you can provide. Thanks for your help thus far.

Best regards,
Marty

southernskeptic
 
Posts: 22
Joined: Sun Jan 12, 2014 6:42 pm

Re: pyPortal ESP32 issues

by adafruit_support_carter on Thu Jun 13, 2019 2:25 pm

At this point I think you have the latest firmware on the ESP32 peripheral and the latest CircuitPython running on the M4 (the main chip on the PP). In your first post you mention updating the libraries also. How did you go about doing that?

adafruit_support_carter
 
Posts: 12971
Joined: Tue Nov 29, 2016 2:45 pm

Re: pyPortal ESP32 issues

by southernskeptic on Thu Jun 13, 2019 3:51 pm

I completely removed the \lib folder - in fact i deleted all the files and folders in the 'root' directory except .fseventsd, .metadata_never_index, .Trashes and boot_out.txt. I checked the boot_out.txt and verified the right version (4.0.1) is running. I then copied the lib, font, folders (with minimum files recommended in the instructions) and py, bmp, txt, and wav files from the latest files available. Then secrets.py updated with SSID, pswd, and adafruit.io info.

This can take a lot of time, as for some reason file xfer between my laptop and the pyPortal can be excruciatingly slow. I have even updated my laptop's BIOS to no avail. Sometimes I have to reset the pyPortal multiple times just to get it to xfer files when in PORTALBOOT mode.

I really like this spiffy little device and would like to do more with it. Unfortunately, it's playing 'hard to get'.

Thanks again for your time and help.

Best regards,
Marty

southernskeptic
 
Posts: 22
Joined: Sun Jan 12, 2014 6:42 pm

Re: pyPortal ESP32 issues

by adafruit_support_carter on Thu Jun 13, 2019 5:15 pm

I just tested everything with latest version, so hopefully running all the same as you except for actual network, and it ran OK here.

Let's make sure your local network isn't blocking access to the test URLs for some reason. Can you open these locations in your web browser from a computer connected to the same network?

http://wifitest.adafruit.com/testwifi/index.html
http://api.coindesk.com/v1/bpi/currentprice/USD.json

adafruit_support_carter
 
Posts: 12971
Joined: Tue Nov 29, 2016 2:45 pm

Re: pyPortal ESP32 issues

by southernskeptic on Thu Jun 13, 2019 5:36 pm

I'm able to access both links. No issues. Not a network blocking issue.

Also, the ISS tracker ran for nearly 2 hours and then hung. When I rebooted, I got a message about it running in safe mode and not running any saved code.

I finally got it to reload the tracker program but it's taking a lot of time and several resets/reboots to get it done. Understand this is Python, an interpreted language, but is this normal?

Appreciate the help and support.

Best regards,
Marty

southernskeptic
 
Posts: 22
Joined: Sun Jan 12, 2014 6:42 pm

Re: pyPortal ESP32 issues

by adafruit_support_carter on Thu Jun 13, 2019 5:57 pm

Not sure what's going on.

There were a few things that could cause a freeze up that were hopefully fixed.
https://github.com/adafruit/Adafruit_Ci ... PI/pull/42
https://github.com/adafruit/Adafruit_Ci ... PI/pull/44

Where / how did you download the libraries that you updated to?

adafruit_support_carter
 
Posts: 12971
Joined: Tue Nov 29, 2016 2:45 pm

Re: pyPortal ESP32 issues

by southernskeptic on Thu Jun 13, 2019 6:08 pm

Libraries were downloaded from adafruit links - enumerated in the Primary Guide: Adafruit PyPortal - IoT for CircuitPython. I have not yet resorted to using the files directly from github.

Question: Could this be a problem with USB ports not providing enough power reliably? Could not having enough power cause processing/signal errors that are happening after a period of time?

southernskeptic
 
Posts: 22
Joined: Sun Jan 12, 2014 6:42 pm

Re: pyPortal ESP32 issues

by adafruit_support_carter on Thu Jun 13, 2019 7:18 pm

OK, that seems fine in terms of the library. I was wondering if you were maybe following some out of date guide that was linking to an older library bundle release or something. But it looks like this page:
https://learn.adafruit.com/adafruit-pyp ... -libraries
links you here:
https://circuitpython.org/libraries
which should get you the latest bundle.

It could be power related. Do you have reason to think you are under powered? How are you powering the PyPortal? What power supply rating? Looks the USB cable is one of these:
https://www.adafruit.com/product/4111
(which is fine)

adafruit_support_carter
 
Posts: 12971
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.