Вопрос по аналоговым входам WB5


#1

Здравствуйте!
Подскажите как правильно подключить DC источник питания (0-10В) к аналоговому входу А1 для измерения напряжения?
Как я понял минус подключаем к GND, а плюс ко входу А1? По примеру из другой темы.
При таком подключении никаких замеров не происходит… A1_IN становится равным 1, A1_OUT стоит в положении OFF.


#2

Нашёл решение, почему-то сервис не был запущен

service wb-homa-adc start


#3

Прошу прощения, но сервис wb-homa-adc почему-то постоянно падает, как это можно исправить?
В логе user.err kernel: [ 6550.619137] mxs-i2c 80058000.i2c: PIO: Failed to finish WRITE cmd!


#4

Скажите, вы обновляли ПО контроллера?
Покажите, пожалуйста, вывод
apt-get update && apt-get -s upgrade


#5

Только wb-homa-adc

Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages have been kept back:
bind9-host e2fslibs e2fsprogs libcomerr2 libss2 openssh-client
openssh-server
The following packages will be upgraded:
device-tree-compiler file firmware-realtek libmagic1 libmosquitto1
libmosquittopp1 libnl-3-200 libnl-genl-3-200 libnl-route-3-200
libsystemd-login0 libwbmqtt libwbmqtt0 monit mosquitto-clients nginx-extras
python-wb-common python-wb-io serial-tool tar vim vim-common vim-runtime
wb-configs wb-configs-wheezy wb-homa-w1 wb-hwconf-manager wb-mqtt-lirc
wb-mqtt-serial wb-rules wpasupplicant
30 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Inst tar [1.26+dfsg-0.1+deb7u1] (1.27.1-1~bpo70+1 Debian Backports:/wheezy-backports [armel])
Conf tar (1.27.1-1~bpo70+1 Debian Backports:/wheezy-backports [armel])
Inst file [5.11-2+deb7u9] (1:5.22+15-2~bpo7+1 Debian Backports:/wheezy-backports [armel]) []
Inst libmagic1 [5.11-2+deb7u9] (1:5.22+15-2~bpo7+1 Debian Backports:/wheezy-backports [armel])
Inst mosquitto-clients [1.4.7-1+wbwslo1] (1.4.15-1+wb7-2 . wheezy:wheezy [armel]) []
Inst libmosquittopp1 [1.4.7-1+wbwslo1] (1.4.15-1+wb7-2 . wheezy:wheezy [armel]) []
Inst libmosquitto1 [1.4.7-1+wbwslo1] (1.4.15-1+wb7-2 . wheezy:wheezy [armel])
Inst libnl-route-3-200 [3.2.7-4+deb7u1] (3.2.24-2~bpo70+2 Debian Backports:/wheezy-backports [armel]) []
Inst libnl-genl-3-200 [3.2.7-4+deb7u1] (3.2.24-2~bpo70+2 Debian Backports:/wheezy-backports [armel]) []
Inst libnl-3-200 [3.2.7-4+deb7u1] (3.2.24-2~bpo70+2 Debian Backports:/wheezy-backports [armel])
Inst libsystemd-login0 [44-11+deb7u5] (204-14~bpo70+1 Debian Backports:/wheezy-backports [armel])
Inst vim [2:7.3.547-7+deb7u4] (2:7.4.488-3~bpo70+1 Debian Backports:/wheezy-backports [armel]) []
Inst vim-runtime [2:7.3.547-7+deb7u4] (2:7.4.488-3~bpo70+1 Debian Backports:/wheezy-backports [all]) []
Inst vim-common [2:7.3.547-7+deb7u4] (2:7.4.488-3~bpo70+1 Debian Backports:/wheezy-backports [armel])
Inst device-tree-compiler [1.4.1+wb20170426233333] (1.4.1+wb20181227145553 . wheezy:wheezy [armel])
Inst firmware-realtek [20161130-2~bpo8+1] (20170823-1~bpo9+1 . wheezy:wheezy [all])
Inst wb-homa-w1 [1.10.1] (1.10.1 . wheezy:wheezy [armel])
Inst wb-mqtt-lirc [1.1.3] (1.1.4 . wheezy:wheezy [armel])
Inst libwbmqtt0 [1.7.1] (1.7.2 . wheezy:wheezy [armel])
Inst libwbmqtt [1.7.1] (1.7.2 . wheezy:wheezy [armel])
Inst monit [1:5.4-2+deb7u3] (1:5.6-1~bpo70+1 Debian Backports:/wheezy-backports [armel])
Inst python-wb-common [1.3.2] (1.3.2 . wheezy:wheezy [all])
Inst python-wb-io [1.2.2] (1.2.3 . wheezy:wheezy [armel])
Inst serial-tool [1.0] (1.0 . wheezy:wheezy [all])
Inst wb-mqtt-serial [1.50.0] (1.53.0 . wheezy:wheezy [armel])
Inst wb-rules [1.6.8] (1.7.1 . wheezy:wheezy [armel])
Inst wpasupplicant [2.3-1+deb8u3] (2.3-1+deb8u4 . wheezy:wheezy [armel])
Inst nginx-extras [1.6.2-5+deb8u2~bpo70+3] (1.6.2-5+deb8u2~bpo70+3 . wheezy:wheezy [armel])
Inst wb-configs-wheezy [1.79.5] (1.81.0 . wheezy:wheezy [all])
Inst wb-configs [1.79.5] (1.81.0 . wheezy:wheezy [all])
Inst wb-hwconf-manager [1.26.0] (1.29.0 . wheezy:wheezy [all])
Conf libmagic1 (1:5.22+15-2~bpo7+1 Debian Backports:/wheezy-backports [armel])
Conf file (1:5.22+15-2~bpo7+1 Debian Backports:/wheezy-backports [armel])
Conf libmosquitto1 (1.4.15-1+wb7-2 . wheezy:wheezy [armel])
Conf mosquitto-clients (1.4.15-1+wb7-2 . wheezy:wheezy [armel])
Conf libmosquittopp1 (1.4.15-1+wb7-2 . wheezy:wheezy [armel])
Conf libnl-3-200 (3.2.24-2~bpo70+2 Debian Backports:/wheezy-backports [armel])
Conf libnl-route-3-200 (3.2.24-2~bpo70+2 Debian Backports:/wheezy-backports [armel])
Conf libnl-genl-3-200 (3.2.24-2~bpo70+2 Debian Backports:/wheezy-backports [armel])
Conf libsystemd-login0 (204-14~bpo70+1 Debian Backports:/wheezy-backports [armel])
Conf vim-common (2:7.4.488-3~bpo70+1 Debian Backports:/wheezy-backports [armel])
Conf vim-runtime (2:7.4.488-3~bpo70+1 Debian Backports:/wheezy-backports [all])
Conf vim (2:7.4.488-3~bpo70+1 Debian Backports:/wheezy-backports [armel])
Conf device-tree-compiler (1.4.1+wb20181227145553 . wheezy:wheezy [armel])
Conf firmware-realtek (20170823-1~bpo9+1 . wheezy:wheezy [all])
Conf libwbmqtt0 (1.7.2 . wheezy:wheezy [armel])
Conf libwbmqtt (1.7.2 . wheezy:wheezy [armel])
Conf wb-homa-w1 (1.10.1 . wheezy:wheezy [armel])
Conf wb-mqtt-lirc (1.1.4 . wheezy:wheezy [armel])
Conf monit (1:5.6-1~bpo70+1 Debian Backports:/wheezy-backports [armel])
Conf python-wb-common (1.3.2 . wheezy:wheezy [all])
Conf python-wb-io (1.2.3 . wheezy:wheezy [armel])
Conf serial-tool (1.0 . wheezy:wheezy [all])
Conf wb-mqtt-serial (1.53.0 . wheezy:wheezy [armel])
Conf wb-rules (1.7.1 . wheezy:wheezy [armel])
Conf wpasupplicant (2.3-1+deb8u4 . wheezy:wheezy [armel])
Conf nginx-extras (1.6.2-5+deb8u2~bpo70+3 . wheezy:wheezy [armel])
Conf wb-configs-wheezy (1.81.0 . wheezy:wheezy [all])
Conf wb-configs (1.81.0 . wheezy:wheezy [all])
Conf wb-hwconf-manager (1.29.0 . wheezy:wheezy [all])


#6

Обновите, пожалуйста, все пакеты, названия которых что начинается с “wb-”, либо вообще все. Ошибку с падением wb-homa-adc исправляли, сейчас, правда, не подскажу в какой версии софта.