Custom.Opc.Ua.Transport.bsd 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <opc:TypeDictionary
  2. xmlns:opc="http://opcfoundation.org/BinarySchema/"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xmlns:ua="http://opcfoundation.org/UA/"
  5. xmlns:tns="http://opcfoundation.org/UA/"
  6. DefaultByteOrder="LittleEndian"
  7. TargetNamespace="http://opcfoundation.org/UA/"
  8. >
  9. <opc:Import Namespace="http://opcfoundation.org/BinarySchema/" />
  10. <!-- Transport types begin -->
  11. <opc:EnumeratedType Name="MessageType" LengthInBits="32">
  12. <opc:Documentation>Message Type and whether the message contains an intermediate chunk</opc:Documentation>
  13. <opc:EnumeratedValue Name="ACK" Value="0x4B4341" />
  14. <opc:EnumeratedValue Name="HEL" Value="0x4C4548" />
  15. <opc:EnumeratedValue Name="MSG" Value="0x47534D" />
  16. <opc:EnumeratedValue Name="OPN" Value="0x4E504F" />
  17. <opc:EnumeratedValue Name="CLO" Value="0x4F4C43" />
  18. <opc:EnumeratedValue Name="ERR" Value="0x525245" />
  19. </opc:EnumeratedType>
  20. <opc:EnumeratedType Name="ChunkType" LengthInBits="32">
  21. <opc:Documentation>Type of the chunk</opc:Documentation>
  22. <opc:EnumeratedValue Name="FINAL" Value="0x46000000" />
  23. <opc:EnumeratedValue Name="INTERMEDIATE" Value="0x43000000" />
  24. <opc:EnumeratedValue Name="ABORT" Value="0x41000000" />
  25. </opc:EnumeratedType>
  26. <opc:StructuredType Name="TcpMessageHeader">
  27. <opc:Documentation>TCP Header</opc:Documentation>
  28. <opc:Field Name="MessageTypeAndChunkType" TypeName="opc:UInt32" />
  29. <opc:Field Name="MessageSize" TypeName="opc:UInt32" />
  30. </opc:StructuredType>
  31. <opc:StructuredType Name="TcpHelloMessage">
  32. <opc:Documentation>Hello Message</opc:Documentation>
  33. <opc:Field Name="ProtocolVersion" TypeName="opc:UInt32" />
  34. <opc:Field Name="ReceiveBufferSize" TypeName="opc:UInt32" />
  35. <opc:Field Name="SendBufferSize" TypeName="opc:UInt32" />
  36. <opc:Field Name="MaxMessageSize" TypeName="opc:UInt32" />
  37. <opc:Field Name="MaxChunkCount" TypeName="opc:UInt32" />
  38. <opc:Field Name="EndpointUrl" TypeName="opc:String" />
  39. </opc:StructuredType>
  40. <opc:StructuredType Name="TcpAcknowledgeMessage">
  41. <opc:Documentation>Acknowledge Message</opc:Documentation>
  42. <opc:Field Name="ProtocolVersion" TypeName="opc:UInt32" />
  43. <opc:Field Name="ReceiveBufferSize" TypeName="opc:UInt32" />
  44. <opc:Field Name="SendBufferSize" TypeName="opc:UInt32" />
  45. <opc:Field Name="MaxMessageSize" TypeName="opc:UInt32" />
  46. <opc:Field Name="MaxChunkCount" TypeName="opc:UInt32" />
  47. </opc:StructuredType>
  48. <opc:StructuredType Name="TcpErrorMessage">
  49. <opc:Documentation>Error Message</opc:Documentation>
  50. <opc:Field Name="Error" TypeName="opc:UInt32" />
  51. <opc:Field Name="Reason" TypeName="opc:String" />
  52. </opc:StructuredType>
  53. <opc:StructuredType Name="SecureConversationMessageHeader">
  54. <opc:Documentation>Secure Layer Sequence Header</opc:Documentation>
  55. <opc:Field Name="MessageHeader" TypeName="opc:TcpMessageHeader" />
  56. <opc:Field Name="SecureChannelId" TypeName="opc:UInt32" />
  57. </opc:StructuredType>
  58. <opc:StructuredType Name="AsymmetricAlgorithmSecurityHeader">
  59. <opc:Documentation>Security Header</opc:Documentation>
  60. <opc:Field Name="SecurityPolicyUri" TypeName="opc:ByteString" />
  61. <opc:Field Name="SenderCertificate" TypeName="opc:ByteString" />
  62. <opc:Field Name="ReceiverCertificateThumbprint" TypeName="opc:ByteString" />
  63. </opc:StructuredType>
  64. <opc:StructuredType Name="SymmetricAlgorithmSecurityHeader">
  65. <opc:Documentation>Secure Layer Symmetric Algorithm Header</opc:Documentation>
  66. <opc:Field Name="TokenId" TypeName="opc:UInt32" />
  67. </opc:StructuredType>
  68. <opc:StructuredType Name="SequenceHeader">
  69. <opc:Documentation>Secure Layer Sequence Header</opc:Documentation>
  70. <opc:Field Name="SequenceNumber" TypeName="opc:UInt32" />
  71. <opc:Field Name="RequestId" TypeName="opc:UInt32"/>
  72. </opc:StructuredType>
  73. <opc:StructuredType Name="SecureConversationMessageFooter">
  74. <opc:Documentation>Secure Conversation Message Footer</opc:Documentation>
  75. <opc:Field Name="PaddingSize" TypeName="opc:Byte" />
  76. <opc:Field Name="Padding" TypeName="opc:Byte" LengthField="PaddingSize" />
  77. <opc:Field Name="Signature" TypeName="opc:Byte"/>
  78. </opc:StructuredType>
  79. <opc:StructuredType Name="SecureConversationMessageAbortBody">
  80. <opc:Documentation>Secure Conversation Message Abort Body</opc:Documentation>
  81. <opc:Field Name="Error" TypeName="opc:UInt32" />
  82. <opc:Field Name="Reason" TypeName="opc:String" />
  83. </opc:StructuredType>
  84. <!-- Transport types end -->
  85. </opc:TypeDictionary>