Author Topic: Lightweight Mesh NWK_ACK  (Read 1161 times)

0 Members and 1 Guest are viewing this topic.

Offline piotrvvTopic starter

  • Newbie
  • Posts: 4
  • Country: pl
Lightweight Mesh NWK_ACK
« on: January 13, 2017, 10:04:56 am »
Hello.
 
  I try to do end device with repetition of transmission and I want to clarifying some information.
I activated:
Code: [Select]
appNwkDataReq.options = NWK_OPT_ACK_REQUEST | NWK_OPT_ENABLE_SECURITY;
in
Code: [Select]
void appSendData(void)

Q1. Does NWK_ACK works without enabled NWK_ENABLE_ROUTING?

Q2. Does NWK_ACK works without enabled #define NWK_ENABLE_ROUTE_DISCOVERY?

Q3. Where I should get information about: NWK_NO_ACK_STATUS?
Code: [Select]
void appDataConf(NWK_DataReq_t *req)
is the right place?

If so...
   
Q4. When NWK_NO_ACK_STATUS information is available?
After
Code: [Select]
#define NWK_ACK_WAIT_TIME 1000
time? Or maybe somewhere earlier?

Q5: Which program events call
Code: [Select]
void appDataConf(NWK_DataReq_t *req)"
?

Best regards,
piotrvv

 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11248
  • Country: us
    • Personal site
Re: Lightweight Mesh NWK_ACK
« Reply #1 on: January 13, 2017, 05:34:22 pm »
Q1. Does NWK_ACK works without enabled NWK_ENABLE_ROUTING?
Yes, it does. But you still will be able to communicate only with devices within the range, obviously. But they should acknowledge the received frames.

Q2. Does NWK_ACK works without enabled #define NWK_ENABLE_ROUTE_DISCOVERY?
Absolutely.

Q3. Where I should get information about: NWK_NO_ACK_STATUS?

Code: [Select]
void appDataConf(NWK_DataReq_t *req)
is the right place?
That would be the only  place.

Q4. When NWK_NO_ACK_STATUS information is available?
At the moment this function is called. And it will be called after ACK wait time if no ack is received.

Q5: Which program events call
Code: [Select]
void appDataConf(NWK_DataReq_t *req)"
?
It is called only in response to NWK_DataReq(). If there is no pending response, then this is just another function. It has no special meaning, it takes the meaning as a request callback when you specify it as a parameter of the request.
Alex
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf