Страница 73 из 139

Re: [Модуль] Xiaomi miIO (xiaomimiio)

Добавлено: Пт июн 21, 2019 6:12 pm
bek
В "домашней" сети обнаружил устройство (розетка), ввел токен и успешно управлял. Переместил розетку на дачу, в miIO изменил ip-адрес на актуальный = не работает. (на пинги откликается)

Re: [Модуль] Xiaomi miIO (xiaomimiio)

Добавлено: Пт июн 21, 2019 9:44 pm
skysilver
bek писал(а): Пт июн 21, 2019 6:12 pm Переместил розетку на дачу, в miIO изменил ip-адрес на актуальный = не работает. (на пинги откликается)
Такс. А связность домашней сети и сети дачи вообще обеспечена? VPN поднят? Розетка с сервера МДМ пингуется?

Re: [Модуль] Xiaomi miIO (xiaomimiio)

Добавлено: Сб июн 22, 2019 6:14 pm
bek
skysilver писал(а): Пт июн 21, 2019 9:44 pm
bek писал(а): Пт июн 21, 2019 6:12 pm Переместил розетку на дачу, в miIO изменил ip-адрес на актуальный = не работает. (на пинги откликается)
Такс. А связность домашней сети и сети дачи вообще обеспечена? VPN поднят? Розетка с сервера МДМ пингуется?
Связь обеспечена. Через мобильный свисток поднят VPN. Маршрутизация настроена. Устройства на даче, по протоколу MQTT, успешно работают с сервером MajorDoMo. Камеры (через простые устройства) работают успешно. Розетка из домашней сети пингуется. А в miIO розетка offline :(

Re: [Модуль] Xiaomi miIO (xiaomimiio)

Добавлено: Сб июн 22, 2019 10:21 pm
VOVA_iS
bek писал(а): Сб июн 22, 2019 6:14 pm
skysilver писал(а): Пт июн 21, 2019 9:44 pm
bek писал(а): Пт июн 21, 2019 6:12 pm Переместил розетку на дачу, в miIO изменил ip-адрес на актуальный = не работает. (на пинги откликается)
Такс. А связность домашней сети и сети дачи вообще обеспечена? VPN поднят? Розетка с сервера МДМ пингуется?
Связь обеспечена. Через мобильный свисток поднят VPN.
Если есть возможность то можно сети обьединить через openvpn только протокол выбрать TAP. Тогда у вас будет общее адресное пространство. И устройства будут видеть друг друга будто они в одной сети.

Re: [Модуль] Xiaomi miIO (xiaomimiio)

Добавлено: Вс июн 23, 2019 4:01 pm
ivanKip
добрый день. а можно чуточку подробнее по пункту "На сервере должен быть отключен, либо корректно настроен межсетевой экран для пропуска сетевых пакетов UDP/54321."
3 часа времени потратил, не разобрался как блин этот UPD открыть (винда 8), в брандмауэре все разрешил (да к черту, отключил его), антивиру с отключил.. токен ввел, устройство не видит.

Re: [Модуль] Xiaomi miIO (xiaomimiio)

Добавлено: Вс июн 23, 2019 5:29 pm
nick7zmail
Есть ещё такая штука - защитник виндоус...тоже любит трафик блочить. А принудительно в правилах брандмауэра можно https://ru.wargaming.net/support/ru/pro ... cle/15528/. Но не факт что после этого всего работать начнет))) Это ж винда.

Re: [Модуль] Xiaomi miIO (xiaomimiio)

Добавлено: Вс июн 23, 2019 7:12 pm
ivanKip
nick7zmail писал(а): Вс июн 23, 2019 5:29 pm Есть ещё такая штука - защитник виндоус...тоже любит трафик блочить. А принудительно в правилах брандмауэра можно https://ru.wargaming.net/support/ru/pro ... cle/15528/. Но не факт что после этого всего работать начнет))) Это ж винда.
проверил - защитник отключен, в брандмауэре открываю порт udp 54321, через nmap сканирую - несколько других udp открытых портов, а 54321 нет :?

Re: [Модуль] Xiaomi miIO (xiaomimiio)

Добавлено: Вс июн 23, 2019 7:14 pm
skysilver
bek писал(а): Сб июн 22, 2019 6:14 pmРозетка из домашней сети пингуется. А в miIO розетка offline :(
Выключить в настройках модуля периодический поиск и выставить ненулевое время опроса розетки на ее вкладке Общее.

Re: [Модуль] Xiaomi miIO (xiaomimiio)

Добавлено: Вс июн 23, 2019 7:15 pm
skysilver
ivanKip писал(а): Вс июн 23, 2019 4:01 pmтокен ввел, устройство не видит.
Что за устройство? Модуль сам его нашел? Токен верный?

Re: [Модуль] Xiaomi miIO (xiaomimiio)

Добавлено: Ср июн 26, 2019 11:20 am
AndreyK
ProLabs писал(а): Вс фев 03, 2019 7:56 pm Доброго дня.
Подскажите плиз куда копать с MI IR Remote 360 --> Устройство корректно подхватилось модулем (прочитало токен и прочие данные), статус online, порт udp 54321 открыт на сервере, но при попытке считать ir код с кнопки пульта (Кнопка "Обучить") - высвечивает следующее сообщение: "17:52:02 Проблема с получением данных от устройства." При этом сама шайба IR 360 моргает синим светодиом (якобы считывает нажатие кнопки на пульте) Прочесал тему и в Базе знаний не нашел из-за чего может возникать данная ошибка считывания кнопок пульта.
Такая же ситуация шайба с логотипом mijia.
Прочитал всю ветку. Пробовал удалять из mihome, из модуля.
Токен успешно получен через Mihome от vevs. Версия модуля 2.0.
SPOILERSPOILER_SHOW
miIO Info

Connection to device by IP 192.168.7.31 Debug status [1] Socked created Command to send - {"id":1561536777,"method":"miIO.info","params":[]} Checking device status by 192.168.7.31 Timeout SO_RCVTIMEO successfully set >>>>> Sending hello-packet to 192.168.7.31 with timeout 2 >>>>> Sent 32 bytes to socket <<<<< Reply received from IP 192.168.7.31 , port 54321 32 bytes received magic: 2131 length: 0020 --> 32 bytes unknown1: 00000000 devicetype: 076c serial: 1c9e ts: 000007e4 --> 2020 seconds --> 1970-01-01 03:33:40 timediff: -1561534757 checksum: 00000000000000000000000000000000 ts_server: 5d132909 --> 1561536777 seconds --> 2019-06-26 11:12:57 Device 192.168.7.31 available Timeout SO_RCVTIMEO successfully set Using manually set token - 47de41aa0b581352959280bf565a9554 >>>>> Sending packet to 192.168.7.31 with timeout 2 magic: 2131 length: 0060 --> 96 bytes unknown1: 00000000 devicetype: 076c serial: 1c9e ts: 000007e4 --> 2020 seconds --> 1970-01-01 03:33:40 timediff: -1561534757 checksum: f1ecce782e1b8ceac15353b2aaa52ab8 ts_server: 5d132909 --> 1561536777 seconds --> 2019-06-26 11:12:57 data: e067e39e9a5b0f3b3553b06220b3a9d248dd1f2344d2d63a208eb8df06fab9284c99d419fed06974c9d8480a4506522bf3a31fdea1759e5ca93c70d96166cfb1 >>>>> Sent 96 bytes to socket <<<<< Reply from IP 192.168.7.31 , port 54321 Read 432 bytes from socket magic: 2131 length: 01b0 --> 432 bytes unknown1: 00000000 devicetype: 076c serial: 1c9e ts: 000007e4 --> 2020 seconds --> 1970-01-01 03:33:40 timediff: -1561534757 checksum: 91d4f93381cac2f713dcfce69585d3ac data: e40d3ecb56c8c1dda452068325253bf8f4f86857a37dc4b0f0370272111a903a716af14cb56afc67751a39ee6b0c18352f385ac2a7947112a1c915bdb0df3232b874885b9cddb002379fe36410d1fed243a3b63f59a739eaef555d4fdeca4738b15ba2c969740bae48f5420270bbfaa50dbeb0229a1a8c6c66850951dc427abe5d46ce3e174f262189b21ee736b1dc68dffb9c78c97e5fb324c700658d40d9fe1249de535b0c16d824a5c39aeff8541c55b501e2aaaa20553560ed74f63b86e5140839224f1febd36ed864aa36ace180fde8c9b8969f1979acec808fbf274fd79b2e0869bf559f7e4d094756f57c9d3dd7eceaa1c57cb0ffa1a7650c54e141048a36294a112cfed3ee6c5c8e1ad574959a93f5b7d7f295f61cb38a6932e031df10331b0e676d7f5b7b86c44cc2d7334c9e0b7271c3e1731ce9aa0103331bba0b5b8736a18457a42f9e71013afb4596aaac41efafd11430159a0b94fda790f2e8e748d6edea94b6d835e7f01b5c25d9dd0ee31aba7cee0ddbe87cfc0abd86e15f995ae5e569e29e0022f4cb699ff0ae22 Data decrypted: {"result":{"life":2020,"token":"47de41aa0b581352959280bf565a9554","mac":"04:CF:8C:2E:D1:F5","fw_ver":"1.3.1_0014","hw_ver":"ESP32","uid":4158138509,"model":"chuangmi.remote.v2","wifi_fw_ver":"v1.0-3169-g79af9a5-dirty","ap":{"rssi":-57,"ssid":"pirat","primary": 3,"bssid":"60:31:97:3D:DB:C4"},"netif":{"localIp":"192.168.7.31","mask":"255.255.0.0","gw":"192.168.6.1"},"mmfree":40500},"id":1561536777} JSON data is vaild. {"result":{"life":2020,"token":"47de41aa0b581352959280bf565a9554","mac":"04:CF:8C:2E:D1:F5","fw_ver":"1.3.1_0014","hw_ver":"ESP32","uid":4158138509,"model":"chuangmi.remote.v2","wifi_fw_ver":"v1.0-3169-g79af9a5-dirty","ap":{"rssi":-57,"ssid":"pirat","primary": 3,"bssid":"60:31:97:3D:DB:C4"},"netif":{"localIp":"192.168.7.31","mask":"255.255.0.0","gw":"192.168.6.1"},"mmfree":40500},"id":1561536777}
Log
SPOILERSPOILER_SHOW
11:14:50 0.62795300 Periodic search for devices in the network is finished
11:14:50 0.62753700 Current count of offline devices 0
11:14:50 0.62473000 Update the ip address and the token for the device 192.168.6.29
11:14:50 0.62072100 Update the ip address and the token for the device 192.168.7.31
11:14:50 0.61635600 Update the ip address and the token for the device 192.168.7.15
11:14:50 0.61492000 Current count of devices 3
11:14:50 0.61364200 Reply = {"devices":["{\"devicetype\":\"0536\",\"serial\":\"ce91\",\"token\":\"00000000000000000000000000000000\",\"ip\":\"192.168.7.15\"}","{\"devicetype\":\"076c\",\"serial\":\"1c9e\",\"token\":\"00000000000000000000000000000000\",\"ip\":\"192.168.7.31\"}","{\"devicetype\":\"0542\",\"serial\":\"6cb0\",\"token\":\"66b55900d2f899ab8caeb691c015d6ba\",\"ip\":\"192.168.6.29\"}"]}
11:14:50 0.61328800 End miIO-discover command
11:14:40 0.34168700 Run miIO-discover command
11:14:40 0.34128400 Starting periodic search for devices in the network
11:12:50 0.29848700 Periodic search for devices in the network is finished
11:12:50 0.29831300 Current count of offline devices 0
11:12:50 0.29735300 Update the ip address and the token for the device 192.168.6.29
11:12:50 0.29598400 Update the ip address and the token for the device 192.168.7.31
11:12:50 0.29446000 Update the ip address and the token for the device 192.168.7.15
11:12:50 0.29389200 Current count of devices 3
11:12:50 0.29326300 Reply = {"devices":["{\"devicetype\":\"0536\",\"serial\":\"ce91\",\"token\":\"00000000000000000000000000000000\",\"ip\":\"192.168.7.15\"}","{\"devicetype\":\"076c\",\"serial\":\"1c9e\",\"token\":\"00000000000000000000000000000000\",\"ip\":\"192.168.7.31\"}","{\"devicetype\":\"0542\",\"serial\":\"6cb0\",\"token\":\"66b55900d2f899ab8caeb691c015d6ba\",\"ip\":\"192.168.6.29\"}"]}
11:12:50 0.29311100 End miIO-discover command
11:12:40 0.08752500 Run miIO-discover command
11:12:40 0.08662400 Starting periodic search for devices in the network
11:10:51 0.00294800 Periodic search for devices in the network is finished
11:10:51 0.00275900 Current count of offline devices 0
11:10:51 0.00172600 Update the ip address and the token for the device 192.168.6.29
11:10:51 0.00031800 Update the ip address and the token for the device 192.168.7.31
11:10:50 0.99871400 Update the ip address and the token for the device 192.168.7.15
11:10:50 0.99803600 Current count of devices 3
11:10:50 0.99732300 Reply = {"devices":["{\"devicetype\":\"0536\",\"serial\":\"ce91\",\"token\":\"00000000000000000000000000000000\",\"ip\":\"192.168.7.15\"}","{\"devicetype\":\"076c\",\"serial\":\"1c9e\",\"token\":\"00000000000000000000000000000000\",\"ip\":\"192.168.7.31\"}","{\"devicetype\":\"0542\",\"serial\":\"6cb0\",\"token\":\"66b55900d2f899ab8caeb691c015d6ba\",\"ip\":\"192.168.6.29\"}"]}
11:10:50 0.99714300 End miIO-discover command
11:10:40 0.77704500 Run miIO-discover command
11:10:40 0.77658000 Starting periodic search for devices in the network
11:08:50 0.68279000 Periodic search for devices in the network is finished
11:08:50 0.68257600 Current count of offline devices 0
11:08:50 0.68152200 Update the ip address and the token for the device 192.168.6.29
11:08:50 0.68013400 Update the ip address and the token for the device 192.168.7.31
11:08:50 0.67858800 Update the ip address and the token for the device 192.168.7.15
11:08:50 0.67791100 Current count of devices 3
11:08:50 0.67729100 Reply = {"devices":["{\"devicetype\":\"0536\",\"serial\":\"ce91\",\"token\":\"00000000000000000000000000000000\",\"ip\":\"192.168.7.15\"}","{\"devicetype\":\"076c\",\"serial\":\"1c9e\",\"token\":\"00000000000000000000000000000000\",\"ip\":\"192.168.7.31\"}","{\"devicetype\":\"0542\",\"serial\":\"6cb0\",\"token\":\"66b55900d2f899ab8caeb691c015d6ba\",\"ip\":\"192.168.6.29\"}"]}
11:08:50 0.67713700 End miIO-discover command
11:08:40 0.49536400 Run miIO-discover command
11:08:40 0.49431100 Starting periodic search for devices in the network
11:06:50 0.37061100 Periodic search for devices in the network is finished
11:06:50 0.37020000 Current count of offline devices 0
11:06:50 0.36757400 Update the ip address and the token for the device 192.168.6.29
11:06:50 0.36404100 Update the ip address and the token for the device 192.168.7.31
11:06:50 0.36028700 Update the ip address and the token for the device 192.168.7.15
11:06:50 0.35884900 Current count of devices 3
11:06:50 0.35761100 Reply = {"devices":["{\"devicetype\":\"0536\",\"serial\":\"ce91\",\"token\":\"00000000000000000000000000000000\",\"ip\":\"192.168.7.15\"}","{\"devicetype\":\"076c\",\"serial\":\"1c9e\",\"token\":\"00000000000000000000000000000000\",\"ip\":\"192.168.7.31\"}","{\"devicetype\":\"0542\",\"serial\":\"6cb0\",\"token\":\"66b55900d2f899ab8caeb691c015d6ba\",\"ip\":\"192.168.6.29\"}"]}
11:06:50 0.35729400 End miIO-discover command
11:06:40 0.20512700 Run miIO-discover command
11:06:40 0.20414400 Starting periodic search for devices in the network
11:04:50 0.55525300 Periodic search for devices in the network is finished
11:04:50 0.55503600 Current count of offline devices 0
11:04:50 0.55379500 Update the ip address and the token for the device 192.168.6.29
11:04:50 0.55225000 Update the ip address and the token for the device 192.168.7.31
11:04:50 0.55055700 Update the ip address and the token for the device 192.168.7.15
11:04:50 0.54998100 Current count of devices 3
11:04:50 0.54931300 Reply = {"devices":["{\"devicetype\":\"0536\",\"serial\":\"ce91\",\"token\":\"00000000000000000000000000000000\",\"ip\":\"192.168.7.15\"}","{\"devicetype\":\"076c\",\"serial\":\"1c9e\",\"token\":\"00000000000000000000000000000000\",\"ip\":\"192.168.7.31\"}","{\"devicetype\":\"0542\",\"serial\":\"6cb0\",\"token\":\"66b55900d2f899ab8caeb691c015d6ba\",\"ip\":\"192.168.6.29\"}"]}
11:04:50 0.54914000 End miIO-discover command
11:04:40 0.30489200 Run miIO-discover command
11:04:40 0.30449400 Starting periodic search for devices in the network
11:02:50 0.23452300 Periodic search for devices in the network is finished
11:02:50 0.23434800 Current count of offline devices 0
11:02:50 0.23333200 Update the ip address and the token for the device 192.168.7.31
11:02:50 0.23192500 Update the ip address and the token for the device 192.168.7.15
11:02:50 0.23047200 Update the ip address and the token for the device 192.168.6.29
11:02:50 0.22988500 Current count of devices 3
11:02:50 0.22929000 Reply = {"devices":["{\"devicetype\":\"0542\",\"serial\":\"6cb0\",\"token\":\"66b55900d2f899ab8caeb691c015d6ba\",\"ip\":\"192.168.6.29\"}","{\"devicetype\":\"0536\",\"serial\":\"ce91\",\"token\":\"00000000000000000000000000000000\",\"ip\":\"192.168.7.15\"}","{\"devicetype\":\"076c\",\"serial\":\"1c9e\",\"token\":\"00000000000000000000000000000000\",\"ip\":\"192.168.7.31\"}"]}
11:02:50 0.22913600 End miIO-discover command
11:02:40 0.02640700 Run miIO-discover command
11:02:40 0.02597400 Starting periodic search for devices in the network
11:00:50 0.94607100 Periodic search for devices in the network is finished
11:00:50 0.94561600 Current count of offline devices 0
11:00:50 0.94301600 Update the ip address and the token for the device 192.168.7.31
11:00:50 0.93964300 Update the ip address and the token for the device 192.168.6.29
11:00:50 0.93609400 Update the ip address and the token for the device 192.168.7.15
11:00:50 0.93486200 Current count of devices 3
11:00:50 0.93363600 Reply = {"devices":["{\"devicetype\":\"0536\",\"serial\":\"ce91\",\"token\":\"00000000000000000000000000000000\",\"ip\":\"192.168.7.15\"}","{\"devicetype\":\"0542\",\"serial\":\"6cb0\",\"token\":\"66b55900d2f899ab8caeb691c015d6ba\",\"ip\":\"192.168.6.29\"}","{\"devicetype\":\"076c\",\"serial\":\"1c9e\",\"token\":\"00000000000000000000000000000000\",\"ip\":\"192.168.7.31\"}"]}
11:00:50 0.93328400 End miIO-discover command
11:00:40 0.76023600 Run miIO-discover command
11:00:40 0.75981200 Starting periodic search for devices in the network
10:58:50 0.61905900 Periodic search for devices in the network is finished
10:58:50 0.61887800 Current count of offline devices 0
10:58:50 0.61785300 Update the ip address and the token for the device 192.168.6.29
10:58:50 0.61620400 Update the ip address and the token for the device 192.168.7.31
10:58:50 0.61446100 Update the ip address and the token for the device 192.168.7.15
10:58:50 0.61386300 Current count of devices 3
10:58:50 0.61328100 Reply = {"devices":["{\"devicetype\":\"0536\",\"serial\":\"ce91\",\"token\":\"00000000000000000000000000000000\",\"ip\":\"192.168.7.15\"}","{\"devicetype\":\"076c\",\"serial\":\"1c9e\",\"token\":\"00000000000000000000000000000000\",\"ip\":\"192.168.7.31\"}","{\"devicetype\":\"0542\",\"serial\":\"6cb0\",\"token\":\"66b55900d2f899ab8caeb691c015d6ba\",\"ip\":\"192.168.6.29\"}"]}
10:58:50 0.61312100 End miIO-discover command
10:58:40 0.49395400 Run miIO-discover command
10:58:40 0.49303800 Starting periodic search for devices in the network
10:56:50 0.30635500 Periodic search for devices in the network is finished
10:56:50 0.30594900 Current count of offline devices 0
10:56:50 0.30331300 Update the ip address and the token for the device 192.168.6.29
10:56:50 0.29969800 Update the ip address and the token for the device 192.168.7.31
10:56:50 0.29608200 Update the ip address and the token for the device 192.168.7.15
10:56:50 0.29485200 Current count of devices 3
10:56:50 0.29359600 Reply = {"devices":["{\"devicetype\":\"0536\",\"serial\":\"ce91\",\"token\":\"00000000000000000000000000000000\",\"ip\":\"192.168.7.15\"}","{\"devicetype\":\"076c\",\"serial\":\"1c9e\",\"token\":\"00000000000000000000000000000000\",\"ip\":\"192.168.7.31\"}","{\"devicetype\":\"0542\",\"serial\":\"6cb0\",\"token\":\"66b55900d2f899ab8caeb691c015d6ba\",\"ip\":\"192.168.6.29\"}"]}
10:56:50 0.29326000 End miIO-discover command
10:56:40 0.21518900 Run miIO-discover command
Интересно еще что за цифра 60 напротив устройства.
ir.PNG
ir.PNG (21.21 КБ) 4679 просмотров