dflt.c 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #include "paras.h"
  2. #include "cfg.h"
  3. AllParasInfo DFLT_PARAS={
  4. .dev = {
  5. .product_id = PROD_ID,
  6. .product_number = "X000001",
  7. .product_name = "SmartPDU",
  8. .product_status = "",
  9. .product_type = PROD_TYPE,
  10. .product_pwr_type = PROD_POWER_TYPE,
  11. .product_version = VERSION,
  12. .product_language = LANGUAGE, //多国语言
  13. .product_count = CASCADE_CNT, //级联设备数
  14. .product_samp_time = SMPLE_TIME, //采集周期 单位ms
  15. .product_save_time = SAVE_TIME, //保存周期 单位ms
  16. ._modbus_info = { //继电器控制端口
  17. .product_modbus_type = 0, //modbus模式,0: master 1: slave
  18. .product_modbus_baud = 115200,
  19. .product_modbus_addr = 1,
  20. .product_relay_ctrl_port = "/dev/ttyAS5", //继电器modbus控制端口路径
  21. },
  22. ._network_info = {
  23. .mode = 1, //0:dhcp 1:static
  24. .ip_address = "192.168.1.132",
  25. .mask = "255.255.255.0",
  26. .gateway = "192.168.1.1",
  27. .dns1 = "",
  28. .dns2 = "",
  29. },
  30. ._gmodbus_info = {
  31. .product_modbus_type = 0, //modbus模式,0: master 1: slave
  32. .product_modbus_baud = 115200,
  33. .product_modbus_addr = 1,
  34. .product_relay_ctrl_port = "/dev/ttyAS4", //表头级联串口对应路径
  35. },
  36. },
  37. .relay = {
  38. 0
  39. },
  40. };