Boa tarde,
estou com dificuldades para configurar a conexão com um servidor OPC_UA onde só tem implementado SecurityMode = UsmNone e SecurityPolicy = UspNone, A conexão não fica ativa conforme logs do servidor.
Então realizei testes usando o Kepware, onde somente consegui realizar a conexão utilizando SecurityMode = UsmSign e SecurityPolicy = UspBasic256
seguem os logs dos testes com Kepware:
Utilizando: SecurityMode = UsmNone e SecurityPolicy = UspNone
1855 2018-08-08 17:00:50.954 0x1478 0x1844 E3 ‘“D:\AppSW\Elipse Software\Elipse E3\Bin\E3UaClient.exe” -Embedding’ E3 4.8.336 Session2/WinSta0/Default 17
1857 2018-08-08 17:00:50.957 0x1478 0x162C UACLIENTHOST (020902A0)-------------------- UA Client Host CREATED 14
1860 2018-08-08 17:00:51.062 0x1478 0x1644 UACLIENTSESSION Could not close the session! status(800D0000) ‘The operation could not complete because the client is not connected to the server.’ 14
1859 2018-08-08 17:00:51.062 0x1478 0x1644 UACLIENTSESSION ActivateSession failed! status(80070000) ‘Decoding halted because of invalid data in the stream.’ 14
1858 2018-08-08 17:00:51.062 0x1478 0x1644 UACLIENTSESSION Connected to ‘opc.tcp://127.0.0.1:49319’ 14
1861 2018-08-08 17:00:51.064 0x1478 0x1644 UACLIENTSESSION QueuePublish failed! status(80AB0000) ‘One or more arguments are invalid.’ 14
1864 2018-08-08 17:00:53.071 0x1478 0x1644 UACLIENTSESSION Could not close the session! status(800D0000) ‘The operation could not complete because the client is not connected to the server.’ 14
1863 2018-08-08 17:00:53.071 0x1478 0x1644 UACLIENTSESSION ActivateSession failed! status(80070000) ‘Decoding halted because of invalid data in the stream.’ 14
1862 2018-08-08 17:00:53.071 0x1478 0x1644 UACLIENTSESSION Connected to ‘opc.tcp://127.0.0.1:49319’ 14
1867 2018-08-08 17:00:56.083 0x1478 0x1644 UACLIENTSESSION Could not close the session! status(800D0000) ‘The operation could not complete because the client is not connected to the server.’ 14
1866 2018-08-08 17:00:56.083 0x1478 0x1644 UACLIENTSESSION ActivateSession failed! status(80070000) ‘Decoding halted because of invalid data in the stream.’ 14
1865 2018-08-08 17:00:56.083 0x1478 0x1644 UACLIENTSESSION Connected to ‘opc.tcp://127.0.0.1:49319’ 14
1868 2018-08-08 17:00:56.298 0x17F0 0x14D4 SYSTEM ProcessInfo.E3ADMIN: CPU=0.00% PVT=6088KB VTL=145368KB WKS=18188KB HDL=278 GDI=76 USR=23 TRD=6 PGF=5284 PPL=275KB NPP=20KB UNM=‘Administrator’ RUN=5:31:03.902 UTM=0.046 KTM=0.156 INF=’’ 15
1871 2018-08-08 17:00:59.099 0x1478 0x1644 UACLIENTSESSION Could not close the session! status(800D0000) ‘The operation could not complete because the client is not connected to the server.’ 14
1870 2018-08-08 17:00:59.099 0x1478 0x1644 UACLIENTSESSION ActivateSession failed! status(80070000) ‘Decoding halted because of invalid data in the stream.’ 14
1869 2018-08-08 17:00:59.099 0x1478 0x1644 UACLIENTSESSION Connected to ‘opc.tcp://127.0.0.1:49319’ 14
1872 2018-08-08 17:01:00.027 0x900 0xC4C E3SERVER ProcessInfo: E3Server(1)=10796KB(27260) 0.13% Studio(1)=15820KB(181560) 1.19% E3Admin(1)=6088KB(18188) 0.00% E3UaClient(1)=6676KB(13480) 1.71% DriveC=52181.53MB CPU=5.49% MemoryLoad=16% PageFaults=1699785 Handles=32214 Processes=81 Threads=1046 15
Utilizando: SecurityMode = UsmSign e SecurityPolicy = UspBasic256
1968 2018-08-08 17:03:52.325 0x2B0 0x1094 E3 ‘“D:\AppSW\Elipse Software\Elipse E3\Bin\E3UaClient.exe” -Embedding’ E3 4.8.336 Session2/WinSta0/Default 17
1970 2018-08-08 17:03:52.331 0x2B0 0xF14 UACLIENTHOST (020202A0)-------------------- UA Client Host CREATED 14
1971 2018-08-08 17:03:52.624 0x2B0 0x1430 UACLIENTSESSION Connected to ‘opc.tcp://127.0.0.1:49319’ 14
1972 2018-08-08 17:03:52.654 0x2B0 0x1430 UACLIENTSESSION Session activated on ‘opc.tcp://127.0.0.1:49319’ 14
1973 2018-08-08 17:03:56.295 0x17F0 0x14D4 SYSTEM ProcessInfo.E3ADMIN: CPU=0.00% PVT=6088KB VTL=145368KB WKS=18188KB HDL=276 GDI=76 USR=23 TRD=6 PGF=5291 PPL=275KB NPP=20KB UNM=‘Administrator’ RUN=5:34:03.899 UTM=0.046 KTM=0.156 INF=’’ 15
1974 2018-08-08 17:04:00.583 0x900 0xC4C E3SERVER ProcessInfo: E3Server(1)=11088KB(27364) 0.08% Studio(1)=16300KB(182100) 0.49% E3Admin(1)=6088KB(18188) 0.00% E3UaClient(1)=6940KB(13900) 0.00% DriveC=52181.15MB CPU=6.80% MemoryLoad=16% PageFaults=1771373 Handles=32654 Processes=82 Threads=1065 15