#I have the Adafruit Matrix Portal And i
1 messages ยท Page 1 of 1 (latest)
could you connect to the REPL (via the Serial window in Mu if that's what you're using), and type what I gave above. I assume you're seeing the error in that window as well. Did you modify the code in any way?
No I have not modified the code in the code.py file only the secrets file.
Do you mean add your code in the in Serial
just type it in the Serial window. Type ctrl-C in the serial window to interrupt code.py, and then type what I gave above
are latitutde and longitude really missing in your file or you just removed them for redaction purposes above?
I am getting :
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'wifi' is not defined
Oh i removed the lat and long on purpose
ah, sorry, never mind, this is a MatrixPortal. Let me give you something different to type, hold on...
okay thanks
try the test program here as code.py, and tell me what it shows when it runs. Or, don't disturb your code.py. Create this program as test.py, type ctrl-C, and then do import test to run the program manually. https://learn.adafruit.com/adafruit-matrixportal-m4/internet-connect#connect-to-wifi-3034771
So it sees the SSID. Then i have
Connecting to AP...
could not connect to AP, retrying: ('No such ssid', b'SSIDName')
could not connect to AP, retrying: ('Failed to connect to ssid', b'SSIDName')
what RSSI does it report, and what "Firmware vers."?
RSSI: -56
what is te "Firmware vers." listed, before the scan
Firmware vers. bytearray(b'1.2.2\x00')
that is old, but it should work anyway, I think. It's a bit of an involved process to update.
have you tried just rebooting the router?
i.e., power-cycling
Its an access point. I have restarted it
it is a UniFi AP and CircuitPython is 7.3.3
i have unifi ap's and am not seeing this issue
hmm
is this at home? Do you have a router with wifi (that maybe you've disabled)?
Yes it is at home and I do have router with WiFi. Wont be able to test it now. But i have tried to hotspot my phone and it works fine
i am running UAP-AC-IW's, reporting as version 6.2.35, Encryption is WPA2/WPA3, channel 6, transmit power 20 dBm (all according to my unifi app)
they are 2.4/5GHz, with the same SSID for both, and not seeing this issue.
i would say try something else besides the phone. Maybe if you have an old router lying around you can use (doesn't have to be on the Internet).
this is how to upgrade the firmware: https://learn.adafruit.com/upgrading-esp32-firmware/upgrade-all-in-one-esp32-airlift-firmware but maybe don't try that yet
Hm yeah I will get a router from work to test out. Its just rather odd that the ap isnt working correctly with it
yes, esp since I am not seeing that problem with similar AP's
I'll have a go at upgrading the the firmware. Maybe it is that.
RSSI is plenty strong
also if your AP's have old firmware, could update those. Pretty easy through the app
but things can go wrong ๐
Oh the AP was updated a month or so ago.
if you move the phone as far away as the AP, you could test that.
yeah will test that too thanks
if the MatrixPortal transmit is weak for some reason
moved the phone to a distance seems okay
mysterious... good luck with the upgrade, if that's your next task. I don't mean that sardonically; it should work ok
Yeah i'm trying to do it but its being a bit of a pain. I uploaded the UF2 file after resting the board but its not detecting it on my machine
are you using the webserial tool or esptool.py?
also make sure you are using the MatrixPortal UF2 and not one of the other ones
@austere spindle I am glad that Dan was able to help you more than I could. He's awesome.
Yeah using the webserial tool and MatrixPortal UF2
Still having trouble updating the Firmware.
try using esptool.py instead of the webserial tool. Also you could try the whole thing on your RPi instead of on Windows.
Okay will give that a go
I am using a PopOs boot on my PC. When i do /dev/tty* it comes up with my, how can i work out which is the correct device?
if you unplug the board, the tty* will go away. Often it's /dev/ttyACM0, at least for Debian-based OS's.
Hello, so i have managed to do it on Windows Command Prompt. I think. However when I upload the UF2 file either on Linux or Windows it doesn't seem to want to do anything. It just disconnected
which UF2?
MatrixPortal ESP32 Passthru
trying...
after you load the passthru, there will be a /dev/ttyACM0 present, and the NeoPixel will be blue. is that true?
I have actually got it working. I used different download
Used one from the circuitpython website instead of the adafruit one
i'm confused, the passthru UF2 is different?
Oh yeah you're right. Both are different. Never mind ๐
anyway, so you did update the firmware finally?
Yeah I think it is updated. Just testing things now
if "Firmware vers." is 1.7.4, then you have done it
Yep correct version. Still having issues with SSID :/
Channels were originally on auto, but just fixed it onto channel 6 and still no luck
did you try another AP besides your phone?
No not yet. Will have to do that in the NY
i am pretty baffled by this, considering I am using the same brand of AP and it works fine. I just tried it again and it works.
I just got a connection on Channel 6 it was showing it for a minute or so but lost it
can you put it right next to the AP?
(bring your laptop?)
is there a lot of wifi activity around your house/apartment?
I am at the closes point with electricity. I might need to get a long usbc cable to run it. There is only 3 other wifi ap's in my area
Someone had a slightly similar-sounding problem here, with a complicated solution: https://forums.adafruit.com/viewtopic.php?p=872455
Thanks will have a look
Interesting after a few days not getting around to do some testing. I can now the device Matrix Portal in the Unifi Panel, giving an IP address etc. But just cannot see the internet.
Also after a few tries for it connecting i get the following
Connected to MySSID RSSI: -69
My IP address is 192.168.1.247
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "test.py", line 68, in <module>
File "adafruit_esp32spi/adafruit_esp32spi.py", line 655, in get_host_by_name
ConnectionError: Failed to request hostname
I'm having similar issues btw. The first few tries always fail with "No such ssid". Then it just works. Sometimes it kinda gets stuck and never connects until I reestart the M4 Portal multiple times..