rscada / libmbus

Meter-bus library and utility programs
http://www.rscada.se/libmbus
BSD 3-Clause "New" or "Revised" License
217 stars 137 forks source link

not receiving multi replies from SEC Meter #127

Open toneytone opened 6 years ago

toneytone commented 6 years ago

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 <?xml version="1.0" encoding="ISO-8859-1"?>

34023018 SEC 21 Electricity 181 00 0000 Instantaneous value 0 Manufacturer specific 0 2017-07-27T08:35:12 Instantaneous value 0 Manufacturer specific 1.000000 2017-07-27T08:35:12 Instantaneous value 0 Manufacturer specific 0 2017-07-27T08:35:12 Instantaneous value 0 Manufacturer specific 0 2017-07-27T08:35:12 Instantaneous value 0 Manufacturer specific 0 2017-07-27T08:35:12 Instantaneous value 0 Time Point (time & date) 2000-01-01T00:00:00 2017-07-27T08:35:12 Instantaneous value 0 Manufacturer specific -nan 2017-07-27T08:35:12 Instantaneous value 0 Manufacturer specific 14417177 2017-07-27T08:35:12 Instantaneous value 0 Manufacturer specific 3 2017-07-27T08:35:12 Instantaneous value 0 Manufacturer specific 4 2017-07-27T08:35:12 Instantaneous value 0 Manufacturer specific 11 2017-07-27T08:35:12 Instantaneous value 0 Manufacturer specific 50 2017-07-27T08:35:12 Instantaneous value 0 Energy (Wh) 15510.263672 2017-07-27T08:35:12 Instantaneous value 0 Energy (Wh) 0.000000 2017-07-27T08:35:12 Instantaneous value 0 0 1 Energy (Wh) 12826.360352 2017-07-27T08:35:12 Instantaneous value 0 0 1 Energy (Wh) 0.000000 2017-07-27T08:35:12 Instantaneous value 0 Energy (Wh) 15510.262695 2017-07-27T08:35:12 Instantaneous value 0 0 1 Energy (Wh) 12826.360352 2017-07-27T08:35:12 Instantaneous value 0 Energy (Wh) 6848.959961 2017-07-27T08:35:12 Instantaneous value 0 Energy (Wh) 4172.347168 2017-07-27T08:35:12 Instantaneous value 0 Energy (Wh) 4488.954102 2017-07-27T08:35:12 Instantaneous value 0 Unrecognized VIF extension: 0x61 0.000000 2017-07-27T08:35:12 Instantaneous value 0 1 0 Energy (Wh) 0.000000 2017-07-27T08:35:12 Instantaneous value 0 2 0 Energy (Wh) 0.000000 2017-07-27T08:35:12 Instantaneous value 0 3 0 Energy (Wh) 0.000000 2017-07-27T08:35:12 Instantaneous value 0 4 0 Energy (Wh) 0.000000 2017-07-27T08:35:12 Instantaneous value 0 Manufacturer specific 0 2017-07-27T08:35:12 Instantaneous value 0 Manufacturer specific 100.000000 2017-07-27T08:35:12 Instantaneous value 0 Manufacturer specific 100 2017-07-27T08:35:12 Instantaneous value 0 Manufacturer specific 3 2017-07-27T08:35:12 Instantaneous value 0 Manufacturer specific 100 2017-07-27T08:35:12 Instantaneous value 0 Manufacturer specific 1 2017-07-27T08:35:12 Instantaneous value 0 Manufacturer specific 0 2017-07-27T08:35:12 Manufacturer specific 2017-07-27T08:35:12
toneytone commented 6 years ago

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