mycontroller-org / mycontroller-v1-legacy

The Open Source Controller
http://www.MyController.org
Apache License 2.0
148 stars 90 forks source link

Topology: How to know which node connects to gateway? #480

Closed guillebot closed 5 years ago

guillebot commented 5 years ago

When I use Real Time I can see the connection between nodes, but can't see which one of them is near to the gateway in term of hops.

When I toggle Real Time off, I see all the nodes connected directly to the gateway.

So I really can't know my real topology from here. It is something wrong on my configuration?

Thanks

2018-11-02_19-09-14 2018-11-02_19-19-44

jkandasa commented 5 years ago

@guillebot If you turn off Real time you see a virtual view. It will show as all the nodes connected to the gateway node.

In real-time mode, it will show the actual setup. In your case, you are seeing some nodes are unconnected. can you select the gateway and run Discover, and check the topology page once again. If still, it is unconnected, you may have a sleeping node in your topology(may not send parent node details while sleeping) or nodes not in good coverage.

Have you configured parent node statically in your sketch?

between, if you have questions, right >> http://forum.mycontroller.org

danielefrigo commented 5 years ago

I can see exactly this behavior, and I like it. If I can suggest a change, I'd like to see the last path to gateway for sleeping nodes.

Il giorno sab 3 nov 2018, 03:19 Jeeva Kandasamy notifications@github.com ha scritto:

@guillebot https://github.com/guillebot If you turn off Real time you see a virtual view. It will show as all the nodes connected to the gateway node.

In real-time mode, it will show the actual setup. In your case, you are seeing some nodes are unconnected. can you select the gateway and run Discover, and check the topology page once again. If still, it is unconnected, you may have a sleeping node in your topology(may not send parent node details while sleeping) or nodes not in good coverage.

Have you configured parent node statically in your sketch?

between, if you have questions, right >> http://forum.mycontroller.org

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mycontroller-org/mycontroller/issues/480#issuecomment-435553153, or mute the thread https://github.com/notifications/unsubscribe-auth/AbXxcxJduxKIVCxr9KMljDZGHDjFxRy3ks5urP0UgaJpZM4YMck8 .

guillebot commented 5 years ago

I have no sleeping nodes. I have pretty good coverage. Very few NACKs, or not at all.

Can you please point me about what to check?

In realtime it shows in fact the connection between nodes. Just won't show which node is closer to the gateway.

Thanks in advance

On Sat, 3 Nov 2018 at 04:54 Daniele Frigo notifications@github.com wrote:

I can see exactly this behavior, and I like it. If I can suggest a change, I'd like to see the last path to gateway for sleeping nodes.

Il giorno sab 3 nov 2018, 03:19 Jeeva Kandasamy notifications@github.com ha scritto:

@guillebot https://github.com/guillebot If you turn off Real time you see a virtual view. It will show as all the nodes connected to the gateway node.

In real-time mode, it will show the actual setup. In your case, you are seeing some nodes are unconnected. can you select the gateway and run Discover, and check the topology page once again. If still, it is unconnected, you may have a sleeping node in your topology(may not send parent node details while sleeping) or nodes not in good coverage.

Have you configured parent node statically in your sketch?

between, if you have questions, right >> http://forum.mycontroller.org

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub < https://github.com/mycontroller-org/mycontroller/issues/480#issuecomment-435553153 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AbXxcxJduxKIVCxr9KMljDZGHDjFxRy3ks5urP0UgaJpZM4YMck8

.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mycontroller-org/mycontroller/issues/480#issuecomment-435568580, or mute the thread https://github.com/notifications/unsubscribe-auth/ABF62X5Xi9j-UnNWrGH4wZFZWz-6ec95ks5urUvKgaJpZM4YMck8 .

guillebot commented 5 years ago

In order to add more info, I can see that every node has its parent information right. Even the node that should be connected to the gateway.

2018-11-05_16-01-18

jkandasa commented 5 years ago

@guillebot looks like seems all good. Can you select your gateway and run Discover once again and check the topology page? Can you point node 0 in that topology?

My topology page looks as follows, Are you looking this kind of topology?

image

guillebot commented 5 years ago

Thanks @jkandasa. My topology looks very similar, but the gateway is floating, disconnected to any node.

I have no node zero (0). I have nodes 10, 11, 12 and 13. And of course the gateway which is ethernet-mqtt.

2018-11-06_16-22-58 2018-11-06_16-25-35

jkandasa commented 5 years ago

@guillebot can you send your gateway Arduino sketch?

guillebot commented 5 years ago

Of course, but it's the standard sketch from:

https://www.mysensors.org/build/mqtt_gateway

gateway.ino.txt

jkandasa commented 5 years ago

@guillebot Thank you for the sketch. Can modify your presentation function as follows and try again?

void presentation() {
  sendSketchInfo("Gateway node", "1.0");
}
jkandasa commented 5 years ago

@guillebot If you still(after the above steps ^^), do not see the node 0 in MyController nodes page. Add it manually.

guillebot commented 5 years ago

Much better!!!

Thanks a lot

I'm going to work now in that OFFLINE status, but I already have what I wanted that was a faithful representation of the topology.

Thanks again! 2018-11-07_08-28-24 2018-11-07_08-30-43