BLE Mesh on the FRDM-KW41Z does not always deliver packets

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

BLE Mesh on the FRDM-KW41Z does not always deliver packets

1,897 次查看
pbartlett
Contributor II

I am using the FRDM-KW41Z kit to set up a simple BLE Mesh using the examples that came with the kit. I am using the IAR IDE and have set up one module as the commissioner/configuration client and the other as a temperature server. I created a new shell command on the configuration client that calls MeshTemperatureClient_GetTemperature(destination) with destination set to the address of the temperature server device. Below is an example of the terraterm activity when I type my new command:

BLE MESH >>> temp get 1
< Temp Get command sent to 1 >
BLE MESH >>>
-> Received Temperature measurement from ID 1: 27 degrees Celsius.

So far so good but it only works about 50% of the time. When it fails I see the following:

BLE MESH >>> temp get 1
< Temp Get command sent to 1 >

Which indicates to me that the call to MeshTemperatureClient_GetTemperature(destination) was successful.

Using IAR on the temperature server end I can see that the  MeshTemperatureServerCallback() is not being called when a failure occurs. How can I find out where the command is getting lost?

Philip

标记 (3)
4 回复数

1,385 次查看
antonioconcio
NXP Employee
NXP Employee

Hi Phil,

It is possible that some packets are not received due to the environment of the BLE advertising channels where the mesh nodes are operating, but in case of a mesh nwk when you have several nodes (compared to your test with only 2 nodes) it can happen that a node may miss a packet from a relay and still gets the same packet from another relay.

In actual implementation there isn't any acknowledge algorithm/protocol to confirm a reception of a packet and send it again if it is lost, but this could be implemented at application level (combination of ack and retries mechanism similar to 802.15.4 one). 

Please note the BT Mesh specification that is under development introduces the concept of reliable and unreliable messages and therefore we are going to have it in Q1'17.

My best wishes for a Happy 2017,

Antonio

1,385 次查看
evgenyerlihman
Contributor IV

Hi Antonio,

I have the same issue, the KW41Z eval boards are sitting on my desk with 10cm distance between them, and i still get lower than expected percentage of successful messages between them. I think the "environment" in the office should give me 100% providing no physical obstacles between the nodes....

Thanks,

Evgeny

0 项奖励
回复

1,385 次查看
antonioconcio
NXP Employee
NXP Employee

Hi Evgeny,

2.4GHz is quite a crowded band, almost impossible to get 100% without any acknowledgment mechanism, that anyway can easily implemented leveraging the callback event and a timer.

I was referring to Mesh specification from Bluetooth SIG, that is supposed to be ratified in Q3.

Cheers,
Antonio

1,385 次查看
evgenyerlihman
Contributor IV

Hi Antonio,

What BT Mesh specification were you referring to that introduces the reliable and unreliable messages?

Thanks,

Evgeny

0 项奖励
回复