parameters.h 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471
  1. /********************************* (C) РОТЕК ***********************************
  2. * @module parameters
  3. * @file parameters.h
  4. * @version 1.0.0
  5. * @date XX.XX.XXXX
  6. * $brief parameters
  7. *******************************************************************************
  8. * @history Version Author Comment
  9. * XX.XX.XXXX 1.0.0 Telenkov D.A. First release.
  10. *******************************************************************************
  11. */
  12. /* Define to prevent recursive ----------------------------------------------*/
  13. #ifndef PARAMETERS_H
  14. #define PARAMETERS_H
  15. #include <stdbool.h>
  16. #include "common_config.h"
  17. /**
  18. * @brief
  19. */
  20. bool GetRebootStatus(void);
  21. // ************************************************************************** //
  22. // Параметры UPS
  23. void GetInputFreqStr(char *str, uint8_t *len);
  24. void GetInputFreqInt(float *value);
  25. void GetOutputFreqStr(char *str, uint8_t *len);
  26. void GetInputVoltageStr(char *str, uint8_t *len);
  27. void GetInputVoltageInt(float *value);
  28. void GetOutputVoltageStr(char *str, uint8_t *len);
  29. void GetOutputVoltageInt(float *value);
  30. void GetPowerStr(char *str, uint8_t *len);
  31. void GetPowerInt(int32_t *value);
  32. void GetLoadAKBModeStr(char *str, uint8_t *len);
  33. void GetLoadAKBModeInt(int32_t *value);
  34. void GetDataCheckLoadStr(char *str, uint8_t *len);
  35. void GetDataFormatCheckLoadStr(char *str, uint8_t *len);
  36. void GetBatCapacityStr(char *str, uint8_t *len);
  37. void GetBatCapacityInt(int32_t *value);
  38. void GetBatCapacityPrevStr(char *str, uint8_t *len);
  39. void GetRuntimeStr(char *str, uint8_t *len);
  40. void GetRuntimeInt(int32_t *value);
  41. void GetAKBWorktimeStr(char *str, uint8_t *len);
  42. void GetAKBWorktimeInt(int32_t *value);
  43. void GetInternalTempStr(char *str, uint8_t *len);
  44. void GetInternalTempInt(float *value);
  45. /**
  46. * @brief
  47. */
  48. void GetAlarmMonitorStr(char *str, uint8_t *len);
  49. void GetConnectMonitorStr(char *str, uint8_t *len);
  50. /**
  51. * @brief
  52. */
  53. void GetInputCurrentStr(char *str, uint8_t *len);
  54. /**
  55. * @brief
  56. */
  57. void GetInputCurrentInt(float *value);
  58. /**
  59. * @brief
  60. */
  61. void GetOutputCurrentStr(char *str, uint8_t *len);
  62. /**
  63. * @brief
  64. */
  65. void GetOutputCurrentInt(float *value);
  66. /**
  67. * @brief
  68. */
  69. void GetVoltageAKBtStr(char *str, uint8_t *len);
  70. /**
  71. * @brief
  72. */
  73. void GetVoltageAKBInt(float *value);
  74. /**
  75. * @brief Режим работы
  76. */
  77. void GetModeStr(char *str, uint8_t *len);
  78. /**
  79. * @brief Режим работы
  80. */
  81. void GetModeEn(char *str, uint8_t *len);
  82. /**
  83. * @brief Индикация аварийных ситуаций
  84. * TODO добавить реальный параметр
  85. */
  86. void GetAlarmStr(char *str, uint8_t *len);
  87. /**
  88. * @brief Индикация аварийных ситуаций
  89. */
  90. void GetUPSAlarmStr(char *str, uint8_t *len);
  91. /**
  92. * @brief Индикация аварийных ситуаций
  93. */
  94. void GetAKBAlarmStr(char *str, uint8_t *len);
  95. /**
  96. * @brief Индикация аварийных ситуаций
  97. */
  98. void GetConnectUPSAlarmStr(char *str, uint8_t *len);
  99. /**
  100. * @brief Индикация аварийных ситуаций
  101. */
  102. void GetUPSModeStr(char *str, uint8_t *len);
  103. /**
  104. * @brief Текущее время ч/м/с
  105. */
  106. void GetCurrentTimeStr(char *str, uint8_t *len);
  107. // ************************************************************************** //
  108. // Параметры даты и времени
  109. /**
  110. * @brief Дата (Ready for PRS!)
  111. */
  112. void GetDateStr(char *str, uint8_t *len);
  113. /**
  114. * @brief Время (Ready for PRS!)
  115. */
  116. void GetTimeStr(char *str, uint8_t *len);
  117. /**
  118. * @brief Время (Ready for PRS!)
  119. */
  120. void GetUnixTimeStr(char *str, uint8_t *len);
  121. // ************************************************************************** //
  122. // Параметры SNTP
  123. /**
  124. * @brief Состояние SNTP (Ready for PRS!)
  125. */
  126. void GetSntpStateStr(char *str, uint8_t *len);
  127. /**
  128. * @brief Состояние SNTP (Ready for PRS!)
  129. */
  130. void GetSntpStateStrRU(char *str, uint8_t *len);
  131. /**
  132. * @brief IP адрес SNTP сервера (Ready for PRS!)
  133. */
  134. void GetSntpServerIpStr(char *str, uint8_t *len);
  135. /**
  136. * @brief Часовой пояс контроллера (Ready for PRS!)
  137. */
  138. void GetSntpTimeZoneStr(char *str, uint8_t *len);
  139. /**
  140. * @brief Дата последней синхронизации SNTP (Ready for PRS!)
  141. */
  142. void GetSntpLastDataStr(char *str, uint8_t *len);
  143. // ************************************************************************** //
  144. // Информация
  145. // ************************************************************************** //
  146. // Настройки аутентификации
  147. void GetUserLogin(uint8_t user_id, char *str, uint8_t *len);
  148. void GetUserPassword(uint8_t user_id, char *str, uint8_t *len);
  149. void GetUserLevel(uint8_t user_id, char *str, uint8_t *len);
  150. void GetUserLevelInt(uint8_t user_id, uint8_t *value);
  151. /**
  152. * @brief Время работы устройства
  153. */
  154. void GetWorkTimeStr(char *str, uint8_t *len);
  155. /**
  156. * @brief Модель устройства
  157. */
  158. void GetModelStr(char *str, uint8_t *len);
  159. /**
  160. * @brief Название устройсва устройства
  161. */
  162. void GetNameDeviceStr(char *str, uint8_t *len);
  163. /**
  164. * @brief Дата производства
  165. */
  166. void GetProductionDataStr(char *str, uint8_t *len);
  167. /**
  168. * @brief Версия ПО
  169. */
  170. void GetVersionStr(char *str, uint8_t *len);
  171. /**
  172. * @brief MAC адрес устройства
  173. */
  174. void GetMacStr(char *str, uint8_t *len);
  175. /**
  176. * @brief Серийный номер устройства
  177. */
  178. void GetSerialNumberStr(char *str, uint8_t *len);
  179. /**
  180. * @brief Владелец устройства
  181. */
  182. void GetOwnerStr(char *str, uint8_t *len);
  183. /**
  184. * @brief Местоположение устройства
  185. */
  186. void GetLocationStr(char *str, uint8_t *len);
  187. /**
  188. * @brief Комментарии
  189. */
  190. void GetCommentsStr(char *str, uint8_t *len);
  191. /**
  192. * @brief Серийный номер UPS
  193. */
  194. void GetUPSSerialStr(char *str, uint8_t *len);
  195. /**
  196. * @brief Модель UPS
  197. */
  198. void GetUPSModelStr(char *str, uint8_t *len);
  199. /**
  200. * @brief Версия UPS ПО
  201. */
  202. void GetUPSVersionStr(char *str, uint8_t *len);
  203. #ifdef NOTIFICATION_CONTROL_ENABLE
  204. // ************************************************************************** //
  205. // Параметры уведомления
  206. /**
  207. * @brief Параметр разрешения отправки трапа
  208. */
  209. void GetNotificationTrapsStateStr(char *str, uint8_t *len, uint8_t num);
  210. /**
  211. * @brief Параметр разрешения отправки трапа
  212. */
  213. void GetNotificationTrapsStateStr2(char *str, uint8_t *len, uint8_t num);
  214. /**
  215. * @brief Длинное имя трапа
  216. */
  217. void GetTrapLongNameStr(char *str, uint8_t *len, uint8_t num);
  218. #endif
  219. // ************************************************************************** //
  220. // Параметры WEB
  221. /**
  222. * @brief Текущий IP адрес
  223. */
  224. void GetIpStr(char *str, uint8_t *len);
  225. /**
  226. * @brief Текущий шлюз
  227. */
  228. void GetGatewayStr(char *str, uint8_t *len);
  229. /**
  230. * @brief Текущая маска подсети
  231. */
  232. void GetMaskStr(char *str, uint8_t *len);
  233. /**
  234. * @brief Настройка DHCP
  235. */
  236. void GetDhcpStateStr(char *str, uint8_t *len);
  237. /**
  238. * @brief Настройка DHCP
  239. */
  240. void GetDhcpStateUDP(char *str, uint8_t *len);
  241. /**
  242. * @brief Настройка DHCP
  243. */
  244. void GetDhcpStateStrRu(char *str, uint8_t *len);
  245. #ifdef WHITELIST_ENABLE
  246. // ************************************************************************** //
  247. // Параметры довверительных хостов
  248. /**
  249. * @brief диапазон доверительных хостов
  250. */
  251. void GetWhiteListSTR(char *str, uint8_t *len, uint8_t num);
  252. /**
  253. * @brief первый диапазон доверительных хостов
  254. */
  255. void GetWhiteList1STR(char *str, uint8_t *len);
  256. /**
  257. * @brief второй диапазон доверительных хостов
  258. */
  259. void GetWhiteList2STR(char *str, uint8_t *len);
  260. /**
  261. * @brief третий диапазон доверительных хостов
  262. */
  263. void GetWhiteList3STR(char *str, uint8_t *len);
  264. /**
  265. * @brief четвертый диапазон доверительных хостов
  266. */
  267. void GetWhiteList4STR(char *str, uint8_t *len);
  268. /**
  269. * @brief пятый диапазон доверительных хостов
  270. */
  271. void GetWhiteList5STR(char *str, uint8_t *len);
  272. /**
  273. * @brief маска диапазона доверительных хостов
  274. */
  275. void GetWhiteListMask(uint32_t *value, uint8_t num);
  276. /**
  277. * @brief ip диапазона доверительных хостов
  278. */
  279. void GetWhiteListIP(uint32_t *value, uint8_t num);
  280. #endif
  281. #ifdef PORTGW_ENABLE
  282. // ************************************************************************** //
  283. // Параметры прозрачного порта
  284. /**
  285. * @brief Включен/Выключен
  286. */
  287. void GetPortGwEnabledStr(char *str, uint8_t *len);
  288. /**
  289. * @brief Включен/Выключен
  290. */
  291. void GetPortGwEnabledRUStr(char *str, uint8_t *len);
  292. /**
  293. * @brief Четность
  294. */
  295. void GetPortGwParityRUStr(char *str, uint8_t *len);
  296. /**
  297. * @brief Четность
  298. */
  299. void GetPortGwParityInt(uint32_t *value);
  300. /**
  301. * @brief IP-адрес
  302. */
  303. void GetPortGwIpStr(char *str, uint8_t *len);
  304. /**
  305. * @brief Сетевой порт
  306. */
  307. void GetPortGwPortnumStr(char *str, uint8_t *len);
  308. /**
  309. * @brief Скорость передачи данных
  310. */
  311. void GetPortGwBaudStr(char *str, uint8_t *len);
  312. /**
  313. * @brief Четность
  314. */
  315. void GetPortGwParityStr(char *str, uint8_t *len);
  316. /**
  317. * @brief Число бит данных
  318. */
  319. void GetPortGwDatabitsStr(char *str, uint8_t *len);
  320. /**
  321. * @brief Число стоп-бит
  322. */
  323. void GetPortGwStopbitsStr(char *str, uint8_t *len);
  324. #endif
  325. #if defined(DALLAS_SENSOR_ENABLE) || defined(AM2301_SENSOR_ENABLE)
  326. // ************************************************************************** //
  327. // Параметры датчика температуры
  328. /**
  329. * @brief Размещение датчика температуры 1
  330. */
  331. void GetTS1locationStr(char *str, uint8_t *len);
  332. /**
  333. * @brief Размещение датчика температуры 2
  334. */
  335. void GetTS2locationStr(char *str, uint8_t *len);
  336. /**
  337. * @brief Размещение датчика температуры
  338. */
  339. void GetTSlocationStr(char *str, uint8_t *len, uint8_t num);
  340. #endif
  341. // ************************************************************************** //
  342. // Параметры SNMP
  343. /**
  344. * @brief Текущее TRAP community
  345. */
  346. void GetTrapCommunity(char *str, uint8_t *len);
  347. /**
  348. * @brief Текущее community для чтения
  349. */
  350. void GetReadCommunity(char *str, uint8_t *len);
  351. /**
  352. * @brief Текущее community для записи
  353. */
  354. void GetWriteCommunity(char *str, uint8_t *len);
  355. /**
  356. * @brief IP SNMP менеджера
  357. */
  358. void GetManagerIp(char *str, uint8_t *len);
  359. void GetManagerIp2(char *str, uint8_t *len);
  360. void GetManagerIp3(char *str, uint8_t *len);
  361. void GetManagerIp4(char *str, uint8_t *len);
  362. void GetManagerIp5(char *str, uint8_t *len);
  363. #ifdef RADIUS_SERVER_ENABLE
  364. // ************************************************************************** //
  365. // Параметры RADIUS
  366. /**
  367. * @brief Текущий IP адрес
  368. */
  369. void GetRDSIpStr(char *str, uint8_t *len);
  370. /**
  371. * @brief Текущий Порт
  372. */
  373. void GetRDSPortStr(char *str, uint8_t *len);
  374. /**
  375. * @brief Текущий Код access
  376. */
  377. void GetRDSKeyAccesstStr(char *str, uint8_t *len);
  378. /**
  379. * @brief Текущая пароль RADIUS
  380. */
  381. void GetRDSPasswordkStr(char *str, uint8_t *len);
  382. /**
  383. * @brief Настройка вкл/ выкл RADIUS сервера
  384. */
  385. void GetRDSEnableStateStr(char *str, uint8_t *len);
  386. void GetRADIUSEnableStrRU(char *str, uint8_t *len);
  387. /**
  388. * @brief Настройка вкл/ выкл авторизации
  389. */
  390. void GetAuthEnableStateStr(char *str, uint8_t *len);
  391. #endif
  392. #ifndef BT6702_SERVICE
  393. // ************************************************************************** //
  394. // Температура с внешних датчиков
  395. #if defined(DALLAS_SENSOR_ENABLE) || defined(AM2301_SENSOR_ENABLE)
  396. /**
  397. * @brief
  398. */
  399. void GetTempCaseStr(char *str, uint8_t *len);
  400. /**
  401. * @brief
  402. */
  403. void GetTempCaseInt(float *value);
  404. #endif
  405. #ifdef AM2301_SENSOR_ENABLE
  406. void GetHumidityCaseStr(char *str, uint8_t *len);
  407. #endif
  408. #endif
  409. // ************************************************************************** //
  410. // Параметры реле/сухих контактов
  411. #ifdef DINS_ENABLE
  412. /**
  413. * @brief Тип действий при срабатывание сухих контактов
  414. */
  415. void GetDINTypeActStr(char *str, uint8_t *len, uint8_t num);
  416. /**
  417. * @brief Тип действий при срабатывание сухих контактов
  418. */
  419. void GetDIN0TypeActStr(char *str, uint8_t *len);
  420. /**
  421. * @brief Тип действий при срабатывание сухих контактов
  422. */
  423. void GetDIN1TypeActStr(char *str, uint8_t *len);
  424. /**
  425. * @brief Имя сухого контакта
  426. */
  427. void GetDINNameStr(char *str, uint8_t *len, uint8_t num);
  428. /**
  429. * @brief Имя сухого контакта
  430. */
  431. void GetDIN0NameStr(char *str, uint8_t *len);
  432. /**
  433. * @brief Имя сухого контакта
  434. */
  435. void GetDIN1NameStr(char *str, uint8_t *len);
  436. /**
  437. * @brief Состояние сухого контакта
  438. */
  439. void GetDINStatusStr(char *str, uint8_t *len, uint8_t num);
  440. /**
  441. * @brief Состояние сухого контакта
  442. */
  443. void GetDIN0StatusStr(char *str, uint8_t *len);
  444. /**
  445. * @brief Состояние сухого контакта
  446. */
  447. void GetDIN1StatusStr(char *str, uint8_t *len);
  448. /**
  449. * @brief Состояние сухого контакта
  450. */
  451. void GetDINStatusStrRU(char *str, uint8_t *len, uint8_t num);
  452. #endif
  453. #ifdef DOUTS_ENABLE
  454. /**
  455. * @brief Источник срабатывания реле
  456. */
  457. void GetROTypeActStr(char *str, uint8_t *len, uint8_t num);
  458. /**
  459. * @brief Источник срабатывания реле
  460. */
  461. void GetRO0TypeActStr(char *str, uint8_t *len);
  462. /**
  463. * @brief Источник срабатывания реле
  464. */
  465. void GetRO1TypeActStr(char *str, uint8_t *len);
  466. /**
  467. * @brief Источник срабатывания реле
  468. */
  469. void GetRO2TypeActStr(char *str, uint8_t *len);
  470. /**
  471. * @brief Состояние релейного выхода
  472. */
  473. void GetDOUTStatusStr(char *str, uint8_t *len, uint8_t num);
  474. /**
  475. * @brief Состояние релейного выхода
  476. */
  477. void GetDOUTStatusStrRU(char *str, uint8_t *len, uint8_t num);
  478. /**
  479. * @brief Состояние релейного выхода
  480. */
  481. void GetDOUT0StatusStr(char *str, uint8_t *len);
  482. /**
  483. * @brief Состояние релейного выхода
  484. */
  485. void GetDOUT1StatusStr(char *str, uint8_t *len);
  486. /**
  487. * @brief Состояние релейного выхода
  488. */
  489. void GetDOUT2StatusStr(char *str, uint8_t *len);
  490. #endif
  491. #ifdef TELNET_ENABLE
  492. // ************************************************************************** //
  493. // Параметры Telnet
  494. /**
  495. * @brief Текущий Порт
  496. */
  497. void GetTelnetPortStr(char *str, uint8_t *len);
  498. /**
  499. * @brief Настройка вкл/ выкл Telnet сервера
  500. */
  501. void GetTelnetEnableStateStr(char *str, uint8_t *len);
  502. // ************************************************************************** //
  503. // Параметры SSH
  504. /**
  505. * @brief Текущий Порт
  506. */
  507. void GetSSHPortStr(char *str, uint8_t *len);
  508. /**
  509. * @brief Настройка вкл/ выкл SSH сервера
  510. */
  511. void GetSSHEnableStateStr(char *str, uint8_t *len);
  512. #endif
  513. #ifdef FTP_ENABLE
  514. // ************************************************************************** //
  515. // Параметры FTP
  516. void GetFTPServer(char *str, uint8_t *len);
  517. void GetFTPPort(char *str, uint8_t *len);
  518. void GetFTPPath(char *str, uint8_t *len);
  519. void GetFTPLogin(char *str, uint8_t *len);
  520. void GetFTPPassword(char *str, uint8_t *len);
  521. // ************************************************************************** //
  522. // Параметры Syslog
  523. void GetSyslogEnable(char *str, uint8_t *len);
  524. void GetSyslogEnableStrRU(char *str, uint8_t *len);
  525. void GetSyslogServer(char *str, uint8_t *len);
  526. void GetSyslogPort(char *str, uint8_t *len);
  527. #endif // FTP_ENABLE
  528. // ************************************************************************** //
  529. // Флаги
  530. /**
  531. * @brief Установить признак изменения сетевых параметров
  532. */
  533. void GetWebReinitFlag(char *str, uint8_t *len);
  534. // ************************************************************************** //
  535. // Параметры настройки ИБП
  536. /**
  537. * @brief Минимальное напряжение на ячейках АКБ
  538. */
  539. void GetUPSVoltCellMinStr(char *str, uint8_t *len);
  540. /**
  541. * @brief Минимальное напряжение на ячейках АКБ
  542. */
  543. void GetUPSVoltCellMinInt(float *value);
  544. /**
  545. * @brief Максимальное напряжение на ячейках АКБ
  546. */
  547. void GetUPSVoltCellMaxStr(char *str, uint8_t *len);
  548. /**
  549. * @brief Максимальное напряжение на ячейках АКБ
  550. */
  551. void GetUPSVoltCellMaxInt(float *value);
  552. /**
  553. * @brief Дата замены АКБ
  554. */
  555. void GetDataNextChangeAKBStrRU(char *str, uint8_t *len);
  556. /**
  557. * @brief Дата замены АКБ
  558. */
  559. void GetDataNextChangeAKBStr(char *str, uint8_t *len);
  560. /**
  561. * @brief Дата установки АКБ
  562. */
  563. void GetDataSetAKBStr(char *str, uint8_t *len);
  564. /**
  565. * @brief Срок службы АКБ
  566. */
  567. void GetLifeTimeAKBStr(char *str, uint8_t *len);
  568. /**
  569. * @brief Номинальное напряжение АКБ
  570. */
  571. void GetVoltageAKBNominalStr(char *str, uint8_t *len);
  572. /**
  573. * @brief Полная мощность АКБ
  574. */
  575. void GetUPSPowerStr(char *str, uint8_t *len);
  576. /**
  577. * @brief Полная мощность АКБ
  578. */
  579. void GetUPSPowerEnumStr(char *str, uint8_t *len);
  580. /**
  581. * @brief КПД ИБП
  582. */
  583. void GetUPSEfficiencyFactorInt(float *value);
  584. /**
  585. * @brief Емкость АКБ
  586. */
  587. void GetCapacityNominalAKBStr(char *str, uint8_t *len);
  588. /**
  589. * @brief Емкость АКБ
  590. */
  591. void GetCapacityNominalAKBInt(int32_t *value);
  592. // ************************************************************************** //
  593. // Параметры менеджера аварийных событий
  594. /**
  595. * @brief Верхняя граница VAC
  596. */
  597. void GetVACAlarmHighRangeStr(char *str, uint8_t *len);
  598. /**
  599. * @brief Верхняя граница VAC
  600. */
  601. void GetVACAlarmHighRangeInt(int32_t *value);
  602. /**
  603. * @brief Нижняя граница VAC
  604. */
  605. void GetVACAlarmLowRangeStr(char *str, uint8_t *len);
  606. /**
  607. * @brief Нижняя граница VAC
  608. */
  609. void GetVACAlarmLowRangeInt(int32_t *value);
  610. /**
  611. * @brief Гистерезис (VAC)
  612. */
  613. void GetVACAlarmHisteStr(char *str, uint8_t *len);
  614. /**
  615. * @brief Гистерезис (VAC)
  616. */
  617. void GetVACAlarmHisteInt(float *value);
  618. #ifdef VAC_IN_MONITOR
  619. /**
  620. * @brief Верхняя граница входящего напряжения
  621. */
  622. void GetVACInputAlarmHighRangeStr(char *str, uint8_t *len);
  623. /**
  624. * @brief Верхняя граница входящего напряжения
  625. */
  626. void GetVACInputAlarmHighRangeInt(int32_t *value);
  627. /**
  628. * @brief Нижняя граница входящего напряжения
  629. */
  630. void GetVACInputAlarmLowRangeStr(char *str, uint8_t *len);
  631. /**
  632. * @brief Нижняя граница входящего напряжения
  633. */
  634. void GetVACInputAlarmLowRangeInt(int32_t *value);
  635. /**
  636. * @brief Гистерезис входящего напряжения
  637. */
  638. void GetVACinputAlarmHisteStr(char *str, uint8_t *len);
  639. /**
  640. * @brief Гистерезис входящего напряжения
  641. */
  642. void GetVACinputAlarmHisteInt(float *value);
  643. #endif
  644. /**
  645. * @brief Верхняя граница температуры
  646. */
  647. void GetTemperatureAlarmHighRangeStr(char *str, uint8_t *len);
  648. /**
  649. * @brief Верхняя граница температуры
  650. */
  651. void GetTemperatureAlarmHighRangeInt(int32_t *value);
  652. /**
  653. * @brief Нижняя граница температуры
  654. */
  655. void GetTemperatureAlarmLowRangeStr(char *str, uint8_t *len);
  656. /**
  657. * @brief Нижняя граница температуры
  658. */
  659. void GetTemperatureAlarmLowRangeInt(int32_t *value);
  660. /**
  661. * @brief Гистерезис (температура)
  662. */
  663. void GetTemperatureAlarmHisteStr(char *str, uint8_t *len);
  664. /**
  665. * @brief Гистерезис (температура)
  666. */
  667. void GetTemperatureAlarmHisteInt(float *value);
  668. #if !(HARDWARE_BT6709 || HARDWARE_BT6709_MTS)
  669. /**
  670. * @brief Верхняя граница температуры
  671. */
  672. void GetTemperatureCabinetAlarmHighRangeStr(char *str, uint8_t *len);
  673. /**
  674. * @brief Верхняя граница температуры
  675. */
  676. void GetTemperatureCabinetAlarmHighRangeInt(int32_t *value);
  677. /**
  678. * @brief Нижняя граница температуры
  679. */
  680. void GetTemperatureCabinetAlarmLowRangeStr(char *str, uint8_t *len);
  681. /**
  682. * @brief Нижняя граница температуры
  683. */
  684. void GetTemperatureCabinetAlarmLowRangeInt(int32_t *value);
  685. /**
  686. * @brief Гистерезис (температура)
  687. */
  688. void GetTemperatureCabinetAlarmHisteStr(char *str, uint8_t *len);
  689. /**
  690. * @brief Гистерезис (температура)
  691. */
  692. void GetTemperatureCabinetAlarmHisteInt(float *value);
  693. #endif
  694. /**
  695. * @brief Верхняя граница нагрузки
  696. */
  697. void GetLoadAlarmHighRangeStr(char *str, uint8_t *len);
  698. /**
  699. * @brief Верхняя граница нагрузки
  700. */
  701. void GetLoadAlarmHighRangeInt(int32_t *value);
  702. /**
  703. * @brief Гистерезис (нагрузки)
  704. */
  705. void GetLoadAlarmHisteStr(char *str, uint8_t *len);
  706. /**
  707. * @brief Гистерезис (нагрузки)
  708. */
  709. void GetLoadAlarmHisteInt(float *value);
  710. // ************************************************************************** //
  711. // Установка параметрв
  712. // ************************************************************************** //
  713. /**
  714. * @brief Установить признак обновления ПО.
  715. */
  716. void SetLoadMode(void);
  717. /**
  718. * @brief Установить признак изменения сетевых параметров
  719. */
  720. void SetWebReinitFlag(bool value);
  721. /**
  722. * @brief Установить флаг подтверждения сетевых настроек пользователем
  723. */
  724. void SetConfirmWebParamsFlag(void);
  725. #ifdef NOTIFICATION_CONTROL_ENABLE
  726. // ************************************************************************** //
  727. // Параметры уведомления
  728. /**
  729. * @brief Параметр разрешения отправки
  730. */
  731. void SetNotificationFlagsStr(uint8_t *value, uint8_t num);
  732. #endif
  733. // ************************************************************************** //
  734. // Сетевые параметры
  735. /**
  736. * @brief IP адрес
  737. */
  738. void SetIPStr(char *str);
  739. /**
  740. * @brief Шлюз
  741. */
  742. void SetGatewayStr(char *str);
  743. /**
  744. * @brief Текущая маска подсети
  745. */
  746. void SetMaskStr(char *str);
  747. /**
  748. * @brief Настройка DHCP
  749. */
  750. void SetDhcpStateStr(char *str);
  751. /**
  752. * @brief Настройка DHCP
  753. */
  754. void SetUDPDhcpStateStr(char *str);
  755. #ifdef WHITELIST_ENABLE
  756. // ************************************************************************** //
  757. // Параметры довверительных хостов
  758. /**
  759. * @brief диапазон доверительных хостов
  760. */
  761. void SetWhiteListSTR(char *str, uint8_t num);
  762. /**
  763. * @brief Первый диапазон доверительных хостов
  764. */
  765. void SetWhiteList1STR(char *str);
  766. /**
  767. * @brief Второй диапазон доверительных хостов
  768. */
  769. void SetWhiteList2STR(char *str);
  770. /**
  771. * @brief Третий диапазон доверительных хостов
  772. */
  773. void SetWhiteList3STR(char *str);
  774. /**
  775. * @brief Четвертый диапазон доверительных хостов
  776. */
  777. void SetWhiteList4STR(char *str);
  778. /**
  779. * @brief Пятый диапазон доверительных хостов
  780. */
  781. void SetWhiteList5STR(char *str);
  782. #endif
  783. #ifdef PORTGW_ENABLE
  784. // ************************************************************************** //
  785. // Параметры прозрачного порта
  786. /**
  787. * @brief Включен/Выключен
  788. */
  789. void SetPortGwEnabledStr(char *str);
  790. /**
  791. * @brief Сетевой порт
  792. */
  793. void SetPortGwPortnumStr(char *str);
  794. /**
  795. * @brief Скорость передачи данных
  796. */
  797. void SetPortGwBaudStr(char *str);
  798. /**
  799. * @brief Четность
  800. */
  801. void SetPortGwParityStr(char *str);
  802. /**
  803. * @brief Четность
  804. */
  805. void SetPortGwParityInt(uint32_t value);
  806. /**
  807. * @brief Число бит данных
  808. */
  809. void SetPortGwDatabitsStr(char *str);
  810. /**
  811. * @brief Число стоп-бит
  812. */
  813. void SetPortGwStopbitsStr(char *str);
  814. #endif
  815. #if defined(DALLAS_SENSOR_ENABLE) || defined(AM2301_SENSOR_ENABLE)
  816. // ************************************************************************** //
  817. // Параметры датчика температуры
  818. /**
  819. * @brief Размещение датчика температуры 1
  820. */
  821. void SetTS1locationStr(char *str);
  822. /**
  823. * @brief Размещение датчика температуры 2
  824. */
  825. void SetTS2locationStr(char *str);
  826. /**
  827. * @brief Размещение датчика температуры
  828. */
  829. void SetTSlocationStr(char *str, uint8_t num);
  830. #endif
  831. // ************************************************************************** //
  832. // Параметры SNMP
  833. /**
  834. * @brief TRAP community
  835. */
  836. void SetTrapCommunity(char *str);
  837. /**
  838. * @brief Community для чтения
  839. */
  840. void SetReadCommunity(char *str);
  841. /**
  842. * @brief Community для записи
  843. */
  844. void SetWriteCommunity(char *str);
  845. /**
  846. * @brief IP SNMP менеджера
  847. */
  848. void SetManagerIp(char *str);
  849. void SetManagerIp2(char *str);
  850. void SetManagerIp3(char *str);
  851. void SetManagerIp4(char *str);
  852. void SetManagerIp5(char *str);
  853. /**
  854. * @brief Название устройсва устройства
  855. */
  856. void SetNameDeviceStr(char *str);
  857. /**
  858. * @brief Установить владельца
  859. */
  860. void SetOwner(char *str);
  861. /**
  862. * @brief Установить местоположение
  863. */
  864. void SetLocation(char *str);
  865. /**
  866. * @brief Установить комментарий
  867. */
  868. void SetComment(char *str);
  869. #ifdef RADIUS_SERVER_ENABLE
  870. // ************************************************************************** //
  871. // Сетевые параметры RADIUS сервера
  872. /**
  873. * @brief IP адрес
  874. */
  875. void SetRDSIpStr(char *str);
  876. /**
  877. * @brief Порт
  878. */
  879. void SetRDSPortStr(char *str);
  880. /**
  881. * @brief Код access
  882. */
  883. void SetRDSKeyAccesstStr(char *str);
  884. /**
  885. * @brief пароль RADIUS
  886. */
  887. void SetRDSPasswordkStr(char *str);
  888. /**
  889. * @brief Настройка вкл/ выкл RADIUS сервера
  890. */
  891. void SetRDSEnableStateStr(char *str);
  892. /**
  893. * @brief Настройка вкл/ выкл авторизации
  894. */
  895. void SetAuthEnableStateStr(char *str);
  896. #endif
  897. #ifdef TELNET_ENABLE
  898. // ************************************************************************** //
  899. // Параметры Telnet
  900. /**
  901. * @brief Текущий Порт
  902. */
  903. void SetTelnetPortStr(char *str);
  904. /**
  905. * @brief Настройка вкл/ выкл Telnet сервера
  906. */
  907. void SetTelnetEnableStateStr(char *str);
  908. // ************************************************************************** //
  909. // Параметры SSH
  910. /**
  911. * @brief Текущий Порт
  912. */
  913. void SetSSHPortStr(char *str);
  914. /**
  915. * @brief Настройка вкл/ выкл SSH сервера
  916. */
  917. void SetSSHEnableStateStr(char *str);
  918. #endif
  919. #ifdef SYSLOG_ENABLE
  920. // ************************************************************************** //
  921. // Параметры Syslog
  922. void SetSyslogEnable(char *str);
  923. void SetSyslogServer(char *str);
  924. void SetSyslogPort(char *str);
  925. #endif // SYSLOG_ENABLE
  926. // ************************************************************************** //
  927. // Параметры даты и времени
  928. /**
  929. * @brief Дата
  930. */
  931. void SetDateStr(char *str);
  932. /**
  933. * @brief Время
  934. */
  935. void SetTimeStr(char *str);
  936. /**
  937. * @brief Время
  938. */
  939. void SetTimeWebStr(char *str);
  940. // ************************************************************************** //
  941. // Параметры SNTP
  942. /**
  943. * @brief Состояние SNTP
  944. */
  945. void SetSntpStateStr(char *str);
  946. /**
  947. * @brief IP адрес SNTP сервера
  948. */
  949. void SetSntpServerIpStr(char *str);
  950. /**
  951. * @brief Часовой пояс контроллера
  952. */
  953. void SetSntpTimeZoneStr(char *str);
  954. // ************************************************************************** //
  955. // Параметры реле/сухих контактов
  956. #ifdef DINS_ENABLE
  957. /**
  958. * @brief Тип действий при срабатывание сухих контактов
  959. */
  960. void SetDINTypeActStr(char *str, uint8_t num);
  961. /**
  962. * @brief Тип действий при срабатывание сухих контактов
  963. */
  964. void SetDIN0TypeActStr(char *str);
  965. /**
  966. * @brief Тип действий при срабатывание сухих контактов
  967. */
  968. void SetDIN1TypeActStr(char *str);
  969. /**
  970. * @brief Имя сухого контакта
  971. */
  972. void SetDINNameStr(char *str, uint8_t num);
  973. /**
  974. * @brief Имя сухого контакта
  975. */
  976. void SetDIN0NameStr(char *str);
  977. /**
  978. * @brief Имя сухого контакта
  979. */
  980. void SetDIN1NameStr(char *str);
  981. #endif
  982. #ifdef DOUTS_ENABLE
  983. /**
  984. * @brief Источник срабатывания реле
  985. */
  986. void SetROTypeActStr(char *str, uint8_t num);
  987. /**
  988. * @brief Источник срабатывания реле 1
  989. */
  990. void SetRO1TypeActStr(char *str);
  991. /**
  992. * @brief Источник срабатывания реле 2
  993. */
  994. void SetRO2TypeActStr(char *str);
  995. /**
  996. * @brief Источник срабатывания реле 3
  997. */
  998. void SetRO3TypeActStr(char *str);
  999. /**
  1000. * @brief
  1001. */
  1002. void SetROStr(char *str, uint8_t num);
  1003. /**
  1004. * @brief
  1005. */
  1006. void SetROInt(uint8_t val, uint8_t num);
  1007. #endif
  1008. // ************************************************************************** //
  1009. // Параметры настройки ИБП
  1010. /**
  1011. * @brief Минимальное напряжение на ячейках АКБ
  1012. */
  1013. void SetUPSVoltCellMinStr(char *str);
  1014. /**
  1015. * @brief Минимальное напряжение на ячейках АКБ
  1016. */
  1017. void SetUPSVoltCellMinInt(float value);
  1018. /**
  1019. * @brief Максимальное напряжение на ячейках АКБ
  1020. */
  1021. void SetUPSVoltCellMaxStr(char *str);
  1022. /**
  1023. * @brief Максимальное напряжение на ячейках АКБ
  1024. */
  1025. void SetUPSVoltCellMaxInt(float value);
  1026. /**
  1027. * @brief Дата установки АКБ
  1028. */
  1029. void SetDataSetAKBStr(char *str);
  1030. /**
  1031. * @brief Срок службы АКБ
  1032. */
  1033. void SetLifeTimeAKBStr(char *str);
  1034. /**
  1035. * @brief Номинальное напряжение АКБ
  1036. */
  1037. void SetVoltageAKBNominalStr(char *str);
  1038. /**
  1039. * @brief Полная мощность АКБ
  1040. */
  1041. void SetUPSPowerStr(char *str);
  1042. /**
  1043. * @brief Полная мощность АКБ
  1044. */
  1045. void SetUPSPowerEnumStr(char *str);
  1046. /**
  1047. * @brief Емкость АКБ
  1048. */
  1049. void SetCapacityNominalAKBStr(char *str);
  1050. /**
  1051. * @brief Серийный номер ИБП
  1052. */
  1053. void SetUPSSerialStr(char *str);
  1054. // ************************************************************************** //
  1055. // Параметры менеджера аварий
  1056. /**
  1057. * @brief Верхняя граница VAC
  1058. */
  1059. void SetVACAlarmHighRangeStr(char *str);
  1060. /**
  1061. * @brief Верхняя граница VAC
  1062. */
  1063. void SetVACAlarmHighRangeInt(float value);
  1064. /**
  1065. * @brief Нижняя граница VAC
  1066. */
  1067. void SetVACAlarmLowRangeStr(char *str);
  1068. /**
  1069. * @brief Нижняя граница VAC
  1070. */
  1071. void SetVACAlarmLowRangeInt(float value);
  1072. /**
  1073. * @brief Гистерезис (VAC)
  1074. */
  1075. void SetVACAlarmHisteStr(char *str);
  1076. /**
  1077. * @brief Гистерезис (VAC)
  1078. */
  1079. void SetVACAlarmHisteInt(float value);
  1080. #ifdef VAC_IN_MONITOR
  1081. /**
  1082. * @brief Верхняя граница входящего напряжения
  1083. */
  1084. void SetVACInputAlarmHighRangeStr(char *str);
  1085. /**
  1086. * @brief Верхняя граница входящего напряжения
  1087. */
  1088. void SetVACInputAlarmHighRangeInt(float value);
  1089. /**
  1090. * @brief Нижняя граница входящего напряжения
  1091. */
  1092. void SetVACInputAlarmLowRangeStr(char *str);
  1093. /**
  1094. * @brief Нижняя граница входящего напряжения
  1095. */
  1096. void SetVACInputAlarmLowRangeInt(float value);
  1097. /**
  1098. * @brief Гистерезис входящего напряжения
  1099. */
  1100. void SetVACinputAlarmHisteStr(char *str);
  1101. /**
  1102. * @brief Гистерезис входящего напряжения
  1103. */
  1104. void SetVACinputAlarmHisteInt(float value);
  1105. #endif
  1106. /**
  1107. * @brief Верхняя граница температуры
  1108. */
  1109. void SetTemperatureAlarmHighRangeStr(char *str);
  1110. /**
  1111. * @brief Верхняя граница температуры
  1112. */
  1113. void SetTemperatureAlarmHighRangeInt(float value);
  1114. /**
  1115. * @brief Нижняя граница температуры
  1116. */
  1117. void SetTemperatureAlarmLowRangeStr(char *str);
  1118. /**
  1119. * @brief Нижняя граница температуры
  1120. */
  1121. void SetTemperatureAlarmLowRangeInt(float value);
  1122. /**
  1123. * @brief Гистерезис (температура)
  1124. */
  1125. void SetTemperatureAlarmHisteStr(char *str);
  1126. /**
  1127. * @brief Гистерезис (температура)
  1128. */
  1129. void SetTemperatureAlarmHisteInt(float value);
  1130. #if !(HARDWARE_BT6709 || HARDWARE_BT6709_MTS)
  1131. /**
  1132. * @brief Верхняя граница температуры
  1133. */
  1134. void SetTemperatureCabinetAlarmHighRangeStr(char *str);
  1135. /**
  1136. * @brief Верхняя граница температуры
  1137. */
  1138. void SetTemperatureCabinetAlarmHighRangeInt(float value);
  1139. /**
  1140. * @brief Нижняя граница температуры
  1141. */
  1142. void SetTemperatureCabinetAlarmLowRangeStr(char *str);
  1143. /**
  1144. * @brief Нижняя граница температуры
  1145. */
  1146. void SetTemperatureCabinetAlarmLowRangeInt(float value);
  1147. /**
  1148. * @brief Гистерезис (температура)
  1149. */
  1150. void SetTemperatureCabinetAlarmHisteStr(char *str);
  1151. /**
  1152. * @brief Гистерезис (температура)
  1153. */
  1154. void SetTemperatureCabinetAlarmHisteInt(float value);
  1155. #endif
  1156. /**
  1157. * @brief Верхняя граница нагрузки
  1158. */
  1159. void SetLoadAlarmHighRangeStr(char *str);
  1160. /**
  1161. * @brief Верхняя граница нагрузки
  1162. */
  1163. void SetLoadAlarmHighRangeInt(float value);
  1164. /**
  1165. * @brief Гистерезис (нагрузки)
  1166. */
  1167. void SetLoadAlarmHistStr(char *str);
  1168. /**
  1169. * @brief Гистерезис (нагрузки)
  1170. */
  1171. void SetLoadAlarmHistInt(float value);
  1172. void SetEmptyFuncStr(char *str);
  1173. #endif /* #ifndef PARAMETERS_H */
  1174. /********************************* (C) РОТЕК **********************************/