Non-blocking communications

If you have a simple question and just want an answer.
Post Reply
jzw
Member++
Posts: 24
Joined: Sat Nov 14, 2015 3:53 pm

Non-blocking communications

Post by jzw »

I have a pair of boards using the XU216-512-FB236 part. I have established an external xconnect link between the two and can exchange data reliably. I would like to be able to send a message (a single byte would do) from one board to the other with the sender not blocking. The data sent can be lost if not received and I would not need to know on the sender if it had been received or not.

Is there a way of doing this? I have experimented with server channels and using control tokens but the sender always blocks if the data is not taken. Since these are two individual and separate parts I cannot us any shared memory approach.


User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post by mon2 »

Hi. Can you review the attached document which offers a demo code example?

-xCONNECT-dynamic-configuration-demo(1.0.0rc4).pdf
(1.26 MiB) Downloaded 213 times
-xCONNECT-dynamic-configuration-demo(1.0.0rc4).pdf
(1.26 MiB) Downloaded 213 times

The SW for this demo is posted here:

https://www.xmos.com/file/an01024-xconn ... n-demo-sw/
jzw
Member++
Posts: 24
Joined: Sat Nov 14, 2015 3:53 pm

Post by jzw »

Thanks for the response. I had based my communications on this application note but had forgotten the detail. If I check for credit before I try and send it works a lot better.
User avatar
CousinItt
Respected Member
Posts: 360
Joined: Wed May 31, 2017 6:55 pm

Post by CousinItt »

Have you looked at notifications? These are non-blocking on the server.
Post Reply