[vz-dev] pullseq beim MT174

thomas.schenkel at freenet.de thomas.schenkel at freenet.de
Tue Dec 10 22:54:47 CET 2013


Hallo zusammen,
 
ich bin neu hier, daher bitte ich um etwas Nachsicht ;)
 
Ich versuche die ganze Zeit meinen USB-IR-Schreib-Lesekopf (von Udo) über den vzlogger auszulesen. Aber ich komme nicht weiter ... aber von vorn:
Der Zähler ist ein ISKRAemeco MT174.

 
Der Test über Putty klappt über
 
1. Console:
stty -F /dev/ttyUSB0  300 cs7 -cstopb -parodd inpck -istrip -inlcr -igncr -icrnl -opost -isig -icanon -iexten -ixon -echo parenb min 1... dann lauschen:
   cat /dev/ttyUSB0


"Pullsequenz" über 2. Console:
printf "x2Fx3Fx21x0Dx0A" > /dev/ttyUSB0
 
Ergebnis:
/ISk5MT174-0001
1-0:0.9.1*255(224237)
1-0:0.9.2*255(0131210)
1-0:0.0.0*255(xxxxx-xxxxxxxxxx)
1-0:0.0.1*255(00000000)
1-0:0.1.0*255(2)
1-0:0.2.0*255(1.03)
1-0:0.2.2*255(00000031)
0-0:C.1.0*255(xxxxxxxxxx)
0-0:C.1.6*255(FDF5)
1-0:1.6.0*255(03.532*kW)(1312011630)
1-0:1.7.0*255(0.516*kW)
1-0:1.8.0*255(0000117.265*kWh)
1-0:1.8.1*255(0000062.761*kWh)
1-0:1.8.2*255(0000054.504*kWh)
1-0:1.8.3*255(0000000.000*kWh)
1-0:1.8.4*255(0000000.000*kWh)
1-0:2.6.0*255(02.338*kW)(1312061145)
1-0:2.7.0*255(0.000*kW)
1-0:2.8.0*255(0000026.272*kWh)
1-0:2.8.1*255(0000020.493*kWh)
1-0:2.8.2*255(0000005.779*kWh)
1-0:2.8.3*255(0000000.000*kWh)
1-0:2.8.4*255(0000000.000*kWh)
0-0:F.F.0*255(0000000)
1-0:1.6.0*01(03.436*kW)(1311301500)
1-0:1.6.0*02(00.000*kW)(1311291045)
1-0:1.6.0*03()
1-0:1.6.0*04()
1-0:1.6.0*05()
1-0:1.6.0*06()
1-0:1.6.0*07()
1-0:1.6.0*08()
1-0:1.6.0*09()
1-0:1.6.0*10()
1-0:1.6.0*11()
1-0:1.6.0*12()
1-0:1.6.0*13()
1-0:1.6.0*14()
1-0:1.6.0*15()
1-0:1.8.0*01(0000023.658*kWh)
1-0:1.8.0*02(0000000.000*kWh)
1-0:1.8.0*03()
1-0:1.8.0*04()
1-0:1.8.0*05()
....
!
 
 
Nun der Versuch im vzlogger:
/**
 * vzlogger configuration
 *
 * use proper encoded JSON with javascript comments
 *
 * take a look at the wiki for detailed information:
 * http://wiki.volkszaehler.org/software/controller/vzlogger#configuration
 */

{
"retry" : 30,                   /* how long to sleep between failed requests, in seconds */
"daemon": false,                /* run periodically */
"foreground" : true,            /* dont run in background (prevents forking) */

"verbosity" : 15,               /* between 0 and 15 */
"log" : "/var/log/vzlogger.log",/* path to logfile, optional */

"local" : {
        "enabled" : false,      /* should we start the local HTTPd for serving live readings? */
        "port" : 80,            /* the TCP port for the local HTTPd */
        "index" : true,         /* should we provide a index listing of available channels? */
        "timeout" : 30,         /* timeout for long polling comet requests, 0 disables comet, in seconds */
        "buffer" : 600          /* how long to buffer readings for the local interface, in seconds */
},

"meters" : [{
        "enabled" : true,       /* disabled meters will be ignored */
        "protocol" : "d0",     /* use 'vzlogger -h' for list of available protocols */
        "device" : "/dev/usb-ir-lesekopf0",
        "interval" : 61,
        "baudrate" : 300,
        "parity"  : "7E1",
        "pullseq" : "2F3F210D0A",
        }
]}
 
Dann der Test mi:
vzlogger -c /var/log/vzlogger.test
 
[Dec 10 22:51:16][mtr0] Creating new meter with protocol d0.
[Dec 10 22:51:16][d0]   pullseq len:5 found
[Dec 10 22:51:16][mtr0] Meter configured. enabled
[Dec 10 22:51:16]       New meter initialized (protocol=d0)
[Dec 10 22:51:16]       Have 1 meters.
[Dec 10 22:51:16][main] foreground=1, daemon=0, local=0
[Dec 10 22:51:16]       NOT Daemonize process...
[Dec 10 22:51:16]       Opened logfile /var/log/vzlogger.log
[Dec 10 22:51:16][]     ===> Start meters.
[Dec 10 22:51:16][mtr0] Meter connection established
[Dec 10 22:51:16][mtr0] Meter thread started
[Dec 10 22:51:16][mtr0] meter is opened. Start channels.
[Dec 10 22:51:16][]     Startup done.
[Dec 10 22:51:16][mtr0] Number of readers: 32
[Dec 10 22:51:16][mtr0] Config.daemon: 0
[Dec 10 22:51:16][mtr0] Config.local: 0
[Dec 10 22:51:16][d0]   sending pullsequenz send (len:5 is:5).

^C[Dec 10 22:51:22]       terminating on signal 2.
[Dec 10 22:51:22]       Closing connections to terminate
[Dec 10 22:51:22][]     Server stopped.


Leider tut sich da einfach nix ... ich habe keine Idee mehr, wo ich etwas falsch mache, vielleicht sieht es einer von Euch auf anhieb. Bin dankbar für jeden Tipp.
 
Schönen Abend noch
Grüße
Thomas


---
Alle Postfächer an einem Ort. Jetzt wechseln und E-Mail-Adresse mitnehmen! Rundum glücklich mit freenetMail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-dev/attachments/20131210/7657c577/attachment.html>


More information about the volkszaehler-dev mailing list