После перезагрузки перестал работать модуль ацп.Добавлял я его через веб интерфейс, в конфиги не лазил. Сначала все работало корректно, после перезагрузки контролы стали отображаться красным.
файлы конфигурации выглядят следующим образом:
cat /etc/wb-hardware.conf
{
"slots": [
{
"id": "wb67-mod1",
"name": "Internal slot 1",
"compatible": [
"wbe2",
"wbe3-reduced"
],
"module": "",
"options": {}
},
{
"id": "wb67-mod2",
"name": "Internal slot 2",
"compatible": [
"wbe2",
"wbe3-reduced"
],
"module": "",
"options": {}
},
{
"id": "wb67-mod3",
"name": "Internal slot 3",
"compatible": [
"wbe2",
"wbe3-reduced"
],
"module": "wbe2r-r-zigbee",
"options": {}
},
{
"id": "wb67-mod4",
"name": "Internal slot 4",
"compatible": [
"wbe3",
"wbe3-reduced"
],
"module": "wbe3-microsd",
"options": {}
},
{
"id": "wb6-extio1",
"name": "External I/O module 1",
"compatible": [
"wb5-extio"
],
"module": "wbio-ai-dv-12",
"options": {
"channels": [
{
"mode": "voltage"
},
{
"mode": "voltage"
},
{
"mode": "voltage"
},
{
"mode": "voltage"
},
{
"mode": "voltage"
},
{
"mode": "voltage"
},
{
"mode": "voltage"
},
{
"mode": "voltage"
},
{
"mode": "voltage"
},
{
"mode": "voltage"
},
{
"mode": "voltage"
},
{
"mode": "voltage"
}
],
"mode": "separate"
}
},
{
"id": "wb6-extio2",
"name": "External I/O module 2",
"compatible": [
"wb5-extio"
],
"module": "",
"options": {}
},
{
"id": "wb6-extio3",
"name": "External I/O module 3",
"compatible": [
"wb5-extio"
],
"module": "",
"options": {}
},
{
"id": "wb6-extio4",
"name": "External I/O module 4",
"compatible": [
"wb5-extio"
],
"module": "",
"options": {}
},
{
"id": "wb6-extio5",
"name": "External I/O module 5",
"compatible": [
"wb5-extio"
],
"module": "",
"options": {}
},
{
"id": "wb6-extio6",
"name": "External I/O module 6",
"compatible": [
"wb5-extio"
],
"module": "",
"options": {}
},
{
"id": "wb6-extio7",
"name": "External I/O module 7",
"compatible": [
"wb5-extio"
],
"module": "",
"options": {}
},
{
"id": "wb6-extio8",
"name": "External I/O module 8",
"compatible": [
"wb5-extio"
],
"module": "",
"options": {}
},
{
"id": "wb67-rs485-1",
"name": "RS485-1 interface config",
"compatible": [
"wb67-rs485"
],
"module": "wb67-can-rs485",
"options": {
"mode": "enabled",
"terminatorsMode": "enabled"
}
},
{
"id": "wb67-rs485-2",
"name": "RS485-2/CAN interface config",
"compatible": [
"wb67-rs485",
"wb67-can"
],
"module": "wb67-can-rs485",
"options": {
"mode": "enabled",
"terminatorsMode": "enabled"
}
},
{
"id": "wb67-wbc",
"name": "Modem slot",
"compatible": [
"wbc"
],
"module": "wbc-3g",
"options": {}
},
{
"id": "wb67-w1",
"name": "W1 terminal mode",
"compatible": [
"wb6-wx"
],
"module": "wb6-wx-di",
"options": {}
},
{
"id": "wb67-w2",
"name": "W2 terminal mode",
"compatible": [
"wb6-wx"
],
"module": "wb6-wx-1wire",
"options": {}
},
{
"id": "wb67-wbmz3",
"name": "Backup power supply",
"compatible": [
"wb67-wbmz3-power"
],
"module": "wbmz3-battery",
"options": {
"resetButon": "enabled"
}
}
]
}
*
cat /etc/wb-mqtt-adc.conf
{
"device_name": "ADCs",
"debug": false,
"iio_channels": [
{
"channel_number": "voltage0",
"id": "EXT1_A1",
"averaging_window": 1,
"decimal_places": 5,
"max_voltage": 4.5,
"scale": 2,
"match_iio": "21a4000.i2c/*/*-0048",
"mqtt_type": "voltage",
"voltage_multiplier": 1
},
{
"channel_number": "voltage1",
"id": "EXT1_A2",
"averaging_window": 1,
"decimal_places": 5,
"max_voltage": 4.5,
"scale": 2,
"match_iio": "21a4000.i2c/*/*-0048",
"mqtt_type": "voltage",
"voltage_multiplier": 1
},
{
"channel_number": "voltage2",
"id": "EXT1_A3",
"averaging_window": 1,
"decimal_places": 5,
"max_voltage": 4.5,
"scale": 2,
"match_iio": "21a4000.i2c/*/*-0048",
"mqtt_type": "voltage",
"voltage_multiplier": 1
},
{
"channel_number": "voltage3",
"id": "EXT1_A4",
"averaging_window": 1,
"decimal_places": 5,
"max_voltage": 4.5,
"scale": 2,
"match_iio": "21a4000.i2c/*/*-0048",
"mqtt_type": "voltage",
"voltage_multiplier": 1
},
{
"channel_number": "voltage0",
"id": "EXT1_A5",
"averaging_window": 1,
"decimal_places": 5,
"max_voltage": 4.5,
"scale": 2,
"match_iio": "21a4000.i2c/*/*-0049",
"mqtt_type": "voltage",
"voltage_multiplier": 1
},
{
"channel_number": "voltage1",
"id": "EXT1_A6",
"averaging_window": 1,
"decimal_places": 5,
"max_voltage": 4.5,
"scale": 2,
"match_iio": "21a4000.i2c/*/*-0049",
"mqtt_type": "voltage",
"voltage_multiplier": 1
},
{
"channel_number": "voltage2",
"id": "EXT1_A7",
"averaging_window": 1,
"decimal_places": 5,
"max_voltage": 4.5,
"scale": 2,
"match_iio": "21a4000.i2c/*/*-0049",
"mqtt_type": "voltage",
"voltage_multiplier": 1
},
{
"channel_number": "voltage3",
"id": "EXT1_A8",
"averaging_window": 1,
"decimal_places": 5,
"max_voltage": 4.5,
"scale": 2,
"match_iio": "21a4000.i2c/*/*-0049",
"mqtt_type": "voltage",
"voltage_multiplier": 1
},
{
"channel_number": "voltage0",
"id": "EXT1_A9",
"averaging_window": 1,
"decimal_places": 5,
"max_voltage": 4.5,
"scale": 2,
"match_iio": "21a4000.i2c/*/*-004a",
"mqtt_type": "voltage",
"voltage_multiplier": 1
},
{
"channel_number": "voltage1",
"id": "EXT1_A10",
"averaging_window": 1,
"decimal_places": 5,
"max_voltage": 4.5,
"scale": 2,
"match_iio": "21a4000.i2c/*/*-004a",
"mqtt_type": "voltage",
"voltage_multiplier": 1
},
{
"channel_number": "voltage2",
"id": "EXT1_A11",
"averaging_window": 1,
"decimal_places": 5,
"max_voltage": 4.5,
"scale": 2,
"match_iio": "21a4000.i2c/*/*-004a",
"mqtt_type": "voltage",
"voltage_multiplier": 1
},
{
"channel_number": "voltage3",
"id": "EXT1_A12",
"averaging_window": 1,
"decimal_places": 5,
"max_voltage": 4.5,
"scale": 2,
"match_iio": "21a4000.i2c/*/*-004a",
"mqtt_type": "voltage",
"voltage_multiplier": 1
},
{
"channel_number": "voltage0-voltage1",
"id": "EXT1_A1_A2",
"averaging_window": 1,
"decimal_places": 3,
"max_voltage": 10,
"scale": 0.5,
"match_iio": "21a4000.i2c/*/*-0048",
"voltage_multiplier": 1
},
{
"channel_number": "voltage2-voltage3",
"id": "EXT1_A3_A4",
"averaging_window": 1,
"decimal_places": 3,
"max_voltage": 10,
"scale": 0.5,
"match_iio": "21a4000.i2c/*/*-0048",
"voltage_multiplier": 1
},
{
"channel_number": "voltage0-voltage1",
"id": "EXT1_A5_A6",
"averaging_window": 1,
"decimal_places": 3,
"max_voltage": 10,
"scale": 0.5,
"match_iio": "21a4000.i2c/*/*-0049",
"voltage_multiplier": 1
},
{
"channel_number": "voltage2-voltage3",
"id": "EXT1_A7_A8",
"averaging_window": 1,
"decimal_places": 3,
"max_voltage": 10,
"scale": 0.5,
"match_iio": "21a4000.i2c/*/*-0049",
"voltage_multiplier": 1
},
{
"channel_number": "voltage0-voltage1",
"id": "EXT1_A9_A10",
"averaging_window": 1,
"decimal_places": 3,
"max_voltage": 10,
"scale": 0.5,
"match_iio": "21a4000.i2c/*/*-004a",
"voltage_multiplier": 1
},
{
"channel_number": "voltage2-voltage3",
"id": "EXT1_A11_A12",
"averaging_window": 1,
"decimal_places": 3,
"max_voltage": 10,
"scale": 0.5,
"match_iio": "21a4000.i2c/*/*-004a",
"voltage_multiplier": 1
}
]
}
Пожалуйста подскажите, в чем может быть проблема, куда копать?