[EMAIL PROTECTED] wrote:
> 
> Hello :
> Anyone could successfully run applications that are part of
>     RTN Ethernet package (written by Alex Bernal) ?
> You can obtain the package from the RT Linux web site.
> My questions are :
>         1. Do I need to "ifup" the network interface that is my tulip
> driver on both hosts?
> (my guess would be __no__, but I am still willing to ask)

You need a fully functional RT tulip driver on every machine you wish to
communicate with.

>         2. Now, some of the user applications have names:
>      rtt_tx_app (sender)  and  rtt_rcv_app (receiver)
>         rtt_tx_rvc (sender) and rtt_tcv_tx (receiver)
> Do I envoke on one end, and other on the other end ? I have
> 2 workstations running RT 2.2.13-RTL2.0 . The workstations are
> connected to each other via a hub

These are examples on how to write your own code to use the RT tulip
driver.  If each host is to transmit and receive then you will need to
write code similar to what appears in these examples.  If you want to
send and receive files then the functions RTN_snd_file and RTN_rcv_file 
in rtt_tx_rvc can be used in your app.  

All the functions you need are in rtt_tx_rvc.c.  Remember to #include
<rtt_lib.h>.  If you just want to send and receive buffers, then just
remove the file stuff.  Use the 'ioctl' function to change the address
and send/receive an acknowledgment message to make sure that you have
the right address before sending/receiving data.

And that's it.

>         3. Now, I had to add some lines to the Makefile to compile
> the packages
>         rtt_rndtrip_rcv_tx
>         and rtt_rndtrip_tx_rcv

This is just an example of how to use the RT tulip driver.  You don't
need to put this in your makefile.  

>         4. daddr[6] is a hardware address of the card. It is unclear
> if it is a sender/receiver address since there is no documentation
> that indicates that

A single ethernet address is normally used to send and receive.  The
daddr[6] is the address of the other machine you are currently
communicating with.

>         5. File rtt_rndtrip_tx_rcv does not compile since there
> is some code missing at the end (file got truncated)

You don't need it.

A lot of things in these examples are 'hard coded' like the daddr[6]. 
Just use the functions in the file rtt_rcv_tx.
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to