Matrix Portal M4 spotty Wi-Fi connection

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
tarrant1704
 
Posts: 20
Joined: Sun Jun 10, 2018 9:13 am

Matrix Portal M4 spotty Wi-Fi connection

Post by tarrant1704 »

I have a M4 that I'm trying to connect to my Wi-Fi network. I have double-checked the secrets.py file and it contains the correct SSID and password information. My code:

import time
import board
import displayio
import adafruit_display_text.label
from adafruit_matrixportal.matrixportal import MatrixPortal

try:
from secrets import secrets
except ImportError:
print("WiFi secrets are kept in secrets.py, please add them there!")
raise

matrixportal = MatrixPortal(status_neopixel=board.NEOPIXEL, bit_depth=4, debug=True)

TEXT_URL = "http://wifitest.adafruit.com/testwifi/index.html"
r = matrixportal.fetch(TEXT_URL)
print("Confirm text was retrieved? ", r)

When I run this, I sometimes connect with no issue. Other times, I get the following error:

Connecting to AP LinusSSID
Could not connect to internet ('No such ssid', b'LinusSSID')


I don't understand why it says "no such ssid" when it lists the correct SSID (LinusSSID). I also don't understand why the error lists b'LinusSSID' ... where did the "b" come from? If it helps, I'm connecting to a UniFi nano AP and my cellphone sitting right next to the M4 has 5 bars of Wi-Fi signal.

Thoughts?

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Matrix Portal M4 spotty Wi-Fi connection

Post by mikeysklar »

Have you updated the ESP32 firmware on your MatrixPortal M4?

https://learn.adafruit.com/upgrading-es ... t-firmware

If you are not already running the CircuitPython 8.00-Beta-6 release. I would recommend using that.

https://circuitpython.org/board/matrixportal_m4/

The internet connect page for the MatrixPortal M4 has sample code which includes the RSSI signal output. This could be helpful with the network scan to see the signal strength and you move try some physical rotation and placement adjustments to see how if effects signal.

https://learn.adafruit.com/adafruit-mat ... et-connect

User avatar
tarrant1704
 
Posts: 20
Joined: Sun Jun 10, 2018 9:13 am

Re: Matrix Portal M4 spotty Wi-Fi connection

Post by tarrant1704 »

I updated the ESP32 with the instructions you provided. I think that helped, so thank you!

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Matrix Portal M4 spotty Wi-Fi connection

Post by mikeysklar »

Thank you for taking the time to do the update and the followup. Much appreciated.

Locked
Please be positive and constructive with your questions and comments.

Return to “Itsy Bitsy Boards”