#I have the Adafruit Matrix Portal And i

1 messages ยท Page 1 of 1 (latest)

devout lark
#

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?

austere spindle
#

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

devout lark
#

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?

austere spindle
#

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

devout lark
#

ah, sorry, never mind, this is a MatrixPortal. Let me give you something different to type, hold on...

austere spindle
#

okay thanks

devout lark
austere spindle
#

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')
devout lark
#

what RSSI does it report, and what "Firmware vers."?

austere spindle
#

RSSI: -56

devout lark
#

what is te "Firmware vers." listed, before the scan

austere spindle
#

Firmware vers. bytearray(b'1.2.2\x00')

devout lark
#

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

austere spindle
#

Its an access point. I have restarted it

devout lark
#

what kind?

#

what version of CircuitPython are you using?

austere spindle
#

it is a UniFi AP and CircuitPython is 7.3.3

devout lark
#

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)?

austere spindle
#

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

devout lark
#

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).

austere spindle
#

Hm yeah I will get a router from work to test out. Its just rather odd that the ap isnt working correctly with it

devout lark
#

yes, esp since I am not seeing that problem with similar AP's

austere spindle
#

I'll have a go at upgrading the the firmware. Maybe it is that.

devout lark
#

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 ๐Ÿ™‚

austere spindle
#

Oh the AP was updated a month or so ago.

devout lark
#

if you move the phone as far away as the AP, you could test that.

austere spindle
#

yeah will test that too thanks

devout lark
#

if the MatrixPortal transmit is weak for some reason

austere spindle
#

moved the phone to a distance seems okay

devout lark
#

mysterious... good luck with the upgrade, if that's your next task. I don't mean that sardonically; it should work ok

austere spindle
#

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

devout lark
#

also make sure you are using the MatrixPortal UF2 and not one of the other ones

vivid kite
#

@austere spindle I am glad that Dan was able to help you more than I could. He's awesome.

austere spindle
austere spindle
#

Still having trouble updating the Firmware.

devout lark
#

try using esptool.py instead of the webserial tool. Also you could try the whole thing on your RPi instead of on Windows.

austere spindle
#

Okay will give that a go

austere spindle
#

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?

devout lark
austere spindle
#

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

devout lark
#

which UF2?

austere spindle
#

MatrixPortal ESP32 Passthru

devout lark
#

trying...

#

after you load the passthru, there will be a /dev/ttyACM0 present, and the NeoPixel will be blue. is that true?

austere spindle
#

I have actually got it working. I used different download

#

Used one from the circuitpython website instead of the adafruit one

devout lark
#

i'm confused, the passthru UF2 is different?

austere spindle
#

Oh yeah you're right. Both are different. Never mind ๐Ÿ˜†

devout lark
#

anyway, so you did update the firmware finally?

austere spindle
#

Yeah I think it is updated. Just testing things now

devout lark
#

if "Firmware vers." is 1.7.4, then you have done it

austere spindle
#

Yep correct version. Still having issues with SSID :/

devout lark
#

are the unifi AP's on channel 6?

#

do you have just one AP or multiple?

austere spindle
#

Channels were originally on auto, but just fixed it onto channel 6 and still no luck

devout lark
#

did you try another AP besides your phone?

austere spindle
#

No not yet. Will have to do that in the NY

devout lark
#

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.

austere spindle
#

I just got a connection on Channel 6 it was showing it for a minute or so but lost it

devout lark
#

can you put it right next to the AP?

#

(bring your laptop?)

#

is there a lot of wifi activity around your house/apartment?

austere spindle
#

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

devout lark
austere spindle
#

Thanks will have a look

austere spindle
#

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
crystal furnace
#

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..