Author Topic: Router Data Receiving  (Read 764 times)

0 Members and 1 Guest are viewing this topic.

Offline PeiliTopic starter

  • Regular Contributor
  • *
  • Posts: 108
  • Country: in
Router Data Receiving
« on: May 30, 2019, 07:09:19 am »
Hi,
I'm using LWMESH 1.2.1 stack. I have Some End Devices sending data to Coordinator via Router. Data from ED is Unicasting. My application has to modify the data at router side and then route the data to Coordinator.. But at the Router side Nothing is receiving,it just route the packet to Coordinator.. I want to receive the Data from End Device to nearest router and then modify the data at router side and then it should route the data.. Where i can receive that forwarding packet. Here i'm attaching my code for both Router and ED. WSNDemoRouter.c is Router code and WSNDemoED.c is ED code.. please help me to solve this.
 

Offline PeiliTopic starter

  • Regular Contributor
  • *
  • Posts: 108
  • Country: in
Re: Router Data Receiving
« Reply #1 on: May 30, 2019, 07:12:21 am »
Another scenario I used was broadcasting my data from ED..Then i realized from the document that "When broadcast frame has to be sent, destination MAC address is set to 0xffff (broadcast) and frame is transmitted.Route discovery is not performed for broadcast frames." SO now all the Routers receiving the data from ED and modifying the data packet and also it is routing to Coordinator.I don't want to modify the data by all the routers. It should only modified by the nearest Router of ED and all the others should route it to Coordinator.
« Last Edit: May 30, 2019, 07:14:13 am by Peili »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf