Using nRF Connect SDK v1.2.0 on nRF52840 DK (PCA10056)
We are evaluating the nRF Connect SDK on the 52840 until our 5340 PDK arrives. While running the mesh light example (nrf/samples/bluetooth/mesh/light) I'm noticing the message transmit count should be 3 (that is the message is repeated 3 times on each advertising channels in succession using the same mesh sequence number). However when using an Ellisys bluetooth capture device to sniff these out i'm seeing what appears to be a random number of messages being broadcasted each time. Each publication seems to vary between 1-6 messages. Running the same hardware but using the nRF Mesh SDK (v3.1.0) I have not observed this problem.
Its a bit unclear to me how the number of packets to be sent by the advertising bearer is even enforced. It looks it just turns on advertising for a bit, goes to sleep and then turns it off (zephyr/subsys/bluetooth/mesh/adv.c::adv_thread). The calculation of the advertising duration isn't really clear and kinda looks like its advertising for too long. For 3 transmissions at a 20msec interval its using a duration of 120msec according to the logs.