Инструменты пользователя

Инструменты сайта


конфигурирование

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
Следующая версия Следующая версия справа и слева
конфигурирование [2022/06/28 21:38]
prizzrak14
конфигурирование [2023/10/20 00:45]
Admin [Operation]
Строка 1: Строка 1:
-==== Boot sequence: ==== 
  
-  * Trying to load JSON config from NVRAM. If config is valid JSON structure - start to operating (to avoid dependance from network and allow local control) 
-  * Trying to retrieve MAC address, stored in NVRAM. If ok - using retrieved MAC. If not - using CUSTOM_FIRMWARE_MAC (see compilers directives). If not configured - using hardcoded DEFAULT_FIRMWARE_MAC = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0} 
-  * Starting LAN with DHCP or with static ip if configured 
-  * Trying to load JSON config from  address "http://MY_CONFIG_SERVER/12-12-12-12-12-12.config.json", where "12-12....12" is controller's MAC address and MY_CONFIG_SERVER - compiler's directive. If not configured = lazyhome.ru used 
-  * After parsing of loaded config, performing re-initialization of objects, except number of DMX channels. There is possible to store loaded config in NVRAM after some testing using "save" cli command. 
-  * Connecting to MQTT server according stored or retrieved config. 
-  * Subscribing to OUTTOPIC (/myhome/s_out/# by default) for 5 sec. Retrieving and executing all persistent topic (restore recent values) 
-  * Unsubscribe from OUTTOPIC, Subscribe for INTOPIC (/myhome/in/# by default) and start processing normal incoming event flow 
  
-==== Operation ==== 
-During normal operation, controller: 
- 
-  * Accepting incoming MQTT message flow and retrieving item name from topic name. For example, /myhome/in/item1 will control "item1" 
-  * Controlling items. 
-  * Most commands, accepted on INTOPIC passed throw to OUTTOPIC after interpretation. Interpretation is converting of high level commands like ON OFF HALT REST to low-level commands with real values. OUTTOPIC publishing uses "persistent" flag to allow retrieving recent status from MQTT broker after restart of controller 
-  * Polling: Normally, Modbus devices and 1-wire thermometers are polled with reasonable interval. Retrieved values are publishing to OUTTOPIC 
  
 ==== Useful CLI commands: ==== ==== Useful CLI commands: ====
конфигурирование.txt · Последнее изменение: 2023/10/22 01:27 — Admin