Имеется RaZberry с последней версией Z-Way. Однако класс команд UserCode так и не работает нормально. То есть, устройству команда установки кода вроде бы как передаётся. Однако, код не устанавливается. При попытке получить код, пакеты идут, в результате видим, что юзер None, статус 0, hasCode true. То есть код не установлен. Набор кода на клавиатуре выдаёт статус неверный код.

На Vera Lite всё прекрасно работает.

Устройство - Poly Pad.

[2014-05-27 17:20:30.747] Executing script: 
zway.devices[41].instances[0].commandClasses[0x63].Set(1,'1234',1)
[2014-05-27 17:20:30.756] SETDATA devices.41.instances.0.commandClasses.99.data.1 = Empty
[2014-05-27 17:20:30.757] SETDATA devices.41.instances.0.commandClasses.99.data.1.code = Empty
[2014-05-27 17:20:30.757] SETDATA devices.41.instances.0.commandClasses.99.data.1.status = Empty
[2014-05-27 17:20:30.757] SETDATA devices.41.instances.0.commandClasses.99.data.1.hasCode = Empty
[2014-05-27 17:20:30.757] Adding job: UserCode user code set
[2014-05-27 17:20:30.758] Adding job: UserCode user code get
[2014-05-27 17:20:30.758] Node 41:0 CC Security: sending Nonce Get
[2014-05-27 17:20:30.758] SETDATA devices.41.instances.0.commandClasses.152.data.rNonceAckWait = **********
[2014-05-27 17:20:30.758] Adding job: Nonce get
[2014-05-27 17:20:30.759] SETDATA devices.41.data.lastNonceGet = 14210302 (0x00d8d4fe)
[2014-05-27 17:20:30.770] SENDING (cb 0x2a): ( 01 09 00 13 29 02 98 40 05 2A 39 )
[2014-05-27 17:20:30.781] RECEIVED ACK
[2014-05-27 17:20:30.791] RECEIVED: ( 01 04 01 13 01 E8 )
[2014-05-27 17:20:30.792] SENT ACK
[2014-05-27 17:20:30.792] Delivered to Z-Wave stack
[2014-05-27 17:20:31.948] RECEIVED: ( 01 05 00 13 2A 00 C3 )
[2014-05-27 17:20:31.948] SENT ACK
[2014-05-27 17:20:31.948] Job 0x13 (Nonce get): Delivered
[2014-05-27 17:20:31.948] SETDATA devices.41.data.lastPacketInfo.delivered = True
[2014-05-27 17:20:31.949] SETDATA devices.41.data.lastPacketInfo.packetLength = 5 (0x00000005)
[2014-05-27 17:20:31.949] SETDATA devices.41.data.lastPacketInfo.deliveryTime = 1156 (0x00000484)
[2014-05-27 17:20:31.949] SETDATA devices.41.data.lastPacketInfo = **********
[2014-05-27 17:20:31.949] SendData Response with callback 0x2a received: received by recipient
[2014-05-27 17:20:31.949] SETDATA devices.41.data.lastSend = 14210407 (0x00d8d567)
[2014-05-27 17:20:31.949] Job 0x13 (Nonce get): success
[2014-05-27 17:20:31.949] SETDATA devices.41.instances.0.commandClasses.152.data.rNonceAckWait = **********
[2014-05-27 17:20:31.950] Removing job: Nonce get
[2014-05-27 17:20:31.971] RECEIVED: ( 01 10 00 04 00 29 0A 98 80 7B FF 48 F4 31 F7 8C 71 D3 )
[2014-05-27 17:20:31.972] SENT ACK
[2014-05-27 17:20:31.972] SETDATA devices.41.data.lastReceived = 0 (0x00000000)
[2014-05-27 17:20:31.972] Node 41:0 CC Security: received Nonce Report
[2014-05-27 17:20:31.972] SETDATA devices.41.instances.0.commandClasses.152.data.rNonce = **********
[2014-05-27 17:20:31.973] Adding job: MultiCmd, UserCode user code set, UserCode user code get
[2014-05-27 17:20:31.973] Removing job: MultiCmd, UserCode user code set, UserCode user code get
[2014-05-27 17:20:31.973] Node 41:0 CC Security: Sending a secure message
[2014-05-27 17:20:31.973] Node 41:0 CC Security: sending encrypted packet: MultiCmd, UserCode user code set, UserCode user code get
[2014-05-27 17:20:31.973] SETDATA devices.41.instances.0.commandClasses.152.data.toFollow = False
[2014-05-27 17:20:31.974] SETDATA devices.41.data.lastNonceGet = Empty
[2014-05-27 17:20:31.974] Adding job: Security, MultiCmd, UserCode user code set, UserCode user code get
[2014-05-27 17:20:32.019] SENDING (cb 0x2b): ( 01 2B 00 13 29 24 98 81 F5 4C 9C 33 4F 42 34 48 FA 68 93 73 77 C2 2E 13 B7 89 7A 27 5F 66 95 EE 68 7B F0 AC 3F 7F A7 F0 9F 10 05 2B 96 )
[2014-05-27 17:20:32.030] RECEIVED ACK
[2014-05-27 17:20:32.041] RECEIVED: ( 01 04 01 13 01 E8 )
[2014-05-27 17:20:32.041] SENT ACK
[2014-05-27 17:20:32.041] Job 0x13 (Security, MultiCmd, UserCode user code set, UserCode user code get): Response received - transfered to encapsulated jobs
[2014-05-27 17:20:32.041] Job 0x13 (MultiCmd, UserCode user code set, UserCode user code get): Response received - transfered to encapsulated jobs
[2014-05-27 17:20:32.041] Delivered to Z-Wave stack
[2014-05-27 17:20:32.041] Delivered to Z-Wave stack
[2014-05-27 17:20:32.042] Delivered to Z-Wave stack
[2014-05-27 17:20:32.042] Delivered to Z-Wave stack
[2014-05-27 17:20:33.206] RECEIVED: ( 01 05 00 13 2B 00 C2 )
[2014-05-27 17:20:33.207] SENT ACK
[2014-05-27 17:20:33.207] Job 0x13 (Security, MultiCmd, UserCode user code set, UserCode user code get): Callback received - transfered to encapsulated jobs
[2014-05-27 17:20:33.207] Job 0x13 (MultiCmd, UserCode user code set, UserCode user code get): Callback received - transfered to encapsulated jobs
[2014-05-27 17:20:33.207] Job 0x13 (UserCode user code set): Delivered
[2014-05-27 17:20:33.207] SETDATA devices.41.data.lastPacketInfo.delivered = True
[2014-05-27 17:20:33.208] SETDATA devices.41.data.lastPacketInfo.packetLength = 11 (0x0000000b)
[2014-05-27 17:20:33.208] SETDATA devices.41.data.lastPacketInfo.deliveryTime = 1166 (0x0000048e)
[2014-05-27 17:20:33.208] SETDATA devices.41.data.lastPacketInfo = **********
[2014-05-27 17:20:33.208] SendData Response with callback 0x2b received: received by recipient
[2014-05-27 17:20:33.208] SETDATA devices.41.data.lastSend = 14210517 (0x00d8d5d5)
[2014-05-27 17:20:33.208] Job 0x13 (UserCode user code set): success
[2014-05-27 17:20:33.209] Removing job: UserCode user code set
[2014-05-27 17:20:33.209] Job 0x13 (UserCode user code get): Delivered
[2014-05-27 17:20:33.209] SETDATA devices.41.data.lastPacketInfo.delivered = True
[2014-05-27 17:20:33.209] SETDATA devices.41.data.lastPacketInfo.packetLength = 6 (0x00000006)
[2014-05-27 17:20:33.209] SETDATA devices.41.data.lastPacketInfo.deliveryTime = 1167 (0x0000048f)
[2014-05-27 17:20:33.209] SETDATA devices.41.data.lastPacketInfo = **********
[2014-05-27 17:20:33.210] SendData Response with callback 0x2b received: received by recipient
[2014-05-27 17:20:33.210] SETDATA devices.41.data.lastSend = 14210517 (0x00d8d5d5)
[2014-05-27 17:20:33.210] Job 0x13 (UserCode user code get): success
[2014-05-27 17:20:33.210] Removing job: UserCode user code get
[2014-05-27 17:20:33.210] Job 0x13 (MultiCmd, UserCode user code set, UserCode user code get): Delivered
[2014-05-27 17:20:33.211] SETDATA devices.41.data.lastPacketInfo.delivered = True
[2014-05-27 17:20:33.211] SETDATA devices.41.data.lastPacketInfo.packetLength = 19 (0x00000013)
[2014-05-27 17:20:33.211] SETDATA devices.41.data.lastPacketInfo.deliveryTime = 1168 (0x00000490)
[2014-05-27 17:20:33.211] SETDATA devices.41.data.lastPacketInfo = **********
[2014-05-27 17:20:33.211] SendData Response with callback 0x2b received: received by recipient
[2014-05-27 17:20:33.211] SETDATA devices.41.data.lastSend = 14210517 (0x00d8d5d5)
[2014-05-27 17:20:33.211] Job 0x13 (Security, MultiCmd, UserCode user code set, UserCode user code get): Delivered
[2014-05-27 17:20:33.212] SETDATA devices.41.data.lastPacketInfo.delivered = True
[2014-05-27 17:20:33.212] SETDATA devices.41.data.lastPacketInfo.packetLength = 39 (0x00000027)
[2014-05-27 17:20:33.212] SETDATA devices.41.data.lastPacketInfo.deliveryTime = 1169 (0x00000491)
[2014-05-27 17:20:33.212] SETDATA devices.41.data.lastPacketInfo = **********
[2014-05-27 17:20:33.213] SendData Response with callback 0x2b received: received by recipient
[2014-05-27 17:20:33.213] SETDATA devices.41.data.lastSend = 14210517 (0x00d8d5d5)
[2014-05-27 17:20:33.213] Job 0x13 (Security, MultiCmd, UserCode user code set, UserCode user code get): success
[2014-05-27 17:20:33.213] Removing job: Security, MultiCmd, UserCode user code set, UserCode user code get
[2014-05-27 17:20:51.018] Job 0x13: deleted from queue
[2014-05-27 17:20:52.215] Job 0x13: deleted from queue
[2014-05-27 17:20:52.227] Job 0x13: deleted from queue
[2014-05-27 17:20:52.238] Job 0x13: deleted from queue
[2014-05-27 17:20:52.238] Job 0x13: deleted from queue
[2014-05-27 17:21:42.205] RECEIVED: ( 01 08 00 04 00 29 02 98 40 00 )
[2014-05-27 17:21:42.205] SENT ACK
[2014-05-27 17:21:42.206] SETDATA devices.41.data.lastReceived = 0 (0x00000000)
[2014-05-27 17:21:42.206] Node 41:0 CC Security: sending Nonce Report
[2014-05-27 17:21:42.206] Adding job: Nonce report
[2014-05-27 17:21:42.218] SENDING (cb 0x2c): ( 01 11 00 13 29 0A 98 80 CA 25 A7 0F 47 23 B8 AA 05 2C DE )
[2014-05-27 17:21:42.228] RECEIVED ACK
[2014-05-27 17:21:42.239] RECEIVED: ( 01 04 01 13 01 E8 )
[2014-05-27 17:21:42.239] SENT ACK
[2014-05-27 17:21:42.239] Delivered to Z-Wave stack
[2014-05-27 17:21:43.401] RECEIVED: ( 01 05 00 13 2C 00 C5 )
[2014-05-27 17:21:43.401] SENT ACK
[2014-05-27 17:21:43.401] Job 0x13 (Nonce report): Delivered
[2014-05-27 17:21:43.402] SETDATA devices.41.data.lastPacketInfo.delivered = True
[2014-05-27 17:21:43.402] SETDATA devices.41.data.lastPacketInfo.packetLength = 13 (0x0000000d)
[2014-05-27 17:21:43.402] SETDATA devices.41.data.lastPacketInfo.deliveryTime = 1162 (0x0000048a)
[2014-05-27 17:21:43.402] SETDATA devices.41.data.lastPacketInfo = **********
[2014-05-27 17:21:43.402] SendData Response with callback 0x2c received: received by recipient
[2014-05-27 17:21:43.402] SETDATA devices.41.data.lastSend = 14216719 (0x00d8ee0f)
[2014-05-27 17:21:43.402] Job 0x13 (Nonce report): success
[2014-05-27 17:21:43.403] Removing job: Nonce report
[2014-05-27 17:21:43.447] RECEIVED: ( 01 1E 00 04 00 29 18 98 81 71 50 E2 74 FC 84 54 C8 26 BC 6D AB 91 CA 03 66 EC A8 F6 F6 E6 2F 71 )
[2014-05-27 17:21:43.447] SENT ACK
[2014-05-27 17:21:43.447] SETDATA devices.41.data.lastReceived = 0 (0x00000000)
[2014-05-27 17:21:43.448] Node 41:0 CC Security: Received a secure message
[2014-05-27 17:21:43.448] SETDATA devices.41.instances.0.commandClasses.152.data.firstPart = **********
[2014-05-27 17:21:43.448] Node 41:0 CC Security: passing decrypted packet to application level: [ 71 05 60 00 ]
[2014-05-27 17:21:43.448] SETDATA devices.41.instances.0.commandClasses.113.data.V1event.alarmType = 96 (0x00000060)
[2014-05-27 17:21:43.448] SETDATA devices.41.instances.0.commandClasses.113.data.V1event.level = 0 (0x00000000)
[2014-05-27 17:21:43.448] SETDATA devices.41.instances.0.commandClasses.113.data.V1event = Empty

задан 24 Май '14, 00:36

azimarev's gravatar image

azimarev
139327
процент согласия: 18%

отредактирован 27 Май '14, 21:27

Лог в студию! Маленького куска Set/Get достаточно. И версию софта точную.

(24 Май '14, 04:07) PoltoS ♦♦ PoltoS's gravatar image

Добавил лог. Версия 1.7-rc2

(24 Май '14, 13:07) azimarev azimarev's gravatar image

В данном логе явно нигде не видно ответов от устройства. Установка Set и запрос Get доставлены, но Report так и не пришёл. Вот и ответ. Т.е. это проблема устройства. Очередная недоделка. Ведь устройство, как мне известно, ещё не вышло официально.

UPD

Ой, а в логе было явно прописано, что отправлялось ( 63 01 01 00 ) и ( 63 02 01 ), т.е. команда Set имеет явно странный код. Т.е. пустой. А можно в логе выше - что исполняете (лог JS, где UserCode.Set())

ссылка

отвечен 25 Май '14, 11:02

PoltoS's gravatar image

PoltoS ♦♦
5731412
процент согласия: 27%

отредактирован 27 Май '14, 02:34

Poly Pad вышел два года назад вместе с Poly Lock. И в прошлом году у нас три пада успешно работали с Vera. И вчера только я этот же пад с Vera протестировал и все прекрасно работает.

(25 Май '14, 11:39) azimarev azimarev's gravatar image

ещё немного лога нужно (см. отредактированный ответ)

(27 Май '14, 02:34) PoltoS ♦♦ PoltoS's gravatar image

Выложил полный лог сессии. В конце - это моя попытка набрать установленный код 1234 и событие "неверный код"

(27 Май '14, 21:27) azimarev azimarev's gravatar image

что-то я ничего не понял... можно полный лог на почту? и номер версии.

(27 Май '14, 23:23) PoltoS ♦♦ PoltoS's gravatar image

Отправил логи. Номер версии 1.7.0, позавчера обновил с 1.7-rc2

(28 Май '14, 00:37) azimarev azimarev's gravatar image

Есть мнение, что устройство с придурью. Попробуйте такие команды:

UserCode.Set(1,'1234\0\0\0\0\0\0',1)

или

UserCode.Set(1,'\1\2\3\4\0\0\0\0\0\0',1)

Может заработает.

(31 Май '14, 03:37) PoltoS ♦♦ PoltoS's gravatar image

Не работает. При выполнении Get(1) статус всегда возвращает 0. Хотя пишет, что hasCode = true.

(07 Июн '14, 23:57) azimarev azimarev's gravatar image
showing 5 of 7 show 2 more comments
Ваш ответ
toggle preview

Следить за этим вопросом

По почте:

Авторизовавшись, здесь Вы сможете подписаться на обновления по этому вопросу.

По RSS:

Ответы

Ответы и комментарии

Основы размётки

  • *курсив* или _курсив_
  • **жирный** или __жирный__
  • ссылка:[текст](http://url.com/ "Суть вопроса")
  • картинка?![alt текст](/path/img.jpg "Суть вопроса")
  • нумерованый список: 1. Foo 2. Bar
  • чтобы добавить перенос строки в тексте, сделайте два переноса строки в редакторе
  • базовые теги HTML также поддерживаются

Теги к вопросу:

×253
×158
×119

Задан: 24 Май '14, 00:36

Просмотров: 2,287 раз

Отредактирован: 07 Июн '14, 23:57

powered by OSQA