Electronics > Beginners
Problem With Router Discovery
ataradov:
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
Peili:
--- Quote from: ataradov on December 03, 2018, 04:57:09 am --- then you will need to modify the cost function inside nwkRouteDiscovery.c
--- End quote ---
which is the cost function?
ataradov:
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.
Peili:
The moving device is not picking the nearby routers quickly.Can we do anything in code to pick the nearby routers quickly
ataradov:
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.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version