Mesh Chat Model vs Server Chat model with nRF52840

Hi,

I have realized a simple mesh network made up by 10 nodes, one basically with on-off client function and nine basically with on-off server function.

In other words, toggle of SW0 on client makes on-off of LED0 on all servers.

All nodes are realized with nrf_52840.

Manually counting the message error rate of my system (ratio between "on" commands rerceived and "on" commands transmitted ), I found 95% percentage (publish retrasmission of Client = 1)

I wanted to automatize the measure of the message error rate, so I have implemented chat function in Client and Server so that Client can send a query via chat to servers for knowing the number of times LED0 has received the command "on".

With surprise I found 56% percentage of message error rate with the same setup as before.

It seems that the presence of chat, even without exchange of messages, causes a sort of interference to the communication between Client and Servers.

How can I avoid this inconvenience?

Thanks in advance

  • Hi,

    With more network traffic, you should expect more packet collisions and therefore slightly decreased success rate of message transmissions. However, what you describe is the reception rate to halve, which is strange.

    Have you controlled the measurement by at the same time also doing a manual count?

    May it be that the number of messages sent counts also the repeats, so that number of messages sent is double the amount it should be?

    As an alternative for getting network statistics, from a built-in feature in the Bluetooth Mesh stack, you can have a look at Heartbeat and Heartbat messages.

    Regards,
    Terje

  • Hi,

    I hve also controlled with a manual count and the number of sent messages does not count repeated ones.

    What I wanted to underline is that it is enough to configure chat vendor model in every Server nodes to obtain a deterioration of message error rate.

    I repeat what I told in previous post: it seems that the presence of chat, even without exchange of chat messages, causes a sort of interference to the communication between Client and Servers.

    Is it possible that the chat model sends messages (ie: control messages, presence messages, etc) also if my program does not voluntarily send any of them?

  • Hi,

    Thanks for the clarification. This kind of degradation should not happen, no. Merely having another model on the device should not cut packet reception in half.

    Due to Easter vacation we most likely will not have time to look further into this until next week. In the mean time, could you share a project showing the behavior? I.e. one configurable project or two projects, that we can use to compare and reproduce in our end?

    Regards,
    Terje

  • Hi,

    after some days of test I found an error in my project that was responsible for the strange behaviour of the mesh system.

    So I'm glad to say that I have resolved the problem that I have created by myself!

    Regards

Related