Leonardo Pappagallo wrote:
> 1) can I use multiple slot for one socket, with RTnet 0.9.0 ?
> 
> 2) can I joint slot into tdma.conf file ?
> 

Ok, here is a straight-forward patch against 0.9.0 to add joint-slot
support to tdma.conf. If you have a try, please let me know if it works.
It's also available through SVN.

The format is not really comfortable, but I'm hoping we can switch to a
XML-based description in the future which will then also have design
tool support.

Jan
Index: tools/rtnet.in
===================================================================
--- tools/rtnet.in	(Revision 912)
+++ tools/rtnet.in	(Arbeitskopie)
@@ -140,7 +140,7 @@
         # master:
         # [ip 1.2.3.4]
         # cycle <cycle_in_us>
-        # slot <id> <offset_in_us> [<phasing>/<period> [<size>]]
+        # slot <id> <offset_in_us> [<phasing>/<period> [<size> [<joint_slot_id>]]]
         # slot ...
         #
         # slave:
@@ -171,7 +171,7 @@
             exit 1
         fi
 
-        while read ARG1 ARG2 ARG3 ARG4 ARG5; do
+        while read ARG1 ARG2 ARG3 ARG4 ARG5 ARG6; do
             case "$ARG1" in
                 "master:")
                     submit_cfg
@@ -208,6 +208,9 @@
                     if [ ! "$ARG5" = "" ]; then
                         TDMA_SLOTS="$TDMA_SLOTS -s $ARG5"
                     fi
+                    if [ ! "$ARG6" = "" ]; then
+                        TDMA_SLOTS="$TDMA_SLOTS -j $ARG6"
+                    fi
                     TDMA_SLOTS="$TDMA_SLOTS;"
                     ;;
             esac

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to