Forum Replies Created
-
AuthorPosts
-
kumajaya
ParticipantCopy KpOpcUa.Linux.xml as KpOpcUa.Logic.xml but replace all ‘%LocalApplicationData%’ string with ‘%CommonApplicationData%’ solve above problem but now I got:
Error connecting OPC server: System.AggregateException: One or more errors occurred. (The type initializer for ‘Opc.Ua.ServiceMessageContext’ threw an exception.) —> System.TypeInitializationException: The type initializer for ‘Opc.Ua.ServiceMessageContext’ threw an exception. —> System.TypeInitializationException: The type initializer for ‘Opc.Ua.EncodeableFactory’ threw an exception. —> System.TypeLoadException: Could not load type of field ‘Opc.Ua.JsonDecoder:m_reader’ (0) due to: Could not load file or assembly ‘Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed’ or one of its dependencies.
at (wrapper managed-to-native) System.RuntimeTypeHandle.type_is_assignable_from(System.Type,System.Type)
at System.RuntimeTypeHandle.CanCastTo (System.RuntimeType type, System.RuntimeType target) [0x00000] in <a17fa1457c5d44f2885ac746c1764ea5>:0
at System.RuntimeType.IsAssignableFrom (System.Type c) [0x00020] in <a17fa1457c5d44f2885ac746c1764ea5>:0
at System.RuntimeType.IsAssignableFrom (System.Reflection.TypeInfo typeInfo) [0x00012] in <a17fa1457c5d44f2885ac746c1764ea5>:0
at Opc.Ua.EncodeableFactory.AddEncodeableType (System.Type systemType) [0x00034] in <46754062c86e433a8050147004074236>:0
at Opc.Ua.EncodeableFactory.AddEncodeableTypes (System.Reflection.Assembly assembly) [0x00034] in <46754062c86e433a8050147004074236>:0
at Opc.Ua.EncodeableFactory..ctor () [0x0002d] in <46754062c86e433a8050147004074236>:0
at Opc.Ua.EncodeableFactory..cctor () [0x00000] in <46754062c86e433a8050147004074236>:0
— End of inner exception stack trace —
at Opc.Ua.ServiceMessageContext..ctor () [0x00053] in <46754062c86e433a8050147004074236>:0
at Opc.Ua.ServiceMessageContext..ctor (System.Boolean shared) [0x00000] in <46754062c86e433a8050147004074236>:0
at Opc.Ua.ServiceMessageContext..cctor () [0x00000] in <46754062c86e433a8050147004074236>:0
— End of inner exception stack trace —
at Opc.Ua.DiscoveryClient.Create (System.Uri discoveryUrl, Opc.Ua.EndpointConfiguration configuration) [0x0000a] in <46754062c86e433a8050147004074236>:0
at Opc.Ua.Client.CoreClientUtils.SelectEndpoint (System.String discoveryUrl, System.Boolean useSecurity, System.Int32 operationTimeout) [0x00041] in <bdddc5532da84081a96bd9e7feb3ef1e>:0
at Scada.Comm.Devices.OpcUa.OpcUaHelper.ConnectAsync (Scada.Comm.Devices.OpcUa.Config.ConnectionOptions connectionOptions, System.Int32 operationTimeout) [0x001e9] in <39294643693b45b3b8e6300c5758da94>:0
— End of inner exception stack trace —
at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in <a17fa1457c5d44f2885ac746c1764ea5>:0
at System.Threading.Tasks.Task`1[TResult].GetResultCore (System.Boolean waitCompletionNotification) [0x0002b] in <a17fa1457c5d44f2885ac746c1764ea5>:0
at System.Threading.Tasks.Task`1[TResult].get_Result () [0x0000f] in <a17fa1457c5d44f2885ac746c1764ea5>:0
at Scada.Comm.Devices.KpOpcUaLogic.ConnectToOpcServer () [0x00051] in <39294643693b45b3b8e6300c5758da94>:0
—> (Inner Exception #0) System.TypeInitializationException: The type initializer for ‘Opc.Ua.ServiceMessageContext’ threw an exception. —> System.TypeInitializationException: The type initializer for ‘Opc.Ua.EncodeableFactory’ threw an exception. —> System.TypeLoadException: Could not load type of field ‘Opc.Ua.JsonDecoder:m_reader’ (0) due to: Could not load file or assembly ‘Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed’ or one of its dependencies.
at (wrapper managed-to-native) System.RuntimeTypeHandle.type_is_assignable_from(System.Type,System.Type)
at System.RuntimeTypeHandle.CanCastTo (System.RuntimeType type, System.RuntimeType target) [0x00000] in <a17fa1457c5d44f2885ac746c1764ea5>:0
at System.RuntimeType.IsAssignableFrom (System.Type c) [0x00020] in <a17fa1457c5d44f2885ac746c1764ea5>:0
at System.RuntimeType.IsAssignableFrom (System.Reflection.TypeInfo typeInfo) [0x00012] in <a17fa1457c5d44f2885ac746c1764ea5>:0
at Opc.Ua.EncodeableFactory.AddEncodeableType (System.Type systemType) [0x00034] in <46754062c86e433a8050147004074236>:0
at Opc.Ua.EncodeableFactory.AddEncodeableTypes (System.Reflection.Assembly assembly) [0x00034] in <46754062c86e433a8050147004074236>:0
at Opc.Ua.EncodeableFactory..ctor () [0x0002d] in <46754062c86e433a8050147004074236>:0
at Opc.Ua.EncodeableFactory..cctor () [0x00000] in <46754062c86e433a8050147004074236>:0
— End of inner exception stack trace —
at Opc.Ua.ServiceMessageContext..ctor () [0x00053] in <46754062c86e433a8050147004074236>:0
at Opc.Ua.ServiceMessageContext..ctor (System.Boolean shared) [0x00000] in <46754062c86e433a8050147004074236>:0
at Opc.Ua.ServiceMessageContext..cctor () [0x00000] in <46754062c86e433a8050147004074236>:0
— End of inner exception stack trace —
at Opc.Ua.DiscoveryClient.Create (System.Uri discoveryUrl, Opc.Ua.EndpointConfiguration configuration) [0x0000a] in <46754062c86e433a8050147004074236>:0
at Opc.Ua.Client.CoreClientUtils.SelectEndpoint (System.String discoveryUrl, System.Boolean useSecurity, System.Int32 operationTimeout) [0x00041] in <bdddc5532da84081a96bd9e7feb3ef1e>:0
at Scada.Comm.Devices.OpcUa.OpcUaHelper.ConnectAsync (Scada.Comm.Devices.OpcUa.Config.ConnectionOptions connectionOptions, System.Int32 operationTimeout) [0x001e9] in <39294643693b45b3b8e6300c5758da94>:0 <—kumajaya
ParticipantError on Ubuntu 20.04:
2020-07-09 14:44:00 Communication session with the Device 1002 “OPC UA 02”, type: KpOpcUa
Error connecting OPC server: System.AggregateException: One or more errors occurred. (Cannot access certificate private key. Subject=CN=KpOpcUa, O=OPC Foundation, DC=weighing-tx1310-m3) —> Opc.Ua.ServiceResultException: Cannot access certificate private key. Subject=CN=KpOpcUa, O=OPC Foundation, DC=weighing-tx1310-m3
at Opc.Ua.Configuration.ApplicationInstance.CheckApplicationInstanceCertificate (System.Boolean silent, System.UInt16 minimumKeySize, System.UInt16 lifeTimeInMonths) [0x0028d] in <257f0400988e4a10b271f6f92984b904>:0
at Scada.Comm.Devices.OpcUa.OpcUaHelper.ConnectAsync (Scada.Comm.Devices.OpcUa.Config.ConnectionOptions connectionOptions, System.Int32 operationTimeout) [0x00138] in <39294643693b45b3b8e6300c5758da94>:0
— End of inner exception stack trace —
at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in <a17fa1457c5d44f2885ac746c1764ea5>:0
at System.Threading.Tasks.Task`
1[TResult].GetResultCore (System.Boolean waitCompletionNotification) [0x0002b] in <a17fa1457c5d44f2885ac746c1764ea5>:0
at System.Threading.Tasks.Task`1[TResult].get_Result () [0x0000f] in <a17fa1457c5d44f2885ac746c1764ea5>:0
at Scada.Comm.Devices.KpOpcUaLogic.ConnectToOpcServer () [0x00051] in <39294643693b45b3b8e6300c5758da94>:0
—> (Inner Exception #0) Opc.Ua.ServiceResultException: Cannot access certificate private key. Subject=CN=KpOpcUa, O=OPC Foundation, DC=weighing-tx1310-m3
at Opc.Ua.Configuration.ApplicationInstance.CheckApplicationInstanceCertificate (System.Boolean silent, System.UInt16 minimumKeySize, System.UInt16 lifeTimeInMonths) [0x0028d] in <257f0400988e4a10b271f6f92984b904>:0
at Scada.Comm.Devices.OpcUa.OpcUaHelper.ConnectAsync (Scada.Comm.Devices.OpcUa.Config.ConnectionOptions connectionOptions, System.Int32 operationTimeout) [0x00138] in <39294643693b45b3b8e6300c5758da94>:0 <—-
This reply was modified 5 years, 6 months ago by
kumajaya.
kumajaya
ParticipantPlease update module repository to 5.1.0 release.
kumajaya
ParticipantCan we just have an option to hold last valid value?
kumajaya
ParticipantIt’s works! But missing BouncyCastle.Crypto.dll 1.8.4 in your package.
kumajaya
ParticipantIt’s good if you rebase it to upstream Strider Mqtt https://github.com/ericvoid/StriderMqtt I’m not that expert to rewrite a driver from scratch.
kumajaya
ParticipantI have found why my old binary more reliable maintain connection to ThingsBoard than the current version. Revert https://github.com/bersim/OpenKPs/commit/cbf039eccbbd17b1ae6b0c66dd4db04237b4969f restore reconnection feature.
kumajaya
ParticipantUpdate for example dashboard from my personal project:
-
This reply was modified 6 years, 4 months ago by
kumajaya.
kumajaya
ParticipantFrom ThingsBoard’s FAQ https://thingsboard.io/docs/faq/#what-is-thingsboard :
ThingsBoard is an open-source server-side platform that allows you to monitor and control your IoT devices. It is free for both personal and commercial usage and you can deploy it anywhere.ThingsBoard’s Mqtt API reference: https://thingsboard.io/docs/reference/mqtt-api/
-
This reply was modified 6 years, 4 months ago by
kumajaya.
kumajaya
Participantkumajaya
ParticipantExample config, ACCESS_TOKEN as UserName:
<?xml version="1.0" encoding="utf-8"?> <DevTemplate> <MqttParams Hostname="127.0.0.1" ClientID="KpMQTTrs111" Port="1884" UserName="owMdAakfgOlUOUwF0mpB" Password=""/> <RapSrvCnf ServerHost="127.0.0.1" ServerPort="10000" ServerUser="ScadaComm" ServerPwd="12345"/> <MqttSubTopics> </MqttSubTopics> <MqttPubTopics> <Topic TopicName="v1/devices/me/telemetry" QosLevel="1" NumCnl="13" Prefix="{ "p0":" Suffix=" }" PubBehavior="OnChange" Retain="false" NDS="."/> <Topic TopicName="v1/devices/me/telemetry" QosLevel="1" NumCnl="14" Prefix="{ "p1":" Suffix=" }" PubBehavior="OnChange" Retain="false" NDS="."/> <Topic TopicName="v1/devices/me/telemetry" QosLevel="1" NumCnl="15" Prefix="{ "p2":" Suffix=" }" PubBehavior="OnChange" Retain="false" NDS="."/> <Topic TopicName="v1/devices/me/telemetry" QosLevel="1" NumCnl="16" Prefix="{ "p3":" Suffix=" }" PubBehavior="OnChange" Retain="false" NDS="."/> <Topic TopicName="v1/devices/me/telemetry" QosLevel="1" NumCnl="26" Prefix="{ "p4":" Suffix=" }" PubBehavior="OnChange" Retain="false" NDS="."/> <Topic TopicName="v1/devices/me/telemetry" QosLevel="1" NumCnl="27" Prefix="{ "p5":" Suffix=" }" PubBehavior="OnChange" Retain="false" NDS="."/> <Topic TopicName="v1/devices/me/telemetry" QosLevel="1" NumCnl="28" Prefix="{ "p6":" Suffix=" }" PubBehavior="OnChange" Retain="false" NDS="."/> <Topic TopicName="v1/devices/me/telemetry" QosLevel="1" NumCnl="29" Prefix="{ "p7":" Suffix=" }" PubBehavior="OnChange" Retain="false" NDS="."/> <Topic TopicName="v1/devices/me/telemetry" QosLevel="1" NumCnl="31" Prefix="{ "p8":" Suffix=" }" PubBehavior="OnChange" Retain="false" NDS="."/> <Topic TopicName="v1/devices/me/telemetry" QosLevel="1" NumCnl="33" Prefix="{ "p9":" Suffix=" }" PubBehavior="OnChange" Retain="false" NDS="."/> <Topic TopicName="v1/devices/me/telemetry" QosLevel="1" NumCnl="30" Prefix="{ "v0":" Suffix=" }" PubBehavior="OnChange" Retain="false" NDS="."/> <Topic TopicName="v1/devices/me/telemetry" QosLevel="1" NumCnl="32" Prefix="{ "v1":" Suffix=" }" PubBehavior="OnChange" Retain="false" NDS="."/> <Topic TopicName="v1/devices/me/telemetry" QosLevel="1" NumCnl="25" Prefix="{ "v2":" Suffix=" }" PubBehavior="OnChange" Retain="false" NDS="."/> </MqttPubTopics> <MqttPubCmds> </MqttPubCmds> <MqttSubCmds> </MqttSubCmds> <MqttSubJSs> </MqttSubJSs> </DevTemplate>kumajaya
ParticipantSorry for my late reply, ThingsBoard expect json formatted payload: https://github.com/kumajaya/scada-community/commit/a8a7bce35deb4c3f1e0ae604be3685b47d2e1027
kumajaya
ParticipantKpMQTT + Emqtt + Telegraf + InfluxDB + Grafana:

Will be great if Grafana can access Rapid SCADA database directly.kumajaya
ParticipantWill be great! Can we embed Freeboard inside Rapid SCADA current dashboard?
kumajaya
ParticipantThe dashboard more resource hungry than Rapid SCADA but works 😀

-
This reply was modified 5 years, 6 months ago by
-
AuthorPosts