> Karl Reichert wrote: > >> Karl Reichert wrote: > >>>> Karl Reichert wrote: > >>>>>> Karl Reichert wrote: > >>>>>>> When using the tdmacfg-tool, one can specify an offset. Reading > >>>>>> TDMA-Spec line 568: > >>>>>>> "If <offset> is given, the time slot is added or modified to send > >> data > >>>>>> with the specified offset in microseconds relative to the scheduled > >>>> cycle > >>>>>> start [...]" > >>>>>>> To my understanding this means, doing 'tdmacfg rteth0 slot 0 0' > >> means > >>>>>> that you would override the sync frame slot. Or is there a mistake > in > >>>> the > >>>>>> spec and one should read: > >>>>>>> "[...] specified offset in microseconds relative to the scheduled > >> sync > >>>>>> frame start [...]" > >>>>>> > >>>>>> The cycle start is defined by the sync frame. No sync frame, no > >> cycle. > >>>>>> Thus the former implies the latter. So you cannot use the "slot" > >>>> command > >>>>>> of tdmacfg to manipulate sync frames, there is "master" for this > >> (also > >>>>>> to define a backup master sync frame slot). > >>>>>> > >>>>>> Jan > >>>>>> > >>>>> Okay, thanks, so it makes sense. > >>>>> > >>>>> When I execute this command, I get an error because I don't have the > >>>> device /dev/rteth0. When is it created or do I have to create it by > >> hand (with > >>>> which parameters)? > >>>> > >>>> Assuming you mean /dev/rtnet -> see README. > >>>> > >>>> Jan > >>>> > >>> No, /dev/rtnet I created as mentioned in README. I'm talking about > >> rteth0 and rtlo. They don't exist, although I configured RTnet (make > menuconfig) > >> to also build RTcap and RTloopback support. > >> > >> And did you load those drivers as README tells you...? > >> > > Yes, I did. This is my startup script: > > > > > > > > #!/bin/bash > > > > #set -v on > > set -x on > > > > insmod /usr/local/rtnet/modules/rtnet.ko || exit 1 > > insmod /usr/local/rtnet/modules/rtpacket.ko || exit 1 > > insmod /usr/local/rtnet/modules/rt_e1000.ko cards=1,0,0,0 || exit 1 > > > > Check if rteth0 is actually popping up under /proc/rtnet/devices. Maybe > you forgot to unload/disable the Linux driver. > No, only rtlo is listed there. I compiled the linux kernel myselfe and took care that e1000 driver isn't build, so shouldn't be the problem!
> > > > > > > ############################################################################### > > # start of configuration depending on use of loopback and/or capturing > device > > > ############################################################################### > > #comment following line if no loopback interface > > insmod /usr/local/rtnet/modules/rt_loopback.ko || exit 1 > > > > #comment following line if no capture interface > > insmod /usr/local/rtnet/modules/rtcap.ko || exit 1 > > > > #comment following line if no loopback interface > > /usr/local/rtnet/sbin/rtifconfig rtlo up 127.0.0.1 > > > > #comment following TWO lines if no capture interface > > ifconfig rteth0 up > > ifconfig rteth0-mac up > > #comment following line if no capture interface > > #OR capture interface but no loopback interface > > ifconfig rtlo up > > > ############################################################################### > > # end of configuration depending on use of loopback and/or capturing > device > > > ############################################################################### > > > > > > > > insmod /usr/local/rtnet/modules/rtmac.ko > > insmod /usr/local/rtnet/modules/tdma.ko > > > > > > > > > ############################################################################### > > # start of TDMA configuration (all values in ms) > > > ############################################################################### > > #put your TDMA cycle time here (last number) > > /usr/local/rtnet/sbin/tdmacfg rteth0 master 5000 > > #put your TDMA offset related to scheduled cycle start here (last > number) > > /usr/local/rtnet/sbin/tdmacfg rteth0 slot 0 0 > > > ############################################################################### > > # end of TDMA configuration > > > ############################################################################### > > > > "rtifconfig rteth0 up [some-IP-if-desired]" is missing. This was > included in your first script version, wasn't it? > -- von Karl Reichert "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ RTnet-users mailing list RTnet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rtnet-users