I have installed RTnet on my two PCs, which is having xenomai as OS. Since my 
NIC was not supported by RTnet, i have purchased a realtek 8139 NIC and 
inserted 
in to my PCI slot. 

My configuration file rtnet.conf is as follows:

================================================================================
Master side : 
================================================================================
# This file is usually located in <PREFIX>/etc/rtnet.conf
# Please adapt it to your system.
# This configuration file is used with the rtnet script.
# RTnet installation path
prefix="/usr/local/rtnet"
exec_prefix="${prefix}"
RTNET_MOD="${exec_prefix}/modules"
RTIFCONFIG="${exec_prefix}/sbin/rtifconfig"
RTCFG="${exec_prefix}/sbin/rtcfg"
TDMACFG="${exec_prefix}/sbin/tdmacfg"
# Module suffix: ".o" for 2.4 kernels, ".ko" for later versions
MODULE_EXT=".ko"
# RT-NIC driver
RT_DRIVER="rt_8139too"
#RT_DRIVER_OPTIONS="cards=1,0,0,0"
RT_DRIVER_OPTIONS=""
# IP address and netmask of this station
#   The TDMA_CONFIG file overrides these parameters for masters and backup
#   masters. Leave blank if you do not use IP addresses or if this station is
#   intended to retrieve its IP from the master based on its MAC address.
IPADDR="10.0.0.1"
NETMASK="255.255.255.0"
# Start realtime loopback device ("yes" or "no")
RT_LOOPBACK="yes"
RT_PROTOCOLS="udp packet"
# Start capturing interface ("yes" or "no")
RTCAP="yes"
# Common RTcfg stage 2 config data (master mode only)
#   The TDMA_CONFIG file overrides this parameter.
STAGE_2_SRC=""
# Stage 2 config data destination file (slave mode only)
STAGE_2_DST=""
# Command to be executed after stage 2 phase (slave mode only)
STAGE_2_CMDS=""
# TDMA mode of the station ("master" or "slave")
#   Start backup masters in slave mode, it will then be switched to master
#   mode automatically during startup.
TDMA_MODE="master"
#TDMA_MODE="slave"

# Master parameters
# Simple setup: List of TDMA slaves
#TDMA_SLAVES="10.0.0.2 10.0.0.3 10.0.0.4"
TDMA_SLAVES="10.0.0.3"
# Simple setup: Cycle time in microsecond
TDMA_CYCLE="5000"
# Simple setup: Offset in microsecond between TDMA slots
TDMA_OFFSET="200"
# Advanced setup: Config file containing all TDMA station parameters
#   To use this mode, uncomment the following line and disable the
#   three master parameters above (SLAVES, CYCLE, and OFFSET).
#TDMA_CONFIG="${prefix}/etc/tdma.conf"


================================================================================
Slave side: 
================================================================================
# This file is usually located in <PREFIX>/etc/rtnet.conf
# Please adapt it to your system.
# This configuration file is used with the rtnet script.

# RTnet installation path
prefix="/usr/local/rtnet"
exec_prefix="${prefix}"
RTNET_MOD="${exec_prefix}/modules"
RTIFCONFIG="${exec_prefix}/sbin/rtifconfig"
RTCFG="${exec_prefix}/sbin/rtcfg"
TDMACFG="${exec_prefix}/sbin/tdmacfg"
# Module suffix: ".o" for 2.4 kernels, ".ko" for later versions
MODULE_EXT=".ko"
# RT-NIC driver
#RT_DRIVER="rt_eepro100"
RT_DRIVER="rt_8139too"
#RT_DRIVER_OPTIONS="cards=1,0,0,0"
RT_DRIVER_OPTIONS=""
# IP address and netmask of this station
#   The TDMA_CONFIG file overrides these parameters for masters and backup
#   masters. Leave blank if you do not use IP addresses or if this station is
#   intended to retrieve its IP from the master based on its MAC address.
IPADDR="10.0.0.3"
NETMASK="255.255.255.0"
# Start realtime loopback device ("yes" or "no")
RT_LOOPBACK="yes"
# Use the following RTnet protocol drivers
RT_PROTOCOLS="udp packet"
# Start capturing interface ("yes" or "no")
RTCAP="yes"
# Common RTcfg stage 2 config data (master mode only)
#   The TDMA_CONFIG file overrides this parameter.
STAGE_2_SRC=""
# Stage 2 config data destination file (slave mode only)
STAGE_2_DST="10.0.0.3"
# Command to be executed after stage 2 phase (slave mode only)
STAGE_2_CMDS=""
# TDMA mode of the station ("master" or "slave")
#   Start backup masters in slave mode, it will then be switched to master
#   mode automatically during startup.
#TDMA_MODE="master"
TDMA_MODE="slave"

# Master parameters
# Simple setup: List of TDMA slaves
#TDMA_SLAVES="10.0.0.5 10.0.0.3 10.0.0.4"
#TDMA_SLAVES="127.0.0.1 127.0.0.3"
TDMA_SLAVES="10.0.0.3"
# Simple setup: Cycle time in microsecond
TDMA_CYCLE="5000"
# Simple setup: Offset in microsecond between TDMA slots
TDMA_OFFSET="200"
# Advanced setup: Config file containing all TDMA station parameters
#   To use this mode, uncomment the following line and disable the
#   three master parameters above (SLAVES, CYCLE, and OFFSET).
#TDMA_CONFIG="${prefix}/etc/tdma.conf"


--------------------------------------------------------------------------------
I got the following messgae on master and slave side 
--------------------------------------------------------------------------------

================================================================================
Master side
================================================================================
*** RTnet 0.9.12 - built on Jan  5 2012 20:56:14 ***

RTnet: initialising real-time networking
RTnet: registered rteth0
initializing loopback...
RTnet: registered rtlo
RTcap: real-time capturing interface
RTcfg: init real-time configuration distribution protocol
RTmac: init realtime media access control
RTmac/TDMA: init time division multiple access control mechanism
vnic0: unknown interface: No such device
SIOCSIFADDR: No such device
vnic0: unknown interface: No such device
SIOCSIFNETMASK: No such device
SIOCGIFADDR: No such device
SIOCSIFBROADCAST: No such device
Waiting for all slaves...


================================================================================
Slave side
================================================================================
*** RTnet 0.9.12 - built on Dec  5 2011 05:16:14 ***

RTnet: initialising real-time networking
RTnet: registered rteth0
initializing loopback...
RTnet: registered rtlo
RTcap: real-time capturing interface
RTcfg: init real-time configuration distribution protocol
RTmac: init realtime media access control
RTmac/TDMA: init time division multiple access control mechanism
Stage 1: searching for master...

On both sides (Master as well as Slave) no further progress is happening..

pressed Cntr+C And rtping to other system is also not working (In this case 
./rtping 10.0.0.3). It gives the message as shown below:

Real-time PING 10.0.0.3 56(84) bytes of data.
RTnet: host 10.0.0.3 unreachable
ioctl: No route to host



Pl help me?

Thanks in Advance ...

...chdev




------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to