Coder Social home page Coder Social logo

Comments (14)

awcullen avatar awcullen commented on June 6, 2024

Thank you for asking me to test Prosys UA Simulation Server. It's very nice.

I found my bug that caused this ServiceResultException. The Prosys server returns MaxMessageSize = 0, which should mean no limit.

But another detail was even more tricky. Prosys wants you to use the complete, full endpointUrl when you connect: 'opc.tcp://ip:53530/OPCUA/SimulationServer'

Please update your NuGet package to 1.5.12

from opc-ua-samples.

Savoyyang avatar Savoyyang commented on June 6, 2024

I test the full endpointUrl and update NuGet package to 1.5.12 ,but still Unable to connect .

default

default

from opc-ua-samples.

awcullen avatar awcullen commented on June 6, 2024

First, please check if the certificate is trusted by the Simulation Server. The server has a Certificates tab. Find this android app's certificate and if it says "rejected" then right-click on it and select "trust".

If that was not the problem then you should find some messages in the Debug Output that contain "Workstation.ServiceModel.Ua". Post them here.

from opc-ua-samples.

Savoyyang avatar Savoyyang commented on June 6, 2024

Thread started: #7
InspectorDebugSession(4): HandleTargetEvent: ThreadStarted
04-25 09:14:16.439 D/Mono ( 3267): Image addref System.Text.Encoding[0xb8e79f80] -> System.Text.Encoding.dll[0xb8e72040]: 2
04-25 09:14:16.439 D/Mono ( 3267): Prepared to set up assembly 'System.Text.Encoding' (System.Text.Encoding.dll)
04-25 09:14:16.439 D/Mono ( 3267): Assembly System.Text.Encoding[0xb8e79f80] added to domain RootDomain, ref_count=1
04-25 09:14:16.439 D/Mono ( 3267): AOT module 'System.Text.Encoding.dll.so' not found: dlopen failed: library "/data/app-lib/Workstation.MobileHmi-2/libaot-System.Text.Encoding.dll.so" not found
04-25 09:14:16.439 D/Mono ( 3267): AOT module '/Users/builder/data/lanes/4468/f913a78a/source/monodroid/builds/install/mono-x86/lib/mono/aot-cache/x86/System.Text.Encoding.dll.so' not found: dlopen failed: library "/data/app-lib/Workstation.MobileHmi-2/libaot-System.Text.Encoding.dll.so" not found
04-25 09:14:16.439 D/Mono ( 3267): Config attempting to parse: 'System.Text.Encoding.dll.config'.
04-25 09:14:16.439 D/Mono ( 3267): Config attempting to parse: '/Users/builder/data/lanes/4468/f913a78a/source/monodroid/builds/install/mono-x86/etc/mono/assemblies/System.Text.Encoding/System.Text.Encoding.config'.
04-25 09:14:16.439 D/Mono ( 3267): Assembly Ref addref Workstation.UaClient[0xb7920300] -> System.Text.Encoding[0xb8e79f80]: 2
04-25 09:14:16.439 D/Mono ( 3267): Assembly Ref addref System.Text.Encoding[0xb8e79f80] -> mscorlib[0xb78d47c0]: 44
Loaded assembly: System.Text.Encoding.dll [External]
04-25 09:14:16.459 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:16.459 D/Mono ( 3267): Searching for 'Context_Context'.
04-25 09:14:16.459 D/Mono ( 3267): Probing 'Context_Context'.
04-25 09:14:16.459 D/Mono ( 3267): Found as 'Context_Context'.
04-25 09:14:16.463 D/Mono ( 3267): Assembly Ref addref Urho.Forms[0xb791f4d0] -> System.Core[0xb7b4a270]: 8
04-25 09:14:16.475 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:16.475 D/Mono ( 3267): Searching for 'RefCounted_Refs'.
04-25 09:14:16.475 D/Mono ( 3267): Probing 'RefCounted_Refs'.
04-25 09:14:16.475 D/Mono ( 3267): Found as 'RefCounted_Refs'.
04-25 09:14:16.491 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:16.491 D/Mono ( 3267): Searching for 'ApplicationProxy_ApplicationProxy'.
04-25 09:14:16.491 D/Mono ( 3267): Probing 'ApplicationProxy_ApplicationProxy'.
04-25 09:14:16.491 D/Mono ( 3267): Found as 'ApplicationProxy_ApplicationProxy'.
04-25 09:14:16.527 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:16.527 D/Mono ( 3267): Searching for 'Application_Run'.
04-25 09:14:16.527 D/Mono ( 3267): Probing 'Application_Run'.
04-25 09:14:16.527 D/Mono ( 3267): Found as 'Application_Run'.
04-25 09:14:16.527 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:16.527 D/Mono ( 3267): Searching for 'UrhoObject_GetTypeName'.
04-25 09:14:16.527 D/Mono ( 3267): Probing 'UrhoObject_GetTypeName'.
04-25 09:14:16.527 D/Mono ( 3267): Found as 'UrhoObject_GetTypeName'.
04-25 09:14:16.527 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:16.527 D/Mono ( 3267): Searching for 'UrhoObject_GetContext'.
04-25 09:14:16.527 D/Mono ( 3267): Probing 'UrhoObject_GetContext'.
04-25 09:14:16.527 D/Mono ( 3267): Found as 'UrhoObject_GetContext'.
04-25 09:14:16.567 I/Urho3D ( 3267): Created 1 worker thread
Thread started: #8
04-25 09:14:16.579 I/Urho3D ( 3267): Added resource package /apk/CoreData.pak
InspectorDebugSession(4): HandleTargetEvent: ThreadStarted
04-25 09:14:16.623 D/Mono ( 3267): Image addref System.Text.Encoding.Extensions[0xb8f9f800] -> System.Text.Encoding.Extensions.dll[0xb8f90330]: 2
04-25 09:14:16.623 D/Mono ( 3267): Prepared to set up assembly 'System.Text.Encoding.Extensions' (System.Text.Encoding.Extensions.dll)
04-25 09:14:16.623 D/Mono ( 3267): Assembly System.Text.Encoding.Extensions[0xb8f9f800] added to domain RootDomain, ref_count=1
04-25 09:14:16.623 D/Mono ( 3267): AOT module 'System.Text.Encoding.Extensions.dll.so' not found: dlopen failed: library "/data/app-lib/Workstation.MobileHmi-2/libaot-System.Text.Encoding.Extensions.dll.so" not found
04-25 09:14:16.631 D/Mono ( 3267): AOT module '/Users/builder/data/lanes/4468/f913a78a/source/monodroid/builds/install/mono-x86/lib/mono/aot-cache/x86/System.Text.Encoding.Extensions.dll.so' not found: dlopen failed: library "/data/app-lib/Workstation.MobileHmi-2/libaot-System.Text.Encoding.Extensions.dll.so" not found
04-25 09:14:16.631 D/Mono ( 3267): Config attempting to parse: 'System.Text.Encoding.Extensions.dll.config'.
04-25 09:14:16.631 D/Mono ( 3267): Config attempting to parse: '/Users/builder/data/lanes/4468/f913a78a/source/monodroid/builds/install/mono-x86/etc/mono/assemblies/System.Text.Encoding.Extensions/System.Text.Encoding.Extensions.config'.
04-25 09:14:16.631 D/Mono ( 3267): Assembly Ref addref Workstation.UaClient[0xb7920300] -> System.Text.Encoding.Extensions[0xb8f9f800]: 2
04-25 09:14:16.631 D/Mono ( 3267): Assembly Ref addref System.Text.Encoding.Extensions[0xb8f9f800] -> mscorlib[0xb78d47c0]: 45
Loaded assembly: System.Text.Encoding.Extensions.dll [External]
04-25 09:14:16.747 D/Mono ( 3267): Unloading image System.Threading.dll [0xb9024460].
04-25 09:14:16.747 D/Mono ( 3267): Image addref System.Threading[0xb90360e0] -> System.Threading.dll[0xb79a4300]: 7
04-25 09:14:16.747 D/Mono ( 3267): Config attempting to parse: 'System.Threading.dll.config'.
04-25 09:14:16.747 D/Mono ( 3267): Config attempting to parse: '/Users/builder/data/lanes/4468/f913a78a/source/monodroid/builds/install/mono-x86/etc/mono/assemblies/System.Threading/System.Threading.config'.
04-25 09:14:16.747 D/Mono ( 3267): Assembly Ref addref System.Threading.Tasks.Dataflow[0xb791d8c0] -> System.Threading[0xb79d6e40]: 7
04-25 09:14:16.763 D/Mono ( 3267): [0xb800f940] hill climbing, change max number of threads 3
Thread started: #9
InspectorDebugSession(4): HandleTargetEvent: ThreadStarted
04-25 09:14:16.859 D/Mono ( 3267): [0xb9044a20] worker starting
04-25 09:14:16.959 I/Urho3D ( 3267): Added resource path /apk/Data/
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Error: Error discovering endpoints of 'opc.tcp://192.168.0.186:53530/OPCUA/SimulationServer'. The message encoding/decoding limits imposed by the stack have been exceeded.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Information: Closing channel with endpoint 'opc.tcp://192.168.0.186:53530/OPCUA/SimulationServer'.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Error: Error closing channel. Object reference not set to an instance of an object.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Trace: Connecting in 2000 ms.
04-25 09:14:17.139 D/GLHostConnection( 3267): Waiting for host to establish connection for PID 3267 (Workstation.MobileHmi)
04-25 09:14:17.143 D/Mono ( 3267): DllImport searching in: '__Internal' ('(null)').
04-25 09:14:17.143 D/Mono ( 3267): Searching for 'java_interop_jnienv_call_void_method'.
04-25 09:14:17.143 D/Mono ( 3267): Probing 'java_interop_jnienv_call_void_method'.
04-25 09:14:17.143 D/Mono ( 3267): Found as 'java_interop_jnienv_call_void_method'.
04-25 09:14:17.143 D/GLHostConnection( 3267): HostConnection::get() New Host Connection established 0xb913c030, tid 3294
04-25 09:14:17.195 I/Urho3D ( 3267): Set screen mode 1080x547 windowed
04-25 09:14:17.195 I/Urho3D ( 3267): Initialized input
04-25 09:14:17.195 I/Urho3D ( 3267): Initialized user interface
04-25 09:14:17.203 D/dalvikvm( 3267): GC_CONCURRENT freed 362K, 7% free 6295K/6724K, paused 2ms+0ms, total 7ms
04-25 09:14:17.203 D/dalvikvm( 3267): WAIT_FOR_CONCURRENT_GC blocked 3ms
04-25 09:14:17.219 D/dalvikvm( 3267): GC_CONCURRENT freed 1064K, 16% free 6290K/7444K, paused 0ms+1ms, total 3ms
04-25 09:14:17.219 D/dalvikvm( 3267): WAIT_FOR_CONCURRENT_GC blocked 3ms
04-25 09:14:17.255 D/dalvikvm( 3267): GC_CONCURRENT freed 1061K, 16% free 6290K/7444K, paused 1ms+0ms, total 3ms
04-25 09:14:17.259 D/dalvikvm( 3267): WAIT_FOR_CONCURRENT_GC blocked 3ms
04-25 09:14:17.303 D/dalvikvm( 3267): GC_CONCURRENT freed 959K, 14% free 6431K/7444K, paused 3ms+0ms, total 32ms
04-25 09:14:17.359 D/dalvikvm( 3267): GC_CONCURRENT freed 1241K, 18% free 6294K/7620K, paused 1ms+2ms, total 15ms
04-25 09:14:17.415 I/Urho3D ( 3267): Initialized renderer
04-25 09:14:17.415 V/SDL ( 3267): SDL audio: opening device
04-25 09:14:17.415 V/SDL ( 3267): SDL audio: wanted stereo 16-bit 44.1kHz, 4096 frames buffer
04-25 09:14:17.423 V/SDL ( 3267): SDL audio: got stereo 16-bit 44.1kHz, 4096 frames buffer
04-25 09:14:17.423 I/Urho3D ( 3267): Set audio mode 44100 Hz stereo interpolated
04-25 09:14:17.423 I/Urho3D ( 3267): Initialized engine
04-25 09:14:17.423 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.423 D/Mono ( 3267): Searching for 'RegisterMonoNativeCallbacks'.
04-25 09:14:17.423 D/Mono ( 3267): Probing 'RegisterMonoNativeCallbacks'.
04-25 09:14:17.423 D/Mono ( 3267): Found as 'RegisterMonoNativeCallbacks'.
04-25 09:14:17.423 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.423 D/Mono ( 3267): Searching for 'Application_GetEngine'.
04-25 09:14:17.423 D/Mono ( 3267): Probing 'Application_GetEngine'.
04-25 09:14:17.423 D/Mono ( 3267): Found as 'Application_GetEngine'.
04-25 09:14:17.423 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.423 D/Mono ( 3267): Searching for 'urho_subscribe_Update'.
04-25 09:14:17.423 D/Mono ( 3267): Probing 'urho_subscribe_Update'.
04-25 09:14:17.423 D/Mono ( 3267): Found as 'urho_subscribe_Update'.
04-25 09:14:17.427 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.427 D/Mono ( 3267): Searching for 'UrhoObject_GetSubsystem'.
04-25 09:14:17.427 D/Mono ( 3267): Probing 'UrhoObject_GetSubsystem'.
04-25 09:14:17.427 D/Mono ( 3267): Found as 'UrhoObject_GetSubsystem'.
04-25 09:14:17.427 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.427 D/Mono ( 3267): Searching for 'Log_GetTypeStatic'.
04-25 09:14:17.427 D/Mono ( 3267): Probing 'Log_GetTypeStatic'.
04-25 09:14:17.427 D/Mono ( 3267): Found as 'Log_GetTypeStatic'.
04-25 09:14:17.439 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.439 D/Mono ( 3267): Searching for 'urho_subscribe_LogMessage'.
04-25 09:14:17.439 D/Mono ( 3267): Probing 'urho_subscribe_LogMessage'.
04-25 09:14:17.439 D/Mono ( 3267): Found as 'urho_subscribe_LogMessage'.
04-25 09:14:17.463 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.463 D/Mono ( 3267): Searching for 'Scene_Scene'.
04-25 09:14:17.463 D/Mono ( 3267): Probing 'Scene_Scene'.
04-25 09:14:17.463 D/Mono ( 3267): Found as 'Scene_Scene'.
04-25 09:14:17.491 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.491 D/Mono ( 3267): Searching for 'urho_subscribe_ComponentCloned'.
04-25 09:14:17.491 D/Mono ( 3267): Probing 'urho_subscribe_ComponentCloned'.
04-25 09:14:17.491 D/Mono ( 3267): Found as 'urho_subscribe_ComponentCloned'.
04-25 09:14:17.495 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.495 D/Mono ( 3267): Searching for 'ResourceCache_GetTypeStatic'.
04-25 09:14:17.495 D/Mono ( 3267): Probing 'ResourceCache_GetTypeStatic'.
04-25 09:14:17.495 D/Mono ( 3267): Found as 'ResourceCache_GetTypeStatic'.
04-25 09:14:17.495 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.495 D/Mono ( 3267): Searching for 'Scene_LoadXMLFromCache'.
04-25 09:14:17.495 D/Mono ( 3267): Probing 'Scene_LoadXMLFromCache'.
04-25 09:14:17.495 D/Mono ( 3267): Found as 'Scene_LoadXMLFromCache'.
04-25 09:14:17.523 I/Urho3D ( 3267): Loading scene from Scenes/irb6700_scene.xml
04-25 09:14:17.527 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.527 D/Mono ( 3267): Searching for 'urho_hash_get_P_LEVEL'.
04-25 09:14:17.527 D/Mono ( 3267): Probing 'urho_hash_get_P_LEVEL'.
04-25 09:14:17.527 D/Mono ( 3267): Found as 'urho_hash_get_P_LEVEL'.
04-25 09:14:17.527 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.527 D/Mono ( 3267): Searching for 'urho_map_get_int'.
04-25 09:14:17.527 D/Mono ( 3267): Probing 'urho_map_get_int'.
04-25 09:14:17.527 D/Mono ( 3267): Found as 'urho_map_get_int'.
04-25 09:14:17.527 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.527 D/Mono ( 3267): Searching for 'urho_hash_get_P_MESSAGE'.
04-25 09:14:17.527 D/Mono ( 3267): Probing 'urho_hash_get_P_MESSAGE'.
04-25 09:14:17.527 D/Mono ( 3267): Found as 'urho_hash_get_P_MESSAGE'.
04-25 09:14:17.527 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.527 D/Mono ( 3267): Searching for 'urho_map_get_String'.
04-25 09:14:17.527 D/Mono ( 3267): Probing 'urho_map_get_String'.
04-25 09:14:17.527 D/Mono ( 3267): Found as 'urho_map_get_String'.
[0:] [1] [Tue Apr 25 09:14:17 2017] INFO: Loading scene from Scenes/irb6700_scene.xml
04-25 09:14:17.535 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.535 D/Mono ( 3267): Searching for 'XmlElement_GetAttribute'.
04-25 09:14:17.535 D/Mono ( 3267): Probing 'XmlElement_GetAttribute'.
04-25 09:14:17.535 D/Mono ( 3267): Found as 'XmlElement_GetAttribute'.
04-25 09:14:17.687 D/dalvikvm( 3267): GC_CONCURRENT freed 940K, 17% free 6365K/7620K, paused 2ms+13ms, total 36ms
04-25 09:14:17.891 D/dalvikvm( 3267): GC_CONCURRENT freed 1020K, 17% free 6340K/7620K, paused 2ms+0ms, total 4ms
04-25 09:14:17.915 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.915 D/Mono ( 3267): Searching for 'Node_GetChild22'.
04-25 09:14:17.915 D/Mono ( 3267): Probing 'Node_GetChild22'.
04-25 09:14:17.915 D/Mono ( 3267): Found as 'Node_GetChild22'.
04-25 09:14:17.923 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.923 D/Mono ( 3267): Searching for 'Node_CreateChild'.
04-25 09:14:17.923 D/Mono ( 3267): Probing 'Node_CreateChild'.
04-25 09:14:17.923 D/Mono ( 3267): Found as 'Node_CreateChild'.
04-25 09:14:17.927 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.927 D/Mono ( 3267): Searching for 'Camera_Camera'.
04-25 09:14:17.927 D/Mono ( 3267): Probing 'Camera_Camera'.
04-25 09:14:17.927 D/Mono ( 3267): Found as 'Camera_Camera'.
04-25 09:14:17.927 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.927 D/Mono ( 3267): Searching for 'Node_AddComponent'.
04-25 09:14:17.927 D/Mono ( 3267): Probing 'Node_AddComponent'.
04-25 09:14:17.927 D/Mono ( 3267): Found as 'Node_AddComponent'.
04-25 09:14:17.927 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.927 D/Mono ( 3267): Searching for 'Component_GetNode'.
04-25 09:14:17.927 D/Mono ( 3267): Probing 'Component_GetNode'.
04-25 09:14:17.927 D/Mono ( 3267): Found as 'Component_GetNode'.
04-25 09:14:17.927 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.927 D/Mono ( 3267): Searching for 'Node_SetPosition'.
04-25 09:14:17.927 D/Mono ( 3267): Probing 'Node_SetPosition'.
04-25 09:14:17.927 D/Mono ( 3267): Found as 'Node_SetPosition'.
04-25 09:14:17.927 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.927 D/Mono ( 3267): Searching for 'Engine_SetMinFps'.
04-25 09:14:17.927 D/Mono ( 3267): Probing 'Engine_SetMinFps'.
04-25 09:14:17.927 D/Mono ( 3267): Found as 'Engine_SetMinFps'.
04-25 09:14:17.931 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.931 D/Mono ( 3267): Searching for 'Engine_SetMaxFps'.
04-25 09:14:17.931 D/Mono ( 3267): Probing 'Engine_SetMaxFps'.
04-25 09:14:17.931 D/Mono ( 3267): Found as 'Engine_SetMaxFps'.
04-25 09:14:17.931 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.931 D/Mono ( 3267): Searching for 'Renderer_GetTypeStatic'.
04-25 09:14:17.931 D/Mono ( 3267): Probing 'Renderer_GetTypeStatic'.
04-25 09:14:17.931 D/Mono ( 3267): Found as 'Renderer_GetTypeStatic'.
04-25 09:14:17.931 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.931 D/Mono ( 3267): Searching for 'Node_GetComponents'.
04-25 09:14:17.931 D/Mono ( 3267): Probing 'Node_GetComponents'.
04-25 09:14:17.931 D/Mono ( 3267): Found as 'Node_GetComponents'.
04-25 09:14:17.931 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.931 D/Mono ( 3267): Searching for 'VectorSharedPtr_Count'.
04-25 09:14:17.931 D/Mono ( 3267): Probing 'VectorSharedPtr_Count'.
04-25 09:14:17.931 D/Mono ( 3267): Found as 'VectorSharedPtr_Count'.
04-25 09:14:17.931 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.931 D/Mono ( 3267): Searching for 'VectorSharedPtr_GetIdx'.
04-25 09:14:17.931 D/Mono ( 3267): Probing 'VectorSharedPtr_GetIdx'.
04-25 09:14:17.931 D/Mono ( 3267): Found as 'VectorSharedPtr_GetIdx'.
04-25 09:14:17.935 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.935 D/Mono ( 3267): Searching for 'Viewport_Viewport0'.
04-25 09:14:17.935 D/Mono ( 3267): Probing 'Viewport_Viewport0'.
04-25 09:14:17.935 D/Mono ( 3267): Found as 'Viewport_Viewport0'.
04-25 09:14:17.935 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.935 D/Mono ( 3267): Searching for 'Renderer_SetViewport'.
04-25 09:14:17.935 D/Mono ( 3267): Probing 'Renderer_SetViewport'.
04-25 09:14:17.935 D/Mono ( 3267): Found as 'Renderer_SetViewport'.
04-25 09:14:17.943 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.943 D/Mono ( 3267): Searching for 'urho_hash_get_P_TIMESTEP'.
04-25 09:14:17.943 D/Mono ( 3267): Probing 'urho_hash_get_P_TIMESTEP'.
04-25 09:14:17.943 D/Mono ( 3267): Found as 'urho_hash_get_P_TIMESTEP'.
04-25 09:14:17.943 D/Mono ( 3267): DllImport searching in: 'mono-urho' ('/storage/emulated/0/Android/data/Workstation.MobileHmi/files/.override/libmono-urho.so').
04-25 09:14:17.943 D/Mono ( 3267): Searching for 'urho_map_get_float'.
04-25 09:14:17.943 D/Mono ( 3267): Probing 'urho_map_get_float'.
04-25 09:14:17.943 D/Mono ( 3267): Found as 'urho_map_get_float'.
04-25 09:14:17.963 D/dalvikvm( 3267): GC_FOR_ALLOC freed 1134K, 18% free 6306K/7620K, paused 4ms, total 4ms
04-25 09:14:17.967 D/dalvikvm( 3267): GC_CONCURRENT freed 133K, 18% free 6312K/7620K, paused 0ms+0ms, total 4ms
04-25 09:14:17.987 D/dalvikvm( 3267): GC_CONCURRENT freed 1099K, 18% free 6304K/7620K, paused 1ms+5ms, total 8ms
04-25 09:14:17.987 D/dalvikvm( 3267): WAIT_FOR_CONCURRENT_GC blocked 6ms
04-25 09:14:17.999 D/dalvikvm( 3267): GC_CONCURRENT freed 1048K, 18% free 6304K/7620K, paused 0ms+0ms, total 2ms
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Information: Discovering endpoints of 'opc.tcp://192.168.0.186:53530/OPCUA/SimulationServer'.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Error: Error discovering endpoints of 'opc.tcp://192.168.0.186:53530/OPCUA/SimulationServer'. The message encoding/decoding limits imposed by the stack have been exceeded.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Information: Closing channel with endpoint 'opc.tcp://192.168.0.186:53530/OPCUA/SimulationServer'.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Error: Error closing channel. Object reference not set to an instance of an object.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Trace: Connecting in 4000 ms.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Information: Discovering endpoints of 'opc.tcp://192.168.0.186:53530/OPCUA/SimulationServer'.
04-25 09:14:23.239 D/Mono ( 3267): [0xb800f940] hill climbing, change max number of threads 2
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Error: Error discovering endpoints of 'opc.tcp://192.168.0.186:53530/OPCUA/SimulationServer'. The message encoding/decoding limits imposed by the stack have been exceeded.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Information: Closing channel with endpoint 'opc.tcp://192.168.0.186:53530/OPCUA/SimulationServer'.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Error: Error closing channel. Object reference not set to an instance of an object.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Trace: Connecting in 8000 ms.
04-25 09:14:31.219 D/Mono ( 3267): [0xb804e1e0] hill climbing, change max number of threads 3
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Information: Discovering endpoints of 'opc.tcp://192.168.0.186:53530/OPCUA/SimulationServer'.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Error: Error discovering endpoints of 'opc.tcp://192.168.0.186:53530/OPCUA/SimulationServer'. The message encoding/decoding limits imposed by the stack have been exceeded.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Information: Closing channel with endpoint 'opc.tcp://192.168.0.186:53530/OPCUA/SimulationServer'.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Error: Error closing channel. Object reference not set to an instance of an object.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Trace: Connecting in 16000 ms.
04-25 09:14:46.235 D/Mono ( 3267): [0xb804e1e0] hill climbing, change max number of threads 2
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Information: Discovering endpoints of 'opc.tcp://192.168.0.186:53530/OPCUA/SimulationServer'.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Error: Error discovering endpoints of 'opc.tcp://192.168.0.186:53530/OPCUA/SimulationServer'. The message encoding/decoding limits imposed by the stack have been exceeded.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Information: Closing channel with endpoint 'opc.tcp://192.168.0.186:53530/OPCUA/SimulationServer'.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Error: Error closing channel. Object reference not set to an instance of an object.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Trace: Connecting in 20000 ms.
04-25 09:14:53.239 D/Mono ( 3267): [0xb804e1e0] hill climbing, change max number of threads 42
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Information: Discovering endpoints of 'opc.tcp://192.168.0.186:53530/OPCUA/SimulationServer'.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Error: Error discovering endpoints of 'opc.tcp://192.168.0.186:53530/OPCUA/SimulationServer'. The message encoding/decoding limits imposed by the stack have been exceeded.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Information: Closing channel with endpoint 'opc.tcp://192.168.0.186:53530/OPCUA/SimulationServer'.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Error: Error closing channel. Object reference not set to an instance of an object.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Trace: Connecting in 20000 ms.
Thread finished: #4InspectorDebugSession(4): HandleTargetEvent: ThreadStopped

from opc-ua-samples.

Savoyyang avatar Savoyyang commented on June 6, 2024

**Above is emulation debug

The following is real phone debug , use wifi**

[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Error: Error discovering endpoints of 'opc.tcp://192.168.3.132:53530/OPCUA/SimulationServer'. The message encoding/decoding limits imposed by the stack have been exceeded.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Information: Closing channel with endpoint 'opc.tcp://192.168.3.132:53530/OPCUA/SimulationServer'.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Error: Error closing channel. Object reference not set to an instance of an object.
04-25 09:52:32.458 D/AudioTrack(32485): write userSize 16384
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Trace: Connecting in 8000 ms.
04-25 09:52:32.555 D/AudioTrack(32485): write userSize 16384
04-25 09:52:32.646 D/AudioTrack(32485): write userSize 16384
04-25 09:52:32.736 D/AudioTrack(32485): write userSize 16384
04-25 09:52:32.829 D/AudioTrack(32485): write userSize 16384
04-25 09:52:32.922 D/AudioTrack(32485): write userSize 16384
04-25 09:52:33.014 D/AudioTrack(32485): write userSize 16384
04-25 09:52:33.107 D/AudioTrack(32485): write userSize 16384
04-25 09:52:33.203 D/AudioTrack(32485): write userSize 16384
04-25 09:52:33.293 D/AudioTrack(32485): write userSize 16384
04-25 09:52:33.386 D/AudioTrack(32485): write userSize 16384
04-25 09:52:33.479 D/AudioTrack(32485): write userSize 16384

from opc-ua-samples.

awcullen avatar awcullen commented on June 6, 2024

I see the error is "The message encoding/decoding limits imposed by the stack have been exceeded".
That error was fixed in 1.5.12.
Check again that the package was upgraded to 1.5.12.

from opc-ua-samples.

Savoyyang avatar Savoyyang commented on June 6, 2024

I am sure the package is 1.5.12.

image

And I use Prosys Client connect the server should choose this option.

image

[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Information: Discovering endpoints of 'opc.tcp://192.168.1.103:53530'.
04-25 21:13:34.159 D/AudioTrack(29915): write userSize 16384
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Error: Error discovering endpoints of 'opc.tcp://192.168.1.103:53530'. The message encoding/decoding limits imposed by the stack have been exceeded.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Information: Closing channel with endpoint 'opc.tcp://192.168.1.103:53530'.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Error: Error closing channel. Object reference not set to an instance of an object.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Trace: Connecting in 8000 ms.
04-25 21:13:34.252 D/AudioTrack(29915): write userSize 16384
04-25 21:13:34.352 D/AudioTrack(29915): write userSize 16384
04-25 21:13:34.440 D/AudioTrack(29915): write userSize 16384
04-25 21:13:34.538 D/AudioTrack(29915): write userSize 16384
04-25 21:13:34.624 D/AudioTrack(29915): write userSize 16384

from opc-ua-samples.

awcullen avatar awcullen commented on June 6, 2024

Just now, I downloaded a copy of opc-ua-samples project from the web site. I deleted old packages from the cache. I opened the StatusHmi project. I restored the Nuget packages for the solution. I changed the URL in the app.config file to be "opc.tcp://bculz-pc:53530/OPCUA/SimulationServer". I ran it and it connected successfully.

Workstation.ServiceModel.Ua.UaTcpSessionClient: Information: Discovering endpoints of 'opc.tcp://bculz-pc:53530/OPCUA/SimulationServer'.
Workstation.ServiceModel.Ua.UaTcpSessionClient: Trace: Success discovering endpoints of 'opc.tcp://bculz-pc:53530/OPCUA/SimulationServer'.
Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Trace: Channel opening.
Workstation.ServiceModel.Ua.DirectoryStore: Trace: Found certificate with subject alt name 'urn:ANDREW-THINK:Workstation.StatusHmi'.
Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Information: Opening session channel with endpoint 'opc.tcp://bculz-PC:53530/OPCUA/SimulationServer'.
Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Information: SecurityPolicy: 'http://opcfoundation.org/UA/SecurityPolicy#Basic256'.
Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Information: SecurityMode: 'SignAndEncrypt'.
Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Information: UserIdentityToken: 'Workstation.ServiceModel.Ua.AnonymousIdentity'.
Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Trace: Sending OpenSecureChannelRequest Handle: 2
Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Trace: Received OpenSecureChannelResponse Handle: 2 Result: 0x00000000
Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Trace: Sending CreateSessionRequest Handle: 3
Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Trace: Installed new security token 1.
Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Trace: Received CreateSessionResponse Handle: 3 Result: 0x00000000
Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Trace: Sending ActivateSessionRequest Handle: 4
Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Trace: Received ActivateSessionResponse Handle: 4 Result: 0x00000000

from opc-ua-samples.

Savoyyang avatar Savoyyang commented on June 6, 2024

I also success in StatusHmi project,
you can text the Android APP.

from opc-ua-samples.

awcullen avatar awcullen commented on June 6, 2024

Changed url to use ip:

        private string discoveryUrl = @"opc.tcp://192.168.1.109:53530/OPCUA/SimulationServer";

Success

[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Information: Discovering endpoints of 'opc.tcp://192.168.1.109:53530/OPCUA/SimulationServer'.
[0:] Workstation.ServiceModel.Ua.UaTcpSessionClient: Trace: Success discovering endpoints of 'opc.tcp://192.168.1.109:53530/OPCUA/SimulationServer'.
[0:] Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Trace: Channel opening.
[0:] Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Information: Opening session channel with endpoint 'opc.tcp://192.168.1.109:53530/OPCUA/SimulationServer'.
[0:] Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Information: SecurityPolicy: 'http://opcfoundation.org/UA/SecurityPolicy#None'.
[0:] Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Information: SecurityMode: 'None'.
[0:] Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Information: UserIdentityToken: 'Workstation.ServiceModel.Ua.AnonymousIdentity'.
[0:] Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Trace: Sending OpenSecureChannelRequest Handle: 2
[0:] Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Trace: Received OpenSecureChannelResponse Handle: 2 Result: 0x00000000
[0:] Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Trace: Sending CreateSessionRequest Handle: 3
[0:] Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Trace: Installed new security token 1.
[0:] Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Trace: Received CreateSessionResponse Handle: 3 Result: 0x00000000
[0:] Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Trace: Sending ActivateSessionRequest Handle: 4
[0:] Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Trace: Received ActivateSessionResponse Handle: 4 Result: 0x00000000
[0:] Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Trace: Sending ReadRequest Handle: 5
[0:] Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Trace: Received ReadResponse Handle: 5 Result: 0x00000000
[0:] Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Trace: Channel opened.

from opc-ua-samples.

Savoyyang avatar Savoyyang commented on June 6, 2024

Just now I try many times(use IP),but error still exit.
I use the full name but it return ip+port.

image

from opc-ua-samples.

awcullen avatar awcullen commented on June 6, 2024

Try deleting the \bin and \obj directories of the android project.
Because the change to discoveryUrl is not showing in the debug output, you can be sure that the new project is not being deployed to the device.

from opc-ua-samples.

Savoyyang avatar Savoyyang commented on June 6, 2024

Yes, I deleting the \bin and \obj directories of the android project, and it works.
Another good news that Android APP can connect Beckhoff Twincat OpcUa Server.I tested.

[0:] Workstation.ServiceModel.Ua.DirectoryStore: Trace: Found certificate with subject alt name 'urn:localhost:Workstation.MobileHmi'.
[0:] Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Information: Opening session channel with endpoint 'opc.tcp://192.168.3.117:53530/OPCUA/SimulationServer'.
[0:] Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Information: SecurityPolicy: 'http://opcfoundation.org/UA/SecurityPolicy#Basic256'.
[0:] Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Information: SecurityMode: 'SignAndEncrypt'.
[0:] Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Information: UserIdentityToken: 'Workstation.ServiceModel.Ua.AnonymousIdentity'.
[0:] Workstation.ServiceModel.Ua.Channels.UaTcpSessionChannel: Trace: Sending OpenSecureChannelRequest Handle: 2

from opc-ua-samples.

awcullen avatar awcullen commented on June 6, 2024

Good news indeed. Thanks for not giving up!
Closing issue.

from opc-ua-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.