parameters.h 37 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472
  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 Включен/Выключен
  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) РОТЕК **********************************/