Non-blocking communications

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

Non-blocking communications

Postby jzw » Fri Jan 31, 2020 5:19 pm

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: 1656
Joined: Thu Jun 10, 2010 11:43 am

Postby mon2 » Fri Jan 31, 2020 5:58 pm

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

-xCONNECT-dynamic-configuration-demo(1.0.0rc4).pdf

The SW for this demo is posted here:

https://www.xmos.com/file/an01024-xconn ... n-demo-sw/
You do not have the required permissions to view the files attached to this post.
jzw
Member
Posts: 15
Joined: Sat Nov 14, 2015 3:53 pm

Postby jzw » Sat Feb 01, 2020 12:57 pm

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
XCore Addict
Posts: 165
Joined: Wed May 31, 2017 6:55 pm

Postby CousinItt » Mon Feb 03, 2020 11:55 am

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

Who is online

Users browsing this forum: No registered users and 1 guest