45 lines
4.5 KiB
XML
45 lines
4.5 KiB
XML
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|||
|
|
<parameters>
|
|||
|
|
<!-- cloud_interact与cloud_router运行参数均于此配置。 -->
|
|||
|
|
<!-- commu_config.receive_with_check: 接收数据是否检查首尾字符,默认为0。启用该选项,程序会逐个字节判定首尾是否接收完整,终端接收数据效率会有所降低。 -->
|
|||
|
|
<!-- commu_config.login_timeout: 登录超时时间,程序发送登录请求后最多等待该时间接收登录响应(同步方式),单位: 毫秒,默认5000毫秒。 -->
|
|||
|
|
<!-- commu_config.receive_timeout: 接收总超时时间,程序最多循环等待该时间接收数据(异步方式),单位: 毫秒,默认100毫秒。 -->
|
|||
|
|
<!-- commu_config.receive_interval: 接收等待间隔,即两次接收数据(调用recv)之间的等待时间,单位: 毫秒,默认20毫秒。 -->
|
|||
|
|
<!-- commu_config.downstream_command_timeout: 下行命令等待超时,即cloud_interact接收云平台下发命令并通过接口提交给manage/logic执行后,最大等待时间。
|
|||
|
|
超过该时间manage/logic未通过接口更新命令结果,则cloud_interact告知云平台执行超时,单位: 毫秒,默认5000毫秒。 -->
|
|||
|
|
<!-- commu_config.upgrading_allowable_signal_timeout: 升级允许信号等待超时,单位:秒,默认:120秒。即cloud_interact接收云平台下发升级指令,且升级条件满足后,通过接口告知manage/logic准备升级,最大等待时间。
|
|||
|
|
超过该时间manage/logic未通过接口通知允许升级,cloud_interact则放弃此次升级。 -->
|
|||
|
|
<!-- commu_config.threshold_of_print_communication_time: 打印通讯时间的阈值,即每次数据上报与接收耗时超过此值,则会记录一条日志。单位: 毫秒,默认10000毫秒 -->
|
|||
|
|
<!-- commu_config.output_debug_file: 是否保存调试文件,默认: false -->
|
|||
|
|
<!-- upload_strategy.config_max_retries: 配置最大上报重试次数,默认5次。 -->
|
|||
|
|
<!-- upload_strategy.config_retry_interval: 配置重试上报间隔时间,单位: 秒,默认10秒。 -->
|
|||
|
|
<!-- upload_strategy.data_max_retries: 数据最大上报重试次数,默认3次。 -->
|
|||
|
|
<!-- upload_strategy.data_retry_interval: 数据重试上报间隔时间,单位: 秒,默认5秒。 -->
|
|||
|
|
<!-- upload_strategy.use_old_devid_rule:1-则按旧规则生成ABMS/CBMS设备id/0-则按新规则生成ABMS/CBMS设备id。2200及其以上版本新建电站,则无需此配置项。 -->
|
|||
|
|
<!-- socket_options.send_timeout: TCP发送超时时间,单位: 毫秒,默认50毫秒。该参数通过setsockopt设置socket属性-SO_SNDTIMEO。 -->
|
|||
|
|
<!-- socket_options.recv_timeout: TCP接收超时时间,单位: 毫秒,默认50毫秒。该参数通过setsockopt设置socket属性-SO_RCVTIMEO。 -->
|
|||
|
|
<!-- socket_options.send_buffer: TCP发送缓冲区大小,单位: kB,默认500kB。该参数通过setsockopt设置socket属性-SO_SNDBUF。 -->
|
|||
|
|
<!-- socket_options.recv_buffer: TCP接收缓冲区大小,单位: kB,默认500kB。该参数通过setsockopt设置socket属性-SO_RCVBUF。 -->
|
|||
|
|
<!-- cloud_router.binding_address: 绑定的EMS的IP地址,默认为空,允许任何网口连接。 -->
|
|||
|
|
<!-- cloud_router.binding_port: 绑定的端口,默认10080。 -->
|
|||
|
|
<!-- cloud_router.max_connections: 最大连接数,默认为10。 -->
|
|||
|
|
<!-- cloud_router.connection_failure_time: 连接失效时间,默认300秒,即子终端连接EMS后,在该配置时间内,没有接收到子终端上报的数据,则会强制断开该子终端连接。 -->
|
|||
|
|
<!-- server_info.address: 云平台服务器地址。 -->
|
|||
|
|
<!-- server_info.port: 云平台服务端口。 -->
|
|||
|
|
<!-- auth_info.broadcast_interval: 授权广播间隔时间(秒),默认60秒。 -->
|
|||
|
|
<!-- auth_info.detect_interval: 云平台服务器可连接性检测间隔(秒),默认60秒。 -->
|
|||
|
|
<commu_config
|
|||
|
|
receive_with_check="0"
|
|||
|
|
login_timeout="5000"
|
|||
|
|
receive_timeout="100"
|
|||
|
|
receive_interval="20"
|
|||
|
|
downstream_command_timeout="5000"
|
|||
|
|
upgrading_allowable_signal_timeout="120"
|
|||
|
|
threshold_of_print_communication_time="10000"
|
|||
|
|
output_debug_file="false"/>
|
|||
|
|
<upload_strategy config_max_retries="5" config_retry_interval="10" data_max_retries="3" data_retry_interval="5" use_old_devid_rule="0"/>
|
|||
|
|
<socket_options send_timeout="50" recv_timeout="50" send_buffer="500" recv_buffer="500"/>
|
|||
|
|
<cloud_router binding_address="" binding_port="10080" max_connections="10" connection_failure_time="300"/>
|
|||
|
|
<!-- <server_info address="192.168.200.97" port="666"/> -->
|
|||
|
|
<auth_info broadcast_interval="60" detect_interval="60"/>
|
|||
|
|
</parameters>
|