logging SNR

  • I would like to log the SNR on a certain satellite channel. Does anyone here how to do that?
    (without using the remote control and writing it down of course)


    abu_ilya

  • Quote

    Originally posted by abu_ilya
    I would like to log the SNR on a certain satellite channel. Does anyone here how to do that?
    (without using the remote control and writing it down of course)


    abu_ilya


    I figured it out (even though it is not as elegant, it works)


    wget -O - --user=root --password=dreambox http://192.168.1.3/xml/streaminfo |grep snr |cut -d '>' --fields 2 |cut -d '%' --fields 1


    now I can use this command in a script to log the snr and make a nice graph of it


    regards,
    abu_ilya

  • @ abu_ilya
    It may seem like a stupid question
    But is 192.168.1.3 the IP addr of you dreambox or PC.

  • Quote

    Original von abu_ilya
    wget -O - --user=root --password=dreambox http://192.168.1.3/xml/streaminfo |grep snr |cut -d '>' --fields 2 |cut -d '%' --fields 1


    Try something like this:


    echo 'SNR, AGC, BER:' && wget -q -O - http://192.168.0.199/satFinder?|grep '<td align="center">'|sed -e 's/.*<td align="center">//' -e 's/<.*$//'


    on your Dream:
    root@dm600pvr:/> echo 'SNR, AGC, BER:' ...


    Pzdr.J.P. :)

  • Quote

    Original von pastupam
    echo 'SNR, AGC, BER:' && wget -q -O - http://192.168.0.199/satFinder?|grep '<td align="center">'|sed -e 's/.*<td align="center">//' -e 's/<.*$//'


    And now draft solution:


    As the result you will get the Excel file "ala2.csv" with the following columns:
    "Time ---- SNR ---- AGC ---- BER"


    Pzdr.J.P.

  • Quote

    Original von pastupam
    And now draft solution ...


    Now, last but not least, I hope version:


    And the result:

    Pzdr. J.P.

  • What did I do wrong?
    The info part in csv file did not show up:-


    Nr;Time;SNR;AGC;BER;sync;lock
    1;22:09:45;85;85;0;1;1
    2;22:09:51;85;85;0;1;1
    3;22:09:57;85;85;0;1;1
    4;22:10:02;85;85;0;1;1
    5;22:10:08;85;85;0;1;1

  • Quote

    Original von choco
    What did I do wrong?
    The info part in csv file did not show up:-


    Nr;Time;SNR;AGC;BER;sync;lock
    1;22:09:45;85;85;0;1;1


    try this command from the shell:

    Code
    root@dm600pvr:~> wget -q -O - http://root:dreambox@192.168.0.199/xml/streaminfo

    or from your browser:

    Code
    http://192.168.0.199/xml/streaminfo

    and tell if it is working.
    Of course type your Dream IP, and your password.


    Pzdr.J.P.

  • I got the same results as before...no info. Using DM7000. Result attached.

  • Quote

    Original von choco
    I got the same results as before...no info. Using DM7000. Result attached.

    So, I see you don't have the "satFinder" part.


    In this case, try command:

    Code
    wget -q -O - http://root:root@192.168.0.199/satFinder?

    If it is working, please attach the file "test_html.txt", after execution of this command:

    Code
    wget -q -O - http://root:root@192.168.0.199/satFinder?>test_html.txt

    Optionally, you can use a browser, open the link:

    Code
    http://192.168.0.199/satFinder?

    and then attach source code of this page.


    The next version I am testing at the moment, will be more universal and much more precise.


    Pzdr. J.P.

  • Strange!
    On the first glimpse, the source of your "satFinder" page, seems to be exactly the same like mine.


    And now sorry, simple but brutal question ;) .
    Have you changed lines 17, 18:

    Code
    # write your user name & password here
    use_er=root
    pass_d=root

    on, for instance:

    Code
    use_er=root
    pass_d=dreambox

    ???


    Pzdr.J.P.

  • Without MY Dreambox IP and password, it wouldn't have even logged anything. I think I'll wait for the next version.

  • Quote

    Original von chocoI think I'll wait for the next version.

    And what about this:

    Results:

    Pzdr.J.P.

  • Tried this one on DM500 and DM7000.
    This time there was no .csv file at all.
    Maybe because it's not DM600?

  • Quote

    Original von choco: Tried this one on DM500 and DM7000.
    This time there was no .csv file at all.

    Impossible.
    The first 45 lines are exactly the same, like in the previous script,
    so you should have, at least, the some results like before.


    Had you changed propeties of the scrip file:

    Code
    chmod 775 snr_snoop.sh


    Quote

    Maybe because it's not DM600?

    Do not think so.


    Pzdr.J.P.

  • Well I tried several times but all in vain. Could not believe it myself. I sincerely hope that somebody else will try it and say OK. But on my DM7000 or DM500, it simply would not work. One last thing, if I put back your previous script, I get the same results as before. Strange but true.Tx.