This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Sensor Example publish error 0x08

I want to use the sensor example to transmit 10bytes of data at at rate of 10Hz.

I have tested the publishing using periodic publishing configured with the nRF Mesh app with the default sensor example and it works flawlessly.

I have now implemented a custom property that can transmit 10bytes (Closed system, not according to Mesh specification).

However when I publish it, only about every 10th message is received properly from the client.

around 9/10 times the error 0x08 is returned and the publication fails. In nrf_errof.h is found this:

#define NRF_ERROR_INVALID_STATE               (NRF_ERROR_BASE_NUM + 8)  ///< Invalid state, operation disallowed in this state

I suppose this has to do with the cadence timer intervals.

What could be the problem? What do I need to consider when using the periodic publishing instead?

I don't need cadence at all. Is the sensor example too advanced for my use case?

What example could I use as a basis?

What I need is simply transferring 10bytes at 10Hz from <20 nodes to one central node.

Parents
  • Hi,

    I have now implemented a custom property that can transmit 10bytes

    What do you mean by "custom property", can you elaborate?

    It might be easier to have a look at the Light Switch example and see how data is being sent there.

    Maybe you are sending too fast? Have you tried reducing the rate you are sending packets?

  • Hey,

    I found the cause of the error.

    I was adding 10 byte of data to the packet. The maximum allowed unack data amount is 8 byte. (15 byte total message: 4 MIC byte, 1-3 OP Code byte, remaining 8-10 data byte...)

    I assume that the packet was sent as if it is acknowledged but no device would acknoledge reception, thus it timed out...

    I reduced the amount of data to 8byte and now it works Slight smile

Reply
  • Hey,

    I found the cause of the error.

    I was adding 10 byte of data to the packet. The maximum allowed unack data amount is 8 byte. (15 byte total message: 4 MIC byte, 1-3 OP Code byte, remaining 8-10 data byte...)

    I assume that the packet was sent as if it is acknowledged but no device would acknoledge reception, thus it timed out...

    I reduced the amount of data to 8byte and now it works Slight smile

Children
No Data
Related