(09:51:42.291) .. Открытие сессии
(09:51:42.291) Send: 7E A0 07 03 61 93 69 47 7E
(09:51:42.322) Receive: 7E A0 07 61 03 73 77 46 7E
(09:51:42.324) .. Установление доступа
(09:51:42.325) Send: 7E A0 58 03 61 10 15 96 E6 E6 00 60 4A A1 09 06 07 60 85 74 05 08 01 01 A6 0A 04 08 52 4D 53 76 29 66 73 63 8A 02 07 80 8B 07 60 85 74 05 08 02 02 AC 12 80 10 20 4E E1 4F F7 EF 8A 9B 9C 72 41 7C 44 38 C4 9C BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 10 1F FF FF 23 4E 7E
(09:51:42.434) Receive: 7E A0 58 61 03 30 07 51 E6 E7
(09:51:42.450) Receive: 00 61 4A A1 09 06 07 60 85 74 05 08 01 01 A2
(09:51:42.467) Receive: 03 02 01 00 A3 05 A1 03 02 01 00 88 02 07 80
(09:51:42.483) Receive: 89 07 60 85 74 05 08 02 02 AA 12 80 10 E1 10 D0
(09:51:42.499) Receive: 65 78 22 83 35 B7 BF CF A1 96 3E 1A 71 BE 10
(09:51:42.515) Receive: 04 0E 08 00 06 5F 1F 04 00 00 10 1F 04 00 00
(09:51:42.530) Receive: 07 E5 03 7E
(09:51:42.532) .. Подтверждение квитанций
(09:51:42.534) Send: 7E A0 2B 03 61 32 8D EB E6 E6 00 C3 01 C1 00 0F 00 00 28 00 00 FF 01 01 09 10 EF BF 35 49 26 C7 FA 14 CD FB 18 FC BA 40 08 E8 73 11 7E
(09:51:42.595) Receive: 7E A0 24 61 03 52 62
(09:51:42.611) Receive: DC E6 E7 00 C7 01 C1 00 01 00 09 10 E1 81 73
(09:51:42.627) Receive: CD 6B 00 EA E1 CF 2F DC 18 91 54 FD 01 C3 B1 7E
(09:51:42.630) .. Таймаут неактивности
(09:51:42.632) Send: 7E A0 19 03 61 54 39 98 E6 E6 00 C0 01 41 00 17 00 00 60 06 03 FF 09 00 A0 98 7E
(09:51:42.675) Receive: 7E A0 11 61 03 74 F3
(09:51:42.690) Receive: BA E6 E7 00 C4 01 41 01 09 C5 21 7E
(09:51:42.693) .. Чтение MD5
(09:51:42.694) Send: 7E A0 19 03 61 76 29 9A E6 E6 00 C0 01 41 00 01 00 00 00 02 08 FF 02 00 37 4D 7E
(09:51:42.738) Receive: 7E A0 22 61 03 96 D0 17 E6
(09:51:42.755) Receive: E7 00 C4 01 41 00 09 10 6A 2D 78 00 9C 8A 8E 78
(09:51:42.771) Receive: 37 5C 45 8C 02 FE FB CB 6E 07 7E
(09:51:43.566) Соединение установлено
(09:51:43.568) .. Чтение версии СПОДЭС
(09:51:43.570) Send: 7E A0 19 03 61 98 59 94 E6 E6 00 C0 01 41 00 01 00 00 60 01 06 FF 02 00 08 79 7E
(09:51:43.618) Receive: 7E A0 16 61 03 B8 B2 E1 E6 E7 00 C4 01
(09:51:43.633) Receive: 41 00 09 04 32 2E 30 30 FC 62 7E
(09:51:43.737) Send: 7E A0 19 03 61 BA 49 96 E6 E6 00 C0 01 41 00 01 00 00 2A 00 00 FF 02 00 09 12 7E
(09:51:43.805) Receive: 7E A0 22 61 03 DA B8 9F E6 E7 00 C4 01 41 00 09 10 52 49 4D 31
(09:51:43.809) Receive: 38 39 32 36 30 31 37 32 37 39 35 35 BA 1E 7E
(09:52:04.802) Send: 7E A0 19 03 61 DC 79 90 E6 E6 00 C0 01 41 00 01 00 00 2A 00 00 FF 02 00 09 12 7E
Я так понял наиболее близкий к этому вариант …dlms_hdlc:0,48,high,SettingRiM489.2X
Если ,32, или ,16, то начало совсем другое.
По поводу вычитывания списка DLMS парамов - РиМовская прога делает это, и достаточно долго, даже прогресс-бар для этого есть.
Добрый день. Взял другой девайс более свежий (у старого хоть и было заявлено что умеет dlms но вероятно это не так…)
получил такой ответ
root@wirenboard-AURTJIDY:~# wb-mqtt-serial -d3 -G print_all,/dev/ttyUSB0,9600-8-N-1,dlms_hdlc:29,16,lowest,12345678
Getting logical devices…
<7>DEBUG: [port] Sleep 20000 us
<7>DEBUG: [port] Write: 7e a0 08 02 3b 21 53 e6 e1 7e
<7>DEBUG: [port] Sleep 11000 us
<7>DEBUG: [port] ReadFrame: 7e a0 08 21 02 3b 73 2b 18 7e
<7>DEBUG: [ (dlms:29)] Initialize connection
<7>DEBUG: [port] Sleep 20000 us
<7>DEBUG: [port] Write: 7e a0 08 02 3b 21 93 ea 27 7e
<7>DEBUG: [port] Sleep 11000 us
<7>DEBUG: [port] ReadFrame: 7e a0 08 21 02 3b 73 2b 18 7e
<7>DEBUG: [port] Sleep 20000 us
<7>DEBUG: [port] Write: 7e a0 2c 02 3b 21 10 f8 dc e6 e6 00 60 1d a1 09 06 07 60 85 74 05 08 01 01 be 10 04 0e 01 00 00 00 06 5f 1f 04 00 00 1e 5d ff ff b3 e2 7e
<7>DEBUG: [port] Sleep 48000 us
<7>DEBUG: [port] ReadFrame: 7e a0 38 21 02 3b 30 65 bc e6 e7 00 61 29 a1 09 06 07 60 85 74 05 08 01 01 a2 03 02 01 00 a3 05 a1 03 02 01 00 be 10 04 0e 08 00 06 5f 1f 04 00 00 10 10 04 00 00 07 36 e3 7e
<7>DEBUG: [ (dlms:29)] Connection is initialized
<7>DEBUG: [ (dlms:29)] Getting SAP Assignment …
<7>DEBUG: [port] Sleep 20000 us
<7>DEBUG: [port] Write: 7e a0 1a 02 3b 21 32 a1 31 e6 e6 00 c0 01 81 00 11 00 00 29 00 00 ff 02 00 fe be 7e
<7>DEBUG: [port] Sleep 30000 us
<7>DEBUG: [port] ReadFrame: 7e a0 12 21 02 3b 52 48 d0 e6 e7 00 c4 01 81 01 04 ba f0 7e
<3>ERROR: Serial protocol error: SAP Assignment attribute read failed. Read DLMS packet failed: 4, Access Error : Device reports a undefined object.
root@wirenboard-AURTJIDY:~# wb-mqtt-serial -d3 -G print_all,/dev/ttyUSB0,9600-8-N-1,dlms_hdlc:29,16,low,Reader
Getting logical devices…
<7>DEBUG: [port] Sleep 20000 us
<7>DEBUG: [port] Write: 7e a0 08 02 3b 21 53 e6 e1 7e
<7>DEBUG: [port] Sleep 11000 us
<7>DEBUG: [port] ReadFrame: 7e a0 08 21 02 3b 1f 41 b1 7e
<7>DEBUG: [ (dlms:29)] Initialize connection
<7>DEBUG: [port] Sleep 20000 us
<7>DEBUG: [port] Write: 7e a0 08 02 3b 21 93 ea 27 7e
<7>DEBUG: [port] Sleep 11000 us
<7>DEBUG: [port] ReadFrame: 7e a0 08 21 02 3b 73 2b 18 7e
<7>DEBUG: [port] Sleep 20000 us
<7>DEBUG: [port] Write: 7e a0 43 02 3b 21 10 b7 17 e6 e6 00 60 34 a1 09 06 07 60 85 74 05 08 01 01 8a 02 07 80 8b 07 60 85 74 05 08 02 01 ac 08 80 06 52 65 61 64 65 72 be 10 04 0e 01 00 00 00 06 5f 1f 04 00 00 1e 5d ff ff c0 e7 7e
<7>DEBUG: [port] Sleep 72000 us
<7>DEBUG: [port] ReadFrame: 7e a0 2e 21 02 3b 30 bd 33 e6 e7 00 61 1f a1 09 06 07 60 85 74 05 08 01 01 a2 03 02 01 01 a3 05 a1 03 02 01 01 be 06 04 04 0e 01 06 02 d8 03 7e
<7>DEBUG: [port] Sleep 20000 us
<7>DEBUG: [port] Write: 7e a0 08 02 3b 21 53 e6 e1 7e
<7>DEBUG: [port] Sleep 11000 us
<7>DEBUG: [port] ReadFrame: 7e a0 08 21 02 3b 73 2b 18 7e
<3>ERROR: Serial protocol error: AARQRequest failed. Bad response: 275, No reason given.
root@wirenboard-AURTJIDY:~# wb-mqtt-serial -d3 -G print_all,/dev/ttyUSB0,9600-8-N-1,dlms_hdlc:29,48,high,SettingRiM489.2X
Getting logical devices…
<7>DEBUG: [port] Sleep 20000 us
<7>DEBUG: [port] Write: 7e a0 08 02 3b 61 53 80 a7 7e
<7>DEBUG: [port] Sleep 11000 us
<7>DEBUG: [port] ReadFrame: 7e a0 08 61 02 3b 73 9c 0e 7e
<7>DEBUG: [ (dlms:29)] Initialize connection
<7>DEBUG: [port] Sleep 20000 us
<7>DEBUG: [port] Write: 7e a0 08 02 3b 61 93 8c 61 7e
<7>DEBUG: [port] Sleep 11000 us
<7>DEBUG: [port] ReadFrame: 7e a0 08 61 02 3b 73 9c 0e 7e
<7>DEBUG: [port] Sleep 20000 us
<7>DEBUG: [port] Write: 7e a0 4d 02 3b 61 10 69 30 e6 e6 00 60 3e a1 09 06 07 60 85 74 05 08 01 01 8a 02 07 80 8b 07 60 85 74 05 08 02 02 ac 12 80 10 67 c6 69 73 51 ff 4a ec 29 cd ba ab f2 fb e3 46 be 10 04 0e 01 00 00 00 06 5f 1f 04 00 00 1e 5d ff ff 13 51 7e
<7>DEBUG: [port] Sleep 83000 us
<7>DEBUG: [port] ReadFrame: 7e a0 59 61 02 3b 30 25 00 e6 e7 00 61 4a a1 09 06 07 60 85 74 05 08 01 01 a2 03 02 01 00 a3 05 a1 03 02 01 00 88 02 07 80 89 07 60 85 74 05 08 02 02 aa 12 80 10 d6 db 0a 5e cc 53 70 58 81 76 ae 77 92 82 b3 96 be 10 04 0e 08 00 06 5f 1f 04 00 00 10 1d 04 00 00 07 5f 68 7e
<7>DEBUG: [port] Sleep 20000 us
<7>DEBUG: [port] Write: 7e a0 2c 02 3b 61 32 8e 98 e6 e6 00 c3 01 81 00 0f 00 00 28 00 00 ff 01 01 09 10 ac c1 a7 b2 ee d3 26 76 f6 86 89 c5 a9 96 40 8a fb 99 7e
<7>DEBUG: [port] Sleep 48000 us
<7>DEBUG: [port] ReadFrame: 7e a0 25 61 02 3b 52 f2 22 e6 e7 00 c7 01 81 00 01 00 09 10 28 f6 1d 3d 0e c9 92 6c 0a 82 9d 2e 8d a9 1c 65 05 35 7e
<7>DEBUG: [ (dlms:29)] Connection is initialized
<7>DEBUG: [ (dlms:29)] Getting SAP Assignment …
<7>DEBUG: [port] Sleep 20000 us
<7>DEBUG: [port] Write: 7e a0 1a 02 3b 61 54 f7 71 e6 e6 00 c0 01 81 00 11 00 00 29 00 00 ff 02 00 fe be 7e
<7>DEBUG: [port] Sleep 30000 us
<7>DEBUG: [port] ReadFrame: 7e a0 12 61 02 3b 74 cb 82 e6 e7 00 c4 01 81 01 04 ba f0 7e
<3>ERROR: Serial protocol error: SAP Assignment attribute read failed. Read DLMS packet failed: 4, Access Error : Device reports a undefined object.
root@wirenboard-AURTJIDY:~#
root@wirenboard-AURTJIDY:~# wb-mqtt-serial -d3 -G print_all,/dev/ttyUSB0,9600-8-N-1,dlms_hdlc:29,32,low,Reader
Getting logical devices…
<7>DEBUG: [port] Sleep 20000 us
<7>DEBUG: [port] Write: 7e a0 08 02 3b 41 53 b3 84 7e
<7>DEBUG: [port] Sleep 11000 us
<7>DEBUG: [port] ReadFrame: 7e a0 08 41 02 3b 1f a5 28 7e
<7>DEBUG: [ (dlms:29)] Initialize connection
<7>DEBUG: [port] Sleep 20000 us
<7>DEBUG: [port] Write: 7e a0 08 02 3b 41 93 bf 42 7e
<7>DEBUG: [port] Sleep 11000 us
<7>DEBUG: [port] ReadFrame: 7e a0 08 41 02 3b 73 cf 81 7e
<7>DEBUG: [port] Sleep 20000 us
<7>DEBUG: [port] Write: 7e a0 43 02 3b 41 10 e2 72 e6 e6 00 60 34 a1 09 06 07 60 85 74 05 08 01 01 8a 02 07 80 8b 07 60 85 74 05 08 02 01 ac 08 80 06 52 65 61 64 65 72 be 10 04 0e 01 00 00 00 06 5f 1f 04 00 00 1e 5d ff ff c0 e7 7e
<7>DEBUG: [port] Sleep 72000 us
<7>DEBUG: [port] ReadFrame: 7e a0 38 41 02 3b 30 81 25 e6 e7 00 61 29 a1 09 06 07 60 85 74 05 08 01 01 a2 03 02 01 00 a3 05 a1 03 02 01 00 be 10 04 0e 08 00 06 5f 1f 04 00 00 10 1d 04 00 00 07 42 9f 7e
<7>DEBUG: [ (dlms:29)] Connection is initialized
<7>DEBUG: [ (dlms:29)] Getting SAP Assignment …
<7>DEBUG: [port] Sleep 20000 us
<7>DEBUG: [port] Write: 7e a0 1a 02 3b 41 32 f4 54 e6 e6 00 c0 01 81 00 11 00 00 29 00 00 ff 02 00 fe be 7e
<7>DEBUG: [port] Sleep 30000 us
<7>DEBUG: [port] ReadFrame: 7e a0 12 41 02 3b 52 ac 49 e6 e7 00 c4 01 81 01 04 ba f0 7e
<3>ERROR: Serial protocol error: SAP Assignment attribute read failed. Read DLMS packet failed: 4, Access Error : Device reports a undefined object.
root@wirenboard-AURTJIDY:~#
Пытаюсь добавить через Веб в логах вижу
ERROR: [serial] Error parsing config file: password item: plain integer or ‘0x…’ hex string expected instead of ‘005200650061006400650072’ Пароль Reader перевел в хекс… но что-то не идет…