cfg.h 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641
  1. #ifndef __CONFIG_Hx__
  2. #define __CONFIG_Hx__
  3. #define VERSION "V1.3.2"
  4. /////////////customer demannd//////////////////////
  5. //#define PRJ_XIAN_AC_I1_O1_P4
  6. //#define PRJ_XIAN_AC_I1_O1_P8
  7. //#define PRJ_USASL_AC_I3_O1
  8. //#define PRJ_USASL_AC_I3_O3
  9. //#define PRJ_ITK_AC_I1_O1
  10. //#define PRJ_ITK_AC_I3_O1
  11. //#define PRJ_STSC_I3_O3
  12. //#define PRJ_STSC_I3_O1_OLED
  13. //#define PRJ_LITECH_AC_I1_O1
  14. //#define PRJ_LITECH_AC_I3_O1
  15. //#define PRJ_INSPUR_DC_I_DC_O
  16. //#define PRJ_INSPUR_DC_I_DC_O_NEW_96
  17. //#define PRJ_ANDERSON_AC_I3_O3
  18. //#define PRJ_HYPERTEC_AC_I3_O1
  19. //#define PRJ_SG_I3_O3
  20. //#define PRJ_TEST
  21. //#define PRJ_TEST_AC_I1_O1
  22. //#define PRJ_TEST_AC_I3_O1
  23. //#define PRJ_GOWONE_125A_AC_I3_O1
  24. //#define PRJ_Malaysia_AC_I3_O1
  25. //#define PRJ_TEST_AC_I3_O3
  26. //#define PRJ_ESOUTH_DC_I1_O4_RGB5
  27. //#define PRJ_CHANGCHUN_AC_I1_O1_OLED
  28. //#define PRJ_JUNGONG_KEKONG_AC_I1_O1_OLED
  29. #define PRJ_INSPUR_AC_I1_O1
  30. //#define PRJ_TIDA_AC_I3_O1
  31. //#define PRJ_INST2302_DC_OLED
  32. //#define PRJ_INST2106_AC_I1_O1_OLED
  33. //#define PRJ_YST_AC_I1_O1
  34. //#define PRJ_YUNNAN_AC_I1_O1
  35. //#define PRJ_BYD_UPS_AC_I1_O1
  36. //#define PRJ_DUALWIRES_AC_I3_O2
  37. //#define PRJ_2405_AC_I1_O1_OLED
  38. //#define PRJ_IP_AC_I3_O3
  39. //#define PRJ_IP_AC_I3_O1
  40. //#define PRJ_IP_AC_I1_O1
  41. //#define PRJ_IP_YUNNAN_AC_I1_O1
  42. //#define PRJ_IP_CHONGQING_AC_I1_O1
  43. //#define PRJ_IP_AOSENS_AC_I1_O1
  44. //#define PRJ_IP_AOSENS_DC_I_O
  45. //#define PRJ_IP_DEBIAO_AC_I3_O1
  46. #define USE_MAIL
  47. #define MAIL_SEND_BUILTIN
  48. #define CHIP_T113i 0
  49. #define CHIP_T113s 1
  50. #define USE_MQTT
  51. #define MQTT_SERVER_BUILTIN
  52. //#define GNSS_ENABLE //EC200N-CN, 不支持gnss
  53. #define USE_BOARD_UPGRADE
  54. #if (CHIP_TYPE == CHIP_T113s)
  55. #define USE_WATCHDOG
  56. #endif
  57. #if (defined PRJ_XIAN_AC_I1_O1_P4) || (defined PRJ_XIAN_AC_I1_O1_P8) //GOM037
  58. #define LANGUAGE 0 //chinese
  59. #define SMPLE_TIME 30 //ms
  60. #define SAVE_TIME 60000 //ms
  61. #define CASCADE_CNT 0
  62. #define PHASE_GROUP 8
  63. #ifdef PRJ_XIAN_AC_I1_O1_P4
  64. //#define GOM037PDU_GC20_04K_125H //ac_in1_out1_40a_p4_5ch_nologo_cn
  65. #define CHANNEL_DELAY 5
  66. #else
  67. //#define GOM037_PDU_GC10_08K_80H //ac_in1_out1_40a_p8_5ch_nologo_cn
  68. #define CHANNEL_DELAY 8
  69. #endif
  70. #define PROD_POWER_TYPE 0
  71. #define IN_INDEX_MAP {3,2,0,1}
  72. #elif (defined PRJ_TIDA_AC_I3_O1)
  73. #define LANGUAGE 0 //english
  74. #define SMPLE_TIME 30 //ms
  75. #define SAVE_TIME 60000 //ms
  76. #define CASCADE_CNT 0
  77. #define PHASE_GROUP 8
  78. #define CHANNEL_DELAY 8
  79. #define PROD_POWER_TYPE 5
  80. #define USE_BEEP 1
  81. #define USE_LED 1
  82. #define BRD_MAX 6
  83. #elif (defined PRJ_USASL_AC_I3_O1) || (defined PRJ_USASL_AC_I3_O3)
  84. #define LANGUAGE 1 //english
  85. #define SMPLE_TIME 30 //ms
  86. #define SAVE_TIME 60000 //ms
  87. #define CASCADE_CNT 0
  88. #define PHASE_GROUP 8
  89. #define CHANNEL_DELAY 8
  90. //#define PDU_GC40_03K_125H //ac_in3_out3_40a_p8_12ch_nologo_en
  91. //#define PDU_GC60_04K_125H //ac_in3_out1_40a_p4_24ch_nologo_en
  92. #ifdef PRJ_USASL_AC_I3_O1
  93. #define PROD_POWER_TYPE 5
  94. #else
  95. #define PROD_POWER_TYPE 3
  96. #endif
  97. #elif (defined PRJ_ITK_AC_I1_O1) || (defined PRJ_ITK_AC_I3_O1)
  98. #define LANGUAGE 2 //russia
  99. #define SMPLE_TIME 30 //ms
  100. #define SAVE_TIME 60000 //ms
  101. #define CASCADE_CNT 0
  102. #define PHASE_GROUP 8
  103. #define CHANNEL_DELAY 8
  104. #define USE_LOGO_ITK
  105. #ifdef PRJ_ITK_AC_I1_O1
  106. #define PROD_POWER_TYPE 0
  107. #else
  108. #define PROD_POWER_TYPE 5
  109. #endif
  110. #elif (defined PRJ_LITECH_AC_I1_O1) || (defined PRJ_LITECH_AC_I3_O1)
  111. #define LANGUAGE 1 //english
  112. #define SMPLE_TIME 30 //ms
  113. #define SAVE_TIME 60000 //ms
  114. #define CASCADE_CNT 0
  115. #define USE_LOGO_LITECH
  116. #ifdef PRJ_LITECH_AC_I1_O1
  117. #define PHASE_GROUP 8
  118. #define CHANNEL_DELAY 8
  119. #define PROD_POWER_TYPE 0
  120. #else
  121. #define PHASE_GROUP 6
  122. #define CHANNEL_DELAY 6
  123. #define PROD_POWER_TYPE 5
  124. #endif
  125. #elif defined PRJ_STSC_I3_O3
  126. #define LANGUAGE 1 //english
  127. #define SMPLE_TIME 30 //ms
  128. #define SAVE_TIME 60000 //ms
  129. #define CASCADE_CNT 0
  130. #define PHASE_GROUP 8
  131. #define CHANNEL_DELAY 8
  132. #define PROD_POWER_TYPE 3
  133. #define NORTH_USER_SPECILS //north user specification
  134. #elif defined PRJ_STSC_I3_O1_OLED
  135. #define LANGUAGE 0 //english
  136. #define SMPLE_TIME 30 //ms
  137. #define SAVE_TIME 60000 //ms
  138. #define CASCADE_CNT 0
  139. #define PHASE_GROUP 8
  140. #define CHANNEL_DELAY 8
  141. #define PROD_POWER_TYPE 5
  142. #define USE_UI
  143. #define USE_BEEP
  144. #elif defined PRJ_ANDERSON_AC_I3_O3
  145. #define LANGUAGE 1 //english
  146. #define SMPLE_TIME 30 //ms
  147. #define SAVE_TIME 60000 //ms
  148. #define CASCADE_CNT 0
  149. #define PHASE_GROUP 8
  150. #define CHANNEL_DELAY 8
  151. #define USE_NF_CTRL
  152. #define PROD_POWER_TYPE 3
  153. #elif defined PRJ_HYPERTEC_AC_I3_O1
  154. //ac_in3_out1_36ch_nologo_en_hypertec
  155. #define LANGUAGE 1 //english
  156. #define SMPLE_TIME 30 //ms
  157. #define SAVE_TIME 60000 //ms
  158. #define CASCADE_CNT 0
  159. #define PHASE_GROUP 6
  160. #define CHANNEL_DELAY 6
  161. #define USE_LOGO_HYPERTEC
  162. #define PROD_POWER_TYPE 5
  163. #elif defined PRJ_INSPUR_DC_I_DC_O
  164. #define LANGUAGE 0 //chinese
  165. #define SMPLE_TIME 30 //ms
  166. #define SAVE_TIME 60000 //ms
  167. #define CASCADE_CNT 0
  168. #define PHASE_GROUP 6
  169. #define CHANNEL_DELAY 6
  170. #define PROD_POWER_TYPE 1
  171. #elif defined PRJ_INSPUR_DC_I_DC_O_NEW_96
  172. #define LANGUAGE 0 //chinese
  173. #define SMPLE_TIME 30 //ms
  174. #define SAVE_TIME 600000 //ms
  175. #define CASCADE_CNT 0
  176. #define PHASE_GROUP 24
  177. #define CHANNEL_DELAY 24
  178. #define PROD_POWER_TYPE 1
  179. #define USE_WATCHDOG
  180. #define BRD_MAX 15
  181. #elif defined PRJ_SG_I3_O3
  182. #define LANGUAGE 0 //chinese
  183. #define SMPLE_TIME 30 //ms
  184. #define SAVE_TIME 60000 //ms
  185. #define CASCADE_CNT 0
  186. #define PHASE_GROUP 6
  187. #define CHANNEL_DELAY 6
  188. #define PROD_POWER_TYPE 3
  189. #elif defined PRJ_TEST
  190. #define LANGUAGE 0 //chinese
  191. #define SMPLE_TIME 30 //ms
  192. #define SAVE_TIME 60000 //ms
  193. #define CASCADE_CNT 0
  194. #define PHASE_GROUP 8
  195. #define CHANNEL_DELAY 8
  196. #define PROD_POWER_TYPE 5
  197. #elif defined PRJ_TEST_AC_I1_O1
  198. #define LANGUAGE 0 //chinese
  199. #define SMPLE_TIME 30 //ms
  200. #define SAVE_TIME 60000 //ms
  201. #define CASCADE_CNT 0
  202. #define PHASE_GROUP 8
  203. #define CHANNEL_DELAY 8
  204. #define PROD_POWER_TYPE 0
  205. //#define IN_INDEX_MAP {2,3,1,0}
  206. #elif defined PRJ_2405_AC_I1_O1_OLED
  207. #define LANGUAGE 0 //chinese
  208. #define SMPLE_TIME 30 //ms
  209. #define SAVE_TIME 60000 //ms
  210. #define CASCADE_CNT 0
  211. #define PHASE_GROUP 4
  212. #define CHANNEL_DELAY 4
  213. #define PROD_POWER_TYPE 0
  214. #define BRD_MAX 3
  215. #define USE_UI
  216. #elif defined PRJ_CHANGCHUN_AC_I1_O1_OLED
  217. #define LANGUAGE 0 //chinese
  218. #define SMPLE_TIME 30 //ms
  219. #define SAVE_TIME 60000 //ms
  220. #define CASCADE_CNT 0
  221. #define PHASE_GROUP 9
  222. #define CHANNEL_DELAY 9
  223. #define PROD_POWER_TYPE 0
  224. #define BRD_MAX 5
  225. #define ROTATE 180
  226. #define USE_UI
  227. #define USE_WATCHDOG
  228. #define USE_BEEP 1
  229. #define USE_LED 1
  230. #define FLIP_TIME 5
  231. #define SENSOR_ACCESS_NONE
  232. #elif defined PRJ_INSPUR_AC_I1_O1
  233. #define LANGUAGE 0 //chinese
  234. #define SMPLE_TIME 30 //ms
  235. #define SAVE_TIME 60000 //ms
  236. #define CASCADE_CNT 0
  237. #define PHASE_GROUP 20
  238. #define CHANNEL_DELAY 20
  239. #define PROD_POWER_TYPE 0
  240. #define BRD_MAX 6
  241. #define USE_BEEP 1
  242. #define USE_LED 1
  243. #define ROTATE 0
  244. #define USE_WATCHDOG
  245. #define SENSOR_ACCESS_NONE
  246. #elif defined PRJ_JUNGONG_KEKONG_AC_I1_O1_OLED
  247. #define LANGUAGE 0 //chinese
  248. #define SMPLE_TIME 30 //ms
  249. #define SAVE_TIME 60000 //ms
  250. #define CASCADE_CNT 0
  251. #define PHASE_GROUP 3
  252. #define CHANNEL_DELAY 3
  253. #define PROD_POWER_TYPE 0
  254. #define BRD_MAX 5
  255. #define ROTATE 180
  256. #define USE_UI
  257. #define USE_WATCHDOG
  258. #define USE_BEEP 1
  259. #define USE_LED 1
  260. #define FLIP_TIME 5
  261. #elif defined PRJ_TEST_AC_I3_O1
  262. #define LANGUAGE 0 //chinese
  263. #define SMPLE_TIME 30 //ms
  264. #define SAVE_TIME 60000 //ms
  265. #define CASCADE_CNT 0
  266. #define PHASE_GROUP 8
  267. #define CHANNEL_DELAY 8
  268. #define PROD_POWER_TYPE 5
  269. #elif defined PRJ_TEST_AC_I3_O3
  270. #define LANGUAGE 0 //chinese
  271. #define SMPLE_TIME 30 //ms
  272. #define SAVE_TIME 60000 //ms
  273. #define CASCADE_CNT 0
  274. #define PHASE_GROUP 8
  275. #define CHANNEL_DELAY 8
  276. #define PROD_POWER_TYPE 3
  277. #define BRD_MAX 2
  278. #define MONWAY 1
  279. #elif defined PRJ_GOWONE_125A_AC_I3_O1
  280. #define LANGUAGE 1 // //english
  281. #define SMPLE_TIME 30 // ms
  282. #define SAVE_TIME 60000 // ms
  283. #define CASCADE_CNT 0
  284. #define PHASE_GROUP 12
  285. #define CHANNEL_DELAY 12
  286. #define PROD_POWER_TYPE 5
  287. #define USE_WATCHDOG
  288. #define USE_LOGO_GOWONE
  289. #define USE_BEEP 1
  290. #define USE_LED 1
  291. #define BRD_MAX 10
  292. #define SENSOR_ACCESS_NONE
  293. #elif defined PRJ_Malaysia_AC_I3_O1
  294. #define LANGUAGE 1 // //english
  295. #define SMPLE_TIME 30 // ms
  296. #define SAVE_TIME 60000 // ms
  297. #define CASCADE_CNT 0
  298. #define PHASE_GROUP 10
  299. #define CHANNEL_DELAY 10
  300. #define PROD_POWER_TYPE 5
  301. #define USE_WATCHDOG
  302. #define USE_LOGO_LITECH
  303. #define NEW_GPIO
  304. #define USE_BEEP 1
  305. #define USE_LED 1
  306. #define BRD_MAX 8
  307. #elif defined PRJ_IP_AC_I3_O3
  308. #define LANGUAGE 0
  309. #define SMPLE_TIME 30 //ms
  310. #define SAVE_TIME 60000 //ms
  311. #define CASCADE_CNT 0
  312. #define PHASE_GROUP 8
  313. #define CHANNEL_DELAY 8
  314. #define PROD_POWER_TYPE 3
  315. #define NOT_USE_CONTROL
  316. #elif defined PRJ_INST2302_DC_OLED
  317. #define LANGUAGE 0 //chinese
  318. #define SMPLE_TIME 30 //ms
  319. #define SAVE_TIME 60000 //ms
  320. #define CASCADE_CNT 0
  321. #define PHASE_GROUP 8
  322. #define CHANNEL_DELAY 8
  323. #define PROD_POWER_TYPE 1
  324. #define USE_UI
  325. #define USE_SCREEN_LED
  326. //#define USE_SCREEN_LCD
  327. #elif defined PRJ_INST2106_AC_I1_O1_OLED
  328. #define LANGUAGE 0 //chinese
  329. #define SMPLE_TIME 30 //ms
  330. #define SAVE_TIME 60000 //ms
  331. #define CASCADE_CNT 0
  332. #define PHASE_GROUP 8
  333. #define CHANNEL_DELAY 8
  334. #define PROD_POWER_TYPE 0
  335. #define USE_UI
  336. #define ROTATE 180
  337. #define FLIP_TIME 3
  338. #elif defined PRJ_ESOUTH_DC_I1_O4_RGB5
  339. #define LANGUAGE 0 //chinese
  340. #define SMPLE_TIME 30 //ms
  341. #define SAVE_TIME 60000 //ms
  342. #define CASCADE_CNT 0
  343. #define PHASE_GROUP 8
  344. #define CHANNEL_DELAY 8
  345. #define PROD_POWER_TYPE 1
  346. #define SCREEN_RGB
  347. #define USE_WATCHDOG
  348. #define BRD_MAX 10
  349. //#define USE_SMART_DETECTION_CTRL 1
  350. #define NEW_GPIO
  351. #elif defined PRJ_YST_AC_I1_O1
  352. #define LANGUAGE 0 //chinese
  353. #define SMPLE_TIME 30 //ms
  354. #define SAVE_TIME 60000 //ms
  355. #define CASCADE_CNT 0
  356. #define PHASE_GROUP 6
  357. #define CHANNEL_DELAY 6
  358. #define PROD_POWER_TYPE 0
  359. #define USE_BEEP 1
  360. #define USE_LED 1
  361. #define USE_BREAKER_ALARM
  362. #elif defined PRJ_YUNNAN_AC_I1_O1
  363. #define LANGUAGE 0 //chinese
  364. #define SMPLE_TIME 30 //ms
  365. #define SAVE_TIME 60000 //ms
  366. #define CASCADE_CNT 0
  367. #define PHASE_GROUP 8
  368. #define CHANNEL_DELAY 8
  369. #define PROD_POWER_TYPE 0
  370. #define USE_BREAKER_ALARM
  371. #define USE_BEEP 1
  372. #define USE_LED 1
  373. #define USE_Cellular
  374. #define BRD_MAX 5
  375. #elif defined PRJ_BYD_UPS_AC_I1_O1
  376. #define LANGUAGE 0 //chinese
  377. #define SMPLE_TIME 30 //ms
  378. #define SAVE_TIME 60000 //ms
  379. #define CASCADE_CNT 0
  380. #define PHASE_GROUP 6
  381. #define CHANNEL_DELAY 6
  382. #define PROD_POWER_TYPE 0
  383. #define USE_BREAKER_ALARM
  384. #define USE_BEEP 1
  385. #define USE_LED 1
  386. #define BRD_MAX 5
  387. #elif defined PRJ_DUALWIRES_AC_I3_O2
  388. #define LANGUAGE 0 //chinese
  389. #define SMPLE_TIME 30 //ms
  390. #define SAVE_TIME 60000 //ms
  391. #define CASCADE_CNT 0
  392. #define PHASE_GROUP 8
  393. #define CHANNEL_DELAY 8
  394. #define PROD_POWER_TYPE 6
  395. #define BRD_MAX 12
  396. #elif (defined PRJ_IP_AC_I3_O1)
  397. #define LANGUAGE 0
  398. #define SMPLE_TIME 30 //ms
  399. #define SAVE_TIME 60000 //ms
  400. #define CASCADE_CNT 0
  401. #define PHASE_GROUP 8
  402. #define CHANNEL_DELAY 8
  403. #define PROD_POWER_TYPE 5
  404. #define USE_BEEP 1
  405. //#define NOT_USE_CONTROL
  406. #elif (defined PRJ_IP_AC_I1_O1)
  407. #define LANGUAGE 0
  408. #define SMPLE_TIME 30 //ms
  409. #define SAVE_TIME 60000 //ms
  410. #define CASCADE_CNT 0
  411. #define PHASE_GROUP 8
  412. #define CHANNEL_DELAY 8
  413. #define PROD_POWER_TYPE 0
  414. #define USE_BEEP 1
  415. #define USE_LED 1
  416. #elif (defined PRJ_IP_YUNNAN_AC_I1_O1)
  417. #define LANGUAGE 0
  418. #define SMPLE_TIME 30 //ms
  419. #define SAVE_TIME 60000 //ms
  420. #define CASCADE_CNT 0
  421. #define PHASE_GROUP 8
  422. #define CHANNEL_DELAY 8
  423. #define PROD_POWER_TYPE 0
  424. #define USE_BEEP 1
  425. #define USE_LED 1
  426. #define BRD_MAX 1
  427. #define USE_Cellular
  428. #elif (defined PRJ_IP_CHONGQING_AC_I1_O1)
  429. #define LANGUAGE 0
  430. #define SMPLE_TIME 30 //ms
  431. #define SAVE_TIME 60000 //ms
  432. #define CASCADE_CNT 0
  433. #define PHASE_GROUP 8
  434. #define CHANNEL_DELAY 8
  435. #define PROD_POWER_TYPE 0
  436. #define USE_BEEP 1
  437. #define USE_LED 1
  438. #define BRD_MAX 1
  439. #elif (defined PRJ_IP_AOSENS_AC_I1_O1)
  440. #define LANGUAGE 1
  441. #define SMPLE_TIME 30 //ms
  442. #define SAVE_TIME 60000 //ms
  443. #define CASCADE_CNT 0
  444. #define PHASE_GROUP 8
  445. #define CHANNEL_DELAY 8
  446. #define PROD_POWER_TYPE 0
  447. #define USE_BEEP 1
  448. #define USE_LED 1
  449. #define BRD_MAX 1
  450. #define NOT_USE_CONTROL
  451. #elif (defined PRJ_IP_AOSENS_DC_I_O)
  452. #define LANGUAGE 0
  453. #define SMPLE_TIME 30 //ms
  454. #define SAVE_TIME 60000 //ms
  455. #define CASCADE_CNT 0
  456. #define PHASE_GROUP 8
  457. #define CHANNEL_DELAY 8
  458. #define PROD_POWER_TYPE 1
  459. #define USE_BEEP 1
  460. #define USE_LED 1
  461. #define BRD_MAX 1
  462. #elif (defined PRJ_IP_DEBIAO_AC_I3_O1)
  463. #define LANGUAGE 1
  464. #define SMPLE_TIME 30 //ms
  465. #define SAVE_TIME 60000 //ms
  466. #define CASCADE_CNT 0
  467. #define PHASE_GROUP 4
  468. #define CHANNEL_DELAY 8
  469. #define PROD_POWER_TYPE 5
  470. #define USE_BEEP 1
  471. #define BRD_MAX 3
  472. #define USE_LED 1
  473. #else
  474. #error define a PRJ_XXXX please!
  475. #endif
  476. #endif