Home » Eclipse Projects » Eclipse Titan » OPC-UA Module compilation Error
OPC-UA Module compilation Error [message #1781089] |
Thu, 01 February 2018 04:57  |
Eclipse User |
|
|
|
I got a compilation error while running the opc-ua project. The error states that 'no encoding rules have been defined for a parameter in a module'. Can someone tell me where am I going wrong?
Attached is the screen shot of the compilation error.
Any advice is highly appreciated! Thanking You in Advance!
With Regards,
Avdoot Chalke
|
|
| | | | | | | | | |
Re: OPC-UA Module "The security mode does not meet the requirements set by the Server" [message #1790253 is a reply to message #1781894] |
Thu, 07 June 2018 09:46   |
Eclipse User |
|
|
|
Hi Elemer,
I get the following error while trying to send an opensecurechannel request using mode SIGN_2:-
BadSecurityPolicyRejected = 0x80550000.
My message format is as follows:
var MessageHeader v_header := valueof(tr_HeaderOpenSecureChannel);
var UInt32 v_securityChannelId := 0;
var ListOfByte v_securePolicyUri := valueof(tr_ListOfByte({ 104, 116, 116, 112, 58, 47, 47, 111, 112, 99, 102, 111, 117, 110, 100, 97, 116, 105, 111, 110, 46, 111, 114, 103, 47, 85, 65, 47, 83, 101, 99, 117, 114, 105, 116, 121, 80, 111, 108, 105, 99, 121, 35, 78, 111, 110, 101 }));
var ListOfByte v_senderCertificate := valueof(tr_ListOfByteNull);
var ListOfByte v_receiverCertificateThumbprint := valueof(tr_ListOfByteNull);
var SequenceHeader v_sequenceHeader := {
SequenceNumber := 1,
RequestId := 1
}
var OpenSecureChannelRequest v_openSecReq := {
requestHeader := reqHeader,
clientProtocolVersion := 0,
requestType := v_requestType,
securityMode := v_securityMode,
securityPolicyUri := { realString := { stringLength := 56, stringValue := "http://opcfoundation.org/UA/SecurityPolicy#Basic128Rsa15" } },
clientNonce := v_clientNonce,
requestedLifetime := 1200000
}
var ServiceBody v_service := {
encodingByte := 1,
namespaceIndex := 0,
nodeValue := 0,
list := {
OpenSecureChannelRequest := v_openSecReq
}
}
I am not able to find any source of information on senderCertificate, receiverCertificateThumbprint. What can be the problem?
Any information provided will be helpful.
With Regards,
Avdoot Chalke
[Updated on: Thu, 07 June 2018 10:39] by Moderator
|
|
| |
Re: OPC-UA Module "The security mode does not meet the requirements set by the Server" [message #1790308 is a reply to message #1790260] |
Fri, 08 June 2018 04:16   |
Eclipse User |
|
|
|
Hi Avdoot,
I asked Akos about his opinion;
He is saying that :
-either the server does not support this security mode
-or the message is wrongly assembled
Pls. find attached a correct message for reference.
{ header := {
messageType := 5132367,
chunkType := 70,
messageSize := 132
},
transportMessage := omit,
securityChannelId := 0,
securePolicyUri := {
realArray := {
arrayLength := 47,
arrayValues := { 104, 116, 116, 112, 58, 47, 47, 111, 112, 99, 102, 111, 117, 110, 100, 97, 116, 105, 111, 110, 46, 111, 114, 103, 47, 85, 65, 47, 83, 101, 99, 117, 114, 105, 116, 121, 80, 111, 108, 105, 99, 121, 35, 78, 111, 110, 101}
}
},
senderCertificate := {
nullArray := {
arrayLength := -2147483647
}
},
receiverCertificateThumbprint := {
nullArray := {
arrayLength := -2147483647
}
},
securityTokenId := omit,
sequenceHeader := {
SequenceNumber := 1,
RequestId := 1
},
body := '0100BE010000D08F18E2A674D3010100000000000000FFFFFFFF00000000000000000000000000000001000000FFFFFFFFC0270900'O } //The body structure below as an ecoded message
//Body
{
encodingByte := 1,
namespaceIndex := 0,
nodeValue := 446,
list := {
OpenSecureChannelRequest := {
requestHeader := {
authenticationToken := {
mask := 0,
namespaceUriBit := 0,
serverIndexBit := 0,
reservedBit1 := 0,
reservedBit2 := 0,
IdType := {
twoByte := {
nodeValue := 0
}
}
},
timestamp := 131577074230530000,
requestHandle := 1,
returnDiagnostics := 0,
auditEntryId := {
nullString := {
arrayLength := -2147483647
}
},
timeoutHint := 0,
additionalHeader := {
typeId := {
node := {
mask := 0,
namespaceUriBit := 0,
serverIndexBit := 0,
reservedBit1 := 0,
reservedBit2 := 0,
IdType := {
twoByte := {
nodeValue := 0
}
}
},
namespaceUri := omit,
serverIndex := omit
},
Value := 0
}
},
clientProtocolVersion := 0,
requestType := ISSUE_0 (0),
securityMode := NONE_1 (1),
clientNonce := {
nullByteString := {
arrayLength := -2147483647
}
},
requestedLifetime := 600000
}
}
}
BR
Elemer
|
|
| | | |
Re: OPC-UA Module "The security mode does not meet the requirements set by the Server" [message #1790595 is a reply to message #1790574] |
Wed, 13 June 2018 06:55  |
Eclipse User |
|
|
|
Hi Avdoot,
aha, yes , sorry;
indeed , the security and certificate functions are not implemented yet, but if you generate the appropriate data by some other means and insert it into the message, then
the codecs will handle it properly.
Our intention was , and still is, to add this functionality , but we are rather strained at the moment.
Best regards
Elemer
|
|
|
Goto Forum:
Current Time: Wed Jul 23 21:13:24 EDT 2025
Powered by FUDForum. Page generated in 0.08626 seconds
|