hi 'Axel'
thanks for the interest!
Reading your post, I thought what you developed could be a good start.
Since I posted that I have not had the spare free time to proceed further with the modem data logger.
It accomplishes what I needed - which was to log the modem data every 60 seconds.
When I have encountered problems with my line, I have been able to comb through the archived data to find out what happened.
28 days uptime
(since the last powercut) so I just live with the intermittent loud crackling on the line that BT refuse to sort out.
Your post has prompted me to take a quick look at how it has been performing.
In the 14 weeks since last I rotated the log - it has logged 138503 modem data sets.
Here is a quick look at the first and last summary stats.
[user@K8 scripts]$ ./view_modem_stats.sh -n
138503
[user@K8 scripts]$ ./view_modem_stats.sh -l | head -n 4
-rw-r--r-- 1000/1000 637 2014-10-10 13:34 stats_2014-10-10_13:34:01.log.lzma
-rw-r--r-- 1000/1000 635 2014-10-10 13:35 stats_2014-10-10_13:35:01.log.lzma
-rw-r--r-- 1000/1000 635 2014-10-10 13:36 stats_2014-10-10_13:36:01.log.lzma
-rw-r--r-- 1000/1000 634 2014-10-10 13:37 stats_2014-10-10_13:37:01.log.lzma
[user@K8 scripts]$ ./view_modem_stats.sh -f stats_2014-10-10_13:34:01.log.lzma
DATE_STAMP: 2014-10-10 13:34:01
SESSION_START: 2014-10-06 17:04:22
LINK_TIME: 3 days 20 hours 29 min 39 sec
DATE_NOW: 2014-10-10 13:34:06
SNTP date: Tue Jan 4 22:06:34 2000
UPTIME: 3 days
LINE_STATUS: No Defect
RETRAIN_REASON: 0
RETRAIN_STRING: unknown
DATA_RATE_D: 4576, DATA_RATE_U: 448
MAX_ATTAIN_D: 5152, MAX_ATTAIN_U: 992
SNR_D: 5.8,SNR_UP: 18.0
LATN_D: 61.0,LATN_UP: 31.5
SATN_D: 61.0,SATN_UP: 0.0
TxPWR_D: 19.3,TxPWR_UP: 12.5
ADSL_TRAINING_MARGIN: 65526
K_D: 144(0),k_UP: 15
R_D: 16,R_UP: 16
S_D: 1,S_UP: 8
D_D: 32,D_UP: 4
SF_D: 19586937,SF_UP: 19587039
RS_D: 1331911746,RS_UP: 166488828
RSCorr_D: 1715762,RSCorr_UP: 1
RSUnCorr_D: 44997,RSUnCorr_UP: 0
HEC_D: 1499,HEC_UP: 0
OCD_D: 113,OCD_UP: 0
LCD_D: 0,LCD_UP: 0
Total_Cells_D: 3593495682,Total_Cells_UP: 0
Data_Cells_D: 28943909,Data_Cells_UP: 0
Drop_Cells_D: 44
Bit_Errors_D: 0,Bit_Errors_UP: 0
TOTAL_ES_D: 676,ES_UP: 0
TOTAL_SES_D: 13,SES_UP: 0
TOTAL_UAS_D: 206,UAS_UP: 206
AS_D: 332980
INP_D: 1.60,INP_UP: 1.88
PER_D: 1.75,PER_UP: 1.75
delay_D: 8.00,delay_UP: 8.00
OR_D: 32.00,OR_UP: 32.00
Bitswap_D: 27719,Bitswap_UP: 71
FEC_D: 1715762,FEC_UP: 1
CRC_D: 1670,CRC_UP: 1
ES_D: 665,ES_UP: 0
SES_D: 13,SES_UP: 0
UAS_D: 0,UAS_UP: 0
LOS_D: 0,LOS_UP: 0
LOF_D: 0,LOF_UP: 0
[user@K8 scripts]$ ./view_modem_stats.sh
DATE_STAMP: 2015-01-16 19:11:01
SESSION_START: 2014-12-19 08:22:57
LINK_TIME: 28 days 10 hours 48 min 4 sec
DATE_NOW: 2015-01-16 19:11:06
SNTP date: Sat Jan 29 10:48:28 2000
UPTIME: 28 days
LINE_STATUS: No Defect
RETRAIN_REASON: 0
DATA_RATE_D: 4576, DATA_RATE_U: 448
MAX_ATTAIN_D: 5120, MAX_ATTAIN_U: 1112
SNR_D: 5.6,SNR_UP: 22.0
ADSL_TRAINING_MARGIN: 65526
LATN_D: 60.0,LATN_UP: 31.5
SATN_D: 60.0,SATN_UP: 0.0
TxPWR_D: 18.8,TxPWR_UP: 12.3
K_D: 144(0),k_UP: 15
R_D: 16,R_UP: 16
S_D: 1,S_UP: 8
D_D: 32,D_UP: 4
SF_D: 144592892,SF_UP: 144593199
RS_D: 1242382094,RS_UP: 155300367
RSCorr_D: 16979195,RSCorr_UP: 4
RSUnCorr_D: 529483,RSUnCorr_UP: 0
HEC_D: 18018,HEC_UP: 4
OCD_D: 1186,OCD_UP: 3
LCD_D: 0,LCD_UP: 0
Total_Cells_D: 757475141,Total_Cells_UP: 0
Data_Cells_D: 431680065,Data_Cells_UP: 0
Drop_Cells_D: 0
Bit_Errors_D: 0,Bit_Errors_UP: 0
TOTAL_ES_D: 9554,ES_UP: 0
TOTAL_SES_D: 209,SES_UP: 0
TOTAL_UAS_D: 8,UAS_UP: 8
AS_D: 2458086
INP_D: 1.60,INP_UP: 1.88
PER_D: 1.75,PER_UP: 1.75
delay_D: 8.00,delay_UP: 8.00
OR_D: 32.00,OR_UP: 32.00
Bitswap_D: 99743,Bitswap_UP: 7
FEC_D: 16979195,FEC_UP: 4
CRC_D: 21130,CRC_UP: 4
ES_D: 9554,ES_UP: 0
SES_D: 209,SES_UP: 0
UAS_D: 0,UAS_UP: 0
LOS_D: 0,LOS_UP: 0
LOF_D: 0,LOF_UP: 0
phyR_D: On,phyR_UP: On
And a look at the log of the rest of the data split out by modem command.
[user@K8 scripts]$ ./get_modem_files.sh -l | head -n 4
-rw-r--r-- 1000/1000 1714 2014-10-10 13:34 files_2014-10-10_13:34:01.tar.lzma
-rw-r--r-- 1000/1000 1712 2014-10-10 13:35 files_2014-10-10_13:35:01.tar.lzma
-rw-r--r-- 1000/1000 1710 2014-10-10 13:36 files_2014-10-10_13:36:01.tar.lzma
-rw-r--r-- 1000/1000 1712 2014-10-10 13:37 files_2014-10-10_13:37:01.tar.lzma
[colin@K8 scripts]$ ./get_modem_files.sh -f files_2014-10-10_13:34:01.tar.lzma | tar --list
summary.txt
sysinfo.txt
adsl_info--stats.txt
counters.txt
link_errors.txt
adsl_info--vendor.txt
adsl_info--cfg.txt
adsl_profile--show.txt
adsl--version.txt
[user@K8 scripts]$ ./get_modem_files.sh -f files_2014-10-10_13:34:01.tar.lzma | tar xO adsl_info--stats.txt
adsl: ADSL driver and PHY status
Status: Showtime
Retrain Reason: 0
Max: Upstream rate = 992 Kbps, Downstream rate = 5152 Kbps
Channel: INTR, Upstream rate = 448 Kbps, Downstream rate = 4576 Kbps
Link Power State: L0
Mode: G.DMT
TPS-TC: ATM Mode
Trellis: ON
Line Status: No Defect
Training Status: Showtime
Down Up
SNR (dB): 5.8 18.0
Attn(dB): 61.0 31.5
Pwr(dBm): 19.3 12.5
G.dmt framing
K: 144(0) 15
R: 16 16
S: 1 8
D: 32 4
Counters
SF: 19586937 19587039
SFErr: 1670 1
RS: 1331911746 166488828
RSCorr: 1715762 1
RSUnCorr: 44997 0
HEC: 1499 0
OCD: 113 0
LCD: 0 0
Total Cells: 3593495682 0
Data Cells: 28943909 0
Drop Cells: 44
Bit Errors: 0 0
ES: 676 0
SES: 13 0
UAS: 206 206
AS: 332980
INP: 1.60 1.88
PER: 1.75 1.75
delay: 8.00 8.00
OR: 32.00 32.00
Bitswap: 27719 71
Total time = 1 days 22 hours 6 min 23 sec
FEC: 1735004 0
CRC: 1684 0
ES: 676 0
SES: 13 0
UAS: 206 206
LOS: 0 0
LOF: 0 0
Latest 15 minutes time = 6 min 23 sec
FEC: 1862 0
CRC: 2 0
ES: 2 0
SES: 0 0
UAS: 0 0
LOS: 0 0
LOF: 0 0
Previous 15 minutes time = 15 min 0 sec
FEC: 3959 0
CRC: 2 0
ES: 2 0
SES: 0 0
UAS: 0 0
LOS: 0 0
LOF: 0 0
Latest 1 day time = 22 hours 6 min 23 sec
FEC: 436716 0
CRC: 304 0
ES: 132 0
SES: 2 0
UAS: 0 0
LOS: 0 0
LOF: 0 0
Previous 1 day time = 24 hours 0 sec
FEC: 406552 0
CRC: 565 0
ES: 265 0
SES: 3 0
UAS: 0 0
LOS: 0 0
LOF: 0 0
Since Link time = 3 days 20 hours 29 min 39 sec
FEC: 1715762 1
CRC: 1670 1
ES: 665 0
SES: 13 0
UAS: 0 0
LOS: 0 0
LOF: 0 0
The intention was for it to be as generic as possible hence it doesn't need to be compiled for a specific target platform and Obviously you would need to have a compatible modem (Broadcom), ATM the code that parses the raw text file from the modem has only been tested on the output from my Billion 7800
Do you have experience with unix shell scripting or PHP?
If so it would relatively straightforward to finish the graphing tools- I just haven't the time ATM
plus tbaileys GREAT MDWS project has that mostly covered now too.