[linux-dvb] Adding timestamp to femon

Jonas Anden jonas at anden.nu
Tue Mar 25 21:47:12 CET 2008


I won't go in and fiddle with femon, but I wrote up a little piece for
y'all. It acts as a filter, so you can use it for timestamping whatever
line-based output you want.

Have fun.

  // J


On Tue, 2008-03-25 at 12:59 +0100, Patrik Hansson wrote:
> On 3/24/08, P. van Gaans <w3ird_n3rd at gmx.net> wrote:
> > On 03/24/2008 01:21 PM, Patrik Hansson wrote:
> > > Hello
> > > I couldn't find a mailinglist for dvb-apps so i hope this is ok.
> > >
> > > I would like to add timestamp to the output of femon -H in some way.
> > > This so I can monitor ber value over a long timeperiod and see the
> > > timedifference between some very high ber-values.
> > >
> > > I found a patch from 2005 but was unable to manually use the code in
> > > dvb-apps/utils/femon/femon.c
> > > I have zero skill in c/c++ but for someone with some skill i would
> > > belive it would be very easy ?
> > >
> > > Ps. If there is a better place for this kind of question please tell me. Ds.
> > >
> > > / Patrik
> > >
> > > _______________________________________________
> > > linux-dvb mailing list
> > > linux-dvb at linuxtv.org
> > > http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
> > >
> >
> > Hi,
> >
> > I had a similar issue, but solved it. Not sure if this works with a
> > recent femon, but if it doesn't you should be able to make some changes
> > to my method to make it work. Here's the trick:
> >
> > 1. Tune to whatever you want to measure.
> > 2. Execute in a terminal: "femon -h -c 3600 > filename.signal". 3600 is
> > for one hour, if you want to test for e.g. 10 hours enter 36000. The
> > resulting file will usually be under 5MB so don't worry. Good advice:
> > put the current time in the filename because brains are unreliable.
> > 3. That's quite a bit to read. But we can do it faster:
> >
> > Total amount of errors: "cat filename.signal | grep -c unc[^\s][^0]".
> > You might need to change the regex for other femon versions.
> >
> > All errors and when they occured: "cat filename.signal | grep -n
> > unc[^\s][^0]". -n will make it show line numbers. If the first error,
> > for example, is on line 1800 that means the first error occured half an
> > hour after the start of the measurement.
> >
> > Hope this helps.
> >
> > P. van Gaans
> >
> 
> Thank you, it will have to do.
> Using grep -v "ber 0" -n though but that should result in the same.
> 
> _______________________________________________
> linux-dvb mailing list
> linux-dvb at linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ts.c
Type: text/x-csrc
Size: 1767 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/linux-dvb/attachments/20080325/2009608d/attachment.c 


More information about the linux-dvb mailing list