parameters.h 36 KB

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