Send commitlog mailing list submissions to
        commitlog@lists.openmoko.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
        commitlog-requ...@lists.openmoko.org

You can reach the person managing the list at
        commitlog-ow...@lists.openmoko.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:

   1. r4894 - developers/werner/wlan/freeze (wer...@docs.openmoko.org)
   2. r4895 - developers/werner/wlan/freeze (wer...@docs.openmoko.org)
   3. r4896 - developers/werner/wlan/freeze (wer...@docs.openmoko.org)
   4. r4897 - trunk/src/target/gsm/include/gsmd
      (mic...@docs.openmoko.org)
   5. r4898 - trunk/src/target/gsm (mic...@docs.openmoko.org)
   6. r4899 - trunk/src/target/gsm (mic...@docs.openmoko.org)
   7. r4900 -
      trunk/src/target/OM-2007.2/applications/openmoko-terminal2
      (mic...@docs.openmoko.org)
--- Begin Message ---
Author: werner
Date: 2009-01-22 22:23:59 +0100 (Thu, 22 Jan 2009)
New Revision: 4894

Added:
   developers/werner/wlan/freeze/r2ch.py
   developers/werner/wlan/freeze/r3ch-plot
Modified:
   developers/werner/wlan/freeze/README
Log:
New tools to mine the data for the channels involved.



Modified: developers/werner/wlan/freeze/README
===================================================================
--- developers/werner/wlan/freeze/README        2009-01-22 02:49:42 UTC (rev 
4893)
+++ developers/werner/wlan/freeze/README        2009-01-22 21:23:59 UTC (rev 
4894)
@@ -116,3 +116,31 @@
 - Chains can be sorted by frequency with:
 
   ./r1.pl log | ./r2.pl | sort | uniq -c | sort -rn
+
+- r2ch.py counts the number outcome of a channel change as a function of
+  the channels involved.
+
+  ./r1.pl log | ./r2ch.py
+
+  Show for each channel we depart from, channel we enter, and distance of
+  the change the following numbers:
+
+  - channel number or distance
+  - total number of associations
+  - associations to the correct channel
+  - associations to the channel we departed from
+  - associations to a different channel
+  - number of times communication could not be reestablished
+
+  The option -p changes the last four numbers to percents of associations.
+
+- r3ch.plot plots the output of r2ch.py into a PNG file:
+
+  ./r1.pl log | ./r2ch.py -p | ./r3ch-plot DIST
+
+  plots the distribution by association type as a function of the hopping
+  distance. The other results are accessed with the keys FROM and TO.
+
+  By default, the PNG file is displayed with ImageMagick and then discarded.
+  With the option -f, it is written to a file with the name <key>.png or,
+  if the input comes from a file, <name>-<key>.png

Added: developers/werner/wlan/freeze/r2ch.py
===================================================================
--- developers/werner/wlan/freeze/r2ch.py                               (rev 0)
+++ developers/werner/wlan/freeze/r2ch.py       2009-01-22 21:23:59 UTC (rev 
4894)
@@ -0,0 +1,92 @@
+#!/usr/bin/python
+#
+# r2ch.py - reductor #2, channel statistics
+#
+# This reductor takes a normalized session log and extracts statistics on how
+# hopping success relates to old and new channel.
+#
+
+
+from sys import argv, stdin
+
+
+percent = False
+
+
+def stat(frm, to, type):
+    out[frm-1][type] += 1
+    into[to-1][type] += 1
+    if frm > to:
+       dist = frm-to
+    else:
+       dist = to-frm
+    delta[dist][type] += 1
+
+
+def report(v):
+    s = v["ASSOC"]+v["LATE"]+v["WRONG"]
+    if s == 0:
+       print 0, 0, 0, 0
+       return
+    print s,
+    if percent:
+       d = s/100.0
+    else:
+       d = 1
+    print v["ASSOC"]/d, v["LATE"]/d, v["WRONG"]/d, v["TROUBLE"]/d, v["CRASH"]
+
+
+optind = 1
+if len(argv) > 1 and argv[1] == "-p":
+   percent = True
+   optind += 1
+
+into = []
+out = []
+delta = []
+for n in range(0, 11):
+    into.append({})
+    out.append({})
+    delta.append({})
+    for t in ("ASSOC", "LATE", "WRONG", "TROUBLE", "CRASH"):
+       into[n][t] = 0
+       out[n][t] = 0
+       delta[n][t] = 0
+
+if len(argv) > optind:
+    f = open(argv[optind], "r")
+else:
+    f = stdin
+while True:
+    line = f.readline()
+    if line == "":
+       break
+    a = line.split()
+    if a[0] != "STATE":
+       continue
+    if a[1] == "RESET":
+       hop = None
+       hop2 = None
+    elif a[1] == "ROUND":
+       hop = None
+       hop2 = None
+    elif a[1] == "HOP":
+       hop = (int(a[2]), int(a[4]))
+       hop2 = (int(a[2]), int(a[4]))
+    elif a[1] == "ASSOC" or a[1] == "LATE" or a[1] == "WRONG":
+       if hop is not None:
+           stat(hop[0], hop[1], a[1])
+           hop = None
+    elif a[1] == "TROUBLE" or a[1] == "CRASH":
+       if hop2 is not None:
+           stat(hop2[0], hop2[1], a[1])
+
+for n in range(0, 11):
+    print "FROM", n+1,
+    report(out[n])
+for n in range(0, 11):
+    print "TO", n+1,
+    report(into[n])
+for n in range(1, 10):
+    print "DIST", n,
+    report(delta[n])


Property changes on: developers/werner/wlan/freeze/r2ch.py
___________________________________________________________________
Name: svn:executable
   + *

Added: developers/werner/wlan/freeze/r3ch-plot
===================================================================
--- developers/werner/wlan/freeze/r3ch-plot                             (rev 0)
+++ developers/werner/wlan/freeze/r3ch-plot     2009-01-22 21:23:59 UTC (rev 
4894)
@@ -0,0 +1,22 @@
+#!/bin/sh
+if [ "$1" = -f ]; then
+    shift
+    if [ -z "$2" ]; then
+       out="set output \"$1.png\""
+    else
+       out="set output \"`basename $2`-$1.png\""
+    fi
+else
+    out='set output "| display png:-"'
+fi
+gnuplot <<EOF
+set terminal png
+$out
+set style data linespoints
+set title "$1"
+plot "<sed '/^$1 /s///p;d' $2" using 1:3 lw 2 title "assoc", \
+  "<sed '/^$1 /s///p;d' $2" using 1:4 lw 2 title "late", \
+  "<sed '/^$1 /s///p;d' $2" using 1:5 lw 2 title "wrong", \
+  "<sed '/^$1 /s///p;d' $2" using 1:6 lw 2 title "trouble", \
+  "<sed '/^$1 /s///p;d' $2" using 1:7 lw 2 title "crash"
+EOF




--- End Message ---
--- Begin Message ---
Author: werner
Date: 2009-01-22 22:28:06 +0100 (Thu, 22 Jan 2009)
New Revision: 4895

Modified:
   developers/werner/wlan/freeze/README
   developers/werner/wlan/freeze/r3ch-plot
Log:
Bah, r3ch-plot obviously can't use a pipe as input. Corrected faulty logic
and README.



Modified: developers/werner/wlan/freeze/README
===================================================================
--- developers/werner/wlan/freeze/README        2009-01-22 21:23:59 UTC (rev 
4894)
+++ developers/werner/wlan/freeze/README        2009-01-22 21:28:06 UTC (rev 
4895)
@@ -136,11 +136,12 @@
 
 - r3ch.plot plots the output of r2ch.py into a PNG file:
 
-  ./r1.pl log | ./r2ch.py -p | ./r3ch-plot DIST
+  ./r1.pl log | ./r2ch.py -p >tmp
+  ./r3ch-plot DIST tmp
 
   plots the distribution by association type as a function of the hopping
   distance. The other results are accessed with the keys FROM and TO.
 
   By default, the PNG file is displayed with ImageMagick and then discarded.
-  With the option -f, it is written to a file with the name <key>.png or,
-  if the input comes from a file, <name>-<key>.png
+  With the option -f, it is written to a file named <name>-<key>.png where
+  <name> is the name of the input file.

Modified: developers/werner/wlan/freeze/r3ch-plot
===================================================================
--- developers/werner/wlan/freeze/r3ch-plot     2009-01-22 21:23:59 UTC (rev 
4894)
+++ developers/werner/wlan/freeze/r3ch-plot     2009-01-22 21:28:06 UTC (rev 
4895)
@@ -1,11 +1,7 @@
 #!/bin/sh
 if [ "$1" = -f ]; then
     shift
-    if [ -z "$2" ]; then
-       out="set output \"$1.png\""
-    else
-       out="set output \"`basename $2`-$1.png\""
-    fi
+    out="set output \"`basename $2`-$1.png\""
 else
     out='set output "| display png:-"'
 fi




--- End Message ---
--- Begin Message ---
Author: werner
Date: 2009-01-23 00:37:22 +0100 (Fri, 23 Jan 2009)
New Revision: 4896

Modified:
   developers/werner/wlan/freeze/r2ch.py
Log:
Normalize the crash rate as well.



Modified: developers/werner/wlan/freeze/r2ch.py
===================================================================
--- developers/werner/wlan/freeze/r2ch.py       2009-01-22 21:28:06 UTC (rev 
4895)
+++ developers/werner/wlan/freeze/r2ch.py       2009-01-22 23:37:22 UTC (rev 
4896)
@@ -33,7 +33,7 @@
        d = s/100.0
     else:
        d = 1
-    print v["ASSOC"]/d, v["LATE"]/d, v["WRONG"]/d, v["TROUBLE"]/d, v["CRASH"]
+    print v["ASSOC"]/d, v["LATE"]/d, v["WRONG"]/d, v["TROUBLE"]/d, v["CRASH"]/d
 
 
 optind = 1




--- End Message ---
--- Begin Message ---
Author: mickey
Date: 2009-01-23 01:59:23 +0100 (Fri, 23 Jan 2009)
New Revision: 4897

Modified:
   trunk/src/target/gsm/include/gsmd/gsmd.h
Log:
add missing include of strl.h. patch by khorben. closing OM #2184


Modified: trunk/src/target/gsm/include/gsmd/gsmd.h
===================================================================
--- trunk/src/target/gsm/include/gsmd/gsmd.h    2009-01-22 23:37:22 UTC (rev 
4896)
+++ trunk/src/target/gsm/include/gsmd/gsmd.h    2009-01-23 00:59:23 UTC (rev 
4897)
@@ -12,7 +12,6 @@
 #include <gsmd/vendorplugin.h>
 #include <gsmd/select.h>
 #include <gsmd/state.h>
-#include <gsmd/strl.h>
 
 void *gsmd_tallocs;
 




--- End Message ---
--- Begin Message ---
Author: mickey
Date: 2009-01-23 02:00:12 +0100 (Fri, 23 Jan 2009)
New Revision: 4898

Modified:
   trunk/src/target/gsm/ChangeLog
Log:
remove changelog, it's incomplete


Modified: trunk/src/target/gsm/ChangeLog
===================================================================
--- trunk/src/target/gsm/ChangeLog      2009-01-23 00:59:23 UTC (rev 4897)
+++ trunk/src/target/gsm/ChangeLog      2009-01-23 01:00:12 UTC (rev 4898)
@@ -1,11 +0,0 @@
-2007-12-21  Chris Lord  <ch...@openedhand.com>
-
-       * src/util/event.c: (inds_handler):
-       Back out change - sms->stat just contains junk (uninitialised?)
-
-2007-12-21  Chris Lord  <ch...@openedhand.com>
-
-       * src/util/event.c: (inds_handler):
-       Delivery status type is in sms->stat, not
-       sms->payload.coding_scheme (which is always zero)
-




--- End Message ---
--- Begin Message ---
Author: mickey
Date: 2009-01-23 02:02:38 +0100 (Fri, 23 Jan 2009)
New Revision: 4899

Added:
   trunk/src/target/gsm/THIS_PROJECT_IS_UNMAINTAINED
Log:
add note about status


Added: trunk/src/target/gsm/THIS_PROJECT_IS_UNMAINTAINED
===================================================================
--- trunk/src/target/gsm/THIS_PROJECT_IS_UNMAINTAINED                           
(rev 0)
+++ trunk/src/target/gsm/THIS_PROJECT_IS_UNMAINTAINED   2009-01-23 01:02:38 UTC 
(rev 4899)
@@ -0,0 +1,3 @@
+This project is unmaintained now. The successor is ogsmd, which is part of the
+freesmartphone.org DBus framework. Please see http://www.freesmartphone.org
+




--- End Message ---
--- Begin Message ---
Author: mickey
Date: 2009-01-23 02:11:25 +0100 (Fri, 23 Jan 2009)
New Revision: 4900

Added:
   
trunk/src/target/OM-2007.2/applications/openmoko-terminal2/THIS_PROJECT_IS_UNMAINTAINED
Log:
add note about status


Added: 
trunk/src/target/OM-2007.2/applications/openmoko-terminal2/THIS_PROJECT_IS_UNMAINTAINED
===================================================================
--- 
trunk/src/target/OM-2007.2/applications/openmoko-terminal2/THIS_PROJECT_IS_UNMAINTAINED
                             (rev 0)
+++ 
trunk/src/target/OM-2007.2/applications/openmoko-terminal2/THIS_PROJECT_IS_UNMAINTAINED
     2009-01-23 01:11:25 UTC (rev 4900)
@@ -0,0 +1,2 @@
+Please see the successor, called vala-terminal. http://git.freesmartphone.org
+




--- End Message ---
_______________________________________________
commitlog mailing list
commitlog@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/commitlog

Reply via email to