Hi,
I set up and testet the Low Power node example, described here:
I am using 3 nRF5840DK boards, the nRF5_SDK_Mesh_5.0 and nRF5_SDK_17.0.2_d674dde.
When compiling the Light Switch Server an error occurs in the File app_error_weak.c:
'LEDS_MASK' undeclared (first use in this function); did you mean 'LEDS_LIST'?
The problem is, that LEDS_MASK is not defined in the pca10056.h File.
To solve this problem, I simply commented the two lines in the File app_error_weak.c
/* Turn on all LEDs on board */ //NRF_GPIO->DIRSET = LEDS_MASK; //NRF_GPIO->OUTCLR = LEDS_MASK;
My questions regarding this problem and the LPN example:
1. Is this a known problem or am I doing something wrong here?
2. When the LPN node establishes a friendship with one of the light switch servers, in the RTT log of the LPN node the following messages appear with a certain frequency:
<t: 3556622>, main.c, 480, Friend poll procedure complete
<t: 3867046>, main.c, 480, Friend poll procedure complete
<t: 4177472>, main.c, 480, Friend poll procedure complete
<t: 4487932>, main.c, 480, Friend poll procedure complete
What exactly is the LPN Node polling from the friend? Should I see some more information from the befriended light switch server? (e.g when pressing a button on the befriended light switch server).
3. My final application has the purpose to observe something particular with several Low power nodes (so the message from the LP Nodes is basically "ON/OFF" as in this LPN example). Since my LPN nodes run with battery, I want to build a mesh with LP nodes and friend nodes. However: For development purposes I also want to send some more data from the LP Nodes to the friend nodes or gateway in order to be able to get some more information what is going on at the LP node. Is it possible to send more than just the "ON/OFF" data with the LPN example mentioned above? I tried to set up the sensor model, however, this example did not work with the development kits and It also does not provide the friendship feature. Since I have no clue how to implement the friendship feature by myself I have to have a working example...
4. I need instructions on how to integrate my existing application into the Mesh example. The many dependencies and settings in the Segger Embedded Studio have already led to significant problems for me and I still don't quite understand how this should be done on a professional level.
Thans for your support.