Подключение к счетчику Энергомера СЕ308

А какой сейчас пароль стоит?
Так как на lowest:

wb-mqtt-serial -G print,/dev/ttyRS485-1,19200-8-N-1,dlms_hdlc:14686,16,lowest,123
Getting logical devices...
<3>ERROR: Serial protocol error: SAP Assignment attribute read failed. Serial protocol error: request timed out

А на low уровне уже:

root@wirenboard-AMV54ZLX:~# wb-mqtt-serial -G print,/dev/ttyRS485-1,19200-8-N-1,dlms_hdlc:14686,16,low,12345678
Getting logical devices...
<3>ERROR: Serial protocol error: AARQRequest failed. Bad response: 279, Authentication failure.
root@wirenboard-AMV54ZLX:~# wb-mqtt-serial -G print,/dev/ttyRS485-1,19200-8-N-1,dlms_hdlc:14686,16,low,1234567812345678
Getting logical devices...
<3>ERROR: Serial protocol error: AARQRequest failed. Bad response: 279, Authentication failure.
root@wirenboard-AMV54ZLX:~# wb-mqtt-serial -G print,/dev/ttyRS485-1,19200-8-N-1,dlms_hdlc:14686,16,low,""
Getting logical devices...
<3>ERROR: Serial protocol error: AARQRequest failed. Bad response: 279, Authentication failure.

Я не менял пароль…
С компьютера успешно подключался с паролем 1234567812345678 через оптоголовку и USB-RS485 адаптер.

А с неверным (заведомо неверным) - подключался admin_tools?
Потому как

root@wirenboard-AMV54ZLX:~# wb-mqtt-serial -G print,/dev/ttyRS485-1,19200-8-N-1,dlms_hdlc:14686,16,lowest,1234567812345678
Getting logical devices...
<3>ERROR: Serial protocol error: SAP Assignment attribute read failed. Serial protocol error: request timed out
root@wirenboard-AMV54ZLX:~# wb-mqtt-serial -G print,/dev/ttyRS485-1,19200-8-N-1,dlms_hdlc:14686,16,low,1234567812345678
Getting logical devices...
<3>ERROR: Serial protocol error: AARQRequest failed. Bad response: 279, Authentication failure.

Спрошу завтра у разработчиков.

В случае адреса “16” и без аутентификации:

May 14 07:06:55 wirenboard-AMV54ZLX wb-mqtt-serial[4771]: DEBUG: [serial client] </dev/ttyRS485-1 19200 8 N 1>78853864: Wait until 78853864
May 14 07:06:55 wirenboard-AMV54ZLX wb-mqtt-serial[4771]: DEBUG: [port] /dev/ttyRS485-1: Sleep 0 us
May 14 07:06:55 wirenboard-AMV54ZLX wb-mqtt-serial[4771]: DEBUG: [port] /dev/ttyRS485-1: Sleep 20000 us
May 14 07:06:55 wirenboard-AMV54ZLX wb-mqtt-serial[4771]: DEBUG: [port] /dev/ttyRS485-1: Write: 7e a0 1c 00 02 e4 bd 21 dc eb 79 e6 e6 00 c0 01 c1 00 03 01 00 20 07 00 ff 03 00 5d 9a 7e
May 14 07:06:55 wirenboard-AMV54ZLX wb-mqtt-serial[4771]: DEBUG: [port] /dev/ttyRS485-1: Sleep 15625 us
May 14 07:06:55 wirenboard-AMV54ZLX wb-mqtt-serial[4771]: DEBUG: [port] /dev/ttyRS485-1: ReadFrame: 7e a0 14 21 00 02 e4 bd fc d6 41 e6 e7 00 c4 01 c1 01 03 73 82 7e
May 14 07:06:55 wirenboard-AMV54ZLX wb-mqtt-serial[4771]: WARNING: [serial device] TSerialDevice::ReadRegister(): Serial protocol error: Getting 1.0.32.7.0.255:3 failed. Read DLMS packet failed: 3, Access Error : Device reports Read-Write denied. [slave_id is </dev/ttyRS485-1 19200 8 N 1> dlms:14686]

Устройство отказывает в чтении (Access Error). Очевидно прав мало.

В случае когда переключаю на low:


получаю

May 14 08:17:37 wirenboard-AMV54ZLX wb-mqtt-serial[7669]: DEBUG: [port] /dev/ttyRS485-1: Write: 7e a0 0a 00 02 e4 bd 21 53 10 e8 7e
May 14 08:17:37 wirenboard-AMV54ZLX wb-mqtt-serial[7669]: DEBUG: [port] /dev/ttyRS485-1: Sleep 6250 us
May 14 08:17:37 wirenboard-AMV54ZLX wb-mqtt-serial[7669]: DEBUG: [port] /dev/ttyRS485-1: ReadFrame: 7e a0 0a 21 00 02 e4 bd 1f ab a7 7e
May 14 08:17:37 wirenboard-AMV54ZLX wb-mqtt-serial[7669]: DEBUG: [Energomera CE308 14686 (</dev/ttyRS485-1 19200 8 N 1> dlms:14686)] Initialize connection
May 14 08:17:37 wirenboard-AMV54ZLX wb-mqtt-serial[7669]: DEBUG: [port] /dev/ttyRS485-1: Sleep 20000 us
May 14 08:17:37 wirenboard-AMV54ZLX wb-mqtt-serial[7669]: DEBUG: [port] /dev/ttyRS485-1: Write: 7e a0 0a 00 02 e4 bd 21 93 1c 2e 7e
May 14 08:17:37 wirenboard-AMV54ZLX wb-mqtt-serial[7669]: DEBUG: [port] /dev/ttyRS485-1: Sleep 6250 us
May 14 08:17:37 wirenboard-AMV54ZLX wb-mqtt-serial[7669]: DEBUG: [port] /dev/ttyRS485-1: ReadFrame: 7e a0 21 21 00 02 e4 bd 73 c0 1b 81 80 12 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 53 3b 7e
May 14 08:17:37 wirenboard-AMV54ZLX wb-mqtt-serial[7669]: DEBUG: [port] /dev/ttyRS485-1: Sleep 20000 us
May 14 08:17:37 wirenboard-AMV54ZLX wb-mqtt-serial[7669]: DEBUG: [port] /dev/ttyRS485-1: Write: 7e a0 4f 00 02 e4 bd 21 10 2a af 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 01 ac 12 80 10 31 32 33 34 35 36 37 38 31 32 33 34 35 36 37 38 be 10 04 0e 01 00 00 00 06 5f 1f 04 00 00 1e 5d ff ff d7 40 7e
May 14 08:17:38 wirenboard-AMV54ZLX wb-mqtt-serial[7669]: DEBUG: [port] /dev/ttyRS485-1: Sleep 42188 us
May 14 08:17:38 wirenboard-AMV54ZLX wb-mqtt-serial[7669]: DEBUG: [port] /dev/ttyRS485-1: ReadFrame: 7e a0 3a 21 00 02 e4 bd 30 14 a8 e6 e7 00 61 29 a1 09 06 07 60 85 74 05 08 01 01 a2 03 02 01 01 a3 05 a1 03 02 01 0d be 10 04 0e 08 00 06 5f 1f 04 00 00 10 10 04 00 00 07 25 5a 7e
May 14 08:17:38 wirenboard-AMV54ZLX wb-mqtt-serial[7669]: DEBUG: [port] /dev/ttyRS485-1: Sleep 20000 us
May 14 08:17:38 wirenboard-AMV54ZLX wb-mqtt-serial[7669]: DEBUG: [port] /dev/ttyRS485-1: Write: 7e a0 0a 00 02 e4 bd 21 53 10 e8 7e
May 14 08:17:38 wirenboard-AMV54ZLX wb-mqtt-serial[7669]: DEBUG: [port] /dev/ttyRS485-1: Sleep 6250 us
May 14 08:17:38 wirenboard-AMV54ZLX wb-mqtt-serial[7669]: DEBUG: [port] /dev/ttyRS485-1: ReadFrame: 7e a0 21 21 00 02 e4 bd 73 c0 1b 81 80 12 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 53 3b 7e
May 14 08:17:38 wirenboard-AMV54ZLX wb-mqtt-serial[7669]: DEBUG: [serial client] Failed to open session: Serial protocol error: AARQRequest failed. Bad response: 279, Authentication failure. [slave_id is </dev/ttyRS485-1 19200 8 N 1> dlms:14686]

Видно что пароль “1234567812345678” передается “31 32 33 34 35 36 37 38 31 32 33 34 35 36 37 38”
Но - “AARQRequest failed. Bad response: 279, Authentication failure”
Тут выше был лог из admintools, но для другого ecnhjqcndf/
Итого:
Заработало только так


То есть для “32” пароль какой-то другой. Не “1234567812345678”
Этот пароль - для “48”. Проверьте настройки в самом устройстве.

Ну и не забудьте закрыть доступ для support.

1 лайк

Спасибо за помощь!