parameters.h 36 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439
  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 GetRuntimeStr(char *str, uint8_t *len);
  39. void GetRuntimeInt(int32_t *value);
  40. void GetAKBWorktimeStr(char *str, uint8_t *len);
  41. void GetAKBWorktimeInt(int32_t *value);
  42. void GetInternalTempStr(char *str, uint8_t *len);
  43. void GetInternalTempInt(float *value);
  44. /**
  45. * @brief
  46. */
  47. void GetAlarmMonitorStr(char *str, uint8_t *len);
  48. void GetConnectMonitorStr(char *str, uint8_t *len);
  49. void GetModeStr(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 IP-адрес
  290. */
  291. void GetPortGwIpStr(char *str, uint8_t *len);
  292. /**
  293. * @brief Сетевой порт
  294. */
  295. void GetPortGwPortnumStr(char *str, uint8_t *len);
  296. /**
  297. * @brief Скорость передачи данных
  298. */
  299. void GetPortGwBaudStr(char *str, uint8_t *len);
  300. /**
  301. * @brief Четность
  302. */
  303. void GetPortGwParityStr(char *str, uint8_t *len);
  304. /**
  305. * @brief Число бит данных
  306. */
  307. void GetPortGwDatabitsStr(char *str, uint8_t *len);
  308. /**
  309. * @brief Число стоп-бит
  310. */
  311. void GetPortGwStopbitsStr(char *str, uint8_t *len);
  312. #endif
  313. #ifdef DALLAS_SENSOR_ENABLE
  314. // ************************************************************************** //
  315. // Параметры датчика температуры
  316. /**
  317. * @brief Размещение датчика температуры 1
  318. */
  319. void GetTS1locationStr(char *str, uint8_t *len);
  320. /**
  321. * @brief Размещение датчика температуры 2
  322. */
  323. void GetTS2locationStr(char *str, uint8_t *len);
  324. #endif
  325. // ************************************************************************** //
  326. // Параметры SNMP
  327. /**
  328. * @brief Текущее TRAP community
  329. */
  330. void GetTrapCommunity(char *str, uint8_t *len);
  331. /**
  332. * @brief Текущее community для чтения
  333. */
  334. void GetReadCommunity(char *str, uint8_t *len);
  335. /**
  336. * @brief Текущее community для записи
  337. */
  338. void GetWriteCommunity(char *str, uint8_t *len);
  339. /**
  340. * @brief IP SNMP менеджера
  341. */
  342. void GetManagerIp(char *str, uint8_t *len);
  343. void GetManagerIp2(char *str, uint8_t *len);
  344. void GetManagerIp3(char *str, uint8_t *len);
  345. void GetManagerIp4(char *str, uint8_t *len);
  346. void GetManagerIp5(char *str, uint8_t *len);
  347. #ifdef RADIUS_SERVER_ENABLE
  348. // ************************************************************************** //
  349. // Параметры RADIUS
  350. /**
  351. * @brief Текущий IP адрес
  352. */
  353. void GetRDSIpStr(char *str, uint8_t *len);
  354. /**
  355. * @brief Текущий Порт
  356. */
  357. void GetRDSPortStr(char *str, uint8_t *len);
  358. /**
  359. * @brief Текущий Код access
  360. */
  361. void GetRDSKeyAccesstStr(char *str, uint8_t *len);
  362. /**
  363. * @brief Текущая пароль RADIUS
  364. */
  365. void GetRDSPasswordkStr(char *str, uint8_t *len);
  366. /**
  367. * @brief Настройка вкл/ выкл RADIUS сервера
  368. */
  369. void GetRDSEnableStateStr(char *str, uint8_t *len);
  370. void GetRADIUSEnableStrRU(char *str, uint8_t *len);
  371. /**
  372. * @brief Настройка вкл/ выкл авторизации
  373. */
  374. void GetAuthEnableStateStr(char *str, uint8_t *len);
  375. #endif
  376. #ifndef BT6702_SERVICE
  377. // ************************************************************************** //
  378. // Температура с внешних датчиков
  379. #ifdef DALLAS_SENSOR_ENABLE
  380. /**
  381. * @brief
  382. */
  383. void GetTempCaseStr(char *str, uint8_t *len);
  384. /**
  385. * @brief
  386. */
  387. void GetTempCaseInt(float *value);
  388. #endif
  389. #endif
  390. // ************************************************************************** //
  391. // Параметры реле/сухих контактов
  392. #ifdef DINS_ENABLE
  393. /**
  394. * @brief Тип действий при срабатывание сухих контактов
  395. */
  396. void GetDINTypeActStr(char *str, uint8_t *len, uint8_t num);
  397. /**
  398. * @brief Тип действий при срабатывание сухих контактов
  399. */
  400. void GetDIN0TypeActStr(char *str, uint8_t *len);
  401. /**
  402. * @brief Тип действий при срабатывание сухих контактов
  403. */
  404. void GetDIN1TypeActStr(char *str, uint8_t *len);
  405. /**
  406. * @brief Имя сухого контакта
  407. */
  408. void GetDINNameStr(char *str, uint8_t *len, uint8_t num);
  409. /**
  410. * @brief Имя сухого контакта
  411. */
  412. void GetDIN0NameStr(char *str, uint8_t *len);
  413. /**
  414. * @brief Имя сухого контакта
  415. */
  416. void GetDIN1NameStr(char *str, uint8_t *len);
  417. /**
  418. * @brief Состояние сухого контакта
  419. */
  420. void GetDINStatusStr(char *str, uint8_t *len, uint8_t num);
  421. /**
  422. * @brief Состояние сухого контакта
  423. */
  424. void GetDIN0StatusStr(char *str, uint8_t *len);
  425. /**
  426. * @brief Состояние сухого контакта
  427. */
  428. void GetDIN1StatusStr(char *str, uint8_t *len);
  429. /**
  430. * @brief Состояние сухого контакта
  431. */
  432. void GetDIN0StatusStrRU(char *str, uint8_t *len);
  433. #endif
  434. #ifdef DOUTS_ENABLE
  435. /**
  436. * @brief Источник срабатывания реле
  437. */
  438. void GetROTypeActStr(char *str, uint8_t *len, uint8_t num);
  439. /**
  440. * @brief Источник срабатывания реле
  441. */
  442. void GetRO0TypeActStr(char *str, uint8_t *len);
  443. /**
  444. * @brief Источник срабатывания реле
  445. */
  446. void GetRO1TypeActStr(char *str, uint8_t *len);
  447. /**
  448. * @brief Источник срабатывания реле
  449. */
  450. void GetRO2TypeActStr(char *str, uint8_t *len);
  451. /**
  452. * @brief Состояние релейного выхода
  453. */
  454. void GetDOUTStatusStr(char *str, uint8_t *len, uint8_t num);
  455. /**
  456. * @brief Состояние релейного выхода
  457. */
  458. void GetDOUTStatusStrRU(char *str, uint8_t *len, uint8_t num);
  459. /**
  460. * @brief Состояние релейного выхода
  461. */
  462. void GetDOUT0StatusStr(char *str, uint8_t *len);
  463. /**
  464. * @brief Состояние релейного выхода
  465. */
  466. void GetDOUT1StatusStr(char *str, uint8_t *len);
  467. /**
  468. * @brief Состояние релейного выхода
  469. */
  470. void GetDOUT2StatusStr(char *str, uint8_t *len);
  471. #endif
  472. #ifdef TELNET_ENABLE
  473. // ************************************************************************** //
  474. // Параметры Telnet
  475. /**
  476. * @brief Текущий Порт
  477. */
  478. void GetTelnetPortStr(char *str, uint8_t *len);
  479. /**
  480. * @brief Настройка вкл/ выкл Telnet сервера
  481. */
  482. void GetTelnetEnableStateStr(char *str, uint8_t *len);
  483. // ************************************************************************** //
  484. // Параметры SSH
  485. /**
  486. * @brief Текущий Порт
  487. */
  488. void GetSSHPortStr(char *str, uint8_t *len);
  489. /**
  490. * @brief Настройка вкл/ выкл SSH сервера
  491. */
  492. void GetSSHEnableStateStr(char *str, uint8_t *len);
  493. #endif
  494. #ifdef FTP_ENABLE
  495. // ************************************************************************** //
  496. // Параметры FTP
  497. void GetFTPServer(char *str, uint8_t *len);
  498. void GetFTPPort(char *str, uint8_t *len);
  499. void GetFTPPath(char *str, uint8_t *len);
  500. void GetFTPLogin(char *str, uint8_t *len);
  501. void GetFTPPassword(char *str, uint8_t *len);
  502. // ************************************************************************** //
  503. // Параметры Syslog
  504. void GetSyslogEnable(char *str, uint8_t *len);
  505. void GetSyslogEnableStrRU(char *str, uint8_t *len);
  506. void GetSyslogServer(char *str, uint8_t *len);
  507. void GetSyslogPort(char *str, uint8_t *len);
  508. #endif // FTP_ENABLE
  509. // ************************************************************************** //
  510. // Флаги
  511. /**
  512. * @brief Установить признак изменения сетевых параметров
  513. */
  514. void GetWebReinitFlag(char *str, uint8_t *len);
  515. // ************************************************************************** //
  516. // Параметры настройки ИБП
  517. /**
  518. * @brief Минимальное напряжение на ячейках АКБ
  519. */
  520. void GetUPSVoltCellMinStr(char *str, uint8_t *len);
  521. /**
  522. * @brief Минимальное напряжение на ячейках АКБ
  523. */
  524. void GetUPSVoltCellMinInt(float *value);
  525. /**
  526. * @brief Максимальное напряжение на ячейках АКБ
  527. */
  528. void GetUPSVoltCellMaxStr(char *str, uint8_t *len);
  529. /**
  530. * @brief Максимальное напряжение на ячейках АКБ
  531. */
  532. void GetUPSVoltCellMaxInt(float *value);
  533. /**
  534. * @brief Дата замены АКБ
  535. */
  536. void GetDataNextChangeAKBStrRU(char *str, uint8_t *len);
  537. /**
  538. * @brief Дата замены АКБ
  539. */
  540. void GetDataNextChangeAKBStr(char *str, uint8_t *len);
  541. /**
  542. * @brief Дата установки АКБ
  543. */
  544. void GetDataSetAKBStr(char *str, uint8_t *len);
  545. /**
  546. * @brief Срок службы АКБ
  547. */
  548. void GetLifeTimeAKBStr(char *str, uint8_t *len);
  549. /**
  550. * @brief Номинальное напряжение АКБ
  551. */
  552. void GetVoltageAKBNominalStr(char *str, uint8_t *len);
  553. /**
  554. * @brief Полная мощность АКБ
  555. */
  556. void GetUPSPowerStr(char *str, uint8_t *len);
  557. /**
  558. * @brief Полная мощность АКБ
  559. */
  560. void GetUPSPowerEnumStr(char *str, uint8_t *len);
  561. /**
  562. * @brief КПД ИБП
  563. */
  564. void GetUPSEfficiencyFactorInt(float *value);
  565. /**
  566. * @brief Емкость АКБ
  567. */
  568. void GetCapacityNominalAKBStr(char *str, uint8_t *len);
  569. /**
  570. * @brief Емкость АКБ
  571. */
  572. void GetCapacityNominalAKBInt(int32_t *value);
  573. // ************************************************************************** //
  574. // Параметры менеджера аварийных событий
  575. /**
  576. * @brief Верхняя граница VAC
  577. */
  578. void GetVACAlarmHighRangeStr(char *str, uint8_t *len);
  579. /**
  580. * @brief Верхняя граница VAC
  581. */
  582. void GetVACAlarmHighRangeInt(int32_t *value);
  583. /**
  584. * @brief Нижняя граница VAC
  585. */
  586. void GetVACAlarmLowRangeStr(char *str, uint8_t *len);
  587. /**
  588. * @brief Нижняя граница VAC
  589. */
  590. void GetVACAlarmLowRangeInt(int32_t *value);
  591. /**
  592. * @brief Гистерезис (VAC)
  593. */
  594. void GetVACAlarmHisteStr(char *str, uint8_t *len);
  595. /**
  596. * @brief Гистерезис (VAC)
  597. */
  598. void GetVACAlarmHisteInt(float *value);
  599. #ifdef VAC_IN_MONITOR
  600. /**
  601. * @brief Верхняя граница входящего напряжения
  602. */
  603. void GetVACInputAlarmHighRangeStr(char *str, uint8_t *len);
  604. /**
  605. * @brief Верхняя граница входящего напряжения
  606. */
  607. void GetVACInputAlarmHighRangeInt(int32_t *value);
  608. /**
  609. * @brief Нижняя граница входящего напряжения
  610. */
  611. void GetVACInputAlarmLowRangeStr(char *str, uint8_t *len);
  612. /**
  613. * @brief Нижняя граница входящего напряжения
  614. */
  615. void GetVACInputAlarmLowRangeInt(int32_t *value);
  616. /**
  617. * @brief Гистерезис входящего напряжения
  618. */
  619. void GetVACinputAlarmHisteStr(char *str, uint8_t *len);
  620. /**
  621. * @brief Гистерезис входящего напряжения
  622. */
  623. void GetVACinputAlarmHisteInt(float *value);
  624. #endif
  625. /**
  626. * @brief Верхняя граница температуры
  627. */
  628. void GetTemperatureAlarmHighRangeStr(char *str, uint8_t *len);
  629. /**
  630. * @brief Верхняя граница температуры
  631. */
  632. void GetTemperatureAlarmHighRangeInt(int32_t *value);
  633. /**
  634. * @brief Нижняя граница температуры
  635. */
  636. void GetTemperatureAlarmLowRangeStr(char *str, uint8_t *len);
  637. /**
  638. * @brief Нижняя граница температуры
  639. */
  640. void GetTemperatureAlarmLowRangeInt(int32_t *value);
  641. /**
  642. * @brief Гистерезис (температура)
  643. */
  644. void GetTemperatureAlarmHisteStr(char *str, uint8_t *len);
  645. /**
  646. * @brief Гистерезис (температура)
  647. */
  648. void GetTemperatureAlarmHisteInt(float *value);
  649. #if !(HARDWARE_BT6709 || HARDWARE_BT6709_MTS)
  650. /**
  651. * @brief Верхняя граница температуры
  652. */
  653. void GetTemperatureCabinetAlarmHighRangeStr(char *str, uint8_t *len);
  654. /**
  655. * @brief Верхняя граница температуры
  656. */
  657. void GetTemperatureCabinetAlarmHighRangeInt(int32_t *value);
  658. /**
  659. * @brief Нижняя граница температуры
  660. */
  661. void GetTemperatureCabinetAlarmLowRangeStr(char *str, uint8_t *len);
  662. /**
  663. * @brief Нижняя граница температуры
  664. */
  665. void GetTemperatureCabinetAlarmLowRangeInt(int32_t *value);
  666. /**
  667. * @brief Гистерезис (температура)
  668. */
  669. void GetTemperatureCabinetAlarmHisteStr(char *str, uint8_t *len);
  670. /**
  671. * @brief Гистерезис (температура)
  672. */
  673. void GetTemperatureCabinetAlarmHisteInt(float *value);
  674. #endif
  675. /**
  676. * @brief Верхняя граница нагрузки
  677. */
  678. void GetLoadAlarmHighRangeStr(char *str, uint8_t *len);
  679. /**
  680. * @brief Верхняя граница нагрузки
  681. */
  682. void GetLoadAlarmHighRangeInt(int32_t *value);
  683. /**
  684. * @brief Гистерезис (нагрузки)
  685. */
  686. void GetLoadAlarmHisteStr(char *str, uint8_t *len);
  687. /**
  688. * @brief Гистерезис (нагрузки)
  689. */
  690. void GetLoadAlarmHisteInt(float *value);
  691. // ************************************************************************** //
  692. // Установка параметрв
  693. // ************************************************************************** //
  694. /**
  695. * @brief Установить признак обновления ПО.
  696. */
  697. void SetLoadMode(void);
  698. /**
  699. * @brief Установить признак изменения сетевых параметров
  700. */
  701. void SetWebReinitFlag(bool value);
  702. /**
  703. * @brief Установить флаг подтверждения сетевых настроек пользователем
  704. */
  705. void SetConfirmWebParamsFlag(void);
  706. #ifdef NOTIFICATION_CONTROL_ENABLE
  707. // ************************************************************************** //
  708. // Параметры уведомления
  709. /**
  710. * @brief Параметр разрешения отправки
  711. */
  712. void SetNotificationFlagsStr(uint8_t *value, uint8_t num);
  713. #endif
  714. // ************************************************************************** //
  715. // Сетевые параметры
  716. /**
  717. * @brief IP адрес
  718. */
  719. void SetIPStr(char *str);
  720. /**
  721. * @brief Шлюз
  722. */
  723. void SetGatewayStr(char *str);
  724. /**
  725. * @brief Текущая маска подсети
  726. */
  727. void SetMaskStr(char *str);
  728. /**
  729. * @brief Настройка DHCP
  730. */
  731. void SetDhcpStateStr(char *str);
  732. /**
  733. * @brief Настройка DHCP
  734. */
  735. void SetUDPDhcpStateStr(char *str);
  736. #ifdef WHITELIST_ENABLE
  737. // ************************************************************************** //
  738. // Параметры довверительных хостов
  739. /**
  740. * @brief диапазон доверительных хостов
  741. */
  742. void SetWhiteListSTR(char *str, uint8_t num);
  743. /**
  744. * @brief Первый диапазон доверительных хостов
  745. */
  746. void SetWhiteList1STR(char *str);
  747. /**
  748. * @brief Второй диапазон доверительных хостов
  749. */
  750. void SetWhiteList2STR(char *str);
  751. /**
  752. * @brief Третий диапазон доверительных хостов
  753. */
  754. void SetWhiteList3STR(char *str);
  755. /**
  756. * @brief Четвертый диапазон доверительных хостов
  757. */
  758. void SetWhiteList4STR(char *str);
  759. /**
  760. * @brief Пятый диапазон доверительных хостов
  761. */
  762. void SetWhiteList5STR(char *str);
  763. #endif
  764. #ifdef PORTGW_ENABLE
  765. // ************************************************************************** //
  766. // Параметры прозрачного порта
  767. /**
  768. * @brief Включен/Выключен
  769. */
  770. void SetPortGwEnabledStr(char *str);
  771. /**
  772. * @brief Сетевой порт
  773. */
  774. void SetPortGwPortnumStr(char *str);
  775. /**
  776. * @brief Скорость передачи данных
  777. */
  778. void SetPortGwBaudStr(char *str);
  779. /**
  780. * @brief Четность
  781. */
  782. void SetPortGwParityStr(char *str);
  783. /**
  784. * @brief Число бит данных
  785. */
  786. void SetPortGwDatabitsStr(char *str);
  787. /**
  788. * @brief Число стоп-бит
  789. */
  790. void SetPortGwStopbitsStr(char *str);
  791. #endif
  792. #ifdef DALLAS_SENSOR_ENABLE
  793. // ************************************************************************** //
  794. // Параметры датчика температуры
  795. /**
  796. * @brief Размещение датчика температуры 1
  797. */
  798. void SetTS1locationStr(char *str);
  799. /**
  800. * @brief Размещение датчика температуры 2
  801. */
  802. void SetTS2locationStr(char *str);
  803. #endif
  804. // ************************************************************************** //
  805. // Параметры SNMP
  806. /**
  807. * @brief TRAP community
  808. */
  809. void SetTrapCommunity(char *str);
  810. /**
  811. * @brief Community для чтения
  812. */
  813. void SetReadCommunity(char *str);
  814. /**
  815. * @brief Community для записи
  816. */
  817. void SetWriteCommunity(char *str);
  818. /**
  819. * @brief IP SNMP менеджера
  820. */
  821. void SetManagerIp(char *str);
  822. void SetManagerIp2(char *str);
  823. void SetManagerIp3(char *str);
  824. void SetManagerIp4(char *str);
  825. void SetManagerIp5(char *str);
  826. /**
  827. * @brief Название устройсва устройства
  828. */
  829. void SetNameDeviceStr(char *str);
  830. /**
  831. * @brief Установить владельца
  832. */
  833. void SetOwner(char *str);
  834. /**
  835. * @brief Установить местоположение
  836. */
  837. void SetLocation(char *str);
  838. /**
  839. * @brief Установить комментарий
  840. */
  841. void SetComment(char *str);
  842. #ifdef RADIUS_SERVER_ENABLE
  843. // ************************************************************************** //
  844. // Сетевые параметры RADIUS сервера
  845. /**
  846. * @brief IP адрес
  847. */
  848. void SetRDSIpStr(char *str);
  849. /**
  850. * @brief Порт
  851. */
  852. void SetRDSPortStr(char *str);
  853. /**
  854. * @brief Код access
  855. */
  856. void SetRDSKeyAccesstStr(char *str);
  857. /**
  858. * @brief пароль RADIUS
  859. */
  860. void SetRDSPasswordkStr(char *str);
  861. /**
  862. * @brief Настройка вкл/ выкл RADIUS сервера
  863. */
  864. void SetRDSEnableStateStr(char *str);
  865. /**
  866. * @brief Настройка вкл/ выкл авторизации
  867. */
  868. void SetAuthEnableStateStr(char *str);
  869. #endif
  870. #ifdef TELNET_ENABLE
  871. // ************************************************************************** //
  872. // Параметры Telnet
  873. /**
  874. * @brief Текущий Порт
  875. */
  876. void SetTelnetPortStr(char *str);
  877. /**
  878. * @brief Настройка вкл/ выкл Telnet сервера
  879. */
  880. void SetTelnetEnableStateStr(char *str);
  881. // ************************************************************************** //
  882. // Параметры SSH
  883. /**
  884. * @brief Текущий Порт
  885. */
  886. void SetSSHPortStr(char *str);
  887. /**
  888. * @brief Настройка вкл/ выкл SSH сервера
  889. */
  890. void SetSSHEnableStateStr(char *str);
  891. #endif
  892. #ifdef SYSLOG_ENABLE
  893. // ************************************************************************** //
  894. // Параметры Syslog
  895. void SetSyslogEnable(char *str);
  896. void SetSyslogServer(char *str);
  897. void SetSyslogPort(char *str);
  898. #endif // SYSLOG_ENABLE
  899. // ************************************************************************** //
  900. // Параметры даты и времени
  901. /**
  902. * @brief Дата
  903. */
  904. void SetDateStr(char *str);
  905. /**
  906. * @brief Время
  907. */
  908. void SetTimeStr(char *str);
  909. /**
  910. * @brief Время
  911. */
  912. void SetTimeWebStr(char *str);
  913. // ************************************************************************** //
  914. // Параметры SNTP
  915. /**
  916. * @brief Состояние SNTP
  917. */
  918. void SetSntpStateStr(char *str);
  919. /**
  920. * @brief IP адрес SNTP сервера
  921. */
  922. void SetSntpServerIpStr(char *str);
  923. /**
  924. * @brief Часовой пояс контроллера
  925. */
  926. void SetSntpTimeZoneStr(char *str);
  927. // ************************************************************************** //
  928. // Параметры реле/сухих контактов
  929. #ifdef DINS_ENABLE
  930. /**
  931. * @brief Тип действий при срабатывание сухих контактов
  932. */
  933. void SetDINTypeActStr(char *str, uint8_t num);
  934. /**
  935. * @brief Тип действий при срабатывание сухих контактов
  936. */
  937. void SetDIN0TypeActStr(char *str);
  938. /**
  939. * @brief Тип действий при срабатывание сухих контактов
  940. */
  941. void SetDIN1TypeActStr(char *str);
  942. /**
  943. * @brief Имя сухого контакта
  944. */
  945. void SetDINNameStr(char *str, uint8_t num);
  946. /**
  947. * @brief Имя сухого контакта
  948. */
  949. void SetDIN0NameStr(char *str);
  950. /**
  951. * @brief Имя сухого контакта
  952. */
  953. void SetDIN1NameStr(char *str);
  954. #endif
  955. #ifdef DOUTS_ENABLE
  956. /**
  957. * @brief Источник срабатывания реле
  958. */
  959. void SetROTypeActStr(char *str, uint8_t num);
  960. /**
  961. * @brief Источник срабатывания реле 1
  962. */
  963. void SetRO1TypeActStr(char *str);
  964. /**
  965. * @brief Источник срабатывания реле 2
  966. */
  967. void SetRO2TypeActStr(char *str);
  968. /**
  969. * @brief Источник срабатывания реле 3
  970. */
  971. void SetRO3TypeActStr(char *str);
  972. /**
  973. * @brief
  974. */
  975. void SetROStr(char *str, uint8_t num);
  976. /**
  977. * @brief
  978. */
  979. void SetROInt(uint8_t val, uint8_t num);
  980. #endif
  981. // ************************************************************************** //
  982. // Параметры настройки ИБП
  983. /**
  984. * @brief Минимальное напряжение на ячейках АКБ
  985. */
  986. void SetUPSVoltCellMinStr(char *str);
  987. /**
  988. * @brief Минимальное напряжение на ячейках АКБ
  989. */
  990. void SetUPSVoltCellMinInt(float value);
  991. /**
  992. * @brief Максимальное напряжение на ячейках АКБ
  993. */
  994. void SetUPSVoltCellMaxStr(char *str);
  995. /**
  996. * @brief Максимальное напряжение на ячейках АКБ
  997. */
  998. void SetUPSVoltCellMaxInt(float value);
  999. /**
  1000. * @brief Дата установки АКБ
  1001. */
  1002. void SetDataSetAKBStr(char *str);
  1003. /**
  1004. * @brief Срок службы АКБ
  1005. */
  1006. void SetLifeTimeAKBStr(char *str);
  1007. /**
  1008. * @brief Номинальное напряжение АКБ
  1009. */
  1010. void SetVoltageAKBNominalStr(char *str);
  1011. /**
  1012. * @brief Полная мощность АКБ
  1013. */
  1014. void SetUPSPowerStr(char *str);
  1015. /**
  1016. * @brief Полная мощность АКБ
  1017. */
  1018. void SetUPSPowerEnumStr(char *str);
  1019. /**
  1020. * @brief Емкость АКБ
  1021. */
  1022. void SetCapacityNominalAKBStr(char *str);
  1023. /**
  1024. * @brief Серийный номер ИБП
  1025. */
  1026. void SetUPSSerialStr(char *str);
  1027. // ************************************************************************** //
  1028. // Параметры менеджера аварий
  1029. /**
  1030. * @brief Верхняя граница VAC
  1031. */
  1032. void SetVACAlarmHighRangeStr(char *str);
  1033. /**
  1034. * @brief Верхняя граница VAC
  1035. */
  1036. void SetVACAlarmHighRangeInt(float value);
  1037. /**
  1038. * @brief Нижняя граница VAC
  1039. */
  1040. void SetVACAlarmLowRangeStr(char *str);
  1041. /**
  1042. * @brief Нижняя граница VAC
  1043. */
  1044. void SetVACAlarmLowRangeInt(float value);
  1045. /**
  1046. * @brief Гистерезис (VAC)
  1047. */
  1048. void SetVACAlarmHisteStr(char *str);
  1049. /**
  1050. * @brief Гистерезис (VAC)
  1051. */
  1052. void SetVACAlarmHisteInt(float value);
  1053. #ifdef VAC_IN_MONITOR
  1054. /**
  1055. * @brief Верхняя граница входящего напряжения
  1056. */
  1057. void SetVACInputAlarmHighRangeStr(char *str);
  1058. /**
  1059. * @brief Верхняя граница входящего напряжения
  1060. */
  1061. void SetVACInputAlarmHighRangeInt(float value);
  1062. /**
  1063. * @brief Нижняя граница входящего напряжения
  1064. */
  1065. void SetVACInputAlarmLowRangeStr(char *str);
  1066. /**
  1067. * @brief Нижняя граница входящего напряжения
  1068. */
  1069. void SetVACInputAlarmLowRangeInt(float value);
  1070. /**
  1071. * @brief Гистерезис входящего напряжения
  1072. */
  1073. void SetVACinputAlarmHisteStr(char *str);
  1074. /**
  1075. * @brief Гистерезис входящего напряжения
  1076. */
  1077. void SetVACinputAlarmHisteInt(float value);
  1078. #endif
  1079. /**
  1080. * @brief Верхняя граница температуры
  1081. */
  1082. void SetTemperatureAlarmHighRangeStr(char *str);
  1083. /**
  1084. * @brief Верхняя граница температуры
  1085. */
  1086. void SetTemperatureAlarmHighRangeInt(float value);
  1087. /**
  1088. * @brief Нижняя граница температуры
  1089. */
  1090. void SetTemperatureAlarmLowRangeStr(char *str);
  1091. /**
  1092. * @brief Нижняя граница температуры
  1093. */
  1094. void SetTemperatureAlarmLowRangeInt(float value);
  1095. /**
  1096. * @brief Гистерезис (температура)
  1097. */
  1098. void SetTemperatureAlarmHisteStr(char *str);
  1099. /**
  1100. * @brief Гистерезис (температура)
  1101. */
  1102. void SetTemperatureAlarmHisteInt(float value);
  1103. #if !(HARDWARE_BT6709 || HARDWARE_BT6709_MTS)
  1104. /**
  1105. * @brief Верхняя граница температуры
  1106. */
  1107. void SetTemperatureCabinetAlarmHighRangeStr(char *str);
  1108. /**
  1109. * @brief Верхняя граница температуры
  1110. */
  1111. void SetTemperatureCabinetAlarmHighRangeInt(float value);
  1112. /**
  1113. * @brief Нижняя граница температуры
  1114. */
  1115. void SetTemperatureCabinetAlarmLowRangeStr(char *str);
  1116. /**
  1117. * @brief Нижняя граница температуры
  1118. */
  1119. void SetTemperatureCabinetAlarmLowRangeInt(float value);
  1120. /**
  1121. * @brief Гистерезис (температура)
  1122. */
  1123. void SetTemperatureCabinetAlarmHisteStr(char *str);
  1124. /**
  1125. * @brief Гистерезис (температура)
  1126. */
  1127. void SetTemperatureCabinetAlarmHisteInt(float value);
  1128. #endif
  1129. /**
  1130. * @brief Верхняя граница нагрузки
  1131. */
  1132. void SetLoadAlarmHighRangeStr(char *str);
  1133. /**
  1134. * @brief Верхняя граница нагрузки
  1135. */
  1136. void SetLoadAlarmHighRangeInt(float value);
  1137. /**
  1138. * @brief Гистерезис (нагрузки)
  1139. */
  1140. void SetLoadAlarmHistStr(char *str);
  1141. /**
  1142. * @brief Гистерезис (нагрузки)
  1143. */
  1144. void SetLoadAlarmHistInt(float value);
  1145. void SetEmptyFuncStr(char *str);
  1146. #endif /* #ifndef PARAMETERS_H */
  1147. /********************************* (C) РОТЕК **********************************/