mesh: duplicate found in network message cache

Starting a new ticket since now I have a bit more details to describe what's going on

I have a custom model server that is configured to publish  every 10 seconds with retransmit count of 7 and TTL 10

Configured 2 devices to publish an 1 to subscribe to the publication.

Subscriber is connected to the RTT console

On power up it receives messages from both publishers

After about 2-5 minutes it only receives messages from 1 publisher for several minutes, then messages from the second publisher. then the first one again but never both, as was the case on power up 

The message from the second publisher is received by the stack but not propagated to the application layer

Debug log below shows 

00> [00:19:15.207,244] <dbg> vps_model_c: vps_set_unack: >>> GOT DATA --> message delivered to the application
00> [00:19:20.023,925] <dbg> bt_mesh_net: bt_mesh_net_relay: TTL 10 CTL 0 dst 0xc002
00> [00:19:20.023,956] <dbg> bt_mesh_net: bt_mesh_net_relay: Relaying packet. TTL is now 9
00> [00:19:20.025,207] <dbg> bt_mesh_net: bt_mesh_net_recv: rssi -56 net_if 0
00> [00:19:20.025,268] <dbg> bt_mesh_net: bt_mesh_net_decode: 29 bytes: 6882c477165f86a2c174b0a52dd1094a2eee14e12609d00a45a27a87d2
00> [00:19:20.025,299] <dbg> bt_mesh_net_keys: bt_mesh_net_cred_find:
00> [00:19:20.025,299] <dbg> bt_mesh_net: net_decrypt: NID 0x68
00> [00:19:20.025,329] <dbg> bt_mesh_net: net_decrypt: IVI 0 net->iv_index 0x00000000
00> [00:19:20.025,360] <dbg> bt_mesh_net: net_decrypt: Duplicate found in Network Message Cache
00> [00:19:20.025,360] <dbg> bt_mesh_net: bt_mesh_net_decode: Unable to find matching net for packet

Any ideas what's going on and how to fix?

Thank you

Related