Author Topic: Problem With Router Discovery  (Read 2982 times)

0 Members and 1 Guest are viewing this topic.

Offline PeiliTopic starter

  • Regular Contributor
  • *
  • Posts: 108
  • Country: in
Problem With Router Discovery
« on: December 03, 2018, 04:08:03 am »
Hi
   We are using the Lwmesh stack for avr-atemga256rfr2. we have a coordinator, 10 routers and a moving end device.. routers far from coordinator is directly hopping to the coordinator.2 or 3 routers are fixed in a corridor and have used one device to walk along the way where the routers placed.It was based on the assumption that when the device moves along the router path it picks up near by routers one by one along the path. But facing some issues with the this.. the moving device is not picking up the routers correctly... Is it issue with the Txpower value in the lwmesh..we have tested with values 0,1,2,3.but couldn't any changes has happened in range. Can anybody help me to solve it
« Last Edit: December 03, 2018, 04:15:06 am by Peili »
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11257
  • Country: us
    • Personal site
Re: Problem With Router Discovery
« Reply #1 on: December 03, 2018, 04:33:46 am »
Why do you think that the issue is with Txpower?

In general LwMesh algorithms (there are two, which one you are using?)  are not designed for fast moving devices. They need a few failed transmissions before removing the route and starting to look for a new one.
Alex
 

Offline PeiliTopic starter

  • Regular Contributor
  • *
  • Posts: 108
  • Country: in
Re: Problem With Router Discovery
« Reply #2 on: December 03, 2018, 04:35:56 am »
In general LwMesh algorithms (there are two, which one you are using?)  are not designed for fast moving devices.
Using AODV routing
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11257
  • Country: us
    • Personal site
Re: Problem With Router Discovery
« Reply #3 on: December 03, 2018, 04:38:12 am »
What about the part about TxPower? Why do you think that the issue is with TxPower?

What is your application scenario? How often does the ED send data?
Alex
 

Offline PeiliTopic starter

  • Regular Contributor
  • *
  • Posts: 108
  • Country: in
Re: Problem With Router Discovery
« Reply #4 on: December 03, 2018, 04:40:18 am »
Some times the ED which place near to coordinator it send continuously data ... moving from router to router it shows problems.. so i thought it might be issue with the Txpower
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11257
  • Country: us
    • Personal site
Re: Problem With Router Discovery
« Reply #5 on: December 03, 2018, 04:41:42 am »
You need to be more specific if you actually want help. What "problems"? Continuously how often (frames per second)?
Alex
 

Offline PeiliTopic starter

  • Regular Contributor
  • *
  • Posts: 108
  • Country: in
Re: Problem With Router Discovery
« Reply #6 on: December 03, 2018, 04:43:21 am »
What is your application scenario? How often does the ED send data?
My application is , i have some routers placed inside corridors and open area.. And i have on moving object(ED) , moves along the router path it picks up near by routers one by one along the path and send the router address ..
 

Offline PeiliTopic starter

  • Regular Contributor
  • *
  • Posts: 108
  • Country: in
Re: Problem With Router Discovery
« Reply #7 on: December 03, 2018, 04:47:12 am »
You need to be more specific if you actually want help. What "problems"? Continuously how often (frames per second)?
When the ED moves along the routers path it doesn't  picking the address.. i'm attaching my config.h file
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11257
  • Country: us
    • Personal site
Re: Problem With Router Discovery
« Reply #8 on: December 03, 2018, 04:49:21 am »
I don't understand what do you mean by "picking the address". Address of what. You will have to write more than one sentence.
Alex
 

Offline PeiliTopic starter

  • Regular Contributor
  • *
  • Posts: 108
  • Country: in
Re: Problem With Router Discovery
« Reply #9 on: December 03, 2018, 04:54:40 am »
I don't understand what do you mean by "picking the address". Address of what. You will have to write more than one sentence.
picking address means picking the router address.. i have placed some routers and have address like 1001,1002 etc.. the routers placed in corridor and the ED move along the router placed path.. when the ED near to the 1001 address router it send address 1001 to the coordinator.. and the next router address like that... we are expecting this to happen.. But the ED not picking up any address 
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11257
  • Country: us
    • Personal site
Re: Problem With Router Discovery
« Reply #10 on: December 03, 2018, 04:57:09 am »
You will probably have to modify the route selection algorithm. If your router is still accessible in one hop, it is likely to be the best route for actual communication. If you really want to just select the cosesd device, then you will need to modify the cost function inside nwkRouteDiscovery.c
Alex
 

Offline PeiliTopic starter

  • Regular Contributor
  • *
  • Posts: 108
  • Country: in
Re: Problem With Router Discovery
« Reply #11 on: December 03, 2018, 04:59:45 am »
then you will need to modify the cost function inside nwkRouteDiscovery.c
which is the cost function?
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11257
  • Country: us
    • Personal site
Re: Problem With Router Discovery
« Reply #12 on: December 03, 2018, 05:02:20 am »
The whole routing algorithm uses LQI (not the radio LQI, it is own LQI). Buy default LQI used for route evaluation is based on combining the LQIs from the radio. But you can substitute any metric.

Specific details can be tricky. You will have to understand how that file works and update it accordingly.
Alex
 

Offline PeiliTopic starter

  • Regular Contributor
  • *
  • Posts: 108
  • Country: in
Re: Problem With Router Discovery
« Reply #13 on: December 03, 2018, 05:07:22 am »
The moving device is not picking the nearby routers quickly.Can we do anything in code to pick the nearby routers quickly
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11257
  • Country: us
    • Personal site
Re: Problem With Router Discovery
« Reply #14 on: December 03, 2018, 05:16:00 am »
Define "quickly". Devices only evaluate routes what the data is sent. If you are moving the device and not sending anything, it will not pickup anything. If you send the data once a second, and you have route score of 3, it will take at least 3 attempts or 3 seconds to even detect failure, and then one more attempt to start the new discovery.

A cheap hack is to send more often and lover the route score.
Alex
 

Offline PeiliTopic starter

  • Regular Contributor
  • *
  • Posts: 108
  • Country: in
Re: Problem With Router Discovery
« Reply #15 on: December 03, 2018, 05:52:00 am »
Define "quickly".
quickly means when the ED is near to one router it should pick the router address and send it with delay of 1 sec
 

Offline PeiliTopic starter

  • Regular Contributor
  • *
  • Posts: 108
  • Country: in
Re: Problem With Router Discovery
« Reply #16 on: December 03, 2018, 05:54:05 am »
A cheap hack is to send more often and lover the route score.
[/quote
NWK_ROUTE_DEFAULT_SCORE is now set to 1
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11257
  • Country: us
    • Personal site
Re: Problem With Router Discovery
« Reply #17 on: December 03, 2018, 05:59:38 am »
So in this second device must detect that the route is missing and discover a new one. If your application logic has not changed from a standard WSNDemo, your ED sending interval is 2 seconds and default score is 2. There is absolutely no way for it to detect route loss faster than 4 seconds.

To be that fast you need to send many more frames. And make route discovery timeout shorter.
Alex
 

Offline PeiliTopic starter

  • Regular Contributor
  • *
  • Posts: 108
  • Country: in
Re: Problem With Router Discovery
« Reply #18 on: December 03, 2018, 06:01:45 am »

To be that fast you need to send many more frames. And make route discovery timeout shorter.
how to change it?
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11257
  • Country: us
    • Personal site
Re: Problem With Router Discovery
« Reply #19 on: December 03, 2018, 06:03:03 am »
It is quite literally the name of the configuration option.

You have to understand the code to efficiently use it. There is no way around it.
Alex
 

Offline PeiliTopic starter

  • Regular Contributor
  • *
  • Posts: 108
  • Country: in
Re: Problem With Router Discovery
« Reply #20 on: December 07, 2018, 11:38:53 am »
Now ED could send  router address indoor efficiently,  but with same router firmware outdoor is absolutely opposite behaviour.  I tried with and with out time delay to Appsenddata() and works fine in indoor . In out door even the routers are very  closer different routers behaves different. what can i infer from it ? Is it related to signal propagation or any chance to affect external objects   
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11257
  • Country: us
    • Personal site
Re: Problem With Router Discovery
« Reply #21 on: December 07, 2018, 04:08:13 pm »
You are trying to do location using a communication stack. The only way to find out what is wrong is to get a sniffer and start looking at the frames.
Alex
 

Offline PeiliTopic starter

  • Regular Contributor
  • *
  • Posts: 108
  • Country: in
Re: Problem With Router Discovery
« Reply #22 on: December 10, 2018, 12:42:56 pm »
Now Ed sends address  when it is in the vicinity of Coordinator or near by routers of coordinator :). Sniffer(Sniffer_near.pcap , which is not supported by the forum , so changed as .png , Please change it to pcap ) file attached. when it comes under the far routers,  lets say 3 routers away from coordinator , it sends only when we stay more than two minutes and closer to that particular router :(. Sniffer_far is attached.  We assign 0x00 as transmit power to all routers and 0x0c to all ED. Score value is 3 for router and 1 for ED. How can we update routing more fast as soon as ED comes under different routers ?
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11257
  • Country: us
    • Personal site
Re: Problem With Router Discovery
« Reply #23 on: December 10, 2018, 06:03:03 pm »
I did not look at the traces, I don't have time for that and I can imagine what is there.

If you want location, you need to engineer the thing for location. You can't take communication stack and expect it to be good at quickly locating the devices.

The way I would approach this is though local broadcasts of the LwMesh. They are a very powerful tool. Make all the routers broadcast their ID via a local broadcast. ED will wake up (if sleep is desired), listen for some time to receive IDs from all the routers, and pick the one with a strongest signal. ED then will send this frame to that router directly. The router routes the frame as usual to the C.

This way you eliminate the need to rebuild the routing tables on the ED.
Alex
 

Offline PeiliTopic starter

  • Regular Contributor
  • *
  • Posts: 108
  • Country: in
Re: Problem With Router Discovery
« Reply #24 on: August 21, 2019, 06:35:23 am »


The way I would approach this is though local broadcasts of the LwMesh. They are a very powerful tool. Make all the routers broadcast their ID via a local broadcast. ED will wake up (if sleep is desired), listen for some time to receive IDs from all the routers, and pick the one with a strongest signal. ED then will send this frame to that router directly. The router routes the frame as usual to the C.

This way you eliminate the need to rebuild the routing tables on the ED.
i would like to use this scenario.. How can i check the signal strength at End Device side and pick the strongest?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf