Подключение вент установки SALDA через MB-GATEWAY

Добрый день. Пытаюсь подключить Подключение вент установки SALDA RIS 700, через их шлюз MB-GATEWAY как устройство modbus. Добавляю шлюз как serial tcp. Дальше добавляю устройство как обычный serial девайс с темплейтом. После того как устроство добавлено у меня встает все шина modbus и перестают работать все WB устроства которые подцеплены на физические выходы WB (оба порта порядка 20 устройств) Лампы на стройствах просто горят, не моргают.
После удаления данного шлюза и устройства, modbus поднимается и все начинает работать нормально.

{
“debug”: true,
“ports”: [
{
“path”: “/dev/ttyRS485-1”,
“devices”: [
{
“slave_id”: “23”,
“device_type”: “WB-MRGBW-D”
},
{
“slave_id”: “93”,
“device_type”: “WB-MRGBW-D”
},
{
“slave_id”: “42”,
“device_type”: “WB-MRGBW-D”
},
{
“slave_id”: “201”,
“device_type”: “WB-MRGBW-D”
},
{
“slave_id”: “35”,
“device_type”: “WB-MRGBW-D”
},
{
“slave_id”: “193”,
“device_type”: “WB-MRGBW-D”
},
{
“slave_id”: “49”,
“device_type”: “WB-MWAC”
},
{
“slave_id”: “72”,
“device_type”: “WB-MWAC”
},
{
“slave_id”: “52”,
“device_type”: “WB-MWAC”
},
{
“slave_id”: “21”,
“device_type”: “WB-MWAC”
},
{
“slave_id”: “20”,
“device_type”: “WB-MWAC”
},
{
“slave_id”: “37”,
“device_type”: “WB-MWAC”
},
{
“slave_id”: “74”,
“device_type”: “WB-MWAC”
},
{
“slave_id”: “57”,
“device_type”: “WB-MWAC”
},
{
“slave_id”: “61”,
“device_type”: “WB-MWAC”
},
{
“slave_id”: “53”,
“device_type”: “WB-MRGBW-D”
}
],
“baud_rate”: 9600,
“parity”: “N”,
“data_bits”: 8,
“stop_bits”: 2,
“poll_interval”: 10,
“enabled”: true
},
{
“path”: “/dev/ttyRS485-2”,
“devices”: [
{
“slave_id”: “162”,
“device_type”: “WB-MSW v.3”
},
{
“slave_id”: “62”,
“device_type”: “WB-MSW v.3”
}
],
“baud_rate”: 9600,
“parity”: “N”,
“data_bits”: 8,
“stop_bits”: 2,
“poll_interval”: 10,
“enabled”: true
},
{
“path”: “/dev/ttyMOD1”,
“devices”: [],
“baud_rate”: 9600,
“parity”: “N”,
“data_bits”: 8,
“stop_bits”: 2,
“poll_interval”: 10,
“enabled”: false
},
{
“path”: “/dev/ttyMOD2”,
“devices”: [],
“baud_rate”: 9600,
“parity”: “N”,
“data_bits”: 8,
“stop_bits”: 2,
“poll_interval”: 10,
“enabled”: false
},
{
“path”: “/dev/ttyMOD3”,
“devices”: [],
“baud_rate”: 9600,
“parity”: “N”,
“data_bits”: 8,
“stop_bits”: 2,
“poll_interval”: 10,
“enabled”: false
},
{
“address”: “192.168.1.219”,
“port”: 502,
“devices”: []
}
]
}

Что подскажите сделать, куда смотреть? Как подключить данную установку через ее гетевей modbus\tcp

Вот с таким конфигом, без устройств на порту 192.168.1.219 - wb-mqtt-serial работает?
Если перестает работать “все” - то wb-mqtt-serial не может запуститься. Снова добавьте устройство и проверив статус

systemctl status wb-mqtt-serial

запустите “вручную”

/usr/bin/wb-mqtt-serial

Скорей всего ошибка в шаблоне, покажите его, кстати.
Для вставки кода и листингов пользуйтесь пожалуйста
``` (Три символа на русской букве “ё”)
Ваш код
снова те же символы

для оформления - чтобы движок форума показывал “как есть”.

встает при этом конфиге, даже без добавления устройств на порту 192.168.1.219.

А при запуске вручную?
(воспроизведу через полчаса)

это как?

/usr/bin/wb-mqtt-serial

сейчас не могу проверить, не на объекте.

буду там скорее всего завтра

Ок. Но все равно воспроизведу. “пустой” порт, без устройств не обрабатывается вообще (не должен).

что еще можно сделать сразу варианты накидать. когда приеду сразу все проверю.

Ну, я перечислил в первом ответе.
ну и проверьте релиз ПО контроллера на актуальность.

Здравствуйте! Скажите, а вы через веб-интерфейс добавляете шлюз или вручную файл правите? Предполагаю, что вручную. Лучше сделайте ее заново через веб-интерфейс, так как вручную можно неправильно описать конфигурацию.
При добавлении порта с протоколом Serial over TCP генерируется следующая конфигурация:

    {
      "address" : "192.168.1.219",
      "devices" : [],
      "enabled" : true,
      "poll_interval" : 20,
      "port" : 502,
      "port_type" : "tcp"
    }

делал все через вэб интерфейс. код выгрузил по запросу.


у меня вот как это выглядит.

Тогда это странно. С приведенной вами конфигурацией драйвер wb-mqtt-serial действительно не запускается. Попробуйте использовать ту конфигурация для порта, что я привел выше.
Пришлите, пожалуйста, версии установленных пакетов, используя команду:

dpkg -l | grep wb-

В настоящее время данная проблема должна быть решена, так как у меня порт без устройств конфигурируется нормально. Поэтому действительно, видимо, стоит обновить ПО контроллера.

1 лайк

при обалдении выходит вот такая фигня.
root@wirenboard-ALGJZ2LX:~# apt-get update
Err:1 http://http.debian.net/debian stretch-backports InRelease
Could not resolve ‘http.debian.net
Err:2 http://releases.contactless.ru/stable/stretch stretch InRelease
Could not resolve ‘releases.contactless.ru
Err:3 https://deb.nodesource.com/node_12.x stretch InRelease
Could not resolve host: deb.nodesource.com
Err:4 http://deb.debian.org/debian stretch InRelease
Could not resolve ‘deb.debian.org
Err:5 http://security.debian.org stretch/updates InRelease
Could not resolve ‘security.debian.org
Err:6 http://deb.debian.org/debian stretch-updates InRelease
Could not resolve ‘deb.debian.org
Reading package lists… Error!
W: Failed to fetch http://releases.contactless.ru/stable/stretch/dists/stretch/I nRelease Could not resolve ‘releases.contactless.ru
W: Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease Could n ot resolve ‘deb.debian.org
W: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/InRelease Could not resolve ‘deb.debian.org
W: Failed to fetch http://security.debian.org/dists/stretch/updates/InRelease C ould not resolve ‘security.debian.org
W: Failed to fetch https://deb.nodesource.com/node_12.x/dists/stretch/InRelease Could not resolve host: deb.nodesource.com
W: Failed to fetch http://http.debian.net/debian/dists/stretch-backports/InRelea se Could not resolve ‘http.debian.net
W: Some index files failed to download. They have been ignored, or old ones used instead.
E: Write error - write (28: No space left on device)
E: IO Error saving source cache
E: The package lists or status file could not be parsed or opened.
root@wirenboard-ALGJZ2LX:~#

root@wirenboard-ALGJZ2LX:~# apt-get upgrade
Reading package lists… Error!
E: Write error - write (28: No space left on device)
E: IO Error saving source cache
E: The package lists or status file could not be parsed or opened.
root@wirenboard-ALGJZ2LX:~#

root@wirenboard-ALGJZ2LX:~# apt-get update
Get:1 http://security.debian.org stretch/updates InRelease [53.0 kB]
Ign:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://deb.debian.org/debian stretch InRelease
Get:3 http://deb.debian.org/debian stretch-updates InRelease [93.6 kB]
Ign:3 http://deb.debian.org/debian stretch-updates InRelease
Get:4 http://releases.contactless.ru/stable/stretch stretch InRelease [13.6 kB]
Get:5 http://security.debian.org stretch/updates Release [51.4 kB]
Err:5 http://security.debian.org stretch/updates Release
Error writing to output file - write (28: No space left on device) Error writing to file - write (28: No space left on device) [IP: 151.101.86.132 80]
Ign:4 http://releases.contactless.ru/stable/stretch stretch InRelease
Get:7 http://deb.debian.org/debian stretch Release [118 kB]
Err:7 http://deb.debian.org/debian stretch Release
Error writing to output file - write (28: No space left on device) Error writing to file - write (28: No space left on device) [IP: 151.101.14.132 80]
Get:8 http://releases.contactless.ru/stable/stretch stretch Release [13.1 kB]
Get:9 http://deb.debian.org/debian stretch-updates Release [91.9 kB]
Get:6 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease [91.8 kB]
Err:8 http://releases.contactless.ru/stable/stretch stretch Release
Error writing to output file - write (28: No space left on device) Error writing to file - write (28: No space left on device)
Ign:6 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease
Err:9 http://deb.debian.org/debian stretch-updates Release
Error writing to output file - write (28: No space left on device) Error writing to file - write (28: No space left on device) [IP: 151.101.14.132 80]
Get:10 http://cdn-fastly.deb.debian.org/debian stretch-backports Release [90.2 kB]
Err:10 http://cdn-fastly.deb.debian.org/debian stretch-backports Release
Error writing to output file - write (28: No space left on device) Error writing to file - write (28: No space left on device) [IP: 151.101.86.132 80]
Get:11 https://deb.nodesource.com/node_12.x stretch InRelease [4585 B]
Ign:11 https://deb.nodesource.com/node_12.x stretch InRelease
Get:12 https://deb.nodesource.com/node_12.x stretch Release [3703 B]
Err:12 https://deb.nodesource.com/node_12.x stretch Release
Write error - write (28: No space left on device)
Reading package lists… Error!
E: The repository ‘http://security.debian.org stretch/updates Release’ does no longer have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository ‘http://deb.debian.org/debian stretch Release’ does no longer have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository ‘http://releases.contactless.ru/stable/stretch stretch Release’ does no longer have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository ‘http://deb.debian.org/debian stretch-updates Release’ does no longer have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository ‘http://http.debian.net/debian stretch-backports Release’ does no longer have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository ‘https://deb.nodesource.com/node_12.x stretch Release’ does no longer have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Write error - write (28: No space left on device)
E: IO Error saving source cache
E: The package lists or status file could not be parsed or opened.
root@wirenboard-ALGJZ2LX:~#

root@wirenboard-ALGJZ2LX:/# apt-get upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
The following packages have been kept back:
busybox-syslogd device-tree-compiler linux-image-wb6 wb-configs wb-configs-stretch wb-homa-adc wb-homa-gpio wb-hwconf-manager wb-mqtt-mbgate wb-mqtt-serial
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
root@wirenboard-ALGJZ2LX:/# apt-get upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
The following packages have been kept back:
busybox-syslogd device-tree-compiler linux-image-wb6 wb-configs wb-configs-stretch wb-homa-adc wb-homa-gpio wb-hwconf-manager wb-mqtt-mbgate wb-mqtt-serial
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
root@wirenboard-ALGJZ2LX:/#

не обновляет ничего, хотя софт там вроде старый…

Batch No

6.5C/2 AT 357

Current uptime

14d 2h 38m

DTS Version

Firmware version

202008311009

HW Revision

6.5

Manufacturing Date

Ср июл 24 11:44:12 MSK 2019

Reboot