存储PLCNext社区LinkedIn上的PLCNEXT.Instagram上的PLCNEXT.  youtube上的plcnext. github plcnext社区存储PLCNext社区

  1. sotsukenr1.
  2. PLCNEXT技术和PLCNEXT控件
  3. 2019年8月7日星期三

MQTT客户端应用程序中发生错误。以下是output.log文件。

 

05.06.19 16:13:38.667 arp.plc.gds.internal.subscription.subscriptionbase警告 - 没有订阅ID 2!请和一些变量......

05.06.19 16:13:38.669 arp.plc.gds.internal.subscription.subscriptionbase警告 - 没有订阅ID 2!请和一些变量......

05.06.19 16:13:38.671 ARP.Services.ehmi.ehmicomponent Info - 3055505472 ehmicomponent:loadconfig

05.06.19 16:13:38.671 ARP.Services.ehmi.ehmicomponent Info - 3055505472 ehmicomponent:setupconfig

05.06.19 16:13:38.928 ARP.Services.ProficLoud.Internal.ProficLoudtsDadapter Info - 无法读取GDS度量文件/opt/plcnext/projects/proficloud/metrics.json。

05.06.19 16:13:38.952 pxcetcs.mqtt.gdsconnectorcomponent从文件中加载的配置文件:/opt/plcnext/projects/mqttclient/mqt_gds.settings.json

05.06.19 16:13:38.961 pxcetcs.mqtt.gdsconnectorcomponent信息加载配置模式。

05.06.19 16:13:38.972 pxcetcs.mqtt.gdsconnectorcomponent信息 - 配置有效。

05.06.19 16:13:38.975 pxcetcs.mqt.gdsconnectorcomponent信息 - 没有指定状态端口。

05.06.19 16:13:38.976 pxcetcs.mqtt.gdsconnectorcomponent信息 - 未指定重新连接端口。

05.06.19 16:13:38.984 pxcetcs.mqtt.gdsconnectorComponent信息 - 创建了ID:627的MQTT客户端

05.06.19 16:13:38.989 pxcetcs.mqttclient.mqttclientManager信息 - 连接到MQTT服务器

05.06.19 16:14:19.069 pxcetcs.mqttclient.mqttclientManager错误 - 操作中的例外:Connect(627,ConnectOptions)

05.06.19 16:14:19.071 pxcetcs.mqtclient.mqttclientManager错误 - MQTT错误[-1]:

 05.06.19 16:14:19.072 pxcetcs.mqtt.gdsconnectorcomponent错误 - 连接到MQTT客户端627的错误

Oliver PLCnext Team 接受答案 等待审核
0
Votes
撤消

你好,
这看起来可能会出现在配置文件中的连接选项有问题。
请根据文档重新检查连接选项。
是正确的地方的SSL认证吗?
并确保所选的MQTT Broker可由PLC访问。

亲切的问候,
奥利弗

Phoenix联系电子总部 - PLCNext运行时产品管理和支持
sotsukenr1 接受答案 等待审核
0
Votes
撤消
你好, Oliver. 

I want to connect to AWS by MQTT.
I was able to confirm the screen shot I attached. Does this represent MQTT broker reachable by the PLC?

I confirmed the location of the SSL certificate.I
changed the host name and ssl option by "mqtt_gds.settings.json"


"mqtt_gds.settings.json"
-------------------------------------------------------------------------------
{
"servers":[{
"host": "ssl://a2qgxlovt99wxz-ats.iot.us-east-2.amazonaws.com:8883",
“client_name”:“myplcnext”,
“connect_options”:{
“will_options”:{
“主题”:“last_will_topic”,
“有效载荷”:“AUF Wiedersehen”
},
“ssl_options”:
{
“trust_store”:
“/opt/plcnext/projects/awsiotclient/amazonrootca1.pem”,
“key_store”:“/opt/plcnext/projects/awsiotclient/17dd2d71b8-certificate.pem.crt”,
“private_key”:“/opt/plcnext/projects/awsiotclient/17dd2d71b8-private.pem.key”,
“enable_server_cert_auth”:true
}
},
“publish_data”:[{
“port”:“Arp.plc.eclr / maininstance.pubmessage”,
“QoS”:0,
“保留”:假,
“话题” :[
“mypubtopic”
]
}],
“subscribe_data”:[{
“主题”:“mysubtopic”,
“港口”:[
“arp.plc.eclr / maininstance.submessage”
]
}]
}]
}
-------------------------------------------------------------------------------

The following is the Output.log file.

27.06.19 12:31:58.081 Arp.Io.ProfinetStack.System.Internal.System                  INFO  - Initialize: PN Version Info: v6.3.8745
27.06.19 12:31:58.081 Arp.Io.ProfinetStack.System.Internal.System                  INFO  - Initialize: PN Version Info: v6.3.8745
27.06.19 12:31:59.575 Arp.Io.ProfinetStack.System.Internal.Adaption                WARN  - Event Archive Entry, Module ID: 0, Message: module 0x54 disabled
27.06.19 12:32:01.573 Arp.Io.ProfinetStack.System.Internal.System                  INFO  - ProfinetStack is initialized
27.06.19 12:32:02.097 Arp.Io.ProfinetStack.System.Internal.Adaption                INFO  - I&M0 request for the controller received
27.06.19 12:32:02.097 Arp.Io.ProfinetStack.System.Internal.Adaption                INFO  - wSlotNumber      = 0
27.06.19 12:32:02.098 Arp.Io.ProfinetStack.System.Internal.Adaption                INFO  - wSubslotNumber   = 1
27.06.19 12:32:02.099 Arp.Io.ProfinetStack.System.Internal.Adaption                INFO  - I&M0 request for the controller received
27.06.19 12:32:02.100 Arp.Io.ProfinetStack.System.Internal.Adaption                INFO  - wSlotNumber      = 0
27.06.19 12:32:02.101 Arp.Io.ProfinetStack.System.Internal.Adaption                INFO  - wSubslotNumber   = 0
27.06.19 12:32:02.112 Arp.Io.ProfinetStack.Controller.Internal.Controller          INFO  - Controller instance added successfully
27.06.19 12:32:02.614 Arp.Io.ProfinetStack.System.Internal.Adaption                INFO  - I&M0 request for the device instance ID 1 received
27.06.19 12:32:02.615 Arp.Io.ProfinetStack.System.Internal.Adaption                INFO  - wSlotNumber      = 0
27.06.19 12:32:02.616 Arp.Io.ProfinetStack.System.Internal.Adaption                INFO  - wSubslotNumber   = 1
27.06.19 12:32:02.617 Arp.Io.ProfinetStack.System.Internal.Adaption                INFO  - I&M0 request for the device instance ID 1 received
27.06.19 12:32:02.617 Arp.Io.ProfinetStack.System.Internal.Adaption                INFO  - wSlotNumber      = 0
27.06.19 12:32:02.618 Arp.Io.ProfinetStack.System.Internal.Adaption                INFO  - wSubslotNumber   = 0
27.06.19 12:32:02.623 Arp.Io.ProfinetStack.Device.Internal.Device                  INFO  - Device Instance with Id = 1 (PRL-Supported) added successfully.
27.06.19 12:32:02.707 Arp.Services.Ehmi.EhmiComponent                              INFO  - 3055149120 Enter EhmiComponent: Initialize
27.06.19 12:32:02.710 Arp.Services.Ehmi.EhmiComponent                              INFO  - 3055149120 Exit  EhmiComponent: Initialize
27.06.19 12:32:02.711 Arp.Services.Ehmi.EhmiComponent                              INFO  - 3055149120 EhmiComponent: SubscribeServices
27.06.19 12:32:02.712 Arp.Services.Ehmi.EhmiComponent                              INFO  - 3055149120 Enter EhmiComponent: LoadSettings settingsPath=/etc/plcnext/device/Services/Ehmi/ehmi.settings
27.06.19 12:32:02.728 Arp.Services.Ehmi.EhmiComponent                              INFO  - 3055149120 Exit  EhmiComponent: LoadSettings
27.06.19 12:32:02.728 Arp.Services.Ehmi.EhmiComponent                              INFO  - 3055149120 Enter EhmiComponent: SetupSettings
27.06.19 12:32:02.731 Arp.Services.Ehmi.EhmiComponent                              INFO  - 3055149120 SetThreshold level=6.
27.06.19 12:32:02.734 Arp.Services.Ehmi.EhmiComponent                              INFO  - 3055149120    IndentSize=0
27.06.19 12:32:02.734 Arp.Services.Ehmi.EhmiComponent                              INFO  - 3055149120    IndentSize=0
27.06.19 12:32:02.738 Arp.Services.Ehmi.EhmiComponent                              INFO  - 3055149120   Initialize ehmiUsersBinPath=/opt/plcnext/projects/current/Services/__ehmiusers.bin, ehmiUsersBinFileServiceID=OSFileServiceID
27.06.19 12:32:02.740 Arp.Services.Ehmi.EhmiComponent                              INFO  - 3055149120 Exit  EhmiComponent: SetupSettings
27.06.19 12:32:02.740 Arp.Services.Ehmi.EhmiComponent                              INFO  - 3055149120 EhmiComponent: PublishServices
27.06.19 12:32:03.261 Arp.System.Commons.Security.IdentityStore                    INFO  - Add cert: serialNumber=8949017230002848319,CN=PLCnext Device Signing CA,OU=PHOENIX CONTACT GmbH & Co KG,O=PHOENIX CONTACT,L=Blomberg,ST=NRW,C=DE
27.06.19 12:32:03.265 Arp.System.Commons.Security.IdentityStore                    INFO  - Add cert: CN=PhoenixSign License PLCnext Sub CA G1,OU=PHOENIX CONTACT GmbH & Co KG,O=PHOENIX CONTACT,L=Blomberg,ST=NRW,C=DE
27.06.19 12:32:03.270 Arp.System.Commons.Security.IdentityStore                    INFO  - Add cert: CN=PhoenixSign License Root CA G1,OU=PHOENIX CONTACT Cyber Security,O=PHOENIX CONTACT,L=Berlin,ST=Berlin,C=DE
27.06.19 12:32:03.277 PxceTcs.MqttClient.MqttClientComponent                       INFO  - Publishing MQTT Client service
27.06.19 12:32:03.279 PxceTcs.MqttClient.MqttClientComponent                       INFO  - Published MQTT Client service
27.06.19 12:32:03.294 Arp.Services.AppManager.AppManager                           INFO  - AppManager created
27.06.19 12:32:03.319 Arp.Services.TraceController.TraceControllerComponent        INFO  - Loading settings from /etc/plcnext/device/Services/TraceController/TraceController.settings
27.06.19 12:32:03.338 PxceTcs.Mqtt.GdsConnectorComponent                           INFO  - Subscribed to MQTT Client Service.
27.06.19 12:32:03.340 PxceTcs.Mqtt.GdsConnectorComponent                           INFO  - Subscribed to GDS Data Access Service.
27.06.19 12:32:03.341 PxceTcs.Mqtt.GdsConnectorComponent                           INFO  - Loaded settings: Path=/opt/plcnext/projects/MqttClient/mqtt_gds.settings.json
27.06.19 12:32:03.343 Arp.Device.Interface.Internal.DeviceSettings                 INFO  - DiUserConfigurationDocument at '/opt/plcnext/projects/Default/Device/Interface/Di.User.config' not found
27.06.19 12:32:03.620 Arp.Plc.Esm.Internal.TaskController                          INFO  - Configuring Sleep with a sync point interval of 50000us
27.06.19 12:32:03.740 root                                                         WARN  - Cannot resolve /opt/plcnext/projects/current/Io/Arp.Io.IbM/*.fbio.config: Directory does not exist.
27.06.19 12:32:03.785 Arp.Io.Axioline.AxiolineComponent                            INFO  - Axioline: Load configuration.
27.06.19 12:32:03.798 Arp.Io.Axioline.Internal.AxiolineDomain                      INFO  - Axioline: Load tic configuration.
27.06.19 12:32:03.800 Arp.Io.Axioline.Internal.AxiolineDomain                      INFO  - Axioline: XML-File: .tic
27.06.19 12:32:03.801 Arp.Io.Axioline.Internal.AxiolineDomain                      INFO  - Axioline: XML-File: 9c794d8b-b002-4bd8-8f79-df2d6dc62976.tic
27.06.19 12:32:03.805 Arp.Io.Axioline.Internal.TicConfig.Tic2ConfigSvc             INFO  - Axioline: Start converting tic files.
27.06.19 12:32:03.807 Arp.Io.Axioline.Internal.System                              INFO  - Axioline: Initialize/configure bus.
27.06.19 12:32:03.834 Arp.Io.Axioline.Internal.System                              INFO  - Axioline: Connect to shared FbIo System.
27.06.19 12:32:03.836 Arp.Io.EthernetIP.EthernetIPComponent                        INFO  - LoadConfig
27.06.19 12:32:03.837 Arp.Io.EthernetIP.EthernetIPComponent                        INFO  - LoadPlc, isChanging=false
27.06.19 12:32:03.852 root                                                         WARN  - Cannot resolve /opt/plcnext/projects/current/Io/Arp.Io.EthernetIP/*.EthernetIP.config: Directory does not exist.
27.06.19 12:32:03.857 Arp.Io.EthernetIP.EthernetIPComponent                        INFO  - SetupConfig
27.06.19 12:32:03.858 Arp.Io.EthernetIP.EthernetIPComponent                        INFO  - SetupPlc, isChanging=false, startKind=Warm
27.06.19 12:32:03.861 Arp.Io.EthernetIP.EthernetIPComponent                        INFO  - 2973754048 OnPlcLoaded 
27.06.19 12:32:03.862 Arp.Io.EthernetIP.EthernetIPComponent                        INFO  - 2973754048 ESDK 0xffff, AddAssemblies, toInstanceID=110, toSize=256, otInstanceID=100, otSize=256
27.06.19 12:32:03.938 Arp.Plc.Gds.Internal.GdsDomain                               INFO  - GDS configuration successfully loaded.
27.06.19 12:32:04.042 Arp.Plc.Gds.Internal.GdsDomain                               INFO  - GDS data connections successfully created.
27.06.19 12:32:04.047 Arp.Plc.Gds.Internal.Subscription.SubscriptionBase           WARN  - Nothing to subscribe for ID 2! Please and some variables...
27.06.19 12:32:04.049 Arp.Plc.Gds.Internal.Subscription.SubscriptionBase           WARN  - Nothing to subscribe for ID 2! Please and some variables...
27.06.19 12:32:04.050 Arp.Services.Ehmi.EhmiComponent                              INFO  - 3055149120 EhmiComponent: LoadConfig
27.06.19 12:32:04.051 Arp.Services.Ehmi.EhmiComponent                              INFO  - 3055149120 EhmiComponent: SetupConfig
27.06.19 12:32:04.446 Arp.Services.ProfiCloud.Internal.ProficloudTSDAdapter        INFO  - Could not read GDS metrics file /opt/plcnext/projects/ProfiCloud/metrics.json.
27.06.19 12:32:04.473 PxceTcs.Mqtt.GdsConnectorComponent                           INFO  - Loaded configuration from file: /opt/plcnext/projects/MqttClient/mqtt_gds.settings.json
27.06.19 12:32:04.479 PxceTcs.Mqtt.GdsConnectorComponent                           INFO  - Loaded configuration schema.
27.06.19 12:32:04.490 PxceTcs.Mqtt.GdsConnectorComponent                           INFO  - Configuration is valid.
27.06.19 12:32:04.501 PxceTcs.Mqtt.GdsConnectorComponent                           INFO  - Created MQTT Client with ID: 27135
27.06.19 12:32:04.502 PxceTcs.Mqtt.GdsConnectorComponent                           INFO  - Global timeout value has been set to 60000 milliseconds
27.06.19 12:32:04.504 PxceTcs.Mqtt.GdsConnectorComponent                           INFO  - No MQTT SSL/TLS Options provided. Defaults will be used.
27.06.19 12:32:04.507 PxceTcs.MqttClient.MqttClientManager                         INFO  - Connecting to MQTT server
27.06.19 12:32:44.580 PxceTcs.MqttClient.MqttClientManager                         ERROR - Exception in operation: Connect(27135, ConnectOptions)
27.06.19 12:32:44.582 PxceTcs.MqttClient.MqttClientManager                         ERROR - MQTT error [-1]: 
27.06.19 12:32:44.584 PxceTcs.Mqtt.GdsConnectorComponent                           ERROR - Error connecting to MQTT Client 27135
27.06.19 12:32:44.594 Arp.Device.Interface.Internal.DeviceStatus                   INFO  - CheckHwTask running
27.06.19 12:32:44.595 Arp.Device.Interface.Internal.DeviceStatus                   INFO  - Alloc memory for 2 ports
27.06.19 12:32:44.601 Arp.Device.Interface.Internal.DeviceStatus                   WARN  - SD Card inserted
27.06.19 12:32:44.895 Arp.Services.OpcUAServer.Internal.Config.OpcUAConfigManager  INFO  - Using the self-signed certificate.
Attachments (1)
Martin PLCnext Team 接受答案 等待审核
0
Votes
撤消

你好,

日志文件中的有趣行是:

27.06.19 12:32:04.504 PxceTcs.Mqtt.GdsConnectorComponent                           INFO  - No MQTT SSL/TLS Options provided. Defaults will be used.

这表示Named Config文件不包含SSL_Options部分,尽管我在上面的POST中看到了此部分。

Are you 100% sure that the file contents you posted are from the file at /opt/plcnext/projects/MqttClient/mqtt_gds.settings.json ?

Can you attach a screen shot showing the result of the command cat /opt/plcnext/projects/MqttClient/mqtt_gds.settings.json , perhaps?

 

Phoenix联系电子总部 - PLCNext运行时产品管理和支持
sotsukenr1 接受答案 等待审核
0
Votes
撤消

谢谢你。文件 内容 没有正确改变。

改变后,“没有提供MQTT SSL / TLS选项。将使用默认值。“没有显示。

但是,它不是一个基本解决方案。“MQTT错误[-1]:”仍然可见

28.06.19 17:45:58.191 ARP.IO.Ethernetip.EtretNetipComponent信息 - PublishServices
28.06.19 17:45:58.247 ARP.DEVICE.HMILED.INTERNAL.LEDMANAGER INFO - LEDManager:PN-DEV AT 1
28.06.19 17:45:58.250 ARP.DEVICE.HMILED.INTERNAL.LEDMANAGER INFO - LEDManager:PN-CTRL AT 1
28.06.19 17:45:58.251 ARP.IO.ProfinetStack.System.Internal.System Info - 初始化:PN版本信息:V6.3.8745
28.06.19 17:45:59.869 ARP.IO.ProfinetStack.System.Internal.AveAption Warn - 事件存档条目,模块ID:0,消息:模块0x54禁用
28.06.19 17:46:01.866 ARP.IO.ProfinetStack.System.Internal.System Info - ProfinetStack初始化
28.06.19 17:46:03.154 ARP.IO.ProfinetStack.System.Internal.Aption Info - Controller收到的控制器的I&M0请求
28.06.19 17:46:03.155 ARP.IO.ProfinetStack.System.Internal.Aption Info - WSLOTNUMBER = 0
28.06.19 17:46:03.156 ARP.IO.ProfinetStack.System.Internal.Aption Info - WSUBSLOTNUMBER = 1
28.06.19 17:46:03.157 ARP.IO.ProfinetStack.System.Internal.Aption Info - Controller收到的控制器请求
28.06.19 17:46:03.158 ARP.IO.ProfinetStack.System.Internal.AveAption Info - WSLotnumber = 0
28.06.19 17:46:03.159 ARP.IO.ProfinetStack.System.Internal.AveAption Info - WSUBSLOTNUMBER = 0
28.06.19 17:46:03111ARP.IO.ProfinetStack.controller.Internal.controller信息 - 控制器实例已成功添加
28.06.19 17:46:04.115 ARP.IO.ProfinetStack.System.Internal.Aption Info - I&M0收到的设备实例ID 1的请求
28.06.19 17:46:04.116 ARP.IO.ProfinetStack.System.Internal.Aption Info - WSLOTNUMBER = 0
28.06.19 17:46:04.117 ARP.IO.ProfinetStack.System.Internal.AveAption Info - WSUBSLOTNUMBER = 1
28.06.19 17:46:04.119 ARP.IO.ProfinetStack.System.Internal.Aption Info - I&M0对设备实例ID 1的请求
28.06.19 17:46:04.119 ARP.IO.ProfinetStack.System.Internal.Aption Info - WSLOTNUMBER = 0
28.06.19 17:46:04.120 ARP.IO.ProfinetStack.System.Internal.Adion Info - WSUBSLOTNUMBER = 0
28.06.19 17:46:04.125 ARP.IO.ProfinetStack.Device.internal.Device信息 - 设备实例,具有ID = 1(PRL-Supported)成功添加。
28.06.19 17:46:04.206 ARP.Services.ehmi.ehmicomponent Info - 3055034432输入ehmicomponent:初始化
28.06.19 17:46:04.208 ARP.Services.ehmi.Hmicomponent Info - 3055034432 EXMIComponent:初始化
28.06.19 17:46:04.209 ARP.Services.ehmi.ehmicomponent Info - 3055034432 ehmicomponent:subscribeservices
28.06.19 17:46:04.210 ARP.Services.ehmi.ehmicomponent Info - 3055034432输入ehmicomponent:loadsettings settingspath = / etc / plcnext / device / services / service / ehmi / ehmi.settings
28.06.19 17:46:04.225 ARP.Services.ehmi.Hmicomponent Info - 3055034432出口Ehmicomponent:LoadSettings
28.06.19 17:46:04.226 ARP.Services.ehmi.ehmicomponent Info - 输入ehmicomponent:setupsettings
28.06.19 17:46:04.230 ARP.Services.ehmi.Hmicomponent Info - 3055034432 SetThreshold Level = 6。
28.06.19 17:46:04.232 arp.services.ehmi.hmicomponent信息 - 3055034432 indentsize = 0
28.06.19 17:46:04.234 arp.services.ehmi.hmicomponent信息 - 3055034432 indentsize = 0
28.06.19 17:46:04.236 ARP.Services.ehmi.ehmicomponent Info - 3055034432初始化ehmiusersbinpath = / opt / plcnext / projects / current / services / __ ehmiusers.bin,ehmiusersbinfileserviceid = osfileserviceId
28.06.19 17:46:04.239 ARP.Services.ehmi.ehmicomponent Info - 3055034432退出EHMIComponent:SetupSettings
28.06.19 17:46:04.240 arp.services.ehmi.ehmicomponent信息 - 3055034432 ehmicomponent:publishservices
28.06.19 17:46:04.757 ARP.SYSTEM.COMMONS.Security.identityStore信息 - 添加证书:SerialNumber = 8949017230002848319,CN = PLCNext设备签名CA,OU = Phoenix联系GmbH&Co Kg,O = Phoenix联系人,L = Blomberg ,st = nrw,c = de
28.06.19 17:46:04.761 ARP.SYSTEM.COMMONS.Security.identityStore信息 - 添加证书:CN = PhoenixSign许可证PLCNext子CA G1,OU = Phoenix联系GmbH&Co Kg,O = Phoenix联系人,L = Blomberg,ST = nrw,c = de
28.06.19 17:46:04.766 ARP.System.Commmons.Security.identificityStore信息 - 添加证书:CN = PhoenixSign许可证根CA G1,OU = Phoenix联系网络安全,o = Phoenix联系人,L =柏林,St =柏林, c = de.
28.06.19 17:46:04.777 pxcetcs.mqttclient.mqttclientComponent信息 - 发布MQTT客户端服务
28.06.19 17:46:04.779 pxcetcs.mqttclient.mqttclientComponent信息 - 发布的MQTT客户端服务
28.06.19 17:46:04.794 ARP.Services.AppManager.AppManager信息 - AppManager创建
28.06.19 17:46:04.824 ARP.Services.TRARCONTROLLER.TRAControllerComponent Info - 从/etc/plcnext/device/services/traceController/tracecontroller.settings加载设置
28.06.19 17:46:04.847 pxcetcs.mqtt.gdsconnectorcomponent信息 - 订阅MQTT客户端服务。
28.06.19 17:46:04.849 pxcetcs.mqtt.gdsconnectorComponent信息 - 订阅GDS数据访问服务。
28.06.19 17:46:04.849 pxcetcs.mqtt.gdsconnectorcomponent信息加载的设置:path = / opt / plcnext / projects / mqttclient / mqtt_gds.settings.json
28.06.19 17:46:04.852 ARP.Device.Interface.internal.deviceSettings信息 - DiuserConfigurationDocument在'/opt/plcnext/projects/default/device/Interface/di.user.config'未找到
28.06.19 17:46:05.291 ARP.PLC.ESM.INTERNAL.TASKCONTROLLER信息 - 配置睡眠与50000us的同步点间隔
28.06.19 17:46:05.437 root warn - 无法解析/opt/plcnext/projects/current/io/arp.io.ibm/*.fbio.config:目录不存在。
28.06.19 17:46:05.478 ARP.IO.AXIOLINE.AXIOLINOPONENT INFO - AXIOLINE:负载配置。
28.06.19 17:46:05.495 ARP.IO.AXIOLINE.ILTERNAL.AXIOLINEMAIN信息 - Axioline:负载TIC配置。
28.06.19 17:46:05.497 ARP.IO.AXIOLINE.ILTERNAL.AXIOLOINOMAIN信息 - Axioline:XML文件:.tic
28.06.19 17:46:05.498 ARP.IO.AXIOLINE.ILTERNAL.AXIOLINEMAIN信息 - AXIOLINE:XML文件:9C794D8B-B002-4BD8-8F79-DF2D6DC62976.TIC
28.06.19 17:46:05.502 ARP.IO.AXIOLINE.INTERNAL.TICCONFIG.TIC2CONFIGSVC信息 - Axioline:开始转换TIC文件。
28.06.19 17:46:05.503 ARP.IO.AXIOLINE.ILTERNAL.SYSTEM INFO - AXIOLINE:初始化/配置总线。
28.06.19 17:46:0531 ARP.IO.AXIOLINE.INTERNAL.SYSTEM INFO - AXIOLINE:连接到共享FBIO系统。
28.06.19 17:46:05.534 ARP.IO.EthernetIP.EtretNetipComponent Info - LoadConfig
28.06.19 17:46:05.534 ARP.IO.EtherNetIP.EtretNetipComponent信息 - LoadPlc,isChanging = false
28.06.19 17:46:05.547 root warn - 无法解析/opt/plcnext/projects/current/io/arp.io.Etreetip/*.Etreetip.config:目录不存在。
28.06.19 17:46:05.551 ARP.IO.EthernetIP.EtretIPComponent信息 - SetupConfig
28.06.19 17:46:0553 ARP.IO.EtherNetip.EtretIPComponent信息 - Setupplc,isChanging = false,startkind = mave
28.06.19 17:46:0555 ARP.IO.Ethernetip.EtreetIPComponent Info - 2973758144 OnPlcoaded
28.06.19 17:46:05.556 ARP.IO.Ethernetip.EtretNipComponent Info - 2973758144 esdk 0xffff,addassemblies,toinstanceid = 110,tosize = 256,OtinstanceId = 100,OtinstanceId = 100,Otinsize = 256
28.06.19 17:46:05.633 ARP.PLC.GDS.INTERNAL.GDSDOMAIN INFO - GDS配置成功加载。
28.06.19 17:46:05.737 ARP.PLC.GDS.INTERNAL.GDSDOMAIN INFO - GDS数据连接成功创建。
28.06.19 17:46:05.744 ARP.plc.gds.internal.subscription.subscriptionBase警告 - 无需订阅ID 2!请和一些变量......
28.06.19 17:46:05.746 arp.plc.gds.internal.subscription.subscriptionBase警告 - 没有订阅ID 2!请和一些变量......
28.06.19 17:46:05.748 arp.services.ehmi.hmicomponent信息 - 3055034432 ehmicomponent:loadconfig
28.06.19 17:46:05.750 ARP.Services.ehmi.Hmicomponent Info - 3055034432 ehmicomponent:setupconfig
28.06.19 17:46:06.143 ARP.Services.ProficLoud.Internal.ProficLoudtsDadapter Info - 无法读取GDS度量文件/opt/plcnext/projects/proficloud/metrics.json。
28.06.19 17:46:06.168 pxcetcs.mqtt.gdsconnectorcomponent从文件中加载的配置文件:/opt/plcnext/projects/mqttclient/mqt_gds.settings.json
28.06.19 17:46:06.173 pxcetcs.mqtt.gdsconnectorcomponent信息加载的配置模式。
28.06.19 17:46:06.182 pxcetcs.mqtt.gdsconnectorcomponent信息 - 配置有效。
28.06.19 17:46:06.185 pxcetcs.mqtt.gdsconnectorcomponent信息 - 没有指定状态端口。
28.06.19 17:46:06.186 pxcetcs.mqtt.gdsconnectorcomponent信息 - 未指定重新连接端口。
28.06.19 17:46:06.193 pxcetcs.mqtt.gdsconnectorcomponent信息 - 创建了具有ID:37595的MQTT客户端
28.06.19 17:46:06.196 pxcetcs.mqttclient.mqttclientManager信息 - 连接到MQTT服务器
28.06.19 17:46:46.270 pxcetcs.mqtclient.mqttclientManager错误 - 操作中的例外:Connect(37595,ConnectOptions)
28.06.19 17:46:46.272 pxcetcs.mqttclient.mqttclientManager错误 - MQTT错误[-1]:
28.06.19 17:46:46.273 pxcetcs.mqtt.gdsconnectorcomponent错误 - 连接到MQTT客户端37595的错误
28.06.19 17:46:46.281 ARP.Device.Interface.internal.devicestatus信息 - CheckWtask运行
28.06.19 17:46:46.283 ARP.Device.Interface.Internal.deviceStatus Info - 2端口的Alloc内存
28.06.19 17:46:46.293 ARP.Device.Interface.internal.devicestatus Warn - SD卡插入
28.06.19 17:46:46.536 ARP.SERVICES.OPCUASERVE.INTERNAL.CONFIG.OPCUACONFIGMANAGER INFO - 使用自签名证书。
28.06.19 17:46:47.081 OpcServer INFO - OPC UA server opened endpoint URI opc.tcp://axc-f-2152-1:4840 listening at opc.tcp://0.0.0.0:4840
28.06.19 17:46:47.083 ARP.SERVICES.OPCUASERVER.OPCUASERVERCOMPONENT信息 - 已成功启动OPC UA Server。
28.06.19 17:46:47.084 ARP.SERVICES.OPCUASERVER.INTERNAL.SECURY.SESSIONMAGER信息 - 将客户端身份验证应用到1个端点:trustall = true,checkcrls = false,checkIssuercrls = false,ignorevalidity = false
28.06.19 17:46:47.096 Arp.io.axioline.axiolinecomponent Info - Axioline:开始。
28.06.19 17:46:47.453 ARP.IO.EtherNetip.EtretNetipComponent信息 - 开始
28.06.19 17:46:47.454 ARP.IO.EtherNetip.EtretNetipComponent信息 - StartPLC,SpartKind =温暖
28.06.19 17:46:47.455 ARP.IO.Ethernetip.EtretNetipComponent Info - 2973758144 OnPlCStarted
28.06.19 17:46:47.455 ARP.IO.EthernetIP.EtreetIPComponent信息 - 2973758144 esdk 0xffff,setRunMode,Run = 1
28.06.19 17:46:47.467 ARP.Services.ehmi.Hmicomponent Info - 3055034432输入ehmicomponent:开始
28.06.19 17:46:47.476 ARP.Services.ehmi.ehmicomponent Info - 3055034432 OpenListsocket Listensock = 0x2B,BindPort = 127.0.0.1:9999
28.06.19 17:46:47.482 ARP.Services.ehmi.Hmicomponent Info - 3055034432无法在Project.JSON中找到授权Tokentimeout
28.06.19 17:46:47.485 ARP.Services.ehmi.Hmicomponent Warn - 3055034432 LoadDefaultTimeout无法从Project.JSON获取SessionTimeout
28.06.19 17:46:47.490 ARP.Services.ehmi.Hmicomponent Warn - 3055034432无法读取Type.dictionary.json文件。
28.06.19 17:46:47.496 ARP.Services.ehmi.Hmicomponent Warn - 3055034432负载无法读取文件名= data.dictionary.json
28.06.19 17:46:47.498 ARP.Services.ehmi.Hmicomponent Info - 3055034432退出Ehmicomponent:开始
28.06.19 17:46:47.502 CommonRemoting信息 - 启动远程处理服务器(版本= 4)
28.06.19 17:46:47.503 CommonRemoting Info - 开始侦听TCP端口41100
28.06.19 17:46:47.505 ARP.Services.ProficLoud.Internal.ProficLoudConnectAdapter Info - 不会启动ProfiCloud服务。它通过服务设置禁用。
28.06.19 17:46:47.509 ARP.SYSTEM.ACF.INTERNAL.APPLICICSBASE INFO - 应用程序'mainProcess'已成功设置。

 

Martin PLCnext Team 接受答案 等待审核
0
Votes
撤消

你好,

您能否检查您使用的所有证书吗? 所有用户的权限。

您也可以尝试使用 openssl. 在PLC命令行上使用相同的证书测试与AWS Server的连接。如果这不起作用,则AWS配置和/或证书存在问题。如果OpenSSL连接到AWS工作,并且您仍然存在MQTT客户端应用程序,请告知我们。

 

Phoenix联系电子总部 - PLCNext运行时产品管理和支持
sotsukenr1 接受答案 等待审核
0
Votes
撤消
That couldn't connect. What is wrong?
Is there a way to check the port for PLC?


admin @ axcf2152:/ opt / plcnext / projects / mqttclient $ openssl. s_client -showcerts -cert ddfe942db2-certificate.pem.crt -key ddfe942db2-private.pem.key -connect a2qgxlovt99wwxz-ats.iot.us-ast-2.amazonaws.com:8883
gethostbyname失败
连接:errno = 11

admin @ axcf2152:/ opt / plcnext / projects / mqttclient $ lsof -i
-sh:lsof:找不到命令


 

Martin PLCnext Team 接受答案 等待审核
0
Votes
撤消

可能有一些问题。

PLC连接到互联网,对吧?您可以ping外部网站(如 www.google.com.)来自PLC?如果这是有效的,那么它可能有问题和/或证书。

自从我设置AWS设备以来已经有一段时间了,所以我记不起如何做到这一点。 这里 来自AWS诊断问题的一些信息 - 您可以从Windows或Linux机器中尝试此命令,以消除PLC作为问题的原因。

 

 

Phoenix联系电子总部 - PLCNext运行时产品管理和支持
sotsukenr1 接受答案 等待审核
0
Votes
撤消

防火墙很糟糕。我们能够连接到MQTT客户端。非常感谢你。

 

How do I set the port?

17.07.19 14:34:57.272 ARP.Services.ProficLoud.Internal.ProficLoudtsDadaptery - 无法读取GDS度量文件/opt/plcnext/projects/proficloud/metrics.json。

17.07.19 14:34:57.272 ARP.Services.ProficLoud.Internal.ProficLoudtsDadaptery - 无法读取GDS度量文件/opt/plcnext/projects/proficloud/metrics.json。

17.07.19 14:34:57.307 pxcetcs.mqt.gdsconnectorcomponent从文件中加载的配置文件:/opt/plcnext/projects/mqttclient/mqt_gds.settings.json

17.07.19 14:34:57.314 pxcetcs.mqtt.gdsconnectorcomponent信息加载配置架构。

17.07.19 14:34:57.327 pxcetcs.mqtt.gdsconnectorcomponent信息 - 配置有效。

17.07.19 14:34:57.331 pxcetcs.mqtt.gdsconnectorcomponent信息 - 未指定状态端口。

17.07.19 14:34:57.332 pxcetcs.mqtt.gdsconnectorcomponent信息 - 未指定重新连接端口。

17.07.19 14:34:57.343 pxcetcs.mqtt.gdsconnectorComponent信息 - 创建了ID:3460的MQTT客户端

17.07.19 14:34:57.347 pxcetcs.mqttclient.mqttclientManager信息 - 连接到MQTT服务器

17.07.19 14:34:58.479 pxcetcs.mqttclient.mqttclientManager信息 - 连接

17.07.19 14:34:58.479 pxcetcs.mqtt.gdsconnectorcomponent信息 - 连接到MQTT客户端3460

17.07.19 14:34:58.482 pxcetcs.mqt.gdsconnectorcomponent错误 - 端口ARP.PLC.ECLR / MainInstance.PubMessage:Notexists

17.07.19 14:34:58.490 ARP.Device.Interface.internal.devicestatus信息 - CheckWtask运行

17.07.19 14:34:58.492 ARP.Device.Interface.internal.devicestatus信息 - 2端口的Alloc内存

Martin PLCnext Team 接受答案 等待审核
0
Votes
撤消

你好,

I guess that you are looking at the error message for this port - Arp.Plc.Eclr/MainInstance.PubMessage ?

如该应用程序的技术文档中所述:

PLCNext工程师程序的端口必须以以下格式指定:

arp.plc.eclr / programinstance.portname.portname.portname.

... 在哪里 ProMPLACTINSTACE. 必须是PLCNext Enginemer项目中程序实例的名称,以及 portName. 必须在该程序中定义的端口变量的名称

So you must create a Program in PLCnext Engineer with at least one port - data to publish should be in an OUT port. According to the error message, this port variable must be called PubMessage. The program containing this port variable must then be instantiated in a task - according to the error message, this program instance should be called MainInstance. Then, the project must be downloaded to the PLC, and the PLC should be restarted. The error message should then disappear.

希望这可以帮助。

- 马丁。

 

 

Phoenix联系电子总部 - PLCNext运行时产品管理和支持
sotsukenr1 接受答案 等待审核
0
Votes
撤消

这个问题已经解决了。非常感谢你。

这是什么错误

17.07.19 19:13:16.649 ARP.IO.ProfinetStack.System.Internal.Aveaption Warn - 事件存档条目,模块ID:0,消息:模块0x54禁用

17.07.19 19:13:16.649 ARP.IO.ProfinetStack.System.Internal.Aveaption Warn - 事件存档条目,模块ID:0,消息:模块0x54禁用

17.07.19 19:13:18.647 ARP.IO.ProfinetStack.System.Internal.System Info - ProfinetStack初始化

17.07.19 19:13:19.176 ARP.IO.ProfinetStack.System.Internal.AveTion错误 - 错误堆栈条目0:Modid:57错误码= 0xD357060B,AddInfo = 0x0 Codelab:0x5500012b dcparp_util.c(299)

17.07.19 19:13:19.177 ARP.IO.ProfinetStack.System.Internal.Aption Info - Controller收到的控制器请求

Martin PLCnext Team 接受答案 等待审核
0
Votes
撤消

错误消息与MQTT应用程序无关。它是PROFINET堆栈的已知问题的症状,但不应该对您的项目造成任何效应。

- 马丁。

Phoenix联系电子总部 - PLCNext运行时产品管理和支持
  • 页 :
  • 1


这篇文章没有答复。
但是,您不允许回复此帖。