Jd1 error logging
From PTAGISWiki
Contents |
Background
Analyzing the status reports from a MUX transceiver can be tricky. It would be helpful if just the relevant data were captured from a range of logs and presented in a CSV for graphing and analysis.
Raw data
~00-3 10/31/07 00:23:41 ALARM Reader Info: Version: MUX1230.1.7 ~00-3 10/31/07 00:23:41 ALARM Reader ID# 00 Unique: OFF ~00-3 10/31/07 00:23:41 ALARM Beep: OFF Send To Comm: ON ~00-3 10/31/07 00:23:41 ALARM Buffer active: ON Tag count: 4381 ~00-3 10/31/07 00:23:41 ALARM Memory used: 81% Store Test Tag: ON ~00-3 10/31/07 00:23:41 ALARM Diagnostics for 00: ~00-3 10/31/07 00:23:41 ALARM Temperature: 22C Exciter power: 15.0V ~00-3 10/31/07 00:23:41 ALARM Current gain: 100% Current alarm: 3600mA ~00-3 10/31/07 00:23:41 ALARM Noise scaling: 100% Noise alarm: 20% ~00-3 10/31/07 00:23:41 ALARM Sleep delay: 0ms Noise delay: 60min ~00-3 10/31/07 00:23:41 ALARM Test Tag delay: 60min Message delay: 60min ~00-3 10/31/07 00:23:41 ALARM Battery: OK Scan time: 100ms ~00-3 10/31/07 00:23:41 ALARM System date: 10/31/2007 System time: 00:28 ~00-3 10/31/07 00:23:41 ALARM Antenna Seq: 1,2,3,4,5,6,1,2,3,4,5,6 ~00-3 10/31/07 00:23:41 ALARM Diagnostics for Ant 01: ~00-3 10/31/07 00:23:41 ALARM Exciter current: 407A Signal level: 0% ~00-3 10/31/07 00:23:41 ALARM Exciter phase: -2 Relay counter: 1% ~00-3 10/31/07 00:23:41 ALARM Tune phase: 631 Setup: 35A ~00-3 10/31/07 00:23:41 ALARM Vtt level: 25% ~00-3 10/31/07 00:23:41 ALARM Diagnostics for Ant 02: ~00-3 10/31/07 00:23:41 ALARM Exciter current: 399A Signal level: 0% ~00-3 10/31/07 00:23:41 ALARM Exciter phase: -3 Relay counter: 1% ~00-3 10/31/07 00:23:41 ALARM Tune phase: 635 Setup: 319 ~00-3 10/31/07 00:23:41 ALARM Vtt level: 25% ~00-3 10/31/07 00:23:41 ALARM Diagnostics for Ant 03: ~00-3 10/31/07 00:23:41 ALARM Exciter current: 401A Signal level: 0% ~00-3 10/31/07 00:23:41 ALARM Exciter phase: -1 Relay counter: 1% ~00-3 10/31/07 00:23:41 ALARM Tune phase: 631 Setup: 303 ~00-3 10/31/07 00:23:41 ALARM Vtt level: 25% ~00-3 10/31/07 00:23:41 ALARM Diagnostics for Ant 04: ~00-3 10/31/07 00:23:41 ALARM Exciter current: 415A Signal level: 0% ~00-3 10/31/07 00:23:41 ALARM Exciter phase: -2 Relay counter: 1% ~00-3 10/31/07 00:23:41 ALARM Tune phase: 637 Setup: 345 ~00-3 10/31/07 00:23:41 ALARM Vtt level: 25% ~00-3 10/31/07 00:23:41 ALARM Diagnostics for Ant 05: ~00-3 10/31/07 00:23:41 ALARM Exciter current: 431A Signal level: 0% ~00-3 10/31/07 00:23:41 ALARM Exciter phase: 0 Relay counter: 1% ~00-3 10/31/07 00:23:41 ALARM Tune phase: 633 Setup: 324 ~00-3 10/31/07 00:23:41 ALARM Vtt level: 25% ~00-3 10/31/07 00:23:41 ALARM Diagnostics for Ant 06: ~00-3 10/31/07 00:23:41 ALARM Exciter current: 391A Signal level: 0% ~00-3 10/31/07 00:23:41 ALARM Exciter phase: -2 Relay counter: 1% ~00-3 10/31/07 00:23:41 ALARM Tune phase: 630 Setup: 325 ~00-3 10/31/07 00:23:41 ALARM Vtt level: 25% ~00-3 10/31/07 00:23:41 ALARM Alarms for 00: ~00-3 10/31/07 00:23:41 ALARM None
Processed data
time,readerid,tagcount,temperature,power, ant1-current,ant1-signal,ant1-phase, ant2-current,ant2-signal,ant2-phase,ant3-current,ant3-signal,ant3-phase, ant4-current,ant4-signal,ant4-phase,ant5-current,ant5-signal,ant5-phase, ant6-current,ant6-signal,ant6-phase Tue Oct 23 23:23:42 2007,00,3302,28,15.0,345,4,2,328,4,0,326,4,1,414,0,1,331,5,3,316,8,3 Wed Oct 24 00:23:42 2007,00,3308,28,15.0,346,7,2,329,5,0,326,6,2,415,0,2,332,4,3,316,7,4 Wed Oct 24 01:23:42 2007,00,3314,28,15.0,345,4,-4,329,6,-1,326,5,-2,415,0,1,332,7,3,316,8,-1 Wed Oct 24 02:23:42 2007,00,3319,28,15.0,345,8,-4,329,8,-1,326,7,-3,415,0,1,333,12,3,316,10,-2 Wed Oct 24 03:23:42 2007,00,3324,26,15.0,346,5,-4,329,5,-1,327,4,-3,416,0,1,333,4,0,316,5,-2 Wed Oct 24 04:23:42 2007,00,3330,26,15.0,346,5,-3,329,4,0,328,3,-2,416,0,2,333,5,1,317,5,-2
10/21/07 15:41:33 ALARM PROBLEM: Ant1 current low 10/22/07 13:23:10 ALARM PROBLEM: Test Tag Failed 10/22/07 15:08:29 ALARM PROBLEM: Ant5 noise level 10/22/07 16:55:37 ALARM PROBLEM: Ant1 current low 10/23/07 02:23:10 ALARM PROBLEM: Test Tag Failed 10/23/07 15:07:49 ALARM PROBLEM: Ant3 noise level 10/23/07 16:23:09 ALARM PROBLEM: Test Tag Failed 10/23/07 18:23:29 ALARM PROBLEM: Ant1 current low 10/23/07 21:23:09 ALARM PROBLEM: Test Tag Failed
File names
The processed logs are available here ftp://ftp.ptagis.org/Reports/jd1
The files are named by the julian date of the start of the period they cover. The files are processed weekly on Tuesday for the period from Monday to Monday.
The processed log files are named 7299-log.txt for the period 7299 (Oct 26) to 7305 (Nov 1). The lines indicating problems are saved in files named 7299-problem.txt.
Troubleshooting
The weekly processing is initiated by cron on snapper.psmfc.org like so:
0 12 * * mon /home/rday/bin/bcc/jd1-meta/julian.pl -l
The julian.pl script is a wrapper that calculates the period of interest, calls the script parse-logs.pl, and transmits the results to the ftp server.
The parse-logs.pl script reads interrogation files (status reports) for the indicated site, opening each one and searching through it for particular data elements. It builds an internal data structure, then sorts and writes this data to a temporary file.
