| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #include "paras.h"
- #include "cfg.h"
- AllParasInfo DFLT_PARAS={
- .dev = {
- .product_id = PROD_ID,
- .product_number = "X000001",
- .product_name = "SmartPDU",
- .product_status = "",
- .product_type = PROD_TYPE,
- .product_pwr_type = PROD_POWER_TYPE,
- .product_version = VERSION,
- .product_language = LANGUAGE, //多国语言
- .product_count = CASCADE_CNT, //级联设备数
- .product_samp_time = SMPLE_TIME, //采集周期 单位ms
- .product_save_time = SAVE_TIME, //保存周期 单位ms
-
- ._modbus_info = { //继电器控制端口
- .product_modbus_type = 0, //modbus模式,0: master 1: slave
- .product_modbus_baud = 115200,
- .product_modbus_addr = 1,
- .product_relay_ctrl_port = "/dev/ttyAS5", //继电器modbus控制端口路径
- },
-
- ._network_info = {
- .mode = 1, //0:dhcp 1:static
- .ip_address = "192.168.1.132",
- .mask = "255.255.255.0",
- .gateway = "192.168.1.1",
- .dns1 = "",
- .dns2 = "",
- },
-
- ._gmodbus_info = {
- .product_modbus_type = 0, //modbus模式,0: master 1: slave
- .product_modbus_baud = 115200,
- .product_modbus_addr = 1,
- .product_relay_ctrl_port = "/dev/ttyAS4", //表头级联串口对应路径
- },
- },
- .relay = {
- 0
- },
-
- };
|