Отображение состояния W1, W2

Здравствуйте! Не могу понять, как правильно настроить контроллер, для отображения состояния W1, W2 в режиме DI. Во вкладке Devices есть только W2, состояние которого при замыкании контакта на землю не меняется, W1 нет вовсе. Заранее благодарю!

image
image

Добрый день.
Шаг первый:
Выбрали режим “Discrete input”, сделано.
Шаг второй:
В Devices повляются W2_IN и ниже W1_IN


(“сами”, не надо отдельно настраивать GPIO)
Ну и проверить наличие топиков можно в Settings - MQTTChannels

В том-то и проблема, что в девайсах есть только W2, который не изменяет своё состояние при замыкании на него GND, а W1 нет вообще. В топиках MQTT то же самое

Какая версия контроллера, обновлен ли?
И еще, сбрасывлся ли “factory reset”?

Контроллер 6.6.0, при попытке обновиться вот, что выдало:

Обновление
root@wirenboard-A2T6NRMB:~# apt-get upgrade -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  device-tree-compiler wb-homa-adc wb-homa-gpio wb-hwconf-manager wb-mqtt-mbgate wb-mqtt-serial wb-rules wb-rules-system
The following packages will be upgraded:
  apt apt-utils base-files bind9-host bluez bluez-hcidump ca-certificates curl dbus krb5-locales libapt-inst2.0 libapt-pkg5.0 libbind9-140 libbluetooth3 libcurl3
  libcurl3-gnutls libdbus-1-3 libdns-export162 libdns162 libfreetype6 libgnutls-openssl27 libgnutls30 libgssapi-krb5-2 libicu57 libisc-export160 libisc160
  libisccc140 libisccfg140 libjpeg62-turbo libk5crypto3 libkrb5-3 libkrb5support0 libldap-2.4-2 libldap-common libluajit-5.1-2 libluajit-5.1-common liblwres141
  libmariadbclient18 libonig4 libp11-kit0 libperl5.24 libpython2.7-minimal libpython2.7-stdlib libpython3.5-minimal libpython3.5-stdlib libsqlite3-0 libssl1.0-dev
  libssl1.0.2 libssl1.1 libtiff5 libx11-6 libx11-data libxml2 linux-firmware-image-4.9.22-wb6 linux-image-4.9.22-wb6 linux-image-wb6 linux-libc-dev openssl perl
  perl-base perl-modules-5.24 ppp python-wb-common python2.7 python2.7-minimal python3.5 python3.5-minimal tzdata wb-configs wb-configs-stretch wb-mqtt-confed
  wb-mqtt-homeui wb-test-suite wb-utils
74 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
Need to get 60.3 MB of archives.
After this operation, 3074 kB disk space will be freed.
Get:1 http://mirror.yandex.ru/debian stretch/main armhf base-files armhf 9.9+deb9u13 [67.6 kB]
Get:2 http://security.debian.org stretch/updates/main armhf libapt-pkg5.0 armhf 1.4.11 [852 kB]                                   
Get:3 http://mirror.yandex.ru/debian stretch/main armhf libperl5.24 armhf 5.24.1-3+deb9u7 [2866 kB]
Get:4 http://releases.contactless.ru/stable/stretch stretch/main armhf linux-firmware-image-4.9.22-wb6 all 4.9+wb20201209164326 [1014 kB]
Get:5 http://security.debian.org stretch/updates/main armhf libapt-inst2.0 armhf 1.4.11 [189 kB]                              
Get:6 http://security.debian.org stretch/updates/main armhf apt armhf 1.4.11 [1199 kB]                                        
Get:7 http://mirror.yandex.ru/debian stretch/main armhf perl armhf 5.24.1-3+deb9u7 [218 kB]                              
Get:8 http://security.debian.org stretch/updates/main armhf apt-utils armhf 1.4.11 [398 kB]                 
Get:9 http://mirror.yandex.ru/debian stretch/main armhf perl-base armhf 5.24.1-3+deb9u7 [1240 kB]               
Get:10 http://security.debian.org stretch/updates/main armhf python2.7 armhf 2.7.13-2+deb9u4 [286 kB]                  
Get:11 http://security.debian.org stretch/updates/main armhf libsqlite3-0 armhf 3.16.2-5+deb9u3 [500 kB]                
Get:12 http://mirror.yandex.ru/debian stretch/main armhf perl-modules-5.24 all 5.24.1-3+deb9u7 [2723 kB]                       
Get:13 http://security.debian.org stretch/updates/main armhf libssl1.1 armhf 1.1.0l-1~deb9u2 [1151 kB]                                    
Get:14 http://releases.contactless.ru/stable/stretch stretch/main armhf linux-image-4.9.22-wb6 armhf 4.9+wb20201209164326 [10.9 MB]
Get:15 http://security.debian.org stretch/updates/main armhf libpython2.7-stdlib armhf 2.7.13-2+deb9u4 [1821 kB]          
Get:16 http://mirror.yandex.ru/debian stretch/main armhf libicu57 armhf 57.1-6+deb9u4 [7451 kB]                                     
Get:17 http://security.debian.org stretch/updates/main armhf python2.7-minimal armhf 2.7.13-2+deb9u4 [1179 kB]                  
Get:18 http://security.debian.org stretch/updates/main armhf libpython2.7-minimal armhf 2.7.13-2+deb9u4 [390 kB]                
Get:19 http://security.debian.org stretch/updates/main armhf python3.5 armhf 3.5.3-1+deb9u3 [231 kB]                         
Get:20 http://security.debian.org stretch/updates/main armhf libpython3.5-stdlib armhf 3.5.3-1+deb9u3 [2088 kB]   
Get:21 http://mirror.yandex.ru/debian stretch/main armhf dbus armhf 1.10.32-0+deb9u1 [198 kB]                                
Get:22 http://mirror.yandex.ru/debian stretch/main armhf libdbus-1-3 armhf 1.10.32-0+deb9u1 [177 kB]                   
Get:23 http://mirror.yandex.ru/debian stretch/main armhf libgnutls-openssl27 armhf 3.5.8-5+deb9u5 [182 kB]                    
Get:24 http://mirror.yandex.ru/debian stretch/main armhf libgnutls30 armhf 3.5.8-5+deb9u5 [840 kB]                                    
Get:25 http://mirror.yandex.ru/debian stretch/main armhf ca-certificates all 20200601~deb9u1 [160 kB]                                                              
Get:26 http://mirror.yandex.ru/debian stretch/main armhf libtiff5 armhf 4.0.8-2+deb9u5 [223 kB]                                                                    
Get:27 http://mirror.yandex.ru/debian stretch/main armhf ppp armhf 2.4.7-1+4+deb9u1 [323 kB]                                                                       
Get:28 http://security.debian.org stretch/updates/main armhf python3.5-minimal armhf 3.5.3-1+deb9u3 [1441 kB]                                                      
Get:29 http://security.debian.org stretch/updates/main armhf libpython3.5-minimal armhf 3.5.3-1+deb9u3 [568 kB]                                                    
Get:30 http://security.debian.org stretch/updates/main armhf tzdata all 2020e-0+deb9u1 [280 kB]                                                                    
Get:31 http://security.debian.org stretch/updates/main armhf libssl1.0-dev armhf 1.0.2u-1~deb9u3 [1224 kB]                                                         
Get:32 http://security.debian.org stretch/updates/main armhf libssl1.0.2 armhf 1.0.2u-1~deb9u3 [927 kB]                                                            
Get:33 http://security.debian.org stretch/updates/main armhf libgssapi-krb5-2 armhf 1.15-1+deb9u2 [134 kB]                                                         
Get:34 http://security.debian.org stretch/updates/main armhf libkrb5-3 armhf 1.15-1+deb9u2 [267 kB]                                                                
Get:35 http://security.debian.org stretch/updates/main armhf libkrb5support0 armhf 1.15-1+deb9u2 [58.1 kB]                                                         
Get:36 http://security.debian.org stretch/updates/main armhf libk5crypto3 armhf 1.15-1+deb9u2 [117 kB]                                                             
Get:37 http://security.debian.org stretch/updates/main armhf libxml2 armhf 2.9.4+dfsg1-2.2+deb9u3 [826 kB]                                                         
Get:38 http://security.debian.org stretch/updates/main armhf bind9-host armhf 1:9.10.3.dfsg.P4-12.3+deb9u7 [230 kB]                                                
Get:39 http://security.debian.org stretch/updates/main armhf libisc160 armhf 1:9.10.3.dfsg.P4-12.3+deb9u7 [371 kB]                                                 
Get:40 http://security.debian.org stretch/updates/main armhf libdns162 armhf 1:9.10.3.dfsg.P4-12.3+deb9u7 [975 kB]                                                 
Get:41 http://security.debian.org stretch/updates/main armhf libisccc140 armhf 1:9.10.3.dfsg.P4-12.3+deb9u7 [197 kB]                                               
Get:42 http://security.debian.org stretch/updates/main armhf libisccfg140 armhf 1:9.10.3.dfsg.P4-12.3+deb9u7 [216 kB]                                              
Get:43 http://security.debian.org stretch/updates/main armhf libbind9-140 armhf 1:9.10.3.dfsg.P4-12.3+deb9u7 [205 kB]                                              
Get:44 http://security.debian.org stretch/updates/main armhf liblwres141 armhf 1:9.10.3.dfsg.P4-12.3+deb9u7 [210 kB]                                               
Get:45 http://security.debian.org stretch/updates/main armhf krb5-locales all 1.15-1+deb9u2 [93.8 kB]                                                              
Get:46 http://security.debian.org stretch/updates/main armhf libp11-kit0 armhf 0.23.3-2+deb9u1 [97.0 kB]                                                           
Get:47 http://security.debian.org stretch/updates/main armhf libldap-common all 2.4.44+dfsg-5+deb9u6 [85.9 kB]                                                     
Get:48 http://security.debian.org stretch/updates/main armhf libldap-2.4-2 armhf 2.4.44+dfsg-5+deb9u6 [198 kB]                                                     
Get:49 http://security.debian.org stretch/updates/main armhf bluez armhf 5.43-2+deb9u3 [813 kB]                                                                    
Get:50 http://security.debian.org stretch/updates/main armhf openssl armhf 1.1.0l-1~deb9u2 [727 kB]                                                                
Get:51 http://security.debian.org stretch/updates/main armhf curl armhf 7.52.1-5+deb9u13 [224 kB]                                                                  
Get:52 http://security.debian.org stretch/updates/main armhf libcurl3 armhf 7.52.1-5+deb9u13 [265 kB]                                                              
Get:53 http://security.debian.org stretch/updates/main armhf libbluetooth3 armhf 5.43-2+deb9u3 [92.3 kB]                                                           
Get:54 http://security.debian.org stretch/updates/main armhf libcurl3-gnutls armhf 7.52.1-5+deb9u13 [263 kB]                                                       
Get:55 http://security.debian.org stretch/updates/main armhf libisc-export160 armhf 1:9.10.3.dfsg.P4-12.3+deb9u7 [319 kB]                                          
Get:56 http://security.debian.org stretch/updates/main armhf libdns-export162 armhf 1:9.10.3.dfsg.P4-12.3+deb9u7 [789 kB]                                          
Get:57 http://security.debian.org stretch/updates/main armhf libfreetype6 armhf 2.6.3-3.2+deb9u2 [389 kB]                                                          
Get:58 http://security.debian.org stretch/updates/main armhf libjpeg62-turbo armhf 1:1.5.1-2+deb9u1 [112 kB]                                                       
Get:59 http://security.debian.org stretch/updates/main armhf libluajit-5.1-2 armhf 2.0.4+dfsg-1+deb9u1 [173 kB]                                                    
Get:60 http://security.debian.org stretch/updates/main armhf libluajit-5.1-common all 2.0.4+dfsg-1+deb9u1 [36.8 kB]                                                
Get:61 http://security.debian.org stretch/updates/main armhf libmariadbclient18 armhf 10.1.47-0+deb9u1 [730 kB]                                                    
Get:62 http://security.debian.org stretch/updates/main armhf libonig4 armhf 6.1.3-2+deb9u1 [129 kB]                                                                
Get:63 http://security.debian.org stretch/updates/main armhf libx11-data all 2:1.6.4-3+deb9u3 [291 kB]                                                             
Get:64 http://security.debian.org stretch/updates/main armhf libx11-6 armhf 2:1.6.4-3+deb9u3 [690 kB]                                                              
Get:65 http://security.debian.org stretch/updates/main armhf linux-libc-dev armhf 4.9.246-2 [1540 kB]                                                              
Get:66 http://security.debian.org stretch/updates/main armhf bluez-hcidump armhf 5.43-2+deb9u3 [167 kB]                                                            
Get:67 http://releases.contactless.ru/stable/stretch stretch/main armhf linux-image-wb6 armhf 4.9+wb20201209164326 [996 B]                                         
Get:68 http://releases.contactless.ru/stable/stretch stretch/main armhf python-wb-common all 1.3.3 [7614 B]                                                        
Get:69 http://releases.contactless.ru/stable/stretch stretch/main armhf wb-configs-stretch all 1.83.1 [16.3 kB]                                                    
Get:70 http://releases.contactless.ru/stable/stretch stretch/main armhf wb-configs all 1.83.1 [32.4 kB]                                                            
Get:71 http://releases.contactless.ru/stable/stretch stretch/main armhf wb-utils all 2.1.5 [25.4 kB]                                                               
Get:72 http://releases.contactless.ru/stable/stretch stretch/main armhf wb-mqtt-homeui all 2.0.1 [1976 kB]                                                         
Get:73 http://releases.contactless.ru/stable/stretch stretch/main armhf wb-mqtt-confed armhf 1.2.4 [2813 kB]                                                       
Get:74 http://releases.contactless.ru/stable/stretch stretch/main armhf wb-test-suite all 1.20 [35.9 kB]                                                           
Fetched 60.3 MB in 18s (3213 kB/s)                                                                                                                                 
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 27712 files and directories currently installed.)
Preparing to unpack .../base-files_9.9+deb9u13_armhf.deb ...
Unpacking base-files (9.9+deb9u13) over (9.9+deb9u12) ...
Setting up base-files (9.9+deb9u13) ...
Installing new version of config file /etc/debian_version ...
(Reading database ... 27712 files and directories currently installed.)
Preparing to unpack .../libperl5.24_5.24.1-3+deb9u7_armhf.deb ...
Unpacking libperl5.24:armhf (5.24.1-3+deb9u7) over (5.24.1-3+deb9u6) ...
Preparing to unpack .../perl_5.24.1-3+deb9u7_armhf.deb ...
Unpacking perl (5.24.1-3+deb9u7) over (5.24.1-3+deb9u6) ...
Preparing to unpack .../perl-base_5.24.1-3+deb9u7_armhf.deb ...
Unpacking perl-base (5.24.1-3+deb9u7) over (5.24.1-3+deb9u6) ...
Setting up perl-base (5.24.1-3+deb9u7) ...
(Reading database ... 27712 files and directories currently installed.)
Preparing to unpack .../perl-modules-5.24_5.24.1-3+deb9u7_all.deb ...
Unpacking perl-modules-5.24 (5.24.1-3+deb9u7) over (5.24.1-3+deb9u6) ...
Preparing to unpack .../libapt-pkg5.0_1.4.11_armhf.deb ...
Unpacking libapt-pkg5.0:armhf (1.4.11) over (1.4.9) ...
Setting up libapt-pkg5.0:armhf (1.4.11) ...
(Reading database ... 27712 files and directories currently installed.)
Preparing to unpack .../libapt-inst2.0_1.4.11_armhf.deb ...
Unpacking libapt-inst2.0:armhf (1.4.11) over (1.4.9) ...
Preparing to unpack .../archives/apt_1.4.11_armhf.deb ...
Unpacking apt (1.4.11) over (1.4.9) ...
Setting up apt (1.4.11) ...
dpkg: error: dpkg status database is locked by another process
E: Sub-process /usr/bin/dpkg returned an error code (2)
root@wirenboard-A2T6NRMB:~#

Посмотрите пожалуйста - есть ли место (свободное) на разделах.

root@wirenboard-A2T6NRMB:~# du -csh /mnt/data/*
724K    /mnt/data/etc
16K     /mnt/data/lost+found
152K    /mnt/data/root
8.0K    /mnt/data/uploads
218M    /mnt/data/var
219M    total
root@wirenboard-A2T6NRMB:~# df -ah
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       980M  494M  419M  55% /
devtmpfs        241M     0  241M   0% /dev
sysfs              0     0     0    - /sys
proc               0     0     0    - /proc
securityfs         0     0     0    - /sys/kernel/security
tmpfs           249M     0  249M   0% /dev/shm
devpts             0     0     0    - /dev/pts
tmpfs           249M  3.7M  246M   2% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           249M     0  249M   0% /sys/fs/cgroup
cgroup             0     0     0    - /sys/fs/cgroup/systemd
configfs           0     0     0    - /sys/kernel/config
debugfs            0     0     0    - /sys/kernel/debug
mqueue             0     0     0    - /dev/mqueue
/dev/mmcblk0p6  1.3G  223M  991M  19% /mnt/data
/dev/mmcblk0p6  1.3G  223M  991M  19% /var/log
tmpfs            50M     0   50M   0% /run/user/0

Так и не дождался вашего ответа, сбросил тестовый контроллер в дефолт, обновил всё до последней версии, заработало. Теперь вопрос: если я обновлю контроллеры на объектах с помощью apt-get upgrade -y, какие настройки это затронет? Не слетят ли конфиги modbus?

Я пытался как раз воспроизвести, уже думал подключиться и посмотреть через sysfs состояние выводов.
При обновлении wb-mqtt-serial будет вопрос - оставить текущий конфиг или установить чистый, “от разработчика”.

Ага, на одном объекте обновил через терминал, конфиг остался, хотя никаких вопросов не было, обновился молча. На другом объекте обновлю, как будет физический доступ, нельзя дать ему сломаться)

Тогда же и протестирую работу W1-W2