您好:
我想咨询一下关于TI 15.4-Stack 网关 Linux 软件开发套件 里面的\example\collector\collector.cfg
; If collector application connects to an NPI SERVER (ie: npi_server2), this is how it connects
[npi-socket-cfg]
type = client
host = localhost
service = 12345
inet = 4
collector直连uart的方式(no-npi-server) 已经跑通,现在想通过ip socket连接到 NPI SERVER的方式来跑。
请问这个 连接 NPI SERVER的配置是怎么用?collecotr example可以通过本地运行npi server,通过ip socket host = localhost的方式跑起来吗?

另外,我想把\example\npi_server2 移植到stm32上,然后用AM335X 跑collector , 通过ip socket interface 连接到stm32的npi server上。
请问是否有相关例程及代码可供参考,或者有这方面的操作建议?
Alvin Chen:
NPI是配合UART接口控制coprocessor然后作为一个collector。如果你想在STM32上移植预计难度比较大。
user3896864:
回复 Alvin Chen:
好的,我还想了解下 \example\collector\collector.cfg 里面的
; If collector application connects to an NPI SERVER (ie: npi_server2), this is how it connects
[npi-socket-cfg]
type = client
host = localhost
service = 12345
inet = 4这个collector example 支持吗? 该怎么跑起来?
Alvin Chen:
回复 user3896864:
不支持,这是TCP/IP端口配置。
TI中文支持网
