[vz-dev] Hilfe mit Easymeter Q3BA2020

Andreas Brus abrus.de at googlemail.com
Mon Sep 17 17:06:46 CEST 2012


Guten Tag

am Wochenende habe ich verzweifelt versucht meinen Easymeter, der mir
viele Daten entgegensprudelt zu verstehen.

Die erste Runde mit vzlogger verlief frustrierend.
In der Beschreibung des Easymeter steht: Bidirektionale
MSB-Schnittstelle (D0). Protokoll nach SML 1.03.
Wenn ich im vzlogger sml einstelle, dann läuft er erstmal los, findet
aber keine Daten.
Im wiki habe ich gefunden, daß der Q3B ein binäres SML verwendet.
Die Spezifikation 1.03 habe ich zwar geladen und gelesen, aber ich habe
keine Ahnung was mir die X und L im Kapitel 6 sagen sollen.

Wenn ich im vzlogger d0 einstelle, dann bringt er viele Ausgaben, aber
nach ein paar Sekunden:
[Sep 17 14:05:26][mtr0] Got 0 new readings from meter:
[Sep 17 14:05:26][ch0]  Buffer dump (size=0 keep=600): {}
[Sep 17 14:05:26][ch1]  Buffer dump (size=0 keep=600): {}
[Sep 17 14:05:26][ch2]  Buffer dump (size=0 keep=600): {}
[Sep 17 14:05:26][ch3]  Buffer dump (size=0 keep=600): {}
[Sep 17 14:05:26][mtr0] Read package with 0 tuples (vendor=w,
baudrate=3, identification=B
ESYEZcu)
Speicherzugriffsfehler

wenn ich im vzlogger sml einstelle siehts so aus:
warning: could not read the whole file
[Sep 17 14:11:21][mtr0] Got 1 new readings from meter:
[Sep 17 14:11:21][mtr0] Reading: id=0-0:0.0.0*0 value=0.00 ts=0.000
[Sep 17 14:11:21][ch0]  Buffer dump (size=0 keep=150): {}
[Sep 17 14:11:21][ch1]  Buffer dump (size=0 keep=150): {}
[Sep 17 14:11:21][ch2]  Buffer dump (size=0 keep=150): {}
[Sep 17 14:11:21][ch3]  Buffer dump (size=0 keep=150): {}
warning: could not read the whole file
[Sep 17 14:11:25][mtr0] Got 1 new readings from meter:
[Sep 17 14:11:25][mtr0] Reading: id=0-0:0.0.0*0 value=0.00 ts=0.000
[Sep 17 14:11:25][ch0]  Buffer dump (size=0 keep=150): {}
[Sep 17 14:11:25][ch1]  Buffer dump (size=0 keep=150): {}
[Sep 17 14:11:25][ch2]  Buffer dump (size=0 keep=150): {}
[Sep 17 14:11:25][ch3]  Buffer dump (size=0 keep=150): {}

Im vzlogger kann ich allerdings anscheinend nirgends die dokumentierten
7E1 und 9600 einstellen.
Im sml.c ist wohl CS8 bzw. 8N1 hardcoded:
Zeile: 256:
     /*  set 8-N-1 */
     tio.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR
| ICRNL | IXON);
     tio.c_oflag &= ~OPOST;
     tio.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
     tio.c_cflag &= ~(CSIZE | PARENB | PARODD | CSTOPB);
     tio.c_cflag |= CS8;

Was man da stattdessen für 7E1 schreiben muss und wie man das dann
womöglich noch konfigurierbar macht, soweit reichen meine Kenntnisse
leider nicht.

Lese ich direkt mit minicom (allerdings mit den im wiki dokumentierten
7E1 und 9600, erhalte ich:
(bei Bedarf kann ich noch viele weitere Beispiele bereitstellen...
Natürlich auch ohne bit-Erläuterung und alles am Stück...)


1b-bits:11011
1b-bits:11011
1b-bits:11011
1b-bits:11011 Start Escape?
01-bits:1
01-bits:1
01-bits:1
01-bits:1 Start Übertragung V1
76-bits:1110110 SML-Message?
05-bits:101 Länge?
00-bits:0 und da verlassen sie mich....
1b-bits:0011011
13-bits:0010011
56-bits:1010110
62-bits:1100010
00-bits:0
62-bits:1100010
00-bits:0
72-bits:1110010
65-bits:1100101
00-bits:0
00-bits:0
01-bits:1
01-bits:1
76-bits:1110110
01-bits:1
01-bits:1
07-bits:111
45-bits:1000101
53-bits:1010011
59-bits:1011001
51-bits:1010001
33-bits:110011
42-bits:1000010
0b-bits:1011
06-bits:110
45-bits:1000101
53-bits:1010011
59-bits:1011001
01-bits:1
04-bits:100
45-bits:1000101
0f-bits:1111
5a-bits:1011010
10-bits:10000
01-bits:1
01-bits:1
63-bits:1100011
56-bits:1010110
47-bits:1000111
00-bits:0
76-bits:1110110
05-bits:101
00-bits:0
1b-bits:11011
13-bits:10011
57-bits:1010111
62-bits:1100010
00-bits:0
62-bits:1100010
00-bits:0
72-bits:1110010
65-bits:1100101
00-bits:0
00-bits:0
07-bits:111
01-bits:1
77-bits:1110111
01-bits:1
0b-bits:1011
06-bits:110
45-bits:1000101
53-bits:1010011
59-bits:1011001
01-bits:1
04-bits:100
45-bits:1000101
0f-bits:1111
5a-bits:1011010
10-bits:10000
01-bits:1
72-bits:1110010
62-bits:1100010
01-bits:1
65-bits:1100101
00-bits:0
33-bits:110011
35-bits:110101
24-bits:100100
7c-bits:1111100
77-bits:1110111
07-bits:111
01-bits:1
01-bits:1
47-bits:1000111
02-bits:10
03-bits:11
7f-bits:1111111
01-bits:1
01-bits:1
01-bits:1
01-bits:1
04-bits:100
45-bits:1000101
53-bits:1010011
59-bits:1011001
01-bits:1
77-bits:1110111
07-bits:111
01-bits:1
00-bits:0
01-bits:1
08-bits:1000
00-bits:0
7f-bits:1111111
01-bits:1
01-bits:1
62-bits:1100010
1e-bits:11110
52-bits:1010010
7c-bits:1111100
69-bits:1101001
00-bits:0
00-bits:0
00-bits:0
00-bits:0
59-bits:1011001
2a-bits:101010
61-bits:1100001
5d-bits:1011101
01-bits:1
77-bits:1110111
07-bits:111
01-bits:1
00-bits:0
02-bits:10
08-bits:1000
00-bits:0
7f-bits:1111111
01-bits:1
01-bits:1
62-bits:1100010
1e-bits:11110
52-bits:1010010
7c-bits:1111100
69-bits:1101001
00-bits:0
00-bits:0
00-bits:0
02-bits:10
51-bits:1010001
71-bits:1110001
42-bits:1000010
7b-bits:1111011
01-bits:1
77-bits:1110111
07-bits:111
01-bits:1
00-bits:0
01-bits:1
08-bits:1000
01-bits:1
7f-bits:1111111
01-bits:1
01-bits:1
62-bits:1100010
1e-bits:11110
52-bits:1010010
01-bits:1
65-bits:1100101
00-bits:0
00-bits:0
3a-bits:111010
3e-bits:111110
01-bits:1
77-bits:1110111
07-bits:111
01-bits:1
00-bits:0
01-bits:1
08-bits:1000
02-bits:10
7f-bits:1111111
01-bits:1
01-bits:1
62-bits:1100010
1e-bits:11110
52-bits:1010010
01-bits:1
65-bits:1100101
00-bits:0
00-bits:0
00-bits:0
05-bits:101
01-bits:1
77-bits:1110111
07-bits:111
01-bits:1
00-bits:0
02-bits:10
08-bits:1000
01-bits:1
7f-bits:1111111
01-bits:1
01-bits:1
62-bits:1100010
1e-bits:11110
52-bits:1010010
01-bits:1
65-bits:1100101
00-bits:0
01-bits:1
04-bits:100
65-bits:1100101
01-bits:1
77-bits:1110111
07-bits:111
01-bits:1
00-bits:0
02-bits:10
08-bits:1000
02-bits:10
7f-bits:1111111
01-bits:1
01-bits:1
62-bits:1100010
1e-bits:11110
52-bits:1010010
01-bits:1
65-bits:1100101
00-bits:0
00-bits:0
00-bits:0
06-bits:110
01-bits:1
77-bits:1110111
07-bits:111
01-bits:1
00-bits:0
01-bits:1
07-bits:111
00-bits:0
7f-bits:1111111
01-bits:1
01-bits:1
62-bits:1100010
1b-bits:11011
52-bits:1010010
7e-bits:1111110
55-bits:1010101
7f-bits:1111111
79-bits:1111001
67-bits:1100111
1e-bits:11110
01-bits:1
77-bits:1110111
07-bits:111
01-bits:1
00-bits:0
15-bits:10101
07-bits:111
00-bits:0
7f-bits:1111111
01-bits:1
01-bits:1
62-bits:1100010
1b-bits:11011
52-bits:1010010
7e-bits:1111110
55-bits:1010101
7f-bits:1111111
7d-bits:1111101
6b-bits:1101011
46-bits:1000110
01-bits:1
77-bits:1110111
07-bits:111
01-bits:1
00-bits:0
29-bits:101001
07-bits:111
00-bits:0
7f-bits:1111111
01-bits:1
01-bits:1
62-bits:1100010
1b-bits:11011
52-bits:1010010
7e-bits:1111110
55-bits:1010101
7f-bits:1111111
7d-bits:1111101
60-bits:1100000
14-bits:10100
01-bits:1
77-bits:1110111
07-bits:111
01-bits:1
00-bits:0
3d-bits:111101
07-bits:111
00-bits:0
7f-bits:1111111
01-bits:1
01-bits:1
62-bits:1100010
1b-bits:11011
52-bits:1010010
7e-bits:1111110
55-bits:1010101
7f-bits:1111111
7d-bits:1111101
1a-bits:11010
44-bits:1000100
01-bits:1
77-bits:1110111
07-bits:111
01-bits:1
00-bits:0
60-bits:1100000
05-bits:101
05-bits:101
7f-bits:1111111
01-bits:1
01-bits:1
01-bits:1
01-bits:1
63-bits:1100011
01-bits:1
20-bits:100000
01-bits:1
01-bits:1
01-bits:1
63-bits:1100011
12-bits:10010
77-bits:1110111
00-bits:0
76-bits:1110110
05-bits:101
00-bits:0
1b-bits:11011
13-bits:10011
58-bits:1011000
62-bits:1100010
00-bits:0
62-bits:1100010
00-bits:0
72-bits:1110010
65-bits:1100101
00-bits:0
00-bits:0
02-bits:10
01-bits:1
71-bits:1110001
01-bits:1
63-bits:1100011
4a-bits:1001010
2d-bits:101101
00-bits:0
00-bits:0
1b-bits:11011
1b-bits:11011
1b-bits:11011
1b-bits:11011
1a-bits:11010
01-bits:1
28-bits:101000
0f-bits:1111

Vielen Dank erstmal für die Aufmerksamkeit

A. Brus






More information about the volkszaehler-dev mailing list