This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem with polling at short intervals

Hi all,

I am working on a project which includes coordinator, single end device and duplex communication between them.

I created a necessary attributes and now data exchange works properly - when coordinator receives data from end device, it immediately resends it to its child.

If I understand this mechanism correctly - to retrieve data buffered by coordinator, end device has to ask it whether there's some data. If I disable data request polling on end device and do not generate it manually, it will not receive data from coordinator, right? This is one way to ask parent about data, isn't it?

My challenge is to send data as fast as possible, however I encountered some difficulties with that.

A) End device sends data to its parent with interval 50 miliseconds. POLL_RATE is also set to 50ms, QUEUED and RESPONSE POLL RATE are set to 10ms.

Packet capture from sniffer looks like this:

As I see it works fine, however this is still too slow for me.

B) I change configuration to: interval = 30 ms, POLL_RATE = 30ms, QUEUED=RESPONSE=10ms. Now capture looks like this:

First of all, coordinator sends some frames of data in a row without request from end device.

What's more, after some time the communication has been lost and I can see 'Assoc Cnf fail' message on my screen. I guess that interval time is too short, but I do not know why and what can I do to improve that.

My main goal is to send and receive data in about 10-20 ms interval. 

1. Is it at all possible?

2. Should I poll data request from end device manually or automatically? What would be better for my purpose?

3. What is the shortest provided POLL_RATE?

4. How can I do to improve my configuration to achieve best results? What should I set POLL_RATE, RESPONSE and QUEUED?

If I understand something incorrectly, please let me know. I would be very grateful for any help.

Thank you