Hello.

it's everything much more simple :)


You just have to open a  RAW_SOCK, and then read with rt_dev_recvfrom.
Everything else is managed by RTnet. Don't worry with it.

If you want to put the ethercat protocol support inside RTnet, you should talk 
with Jan for more details.


Jorge


Em Quarta, 11 de Outubro de 2006 14:59, o [EMAIL PROTECTED] escreveu:
> Hi,
> 
> I'm trying to implement the ethercat protocol into Orocos (www.orocos.org). 
> To do this I want to use the RTNet with a Realtek rtl8139 network card.
> 
> So, I've installed RTNet on Xenamai and try to send and receive raw ethernet 
> packages (ethercat data) using the rtl8139 driver. But I'm a bit confused on 
> how to do this, especially the receiving part isn't really clear to me. The 
> way I see it (please correct me if I'm wrong), the rx_interrupt function 
> takes the data from the rx_ring and puts it on the skb_pool. Then the atomic 
> variable \"ref_count\" is incremented with \"rtnetif_rx (skb)\", so the upper 
> layer can see there has new data been received .
> Now my question is, how do I reach the data that has been put on the 
> skb_pool? Is there a function to do this? Or do I have to take to take the 
> data with a function like \"sock_queue_rcv_skb()\" and increment 
> \"ref_count\" myself?
> 
> Tom

-- 
Jorge Almeida
[EMAIL PROTECTED]
DISCLAIMER: This message may contain confidential information or privileged 
material and is intended only for the individual(s) named. If you are not a 
named addressee and mistakenly received this message you should not copy or 
otherwise disseminate it: please delete this e-mail from your system and notify 
the sender immediately. E-mail transmissions are not guaranteed to be secure or 
error-free as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete or contain viruses. Therefore, the sender does not 
accept liability for any errors or omissions in the contents of this message 
that arise as a result of e-mail transmissions. Please request a hard copy 
version if verification is required. Critical Software, SA.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to