Giter Club home page Giter Club logo

Comments (20)

Elkropac avatar Elkropac commented on May 31, 2024

Hi, i have flashed my lvl300 device (the one i mentioned in tuyacutter), it worked well, but now it does not connect to wifi properly.

I can see it associate to wifi in unifi management, but it does not get any ip.
I did not compile AP to it, so i don't know if i can get to it somehow without disassembly?

from libretiny.

kuba2k2 avatar kuba2k2 commented on May 31, 2024

Have you tried power-cycling that device?

from libretiny.

Elkropac avatar Elkropac commented on May 31, 2024

I have turned it off multiple times. It always associates to wifi, but it gets no ip from dhcp (i will check if it asks for ip, i don't know)

I have multiple APs in my house, could it be a problem?

from libretiny.

kuba2k2 avatar kuba2k2 commented on May 31, 2024

It might be a problem, but then it would likely not associate at all. Did you change anything in your network configuration? Stuff usually doesn't "just" stop working; if it worked fine for weeks, I don't see any reason why it would break now.

If you won't be able to make it connect, then without AP there's not much you can do. In theory, you could take it far from your home network, and set-up another AP with same SSID and password as your home network.
And.. remember to always add the AP component, in case of failures like this one.

from libretiny.

Elkropac avatar Elkropac commented on May 31, 2024

I have disabled 2.4GHz radio on my wifi network for laptops/mobile devices, but not on network for IoT devices.
I will try to enable it again, but i don't thing it's related.

And i will add AP component to my common configuration, seems like good idea :)

from libretiny.

Elkropac avatar Elkropac commented on May 31, 2024

I can see dhcp packets on my AP

17:50:48.965920 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 10:5a:17:bd:de:cb (oui Unknown), length 308
        0x0000:  4500 0150 005d 0000 ff11 ba40 0000 0000
        0x0010:  ffff ffff 0044 0043 013c d268 0101 0600
        0x0020:  4748 fbe1 0000 0000 0000 0000 0000 0000
        0x0030:  0000 0000 0000 0000 105a 17bd decb 0000
        0x0040:  0000 0000 0000 0000 0000 0000 0000 0000
        0x0050:  0000

and on my firewall, it is dropped

Ethernet Header
 Ether Type: VLAN ID = 23, Priority = 0
 Ether Type: 0x6(0x6), Src=[10:5a:17:bd:de:cb], Dst=[ff:ff:ff:ff:ff:ff]
Ethernet Type: Unknown
Value:[0]
DROPPED, Drop Code: 17(Unknown Ether type ingress.), Module Id: 16(fwCore), (Ref.Id: _3057_joqvuIppl) 2:2)

i have to ask my collegue what does it mean

from libretiny.

Elkropac avatar Elkropac commented on May 31, 2024

Hm, when i deleted dhcp reservation for this mac address, it got different IP from pool for new devices and i was able to connect to it. Strange

from libretiny.

mihsu81 avatar mihsu81 commented on May 31, 2024

[ ] fix STA connecting if multiple APs with same name are available

On a EZVIZ T31 (generic-rtl8710bx-4mb-980k) almost every reboot causes the device to go in AP mode. Is it caused by the STA issue you mentioned above as pending?

from libretiny.

kuba2k2 avatar kuba2k2 commented on May 31, 2024

I don't know. That particular issue was related to Beken, not Realtek. And AP mode on Realtek doesn't work at all, from what I tested.

from libretiny.

mihsu81 avatar mihsu81 commented on May 31, 2024

And AP mode on Realtek doesn't work at all, from what I tested.

Indeed, when i try to connect my phone to the Fallback SSID it remains at Connecting....

That particular issue was related to Beken, not Realtek.

True, I've shut down all the other APs broadcasting the SSID and the device still goes in AP mode.

from libretiny.

mihsu81 avatar mihsu81 commented on May 31, 2024

When adding fast_connect: true the devices reconnect just fine. I assume that while rescanning for available SSIDs it encounters an issue and is not able to connect. This leads to it going in AP mode.

BTW, I was able to connect from my laptop to a device which went into AP mode (Fallback SSID), but it took a long time (15-20s).

from libretiny.

kuba2k2 avatar kuba2k2 commented on May 31, 2024

I have an RTL8710BN running day and night now (finally mounted as a hacked+modified power switch), and it has no problems at all. Even when the home network was unavailable for a few minutes yesterday, it reconnected just fine and continued to work.

You say "devices", how many is that? Do all of them have the same problems?

from libretiny.

mihsu81 avatar mihsu81 commented on May 31, 2024

Sorry, it was a typo. I meant device.
I have multiple APs from Asus in a Mesh. Maybe it's related somehow? Even though I have tested last week only with the router and it had the same issues, of not being able to connect after a reboot. I have other ESPHome, Tasmota, OpenBeken, Shelly devices and none of them experience this issue. The Ezviz T31 flashed with LibreTuya didn't encounter this issue when it was using the Ezviz firmware.

from libretiny.

Elkropac avatar Elkropac commented on May 31, 2024

I have problems with lvl300 device again.
I recompiled firmware to enable homeassistant api encryption, uploaded and it does not associate to wifi anymore. Event fallback AP does not pop up. I resolved my last problems (from december) by disabling dhcp and setting fixed IP address, but now i don't know what to do

substitutions:
  <<: !include _common/subst.yaml
  dev_name: lvl300_001
  dev_name_network: lvl300-001.devices
  log_level: INFO
  boot_brightness: "0.9

packages:
  wifi: !include _packages/wifi_common.yaml

libretuya:
  board: cb3l
  framework:
    version: dev

wifi:
  # Optional manual IP
  manual_ip:
    static_ip: 192.168.23.59
    gateway: 192.168.23.1
    subnet: 255.255.255.0

and wifi_common.yaml is

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  fast_connect: yes
  use_address: "${dev_name_network}"
  ap:
    ssid: "${dev_name} AP"
    password: !secret ap_password

captive_portal:

from libretiny.

kuba2k2 avatar kuba2k2 commented on May 31, 2024

Are you sure you have the latest version of LT? There has been an error recently, that prevented some devices from booting properly. If you've uploaded firmware having that problem, you'll have to serial flash it to working firmware.

from libretiny.

Elkropac avatar Elkropac commented on May 31, 2024

I think i forgot to do git pull, i was compiling version your provided for me when fixing issue #101

from libretiny.

kuba2k2 avatar kuba2k2 commented on May 31, 2024

If you did a git pull around 5 days ago, then chances are you were left on the faulty commit.

from libretiny.

Elkropac avatar Elkropac commented on May 31, 2024

i think, i'm on latest commit in branch platform/libretuya, should i use another branch?

from libretiny.

kuba2k2 avatar kuba2k2 commented on May 31, 2024

It's not about esphome, it's about LibreTuya itself. See the docs on how to update the PlatformIO package.

from libretiny.

Elkropac avatar Elkropac commented on May 31, 2024

Thanks, it worked with updated platformio

from libretiny.

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.