I have a custom model that is declared as follows
"bt_mesh_transport: No matching TX context for ack"
Tried different values - no luck . What does the "no matching TX context for ack" error mean?
I have a custom model that is declared as follows
Hi,
You will typically get the "No matching TX context for ack" error if you have not successfully set up publish parameters on the device. The "Invalid publish parameters" error from the app would mean that the attempt to set new publish parameters for the device failed, in which case the device would have some missing publish parameters.
In order for a Bluetooth mesh device to publish, it must have a publish address, and it must have an application key bound to the model doing the publishing. Have you configured both of these from the app?
Please note also that the group address 0xFFFF, the "all nodes" address, is only addressing the first element (the primary element) of each node. It is not intended for general broadcasting to all models of a certain type, as there may be instances of that type of model on non-primary elements on some nodes. Those models will not receive the message.
Regards,
Terje
Hi,
You will typically get the "No matching TX context for ack" error if you have not successfully set up publish parameters on the device. The "Invalid publish parameters" error from the app would mean that the attempt to set new publish parameters for the device failed, in which case the device would have some missing publish parameters.
In order for a Bluetooth mesh device to publish, it must have a publish address, and it must have an application key bound to the model doing the publishing. Have you configured both of these from the app?
Please note also that the group address 0xFFFF, the "all nodes" address, is only addressing the first element (the primary element) of each node. It is not intended for general broadcasting to all models of a certain type, as there may be instances of that type of model on non-primary elements on some nodes. Those models will not receive the message.
Regards,
Terje
I used the nrf mesh app to provision the device and that succeeded . I can set up publishing on the battery model just fine. It's only the custom model that fails. Can you clarify what you mean by "you have not successfully set up publish parameters on the device." ? See the device composition data above. Is there anything missing?
On your second statement, My custom model is in the primary element In case I need to move it to another element, what address should I be using to send the message to all nodes? Or is that not possible?
Thanks
Hi,
Regarding my first comment I was thinking you may be missing the publish address configuration, but since it is for an ack it may also be something wrong with the model implementation. We do have a vendor model development overview as part of the SDK documentation, as well as a walk-through of the code for the vendor specific chat sample. You may be missing a step, such as a callback function, or missing functionality from one of the callbacks?
There is no standarized message going to each and every element for all nodes. You then have to configure every model to subscribe to a group address, and send the message to that group address.
Regards,
Terje
I tried using the custom model from onof_level_lighting_vnd_app sample instead of the model that I created. I get the same result . Status 0x07 configuring publication with mesh shell and "invalid publish parameters" in mesh mobile app. Here is exactly the model definition. Can you spot anything that may cause this?
-------------------