сама идея стала рабочая
при выборе данного модуля, все работает
но осталась проблема - EXT1_DIR1 , реакции нет
все остальные реле щелкают
что может быть? куда копать?
Покажите пожалуйста содержимое /etc/wb-homa-gpio.conf.
Либо можно зайти Configs => GPIO, посмотреть номер у EXT1_DIR1 и сказать его мне.
вот такая информация
GPIO 160 (EXT1_DIR1)
Всё-таки пришлите пожалуйста содержимое файла. Configs=>GPIO=> нажать на кнопку JSON сверху и всё скопировать из окошка
{
“name”: “EXT1_DIR1”,
“gpio”: 160,
“direction”: “output”
}
{
“channels”: [
{
“name”: “A1_OUT”,
“gpio”: 26,
“inverted”: false
},
{
“name”: “A2_OUT”,
“gpio”: 16,
“inverted”: false
},
{
“name”: “A3_OUT”,
“gpio”: 24,
“inverted”: false
},
{
“name”: “A4_OUT”,
“gpio”: 20,
“inverted”: false
},
{
“name”: “A3_IN”,
“gpio”: 28,
“direction”: “input”,
“inverted”: true
},
{
“name”: “A4_IN”,
“gpio”: 27,
“direction”: “input”,
“inverted”: true
},
{
“name”: “BATTERY_PRESENT”,
“gpio”: 57,
“direction”: “input”,
“inverted”: true
},
{
“name”: “BATTERY_CHARGING”,
“gpio”: 126,
“direction”: “input”,
“inverted”: true
},
{
“name”: “5V_OUT”,
“gpio”: 78,
“direction”: “output”,
“initial_state”: true
},
{
“name”: “EXT1_DIR1”,
“gpio”: 160,
“direction”: “output”
},
{
“name”: “EXT1_ON1”,
“gpio”: 161,
“direction”: “output”
},
{
“name”: “EXT1_DIR2”,
“gpio”: 162,
“direction”: “output”
},
{
“name”: “EXT1_ON2”,
“gpio”: 163,
“direction”: “output”
},
{
“name”: “EXT1_DIR3”,
“gpio”: 164,
“direction”: “output”
},
{
“name”: “EXT1_ON3”,
“gpio”: 165,
“direction”: “output”
},
{
“name”: “EXT1_DIR4”,
“gpio”: 166,
“direction”: “output”
},
{
“name”: “EXT1_ON4”,
“gpio”: 167,
“direction”: “output”
}
],
“device_name”: “Discrete I/O”
}
Выглядит как брак, примите пожалуйста мои извинения, если это так. R10R - модуль новый, производится не сильно массово пока что, поэтому не успели настроить проверку на автоматическом стенде. А люди, к сожалению, иногда ошибаются.
С вами свяжутся мои коллеги, уточнят удобное время для доставки модуля на замену.
коллеги Ваши сработали отлично
модуль пришел, работает
очень редко в наше испорченное время, видеть такой уровень поддержки
еще раз спасибо!
Подниму тему. Тоже не работает это реле (на wb6) - переключатели в интерфейсе появились, но реле не щелкает.
Конфиг контроллера: модули WBE-DI-DR-3 и WBE-DO-R6C-1, боковой модуль WBIO-DO-R10R-4, по rs485 подключены счетчик WB-MAP3H и модуль реле WB-MR14
Версии пакетов:
wb-hwconf-manager 1.24
wb-homa-gpio 1.19.1
Номер у EXT1_DIR1
- 160
В логе:
Aug 20 12:42:28 wiren6 user.info wb-hwconf-manager: Adding wb6-extio1:wbio-do-r10r-4
Aug 20 12:42:27 wiren6 user.info wb-hwconf-manager: Initializing wb6-extio1:wbio-do-r10r-4.
Aug 20 12:42:29 wiren6 user.info wb-hwconf-manager: dtc: invalid option -- '@'
Aug 20 12:42:29 wiren6 user.info wb-hwconf-manager: Usage: dtc [options] <input file>
Aug 20 12:42:29 wiren6 user.info wb-hwconf-manager:
Aug 20 12:42:29 wiren6 user.info wb-hwconf-manager: Options: -[qI:O:o:V:d:R:S:p:fb:i:H:sW:E:hv]
Aug 20 12:42:29 wiren6 user.info wb-hwconf-manager: -q, --quiet
Aug 20 12:42:29 wiren6 user.info wb-hwconf-manager: Quiet: -q suppress warnings, -qq errors, -qqq all
Aug 20 12:42:29 wiren6 user.info wb-hwconf-manager: -I, --in-format <arg>
Aug 20 12:42:29 wiren6 user.info wb-hwconf-manager: Input formats are:
Aug 20 12:42:29 wiren6 user.info wb-hwconf-manager: dts - device tree source text
Aug 20 12:42:29 wiren6 user.info wb-hwconf-manager: dtb - device tree blob
Aug 20 12:42:29 wiren6 user.info wb-hwconf-manager: fs - /proc/device-tree style directory
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: -o, --out <arg>
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: Output file
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: -O, --out-format <arg>
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: Output formats are:
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: dts - device tree source text
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: dtb - device tree blob
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: asm - assembler source
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: -V, --out-version <arg>
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: Blob version to produce, defaults to 17 (for dtb and asm output)
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: -d, --out-dependency <arg>
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: Output dependency file
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: -R, --reserve <arg>
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: Make space for <number> reserve map entries (for dtb and asm output)
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: -S, --space <arg>
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: Make the blob at least <bytes> long (extra space)
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: -p, --pad <arg>
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: Add padding to the blob of <bytes> long (extra space)
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: -b, --boot-cpu <arg>
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: Set the physical boot cpu
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: -f, --force
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: Try to produce output even if the input tree has errors
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: -i, --include <arg>
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: Add a path to search for include files
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: -s, --sort
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: Sort nodes and properties before outputting (useful for comparing trees)
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: -H, --phandle <arg>
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: Valid phandle formats are:
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: legacy - "linux,phandle" properties only
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: epapr - "phandle" properties only
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: both - Both "linux,phandle" and "phandle" properties
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: -W, --warning <arg>
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: Enable/disable warnings (prefix with "no-")
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: -E, --error <arg>
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: Enable/disable errors (prefix with "no-")
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: -h, --help
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: Print this help and exit
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: -v, --version
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: Print version and exit
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager:
Aug 20 12:42:30 wiren6 user.info wb-hwconf-manager: Error: unknown option
Aug 20 12:42:30 wiren6 user.err wb-hwconf-manager: Device Tree overlay building failed
Aug 20 12:42:31 wiren6 user.info wb-hwconf-manager: Running hook service_restart_delete_retained wb-homa-gpio /devices/wb-gpio/#
Aug 20 12:42:38 wiren6 user.info wb-hwconf-manager: 0% [ ] 0 of 39^M 2% [# ] 1 of 39^M 5% [### ] 2 of 39^M 7% [#### ] 3 of 39^M 10% [###### ] 4 of 39^M 12% [######## ] 5 of 39^M 15% [######### ] 6 of 39^M 17% [########### ] 7 of 39^M 20% [############# ] 8 of 39^M 23% [############## ] 9 of 39^M 25% [################ ] 10 of 39^M 28% [################# ] 11 of 39^M 30% [##################
Aug 20 12:42:39 wiren6 user.info wb-hwconf-manager: ] 12 of 39^M 33% [##################### ] 13 of 39^M 35% [###################### ] 14 of 39^M 38% [######################## ] 15 of 39^M 41% [######################### ] 16 of 39^M 43% [########################### ] 17 of 39^M 46% [############################# ] 18 of 39^M 48% [############################## ] 19 of 39^M 51% [################################ ] 20 of 39^M 53% [################################# ] 21 of 39^M 56% [################################### ] 22 of 39^M 58% [##################################### ] 23 of 39^M 61% [######################################
Aug 20 12:42:39 wiren6 user.info wb-hwconf-manager: ] 24 of 39^M 64% [######################################## ] 25 of 39^M 66% [########################################## ] 26 of 39^M 69% [########################################### ] 27 of 39^M 71% [############################################# ] 28 of 39^M 74% [############################################## ] 29 of 39^M 76% [################################################ ] 30 of 39^M 79% [################################################## ] 31 of 39^M 82% [################################################### ] 32 of 39^M 84% [##################################################### ] 33 of 39^M 87% [###################################################### ] 34 of 39^M 89% [######################################################## ] 35 of 39^M 92% [########################################################## ] 36
Aug 20 12:42:39 wiren6 user.info wb-hwconf-manager: f 39^M 94% [########################################################### ] 37 of 39^M 97% [############################################################# ] 38 of 39^M100% [###############################################################] 39 of 39^M100% [###############################################################] 39 of 39^M
Aug 20 12:42:45 wiren6 user.warn kernel: [ 1762.301542] unexport_store: invalid GPIO 160
Aug 20 12:42:45 wiren6 user.warn kernel: [ 1762.359490] export_store: invalid GPIO 160
Aug 20 12:42:45 wiren6 user.warn kernel: [ 1762.410425] unexport_store: invalid GPIO 161
Aug 20 12:42:45 wiren6 user.warn kernel: [ 1762.468017] export_store: invalid GPIO 161
Aug 20 12:42:45 wiren6 user.warn kernel: [ 1762.509057] unexport_store: invalid GPIO 162
Aug 20 12:42:45 wiren6 user.warn kernel: [ 1762.556123] export_store: invalid GPIO 162
Aug 20 12:42:45 wiren6 user.warn kernel: [ 1762.583856] unexport_store: invalid GPIO 163
Aug 20 12:42:45 wiren6 user.warn kernel: [ 1762.640431] export_store: invalid GPIO 163
Aug 20 12:42:45 wiren6 user.warn kernel: [ 1762.685425] unexport_store: invalid GPIO 164
Aug 20 12:42:45 wiren6 user.warn kernel: [ 1762.711955] export_store: invalid GPIO 164
Aug 20 12:42:45 wiren6 user.warn kernel: [ 1762.739507] unexport_store: invalid GPIO 165
Aug 20 12:42:45 wiren6 user.warn kernel: [ 1762.769056] export_store: invalid GPIO 165
Aug 20 12:42:45 wiren6 user.warn kernel: [ 1762.794723] unexport_store: invalid GPIO 166
Aug 20 12:42:45 wiren6 user.warn kernel: [ 1762.830022] export_store: invalid GPIO 166
Aug 20 12:42:45 wiren6 user.warn kernel: [ 1762.854395] unexport_store: invalid GPIO 167
Aug 20 12:42:46 wiren6 user.warn kernel: [ 1762.901007] export_store: invalid GPIO 167
Контроллер перезапускал - без изменений.
Менял тип устройства на WBIO-DO-SSR-8 - не помогло
А другие модулии расширения и ввода-вывода (wbio, wbe) работают?
Да, работают
Посоветуете, что еще можно сделать? Вообще, по ощущениям, модуль дохлый. Сегодня попробовал еще разок выдернуть-воткнуть его в контроллер - все то же самое.
Да, еще такой момент - когда добавляешь этот модуль через Hardware Modules Configuration, то отваливаются оба внутренних модуля (реле не щелкает, сухой вход не пашет). Чтобы заработали - нужно удалить их и добавить снова.
Хелп!
@EvgenyBoger подскажите плз, что делать дальше. Я через 2 недели уезжаю и физического доступа к контроллеру не будет до мая следующего года. Не хотелось бы все так оставлять.
Напишите больше информации. Сколько и какие именно модули подключены и в каком порядке.
Полное содержимое /etc/wb-hardware.conf
Ещё можно попробовать обновить прошивку целиком через fit, на случай, если что-то сломали в пакетах.
Что установлено:
internal slot 1: wbe2-do-r6c-1
internal slot 2: wbe2-di-dr3
они работают без проблем, пока в external i/o module 1 не выберешь wbio-do-r10r-4. Лог с ошибками я запостил выше. Пробовал удалять все из внутренних слотов, оставлял только wbio-do-r10r-4 - те же ошибки.
конфиг
{
"slots": [
{
"id": "wb6-mod1",
"name": "Internal slot 1",
"compatible": [
"wbe2",
"wbe3-reduced"
],
"module": "wbe2-do-r6c-1",
"options": {}
},
{
"id": "wb6-mod2",
"name": "Internal slot 2",
"compatible": [
"wbe2",
"wbe3-reduced"
],
"module": "wbe2-di-dr-3",
"options": {}
},
{
"id": "wb6-mod3",
"name": "Internal slot 3",
"compatible": [
"wbe3",
"wbe3-reduced"
],
"module": "",
"options": {}
},
{
"id": "wb6-extio1",
"name": "External I/O module 1",
"compatible": [
"wb5-extio"
],
"module": "wbio-do-r10r-4",
"options": {}
},
{
"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": "wb6-can",
"name": "RS485-2/CAN interface mode",
"compatible": [
"wb6-can"
],
"module": "wb6-can-rs485",
"options": {}
},
{
"id": "wb6-w1",
"name": "W1 terminal mode",
"compatible": [
"wb6-wx"
],
"module": "wb6-wx-1wire",
"options": {}
},
{
"id": "wb6-w2",
"name": "W2 terminal mode",
"compatible": [
"wb6-wx"
],
"module": "wb6-wx-1wire",
"options": {}
}
]
}
Насчет обновления прошивки - а так можно разве что-то сломать, что внутренние модули будут работать, а внешние - нет? Не хотелось бы конечно с нуля накатывать и все настраивать заново.
В общем у меня реле не работало из-за неправильной версии пакета device-tree-compiler
, он обновился до стандартной дебиановской версии без патча от wb. Откатил версию и все стало ок.
Столкнулся с аналогичной проблемой из начального сообщения на WB v5.5.
Выполнил команды ниже:
После чего отвалился web-интерфейс, перезагрузка не помогает:
Как вернуть к жизни?
Вылечил!
apt-get install wb-mqtt-homeui