Where is the polled message from the Friend Node stored?

Using the Low Power node example with the light switch server example. 

The LP Node successfully polls messages from the friend node. 

I am struggling to figure out, WHERE the polled messages are located. Can someone tell me in which data structure the polled messages are stored? 

Parents
  • Hi Hypn, 

    As far as I know, there isn't a buffer specifically for message from friend node. The packets from friend node are received the same way as normal mesh packet. So it's transparent to the transport and access layer if the packet is received from a friend node or it receive from a relay node (like normal non LPN node) 
    Could you let me know what's the exact issue you are dealing with ? 

Reply
  • Hi Hypn, 

    As far as I know, there isn't a buffer specifically for message from friend node. The packets from friend node are received the same way as normal mesh packet. So it's transparent to the transport and access layer if the packet is received from a friend node or it receive from a relay node (like normal non LPN node) 
    Could you let me know what's the exact issue you are dealing with ? 

Children
  • Thank you for your answer.

    So you say I have to change the subscription adress of the nRF5x Mesh Light Node to the ELEMENT Adress, in which the Generic ON/OFF Model is saved in the LP Node? By using the App?

    I tried this, however, I still don't get any messages in the RTT output of the LP Node. 

    Here you see the three Nodes in my App: 

    The LP Node with its Elements and its Elements Adresses: 

    The Setting I am using for the Generic ON OFF Client of the LP node:

    It publishes to the Group 0xC002 and is not subscribed to anything. 

    Then the elements of the light server with the corresponding adresses: 

    The Setting of the Generic On Off Server of the Light Server Node:

    (The Light Server publishes directly to the LPN Node Element with adress 0x001C and is subscribed to the Group 0XC002). 

    Sorry I am very confused and I have no clue where the problem is. 

    Regarding your statetement: 

    Note that there is a timer that automatically send a OFF packet after you click ON. 

    I noticed this behaviour. Whats the purpose of this behaviour? This should be mentioned in the Low power example documentation page since I thought there might be a problem with the provisioning process or something and I spent some time to figure this out. 

    Kind Regards, 

  • Hi, 
    In my test here I just need to set the publication address of the Light Switch Server to the LPN node and it works. In your case it's 0x001C. Please make sure to reestablish the friendship after that. (In my test the friend node and the light switch server is the same node).

    Please set the publication address of the LPN light switch client to the unicast address of the light switch server, in this case 0x001D.

  • Hi, 

    In my test here I just need to set the publication address of the Light Switch Server to the LPN node and it works. In your case it's 0x001C. Please make sure to reestablish the friendship after that. (In my test the friend node and the light switch server is the same node).

    Please set the publication address of the LPN light switch client to the unicast address of the light switch server, in this case 0x001D.

    I've already set the publication adress of the two Light Switch Server to the LPN Node. (as shown above?) 


    I do not agree with the second setting: 

    If I set the publication adress of the LPN light switch to the unicast adress of the light switch server, only the LED of exactly THAT light switch server (0x001D in this case) is turned on when I push the button on the LPN light switch. 

    However, isn't it the purpose of this example that BOTH LED on the light switch servers turn on if the ON button is pressed on the LPN light switch? Therefore the publication adress of both light switch servers have to be set to the group adress and both light switch servers are subscribed to the exact same group adress. 

    I cannot explain why, but I tested the setup today and today it worked. 

  • Hi Hypn, 
    I agree that group address should also work. The LPN node is considered that it can do all mesh activity that a normal node can do (except for relaying). 

    My suggestion earlier is for testing and to be sure you can receive the feedback from the server. 

    But it's important to make sure that the subscription address that the LPN subscribed (the group address) is added to the friend node. Again, the LPN needs to subscribe to the group address and after that you establish friendship. 

Related