All of lore.kernel.org
 help / color / mirror / Atom feed
From: Per Oberg <pero@wolfram.com>
Cc: xenomai <xenomai@xenomai.org>
Subject: Re: Using RTnet to communicate with regular UDP socket
Date: Tue, 12 Mar 2019 03:18:39 -0500 (CDT)	[thread overview]
Message-ID: <1581388606.618666.1552378719905.JavaMail.zimbra@wolfram.com> (raw)

Hi 


019, på kl 17:20, xenomai xenomai@xenomai.org skrev: 
> Hi everyone: 
> I am using xenomai + RTnet in Ubuntu,Xenomai version 3.0.5 Linux kernal version 
> 4.9.38. And the ethernet card is Intel e1000. 

> I'm going to use RTnet to communicate with regular UDP socket like a socket in 
> raw Linux . I need to implement two way communication between Xenomai and 
> another device witch is using regular UDP socket. In other words, RTnet socket 
> in Xenomai should sent datagram to the regular UDP socket . If the regular UDP 
> protocol can decode the rt-udp datagram and get right data? Besides, RTnet 
> socket in Xenomai should also receive datagram from regular UDP protocol, so if 
> the rt-udp in Xenomai can decode the regular UDP datagram? 
> Thanks for everyone who spend time to give me some help! 

Afaik, when you use the posix skin you may use the same UDP code in Xenomai as in regular Posix/Linux as long as you compile your program with the right flags. If your network destination/source is a RTNet address it will call the rt functions and if its an address belonging to the regular network it will call the regular linux code. 

Per Öberg 

             reply	other threads:[~2019-03-12  8:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-12  8:18 Per Oberg [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-03-11 16:20 Using RTnet to communicate with regular UDP socket 李冰

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1581388606.618666.1552378719905.JavaMail.zimbra@wolfram.com \
    --to=pero@wolfram.com \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.