GithubHelp home page GithubHelp logo

Comments (18)

rstrouse avatar rstrouse commented on August 23, 2024

If it is not giving a DHCP IP address out of the router this seems to indicate an issue with either the passphrase or the router is rejecting it. Do you by chance have 802.11b enabled on your router?

from espsomfy-rts.

rstrouse avatar rstrouse commented on August 23, 2024

How is the router showing the device if it hasn't assigned it to its routing table (assigned an ip address)? What router do you have?

from espsomfy-rts.

FlaMike avatar FlaMike commented on August 23, 2024

Yeah, it's the strangest thing I've ever seen! I have Ubiquiti equipment (USG router, 3 APs, 2 switches, 1 24 port and 1 24 port POE, running the Unifi controller in a docker container). DHCP is running & I have about 70 WiFi clients, and a couple of dozen wired clients, all with static IPs, assigned through the router.

The controller shows the ESP on the correct network by name (I have 4 running with various firewall rules for each), the ESP's MAC address & signal strength are shown, but no IP address--the field is blank! I've never experienced that before. I tried 2 different networks to no avail, that's why I reached out to you. I really don't want to bother you but, it's so strange! I will try again tomorrow with a guest network because it has a short password, but I copy & paste the network passwords from a pdf list.

So bizarre! I would think the router would reject the device if the password is wrong and not show the device in the client list.

I'm hoping it's just a case of the Mondays & all will be well tomorrow! Hopefully, I'll touch base with you tomorrow & let you know what a fool I was today.

from espsomfy-rts.

FlaMike avatar FlaMike commented on August 23, 2024

The only other thing I can think of at the moment is I've been up since 2 AM CST & am probably too punchy to be doing anything that requires a synapse.

from espsomfy-rts.

rstrouse avatar rstrouse commented on August 23, 2024

The esp32 has a limit on the length of an SSID to 64 and the passphrase can be no longer than 32. If you are still running 802.11b frames on your network, I would turn them off. It is eating your bandwidth.

It is possible that the Ubiquiti router is somehow seeing 192.168.4.1 and even though it released the address it still thinks it is there. Are you using a /21 subnet and a 198.168.x.x mask?

from espsomfy-rts.

FlaMike avatar FlaMike commented on August 23, 2024

I think you just nailed it... My "normal" passwords for the networks are 63 characters long! Not an issue for Tasmota, ESPHome, etc., but apparently, it is for an ESP! I had no idea! I will try using the guest network---it has a much shorter password. Even if I beef it up a bit, I will limit it to < 32 characters.

Thank you so much for your help! I will give it a shot tomorrow (gotta get my 3 hours of sleep) & let you know about my success.

I so appreciate your time, patience, willingness to help, and all! You are a rock star!!!!

from espsomfy-rts.

FlaMike avatar FlaMike commented on August 23, 2024

BTW, not using a /21 subnet. All are /24. I think the password limit is the problem. Fingers crossed!

from espsomfy-rts.

FlaMike avatar FlaMike commented on August 23, 2024

P.P.S. SSID length is not a problem. I always kept them short, but had long passwords.

from espsomfy-rts.

rstrouse avatar rstrouse commented on August 23, 2024

So did you get it to connect? Sleeping is for wimps!

from espsomfy-rts.

FlaMike avatar FlaMike commented on August 23, 2024

I was able to get the beast to connect to my guest network which has a short password!!!! I have an IP address for it as well. Huge start to the day.

I am only able to access the beast if I'm on that network, however. Cannot access it from the LAN or other WiFi networks. Is this behavior typical or is it a result of using a guest network (with whatever default settings Unifi has for it)? Will this limitation present an issue for the HA integration, which is on a different network or is this just during configuration?

Tuning the radio & moving along...

Thanks!

from espsomfy-rts.

rstrouse avatar rstrouse commented on August 23, 2024

This is an issue with the guest network and the purpose of a guest network. You will likely have an issue with HA if you try to cross that boundary into your guest network.

I can try to expand the password length by allocating the space to eliminate the chance of an overrun. It only needs this while it is first connecting to the network. I used the idf limits for the host name when allocating the space for the passphrase. It may use the same restrictions as the SSID for its passphrase instead of the host name restriction. At some point it becomes impractical though.

from espsomfy-rts.

FlaMike avatar FlaMike commented on August 23, 2024

I thought it being on a guest network could cause HA challenges.

I could reduce the length of the IOT network--it has only a handful of devices I'd need to reconfigure, as opposed to my NOT network. Alternatively, I may be able to create a firewall rule that lets HA listen & respond to the guest network (if Unifi allows rules to be applied to a guest network).

Please let me know if you make the change or if I need to.

Thanks from the always awake world :-)

from espsomfy-rts.

rstrouse avatar rstrouse commented on August 23, 2024

I will make those changes and it should not impact anyone else. The only issue may be internally with the idf. I cannot find any reference to what that max password length is. Are you using a WPA or WPA2 network? Some of these limits may be contained in the TKIP section of the idf and will only show their head on WPA/TKIP.

from espsomfy-rts.

FlaMike avatar FlaMike commented on August 23, 2024

The networks are WPA2. I believe the passwords I am using currently are 63 characters long--more or less the limit of WPA2, I think.

Thanks again for your help! If you let me know when I can pull the update, I'll give it a shot & let you know of my success :-)

from espsomfy-rts.

rstrouse avatar rstrouse commented on August 23, 2024

Actually, I believe the limit is based on the AES not the WPA2 and the original TKIP had a 31 character limit. Nobody should be using WEP or WPA anymore but if they do they won't get past the WiFi setup in their router with a 63 character passphrase. I just need to figure out if my storage can handle it.

from espsomfy-rts.

rstrouse avatar rstrouse commented on August 23, 2024

Pull the SomfyController.ino.esp32.bin file and the SomfyController.littlefs.bin file from the links provided and upload *.ino.esp32.bin file as the firmware and the *.littlefs.bin file as the application from the Updates tab.

The WiFi passphrase length has been increased.

from espsomfy-rts.

FlaMike avatar FlaMike commented on August 23, 2024

My response aren't showing up on github, so here they are, possibly duplicates nevertheless...

Irrigation/irritation what's the difference anyway? I consider myself to be a bidet, of course! At your service...

Working on the network change now, running 1.4.6 on the ESP.

The device is now on the preferred network (NOT) and I can access it from my PC! Fabulous!!! Assume all will be good for HA now as well.

Still tuning the radio. Don't know if I'm going to get strong signals, but I have sufficient parts to build 2 if needed.

Thank you so much for your help & very quick responses & software updates!!! As I said before, you're a rock star!! Woo hoo.

I am getting the following error message on the WiFi tab in the app. 500: Network HTTP error. The other tabs appear to be functioning correctly and I do get signal from the Somfy remote on the Somfy tab.

from espsomfy-rts.

rstrouse avatar rstrouse commented on August 23, 2024

You probably need to hard refresh your browser after installing the Application.

from espsomfy-rts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.