Electronics > Beginners

Lwmesh Broadcast frame Modification

(1/1)

Peili:
Hi,
i would like to modify the Brodcast frame at Router side which is received from End Device .. I read the developer document that "The Link Local subfield is 1 bit in length, and it may be set to one to prevent neighboring nodes from rebroadcasting a frame"..  I set my code in End Device as

--- Code: ---                appNwkDataReq.dstAddr = 0xFFFF;
appNwkDataReq.dstEndpoint = APP_ENDPOINT;
appNwkDataReq.srcEndpoint = APP_ENDPOINT;
appNwkDataReq.options =  NWK_OPT_ENABLE_SECURITY|NWK_OPT_LINK_LOCAL;


--- End code ---
but the broadcast frames are still broadcasting from the Routers.. How can i manage this frames.. Is my configuration is ok?

ataradov:
The code is fine. Once again, why not set a debugger in the router and see why it rebroadcasts?

The check that should prevent rebroadcasts is "0 == header->nwkFcf.linkLocal" in nwkRx.c.

Peili:

--- Quote from: ataradov on August 21, 2019, 06:32:07 am ---The code is fine. Once again, why not set a debugger in the router and see why it rebroadcasts?

--- End quote ---
my Router configuration is

--- Code: ---                           appNwkDataReq.dstAddr = 0;
                           appNwkDataReq.dstEndpoint = APP_ENDPOINT;
                           appNwkDataReq.srcEndpoint = APP_ENDPOINT;
                           appNwkDataReq.options = NWK_OPT_ACK_REQUEST | NWK_OPT_ENABLE_SECURITY;


--- End code ---
is this ok?
Where to set debugger in Router code?

ataradov:
This is not a "router configuration". This is just a configuration for some request. Broadcasts have nothing to do with what happens on the application level. This is totally irrelevant to anything.

Also, this is the last reply if you don't start capitalizing your sentences.

Navigation

[0] Message Index

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod