Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
   Glossary   Glossary
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1] 2

Author Topic: DSLstats with Raspberry Pi  (Read 12666 times)

snadge

  • Kitizen
  • ****
  • Posts: 1450
DSLstats with Raspberry Pi
« on: January 02, 2019, 03:51:09 PM »

I have a Question about RASPBERRY

I fancy getting a Pi and installing DSL-stats on it and connecting it to my router for 24/7 recording

is it easy to access stats remotely from PC, Phone or Online?  Iam wanting to do what I say above but also be able to access the stats FROM the Pi... what is the best way around this?

thanks in advance
Logged
Aquiss - 900/110/16ms - TP-Link AR73

j0hn

  • Kitizen
  • ****
  • Posts: 4093
Re: DSLstats with Raspberry Pi
« Reply #1 on: January 02, 2019, 04:59:20 PM »

RPi comes with RealVNC built in.
Use a monitor and keyboard/mouse for the initial setup of the RPi then run it over VNC for the rest of its life.
Logged
Talktalk FTTP 550/75 - Speedtest - BQM

tiffy

  • Kitizen
  • ****
  • Posts: 1319
Re: DSLstats with Raspberry Pi
« Reply #2 on: January 02, 2019, 07:38:30 PM »

I have a Question about RASPBERRY

I fancy getting a Pi and installing DSL-stats on it and connecting it to my router for 24/7 recording

is it easy to access stats remotely from PC, Phone or Online?  Iam wanting to do what I say above but also be able to access the stats FROM the Pi... what is the best way around this?

thanks in advance

Have at look at this post:
https://forum.kitz.co.uk/index.php/topic,20672.msg360177.html#msg360177

Then subsequent posts in this thread, should hopefully answer most of your questions ref. running RPi's headless, getting auto-start of DSLStats working after a RPi re-boot or power outage and accessing RPi's remotely with VNC..

I currently run two RPi Zero W's with DSLStats remotely at my son & daughters locations on their VDSL2 lines and can fully monitor their router stats and also manage all aspects of the RPi's such as program updates etc., works very well and the VNC program is free for up to 5 remote users.

Have just recently started to upload router stats (via DSLStats) to an on line web server and found that the RPI Zero W's were struggling a bit with the CPU loading, had to restrict the data uploads to snapshots only, I run a RPi 3B on my own VDSL2 line with DSLStats and can cumfortably upload all stats using this, something to bear in mind regarding the choice of RPi model to deploy for your application.
Logged
BT FTTP 150/30, BT Smart Hub 2

snadge

  • Kitizen
  • ****
  • Posts: 1450
Re: DSLstats with Raspberry Pi
« Reply #3 on: January 14, 2019, 01:35:02 PM »

thanks will take a look

I have a couple of questions:

1) is there any reason why the QLN graph goes into negative values when none are plotted?

2) I have noticed that the graphs are saved at the resolution they are drawn at on the program, so when I set scaling values the image becomes very soft and loses detail, even when I have DSL-stats open full screen and have it shrink the images down, it seems there is a strong compression algorithm on the PNG files, is there anything I can do to stop this? see example below

Logged
Aquiss - 900/110/16ms - TP-Link AR73

ejs

  • Kitizen
  • ****
  • Posts: 2078
Re: DSLstats with Raspberry Pi
« Reply #4 on: January 14, 2019, 07:32:08 PM »

PNG files use lossless compression. Don't set scaling values?
Logged

kitz

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 33879
  • Trinity: Most guys do.
    • http://www.kitz.co.uk
Re: DSLstats with Raspberry Pi
« Reply #5 on: January 14, 2019, 08:42:54 PM »

I dont use scaling values (don't think I ever have) and it shows fine.

>> is there any reason why the QLN graph goes into negative values when none are plotted?

Bit confused over this as QLN is negative values.

Logged
Please do not PM me with queries for broadband help as I may not be able to respond.
-----
How to get your router line stats :: ADSL Exchange Checker

tiffy

  • Kitizen
  • ****
  • Posts: 1319
Re: DSLstats with Raspberry Pi
« Reply #6 on: January 15, 2019, 08:53:55 PM »

@snadge

Congratulations in getting the RPi 3B up and running with DSLStats.

Don't know if you have bothered to implement the DSLStats auto-start routine as documented on the forum, I have just updated one of my RPi's from Raspbian "Jessie" to "Stretch" and found that there is a change in the latest "Stretch" revision which certainly confused me when trying to re-instate the auto-start routine.

In Raspbian "Jessie" and the earlier versions of "Stretch" the autostart file resides in /home/pi/.config/lxsession/LXDE-pi folder, lxsession folder no longer exists in this location in the latest "Stretch" revision.
Found there was a lot of confusing and incorrect information regarding this change on the web, what proved to be the correct information was found here: (second last entry in the thread)
https://www.raspberrypi.org/forums/viewtopic.php?t=228199

With latest "Stretch" revision the autostart file now resides in the/etc/xdg/lxsession/LXDE-pi folder. *

With an earlier program revision of "Stretch" on another RPi the autostart file exists in both locations and the auto-start entry certainly still works in the original location.

* Edit: Need to change ownership of the autostart file in this location before editing is permitted.

« Last Edit: January 15, 2019, 08:57:35 PM by tiffy »
Logged
BT FTTP 150/30, BT Smart Hub 2

j0hn

  • Kitizen
  • ****
  • Posts: 4093
Re: DSLstats with Raspberry Pi
« Reply #7 on: January 15, 2019, 09:18:17 PM »

I simply put a DslStats.desktop file in the /home/pi/.config/autostart/ folder

The contents of the DslStats desktop file is below

Code: [Select]
[Desktop Entry]
Version=1.0
Type=Application
Name=DSLstats
Exec=/home/pi/dslstats/dslstats

This auto stats DslStats perfectly every time the Pi boots up.
« Last Edit: January 15, 2019, 09:21:02 PM by j0hn »
Logged
Talktalk FTTP 550/75 - Speedtest - BQM

tiffy

  • Kitizen
  • ****
  • Posts: 1319
Re: DSLstats with Raspberry Pi
« Reply #8 on: January 16, 2019, 11:06:57 AM »

Quote
I simply put a DslStats.desktop file in the /home/pi/.config/autostart/ folder

In my case, originally using an old RPi 1B and 2 RPI Z W's I found that a delay was required before starting DSLStats so the autostart file entry pointed to a small script file where the delay was implemented, see original thread on this subject:
http://forum.kitz.co.uk/index.php/topic,20672.msg360466.html#msg360466

From observations of the 3 RPi's in my charge I'am currently running "Jessie", "Stretch" latest version & "Stretch" older version respectively, the /home/pi/.config/autostart folder only exists in the older "Stretch" program version.
Where the /home/pi/.config/autostart folder does exist (older Stretch revision) the folder does not contain an autostart file.
Logged
BT FTTP 150/30, BT Smart Hub 2

j0hn

  • Kitizen
  • ****
  • Posts: 4093
Re: DSLstats with Raspberry Pi
« Reply #9 on: January 16, 2019, 12:15:44 PM »

Where the /home/pi/.config/autostart folder does exist (older Stretch revision) the folder does not contain an autostart file.

It doesn't need an autostart file.
Any .desktop file placed in the autostart folder will autostart, it's in the name.

simply offering an easier/neater method
« Last Edit: January 16, 2019, 12:19:17 PM by j0hn »
Logged
Talktalk FTTP 550/75 - Speedtest - BQM

snadge

  • Kitizen
  • ****
  • Posts: 1450
Re: DSLstats with Raspberry Pi
« Reply #10 on: January 18, 2019, 06:08:25 PM »

I have not reached the stage yet where I install Raspbian lol.. its all ready to go on my 16GB SD Card, iam just waiting on a controller for it to arrive as I can not be bummed to move everything to unplug the USB keyboard & mouse from my PC to Pi to get it running lol... also I need a PSU as ones I have are 2amp not 2.5amp, im in no mad rush to get it running and im new to Linux/Raspbian so blurting out command line stuff to me just goes over my head lol

@ KITZ - sorry I meant the SNR-per-Tone not QLN, as you can see in screenshot below...

Logged
Aquiss - 900/110/16ms - TP-Link AR73

j0hn

  • Kitizen
  • ****
  • Posts: 4093
Re: DSLstats with Raspberry Pi
« Reply #11 on: January 18, 2019, 06:37:44 PM »

I power my RPi 3B exclusively from my Zyxel USB port. Never had any issues.
I don't even own a PSU for it  :D

I believe the RPi 3B+ has a higher power consumption so no idea if USB would be sufficient.

edit: https://www.datenreise.de/en/raspberry-pi-3b-and-3b-in-comparison/

2nd edit: my SNR per Tone goes in to negative values in the D3 band so if the graph didn't show this it would cut off.
« Last Edit: January 18, 2019, 06:40:12 PM by j0hn »
Logged
Talktalk FTTP 550/75 - Speedtest - BQM

snadge

  • Kitizen
  • ****
  • Posts: 1450
Re: DSLstats with Raspberry Pi
« Reply #12 on: January 18, 2019, 06:42:18 PM »

I power my RPi 3B exclusively from my Zyxel USB port. Never had any issues.
I don't even own a PSU for it  :D

I believe the RPi 3B+ has a higher power consumption so no idea if USB would be sufficient.

edit: https://www.datenreise.de/en/raspberry-pi-3b-and-3b-in-comparison/

thats exactly what I WAS gunna do originally... as the Zyxel has 2 USB 3.0 ports this equates to a max of 900mA/5V per USB port, I was thinking of getting a dual-USB cable, one that has Micro-USB on one end and TWO standard USB fittings on the other end, allowing for all 1.8A to be used, the 3B+ is supposed to have 2.5A but may run on less, i got it lit up and seemingly operational on a 2A/5V mobile charger
Logged
Aquiss - 900/110/16ms - TP-Link AR73

tiffy

  • Kitizen
  • ****
  • Posts: 1319
Re: DSLstats with Raspberry Pi
« Reply #13 on: January 18, 2019, 07:35:17 PM »

Ref. running RPi's from router USB ports:

I previously carried out some very basic, comparative and likely not very accurate tests on power consumption of an RPi 3B and 3B+ results as per post link:

https://forum.kitz.co.uk/index.php/topic,21194.msg368574.html#msg368574

I run my 2 RPI ZW's from their respective Billion routers USB ports but prefer to run my RPi 3B from a PSU which in my case is UPS connected, from J0hn's experience the RPi 3B is happy running on the ZyXEL USB power, I would certainly prefer to power a RPi 3B+ from the recommended PSU as power consumption is definately higher, your choice.

Logged
BT FTTP 150/30, BT Smart Hub 2

snadge

  • Kitizen
  • ****
  • Posts: 1450
Re: DSLstats with Raspberry Pi
« Reply #14 on: January 18, 2019, 10:57:08 PM »

aye after looking at your tests results I feel confident I can power it on 1.8A - assuming that Zyxel HAS complied with USB standards and allows 'upto' 900mA draw on each USB 3.0 port, using such a cable I mentioned before means I should be able to get more than enough power to the Pi for the sake of DSL-stats only

what is Raspbian Stretch?

do you have any advice for noobs? - I have setup a Pi before with Raspbian and LibreELEC but I didnt get far after install as the controller was naff
Logged
Aquiss - 900/110/16ms - TP-Link AR73
Pages: [1] 2