NEWS
Драйвер ioBroker MySensors
-
Почему не видит сом порт на Raspi ???
evice converter now attached to ttyUSB0
root@raspberrypi:~# dmesg
Нажмите Ctrl+A и Ctrl+C, что бы скопировать в буфер обмена и после этого нажмите мышкой в любом месте.
mysensors-0 2016-09-24 21:32:56.957 warn Module serialport is not available
mysensors-0 2016-09-24 21:32:55.643 info starting. Version 1.0.2 in /opt/iobroker/node_modules/iobroker.mysensors
host-raspberrypi 2016-09-24 21:32:53.436 info instance system.adapter.mysensors.0 started with pid 2654
host-raspberrypi 2016-09-24 21:32:51.029 info instance system.adapter.mysensors.0 terminated with code 0 (OK)
mysensors-0 2016-09-24 21:32:51.000 info terminating
host-raspberrypi 2016-09-24 21:32:50.916 info stopInstance system.adapter.mysensors.0 killing pid 2648
host-raspberrypi 2016-09-24 21:32:50.915 info stopInstance system.adapter.mysensors.0
-
Почему не видит сом порт на Raspi ???
evice converter now attached to ttyUSB0
root@raspberrypi:~# dmesg
Нажмите Ctrl+A и Ctrl+C, что бы скопировать в буфер обмена и после этого нажмите мышкой в любом месте.
mysensors-0 2016-09-24 21:32:56.957 warn Module serialport is not available
mysensors-0 2016-09-24 21:32:55.643 info starting. Version 1.0.2 in /opt/iobroker/node_modules/iobroker.mysensors
host-raspberrypi 2016-09-24 21:32:53.436 info instance system.adapter.mysensors.0 started with pid 2654
host-raspberrypi 2016-09-24 21:32:51.029 info instance system.adapter.mysensors.0 terminated with code 0 (OK)
mysensors-0 2016-09-24 21:32:51.000 info terminating
host-raspberrypi 2016-09-24 21:32:50.916 info stopInstance system.adapter.mysensors.0 killing pid 2648
host-raspberrypi 2016-09-24 21:32:50.915 info stopInstance system.adapter.mysensors.0 `
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install python2.7
-
Да установлено всё это, а СОМ порт не видит :oops:
-
Да установлено всё это, а СОМ порт не видит :oops: `
Ruf mal noch mal:cd /opt/iobroker iobroker stop mysensors npm install iobroker.mysensors --production --force iobroker upload mysensors iobroker start mysensorsDanach sollten die Ports in der Konfig drin sein.
-
Ещё пару переустановок всего и заработало :shock:
-
Ещё пару переустановок всего и заработало :shock: `
Молодец! -
Вот ни где не сказано, что inclusionON надо в Обьектах поставить в TRUE, и тогда добавляются сенсоры в Нодах.
-
Вот ни где не сказано, что inclusionON надо в Обьектах поставить в TRUE, и тогда добавляются сенсоры в Нодах. `
По идее должно управляться из настроек. Получается что не работает? -
Добрый день.
Перечитал эту ветку.
Не могу понять, почему у меня не появляются данные с нод во вкладке "объекты"?
В логе вижу, что данные идут.
` > mysensors-0 2016-10-07 15:25:29.157 info Connectedmysensors-0 2016-10-07 15:25:29.142 info disconnected
mysensors-0 2016-10-07 15:24:48.362 info List of port: [{"comName":"/dev/ttyAMA0"},{"comName":"/dev/ttyUSB0","manufacturer":"1a86","serialNumber":"1a86_USB2.0-Serial","pnpId":"usb-1a86_USB2.0-Serial-if00-port0","vendorId":"0x1a86","productI
mysensors-0 2016-10-07 15:24:29.147 info Log :TSP:SANCHK:OK
mysensors-0 2016-10-07 15:24:29.142 warn Serial data received: 0;255;3;0;9;TSP:SANCHK:OK
mysensors-0 2016-10-07 15:23:29.205 info Log :TSP:SANCHK:OK
mysensors-0 2016-10-07 15:23:29.191 warn Serial data received: 0;255;3;0;9;TSP:SANCHK:OK
mysensors-0 2016-10-07 15:23:29.157 info Connected
mysensors-0 2016-10-07 15:23:29.139 info disconnected
mysensors-0 2016-10-07 15:22:29.144 info Log :TSP:SANCHK:OK
mysensors-0 2016-10-07 15:22:29.139 warn Serial data received: 0;255;3;0;9;TSP:SANCHK:OK
mysensors-0 2016-10-07 15:22:26.284 info Log :TSP:MSG:SEND 0-0-10-10 s=3,c=1,t=2,pt=2,l=2,sg=0,ft=0,st=ok:0
mysensors-0 2016-10-07 15:22:26.264 warn Serial data received: 0;255;3;0;9;TSP:MSG:SEND 0-0-10-10 s=3,c=1,t=2,pt=2,l=2,sg=0,ft=0,st=ok:0
mysensors-0 2016-10-07 15:22:26.185 info Log :TSP:MSG:ACK msg
mysensors-0 2016-10-07 15:22:26.161 warn Serial data received: 0;255;3;0;9;TSP:MSG:ACK msg
mysensors-0 2016-10-07 15:22:26.158 info Log :TSP:MSG:READ 10-10-0 s=3,c=1,t=2,pt=2,l=2,sg=0:0
mysensors-0 2016-10-07 15:22:26.154 warn Serial data received: 0;255;3;0;9;TSP:MSG:READ 10-10-0 s=3,c=1,t=2,pt=2,l=2,sg=0:0
mysensors-0 2016-10-07 15:22:26.094 info Log :TSP:MSG:READ 10-10-0 s=3,c=1,t=2,pt=0,l=1,sg=0:0
mysensors-0 2016-10-07 15:22:26.084 warn Serial data received: 0;255;3;0;9;TSP:MSG:READ 10-10-0 s=3,c=1,t=2,pt=0,l=1,sg=0:0
mysensors-0 2016-10-07 15:22:26.024 info Log :TSP:MSG:SEND 0-0-10-10 s=2,c=1,t=2,pt=2,l=2,sg=0,ft=0,st=ok:0
mysensors-0 2016-10-07 15:22:26.014 warn Serial data received: 0;255;3;0;9;TSP:MSG:SEND 0-0-10-10 s=2,c=1,t=2,pt=2,l=2,sg=0,ft=0,st=ok:0
mysensors-0 2016-10-07 15:22:25.954 info Log :TSP:MSG:ACK msg
mysensors-0 2016-10-07 15:22:25.928 warn Serial data received: 0;255;3;0;9;TSP:MSG:ACK msg
mysensors-0 2016-10-07 15:22:25.884 info Log :TSP:MSG:READ 10-10-0 s=2,c=1,t=2,pt=2,l=2,sg=0:0
mysensors-0 2016-10-07 15:22:25.874 warn Serial data received: 0;255;3;0;9;TSP:MSG:READ 10-10-0 s=2,c=1,t=2,pt=2,l=2,sg=0:0
mysensors-0 2016-10-07 15:22:25.814 info Log :TSP:MSG:READ 10-10-0 s=3,c=1,t=2,pt=0,l=1,sg=0:0
mysensors-0 2016-10-07 15:22:25.809 warn Serial data received: 0;255;3;0;9;TSP:MSG:READ 10-10-0 s=3,c=1,t=2,pt=0,l=1,sg=0:0
mysensors-0 2016-10-07 15:22:15.577 info Log :TSP:MSG:SEND 0-0-10-138 s=3,c=1,t=2,pt=6,l=2,sg=0,ft=0,st=ok:0100
mysensors-0 2016-10-07 15:22:15.572 warn Serial data received: 0;255;3;0;9;TSP:MSG:SEND 0-0-10-138 s=3,c=1,t=2,pt=6,l=2,sg=0,ft=0,st=ok:0100
mysensors-0 2016-10-07 15:22:15.478 info Log :TSP:MSG:REL MSG
mysensors-0 2016-10-07 15:22:15.474 warn Serial data received: 0;255;3;0;9;TSP:MSG:REL MSG
mysensors-0 2016-10-07 15:22:15.449 info Log :TSP:MSG:READ 0-10-138 s=3,c=1,t=2,pt=6,l=2,sg=0:0100
mysensors-0 2016-10-07 15:22:15.435 warn Serial data received: 0;255;3;0;9;TSP:MSG:READ 0-10-138 s=3,c=1,t=2,pt=6,l=2,sg=0:0100
mysensors-0 2016-10-07 15:22:15.394 info Log :TSP:MSG:SEND 0-0-10-138 s=3,c=1,t=2,pt=6,l=2,sg=0,ft=0,st=ok:0100
mysensors-0 2016-10-07 15:22:15.369 warn Serial data received: 0;255;3;0;9;TSP:MSG:SEND 0-0-10-138 s=3,c=1,t=2,pt=6,l=2,sg=0,ft=0,st=ok:0100 `
Во вкладке "настройки драйверов" mysensors adapter вижу бледную надпись
"Включить режим присваивания адресов"
Сервер на малинке.
1530_mys.png -
Добрый день.
Перечитал эту ветку.
Не могу понять, почему у меня не появляются данные с нод во вкладке "объекты"?
В логе вижу, что данные идут.
` > mysensors-0 2016-10-07 15:25:29.157 info Connectedmysensors-0 2016-10-07 15:25:29.142 info disconnected
mysensors-0 2016-10-07 15:24:48.362 info List of port: [{"comName":"/dev/ttyAMA0"},{"comName":"/dev/ttyUSB0","manufacturer":"1a86","serialNumber":"1a86_USB2.0-Serial","pnpId":"usb-1a86_USB2.0-Serial-if00-port0","vendorId":"0x1a86","productI
mysensors-0 2016-10-07 15:24:29.147 info Log :TSP:SANCHK:OK
mysensors-0 2016-10-07 15:24:29.142 warn Serial data received: 0;255;3;0;9;TSP:SANCHK:OK
mysensors-0 2016-10-07 15:23:29.205 info Log :TSP:SANCHK:OK
mysensors-0 2016-10-07 15:23:29.191 warn Serial data received: 0;255;3;0;9;TSP:SANCHK:OK
mysensors-0 2016-10-07 15:23:29.157 info Connected
mysensors-0 2016-10-07 15:23:29.139 info disconnected
mysensors-0 2016-10-07 15:22:29.144 info Log :TSP:SANCHK:OK
mysensors-0 2016-10-07 15:22:29.139 warn Serial data received: 0;255;3;0;9;TSP:SANCHK:OK
mysensors-0 2016-10-07 15:22:26.284 info Log :TSP:MSG:SEND 0-0-10-10 s=3,c=1,t=2,pt=2,l=2,sg=0,ft=0,st=ok:0
mysensors-0 2016-10-07 15:22:26.264 warn Serial data received: 0;255;3;0;9;TSP:MSG:SEND 0-0-10-10 s=3,c=1,t=2,pt=2,l=2,sg=0,ft=0,st=ok:0
mysensors-0 2016-10-07 15:22:26.185 info Log :TSP:MSG:ACK msg
mysensors-0 2016-10-07 15:22:26.161 warn Serial data received: 0;255;3;0;9;TSP:MSG:ACK msg
mysensors-0 2016-10-07 15:22:26.158 info Log :TSP:MSG:READ 10-10-0 s=3,c=1,t=2,pt=2,l=2,sg=0:0
mysensors-0 2016-10-07 15:22:26.154 warn Serial data received: 0;255;3;0;9;TSP:MSG:READ 10-10-0 s=3,c=1,t=2,pt=2,l=2,sg=0:0
mysensors-0 2016-10-07 15:22:26.094 info Log :TSP:MSG:READ 10-10-0 s=3,c=1,t=2,pt=0,l=1,sg=0:0
mysensors-0 2016-10-07 15:22:26.084 warn Serial data received: 0;255;3;0;9;TSP:MSG:READ 10-10-0 s=3,c=1,t=2,pt=0,l=1,sg=0:0
mysensors-0 2016-10-07 15:22:26.024 info Log :TSP:MSG:SEND 0-0-10-10 s=2,c=1,t=2,pt=2,l=2,sg=0,ft=0,st=ok:0
mysensors-0 2016-10-07 15:22:26.014 warn Serial data received: 0;255;3;0;9;TSP:MSG:SEND 0-0-10-10 s=2,c=1,t=2,pt=2,l=2,sg=0,ft=0,st=ok:0
mysensors-0 2016-10-07 15:22:25.954 info Log :TSP:MSG:ACK msg
mysensors-0 2016-10-07 15:22:25.928 warn Serial data received: 0;255;3;0;9;TSP:MSG:ACK msg
mysensors-0 2016-10-07 15:22:25.884 info Log :TSP:MSG:READ 10-10-0 s=2,c=1,t=2,pt=2,l=2,sg=0:0
mysensors-0 2016-10-07 15:22:25.874 warn Serial data received: 0;255;3;0;9;TSP:MSG:READ 10-10-0 s=2,c=1,t=2,pt=2,l=2,sg=0:0
mysensors-0 2016-10-07 15:22:25.814 info Log :TSP:MSG:READ 10-10-0 s=3,c=1,t=2,pt=0,l=1,sg=0:0
mysensors-0 2016-10-07 15:22:25.809 warn Serial data received: 0;255;3;0;9;TSP:MSG:READ 10-10-0 s=3,c=1,t=2,pt=0,l=1,sg=0:0
mysensors-0 2016-10-07 15:22:15.577 info Log :TSP:MSG:SEND 0-0-10-138 s=3,c=1,t=2,pt=6,l=2,sg=0,ft=0,st=ok:0100
mysensors-0 2016-10-07 15:22:15.572 warn Serial data received: 0;255;3;0;9;TSP:MSG:SEND 0-0-10-138 s=3,c=1,t=2,pt=6,l=2,sg=0,ft=0,st=ok:0100
mysensors-0 2016-10-07 15:22:15.478 info Log :TSP:MSG:REL MSG
mysensors-0 2016-10-07 15:22:15.474 warn Serial data received: 0;255;3;0;9;TSP:MSG:REL MSG
mysensors-0 2016-10-07 15:22:15.449 info Log :TSP:MSG:READ 0-10-138 s=3,c=1,t=2,pt=6,l=2,sg=0:0100
mysensors-0 2016-10-07 15:22:15.435 warn Serial data received: 0;255;3;0;9;TSP:MSG:READ 0-10-138 s=3,c=1,t=2,pt=6,l=2,sg=0:0100
mysensors-0 2016-10-07 15:22:15.394 info Log :TSP:MSG:SEND 0-0-10-138 s=3,c=1,t=2,pt=6,l=2,sg=0,ft=0,st=ok:0100
mysensors-0 2016-10-07 15:22:15.369 warn Serial data received: 0;255;3;0;9;TSP:MSG:SEND 0-0-10-138 s=3,c=1,t=2,pt=6,l=2,sg=0,ft=0,st=ok:0100 `
Во вкладке "настройки драйверов" mysensors adapter вижу бледную надпись
"Включить режим присваивания адресов"
Сервер на малинке. `
Я написал тест для драйвера и здесьhttps://github.com/ioBroker/ioBroker.my … mmands.txt
можно увидеть, как выглядит вывод в библиотеке mysensors 2.0 в апреле. Твой лог отличается от апрельского.
То что ты прислал в распечатке, это внутренний лог, который не несёт никакой информации для ioBrokera.
0 - node-id 255 - child-sensor-id 3 - internal 0 - ack I_LOG_MESSAGE - sub-type Payload - TSP:MSG:READ 0-10-138 s=3,c=1,t=2,pt=6,l=2,sg=0:0100Что значит "TSP:MSG:READ 0-10-138 s=3,c=1,t=2,pt=6,l=2,sg=0:0100" я не имею ни малейшего представления. Может стоит спросить на mySensors, что этот лог значит и почему не посылаются данные?
-
Судя по сообщениям: 0;255;3;0;9;TSP:SANCHK:OK
это приходит внутренний лог с шлюза контроллеру.
Расшифровка:
0 - адрес узла (0 это шлюз)
255 - child-sensor-id
3 - message-type "internal" (внутреннее сообщение)
0 - без подтверждения
9 - I_LOG_MESSAGE "Sent by the gateway to the Controller to trace-log a message"
далее сам текст лога в нашем случае например "TSP:SANCHK:OK"
Предполагаю, что какой то не такой скетч в шлюз залит или выставлены не те служебные настройки шлюза.
Больше похоже на какой то диагностический скетч.
что загружено в шлюз? какие настройки библиотеки mySensors выставлены?
-
Попробовал подключить NRF24L01 + напрямую к Малине, запускаю шлюз, ./bin/mysgw -d, данные с сенсоров идут прекрасно, а как их в IOBrokere принять???
Попробовал запустить шлюз с виртуальным портом, ./configure –my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020, выбор порта в брокере не появляется. Мож кто уже проходил это дело?
-
Попробовал подключить NRF24L01 + напрямую к Малине, запускаю шлюз, ./bin/mysgw -d, данные с сенсоров идут прекрасно, а как их в IOBrokere принять???
Попробовал запустить шлюз с виртуальным портом, ./configure –my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020, выбор порта в брокере не появляется. Мож кто уже проходил это дело? `
А вот этот драйвер не подойдет https://github.com/eisbaeeer/iobroker.p … /README.md ?
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden