Routing in Lightweight Mesh

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I read the code in Lightweight Mesh Demo for routing like nwkRoute.c and nwkRouter.h. Cause there is no documentations for these files, I just wondering what kind of routing protocols used in here.

By the way, if I define one router, one end device and one coordinator in the network, everything works fine. The end device can send its frame to router, and router routes this frame to coordinator (see by WSNMonitor)

However, if I define two router, one end device and one coordinator in the network, end device will never send its frame to router no matter what kind of topology I use. I don't know what is going on here.

Thanks to anyone who can offers some advises

Last Edited: Fri. Oct 16, 2015 - 12:46 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Lightweight Mesh can use its own simple roting that does not require explicit route discovery and AODV roting that uses route discovery frames. Both methods are described in the documentation.

If all your devices are in one location close to each other, then it is just a luck that ED has used router. There is no reason why it can't send data directly.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I’m using WSNDemo of Lightweight Mesh Demo. I define two router (Route 1 and Route 2), one end device and one coordinator in the network, everything works fine. The end device can send its frame to a router, and router routes this frame to coordinator

 

I need to know the route of frame from end device  to  coordinator that is if end device use  route 1 or route 2.

 

In the code:

 

 

  appMsg.parentShortAddr = NWK_RouteNextHop(0, 0);

 

j have always appMsg.parentShortAddr = 0.

 

Thanks to anyone who can offers some advises.

  

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Which means that device sends data directly without using a router.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

Last Edited: Wed. Dec 3, 2014 - 06:52 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

End device send data to coordinator sometimes frames use route 1 and sometimes route 2 ...j would like know the route of frame from end device to coordinator . Thanks

Last Edited: Thu. Dec 4, 2014 - 03:09 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

NWK_RouteNextHop(0, 0) called on the ED will return the address of the next hop towards the device with address 0 (presumably C). If it return 0, it meant that ED communicates directly.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.