Giter Site home page Giter Site logo

Comments (8)

Koenkk avatar Koenkk commented on July 17, 2024 1

I've found the issue. As can be seen here: #69 (comment). The first requests return the first 3 values, while the table holds 8 values. Zigbee-herdsman didn't request the remaining 5. Fixed, thanks all!

from zigbee-herdsman.

Koenkk avatar Koenkk commented on July 17, 2024

I'm not sure, can you check via sniffing what wireshark shows?

from zigbee-herdsman.

hobbyquaker avatar hobbyquaker commented on July 17, 2024

I see the Link Quality Response, Status: Success for each device multiple times, some appear twice, others even 5 or 6 times. They seem to be duplicates, they all include the same neighbourtable of only 3 devices. Are these duplicates because of Zigbee Routing?

image

image
In the Responses I can see that the device really only reports 3 neighbours, so this seems not to be a bug but some (strange?) behavior of my devices?

from zigbee-herdsman.

Koenkk avatar Koenkk commented on July 17, 2024

I'm not sure what is happening and ifthis is correct behaviour, but from the point of zigbee-herdsman this seems to be OK.

from zigbee-herdsman.

groenmarsmannetje avatar groenmarsmannetje commented on July 17, 2024

I have a similar observation. Before I started to use the dev version with source routing firmware and less then approx 40 devices the network map would show an almost perfect mesh network with every router connected to each other after a couple of days.

Now I am on dev version with latest source routing firmware and more then 40 devices. And what I see now is that besides the controller there are 2 other nearby routers that all connect to almost all of the other devices. A lot of the other routers have max. 3 connections. This doesnโ€™t change much when you leave the network untouched for a couple of hours or days.

I had the feeling that this started when I moved to dev version, but I cannot verify anymore because I changed too much since then (new firmware and new devices).

from zigbee-herdsman.

timota avatar timota commented on July 17, 2024

I made some tests to check:

  • if i add only 2 devices (end-devices) to coordinator - i can see linkquality for them and so z2mAssistant can build proper map.
  • if i add 3-d device:
    • in logs i can see that device reports linkquality
      zigbee2mqtt:info 2019-10-31T19:37:38: MQTT publish: topic 'zigbee2mqtt/0x00158d000274fe84', payload '{"battery":80,"voltage":2965,"contact":false,"linkquality":51,"last_seen":1572550658817,"device":{"friendlyName":"0x00158d000274fe84","ieeeAddr":"0x00158d000274fe84","networkAddress":17964,"type":"EndDevice","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","applicationVersion":3,"stackVersion":2,"zclVersion":1,"hardwareVersion":2,"dateCode":"20161128","softwareBuildID":"3000-0001"}}'

but in z2mAssistant reports all attributes except Link quality is unknown/255., so it cant build map

  • if i add to the same setup additional router, and after it add 3 additional end-devices. z2mAssistant reports linkquolity for first 2 devices (including router itself) but not for 3-d device.
  • same picture if i add another router and next 3 end-devices.

for me it looks like somewhere limit for 3 device (including router/coordinator) has been set.

i definitely didnt see this issue with Stable 1.6 and CC2531 as coordinator.

BTW: current coordinator is cc1352P2

from zigbee-herdsman.

clockbrain avatar clockbrain commented on July 17, 2024

I think what's going on relates to nuances of the neighbor lqi table. Its includes a start index and count. In master the network map scan code ignores these and returns all values in the table that have a relationship type <=3
https://github.com/Koenkk/zigbee2mqtt/blob/e26ad2aca2eeb0aa366982481eb921ee603fb6d1/lib/zigbee.js#L364

In dev this scan has been moved to zigbee-herdsman and probably correctly pays attention to the count (and maybe should also pay attention to start index) .

for (let i = 0; i < options.length; i++) {

So, my assumption is that when end devices are sleeping they effectively expire out of the neighbor table by a change in the startindex and/or count, I don't know if this is generic behaviour or related to specific device firmware. I really have no idea.

from zigbee-herdsman.

timota avatar timota commented on July 17, 2024

So, my assumption is that when end devices are sleeping they effectively expire out of the neighbor table by a change in the startindex and/or count,

to be honest no idea as well, but additional tests shows that even if devices are sleeping, i mean first 2, it still shows only them connected, even if i constantly pressing wakeup button on 3d one and start rescan

from zigbee-herdsman.

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.