Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not receiving multi replies from SEC Meter #127

Open
toneytone opened this issue Jul 27, 2017 · 1 comment
Open

not receiving multi replies from SEC Meter #127

toneytone opened this issue Jul 27, 2017 · 1 comment

Comments

@toneytone
Copy link

toneytone commented Jul 27, 2017

When I read out the Meter after having connected with MBSheet, the first response is complete with over 70 Records and frame count. Afterwards with the same command I only get the first 33 (see log). Can you give me a hint where to look at?

I am running a raspberry pi 3B -> Tibbo Ehternet/Serial Converter -> Relay PW250 -> Multiple Meters
This specific is SchneiderElectric.

One thing I can see in Record 21 is the unrecognized VIF extension. The following values shouldn't be zero. Thanks for any help!

mbus-tcp-request-data-multi-reply -d 193.193.193.203 1001 29
init_slaves: debug: sending init frame #1
[2017-07-27 08:35:03] SEND (005): 10 40 FD 3D 16
init_slaves: debug: sending init frame #2
[2017-07-27 08:35:07] SEND (005): 10 40 FD 3D 16
[2017-07-27 08:35:11] SEND (005): 10 7B 1D 98 16
[2017-07-27 08:35:12] RECV (247): 68 F1 F1 68 08 1D 72 18 30 02 34 A3 4C 15 02 B5 00 00 00 02 FF 34 00 00 05 FF 35 00 00 80 3F 02 FF 36 00 00 02 FF 37 00 00 02 FF 38 00 00 04 ED FF 39 00 00 01 01 05 FF 3A 00 00 C0 FF 06 FF 20 19 FD DB 00 00 00 03 FF 21 03 00 00 03 FF 22 04 00 00 03 FF 23 0B 00 00 03 FF 24 32 00 00 05 03 0E 59 72 46 05 83 FF 09 00 00 00 00 85 40 03 71 69 48 46 85 40 83 FF 09 00 00 00 00 05 83 FF 0D 0D 59 72 46 85 40 83 FF 0D 71 69 48 46 05 83 FF 01 AE 07 D6 45 05 83 FF 02 C7 62 82 45 05 83 FF 03 A2 47 8C 45 05 FD 61 00 00 00 00 85 10 03 00 00 00 00 85 20 03 00 00 00 00 85 30 03 00 00 00 00 85 80 10 03 00 00 00 00 03 FF 25 00 00 00 05 FF 26 00 00 C8 42 03 FF 27 64 00 00 03 FF 28 03 00 00 03 FF 29 64 00 00 03 FF 2A 01 00 00 03 FF 2B 00 00 00 0F F3 16
mbus_frame_print: Dumping M-Bus frame [type 4, 247 bytes]: 68 F1 F1 68 08 1D 72 18 30 02 34 A3 4C 15 02 B5 00 00 00 02 FF 34 00 00 05 FF 35 00 00 80 3F 02 FF 36 00 00 02 FF 37 00 00 02 FF 38 00 00 04 ED FF 39 00 00 01 01 05 FF 3A 00 00 C0 FF 06 FF 20 19 FD DB 00 00 00 03 FF 21 03 00 00 03 FF 22 04 00 00 03 FF 23 0B 00 00 03 FF 24 32 00 00 05 03 0E 59 72 46 05 83 FF 09 00 00 00 00 85 40 03 71 69 48 46 85 40 83 FF 09 00 00 00 00 05 83 FF 0D 0D 59 72 46 85 40 83 FF 0D 71 69 48 46 05 83 FF 01 AE 07 D6 45 05 83 FF 02 C7 62 82 45 05 83 FF 03 A2 47 8C 45 05 FD 61 00 00 00 00 85 10 03 00 00 00 00 85 20 03 00 00 00 00 85 30 03 00 00 00 00 85 80 10 03 00 00 00 00 03 FF 25 00 00 00 05 FF 26 00 00 C8 42 03 FF 27 64 00 00 03 FF 28 03 00 00 03 FF 29 64 00 00 03 FF 2A 01 00 00 03 FF 2B 00 00 00 0F F3 16

<SlaveInformation>
    <Id>34023018</Id>
    <Manufacturer>SEC</Manufacturer>
    <Version>21</Version>
    <ProductName></ProductName>
    <Medium>Electricity</Medium>
    <AccessNumber>181</AccessNumber>
    <Status>00</Status>
    <Signature>0000</Signature>
</SlaveInformation>

<DataRecord id="0">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Manufacturer specific</Unit>
    <Value>0</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="1">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Manufacturer specific</Unit>
    <Value>1.000000</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="2">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Manufacturer specific</Unit>
    <Value>0</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="3">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Manufacturer specific</Unit>
    <Value>0</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="4">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Manufacturer specific</Unit>
    <Value>0</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="5">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Time Point (time &amp; date)</Unit>
    <Value>2000-01-01T00:00:00</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="6">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Manufacturer specific</Unit>
    <Value>-nan</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="7">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Manufacturer specific</Unit>
    <Value>14417177</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="8">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Manufacturer specific</Unit>
    <Value>3</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="9">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Manufacturer specific</Unit>
    <Value>4</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="10">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Manufacturer specific</Unit>
    <Value>11</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="11">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Manufacturer specific</Unit>
    <Value>50</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="12">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Energy (Wh)</Unit>
    <Value>15510.263672</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="13">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Energy (Wh)</Unit>
    <Value>0.000000</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="14">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Tariff>0</Tariff>
    <Device>1</Device>
    <Unit>Energy (Wh)</Unit>
    <Value>12826.360352</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="15">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Tariff>0</Tariff>
    <Device>1</Device>
    <Unit>Energy (Wh)</Unit>
    <Value>0.000000</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="16">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Energy (Wh)</Unit>
    <Value>15510.262695</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="17">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Tariff>0</Tariff>
    <Device>1</Device>
    <Unit>Energy (Wh)</Unit>
    <Value>12826.360352</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="18">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Energy (Wh)</Unit>
    <Value>6848.959961</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="19">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Energy (Wh)</Unit>
    <Value>4172.347168</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="20">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Energy (Wh)</Unit>
    <Value>4488.954102</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="21">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Unrecognized VIF extension: 0x61</Unit>
    <Value>0.000000</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="22">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Tariff>1</Tariff>
    <Device>0</Device>
    <Unit>Energy (Wh)</Unit>
    <Value>0.000000</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="23">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Tariff>2</Tariff>
    <Device>0</Device>
    <Unit>Energy (Wh)</Unit>
    <Value>0.000000</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="24">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Tariff>3</Tariff>
    <Device>0</Device>
    <Unit>Energy (Wh)</Unit>
    <Value>0.000000</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="25">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Tariff>4</Tariff>
    <Device>0</Device>
    <Unit>Energy (Wh)</Unit>
    <Value>0.000000</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="26">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Manufacturer specific</Unit>
    <Value>0</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="27">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Manufacturer specific</Unit>
    <Value>100.000000</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="28">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Manufacturer specific</Unit>
    <Value>100</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="29">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Manufacturer specific</Unit>
    <Value>3</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="30">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Manufacturer specific</Unit>
    <Value>100</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="31">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Manufacturer specific</Unit>
    <Value>1</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="32">
    <Function>Instantaneous value</Function>
    <StorageNumber>0</StorageNumber>
    <Unit>Manufacturer specific</Unit>
    <Value>0</Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>

<DataRecord id="33">
    <Function>Manufacturer specific</Function>
    <Value></Value>
    <Timestamp>2017-07-27T08:35:12</Timestamp>
</DataRecord>
@toneytone
Copy link
Author

Probably same issue like #105
So best way is probably to SND_NKE to 255 before every readout cycle. But how?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant