Custom.Opc.Ua.Transport.bsd 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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:EnumeratedType>
  19. <opc:EnumeratedType Name="ChunkType" LengthInBits="32">
  20. <opc:Documentation>Type of the chunk</opc:Documentation>
  21. <opc:EnumeratedValue Name="FINAL" Value="0x46000000" />
  22. <opc:EnumeratedValue Name="INTERMEDIATE" Value="0x43000000" />
  23. <opc:EnumeratedValue Name="ABORT" Value="0x41000000" />
  24. </opc:EnumeratedType>
  25. <opc:StructuredType Name="TcpMessageHeader">
  26. <opc:Documentation>TCP Header</opc:Documentation>
  27. <opc:Field Name="MessageTypeAndChunkType" TypeName="opc:UInt32" />
  28. <opc:Field Name="MessageSize" TypeName="opc:UInt32" />
  29. </opc:StructuredType>
  30. <opc:StructuredType Name="TcpHelloMessage">
  31. <opc:Documentation>Hello Message</opc:Documentation>
  32. <opc:Field Name="ProtocolVersion" TypeName="opc:UInt32" />
  33. <opc:Field Name="ReceiveBufferSize" TypeName="opc:UInt32" />
  34. <opc:Field Name="SendBufferSize" TypeName="opc:UInt32" />
  35. <opc:Field Name="MaxMessageSize" TypeName="opc:UInt32" />
  36. <opc:Field Name="MaxChunkCount" TypeName="opc:UInt32" />
  37. <opc:Field Name="EndpointUrl" TypeName="opc:String" />
  38. </opc:StructuredType>
  39. <opc:StructuredType Name="TcpAcknowledgeMessage">
  40. <opc:Documentation>Acknowledge Message</opc:Documentation>
  41. <opc:Field Name="ProtocolVersion" TypeName="opc:UInt32" />
  42. <opc:Field Name="ReceiveBufferSize" TypeName="opc:UInt32" />
  43. <opc:Field Name="SendBufferSize" TypeName="opc:UInt32" />
  44. <opc:Field Name="MaxMessageSize" TypeName="opc:UInt32" />
  45. <opc:Field Name="MaxChunkCount" TypeName="opc:UInt32" />
  46. </opc:StructuredType>
  47. <opc:StructuredType Name="SecureConversationMessageHeader">
  48. <opc:Documentation>Secure Layer Sequence Header</opc:Documentation>
  49. <opc:Field Name="MessageHeader" TypeName="opc:TcpMessageHeader" />
  50. <opc:Field Name="SecureChannelId" TypeName="opc:UInt32" />
  51. </opc:StructuredType>
  52. <opc:StructuredType Name="AsymmetricAlgorithmSecurityHeader">
  53. <opc:Documentation>Security Header</opc:Documentation>
  54. <opc:Field Name="SecurityPolicyUri" TypeName="opc:ByteString" />
  55. <opc:Field Name="SenderCertificate" TypeName="opc:ByteString" />
  56. <opc:Field Name="ReceiverCertificateThumbprint" TypeName="opc:ByteString" />
  57. </opc:StructuredType>
  58. <opc:StructuredType Name="SymmetricAlgorithmSecurityHeader">
  59. <opc:Documentation>Secure Layer Symmetric Algorithm Header</opc:Documentation>
  60. <opc:Field Name="TokenId" TypeName="opc:UInt32" />
  61. </opc:StructuredType>
  62. <opc:StructuredType Name="SequenceHeader">
  63. <opc:Documentation>Secure Layer Sequence Header</opc:Documentation>
  64. <opc:Field Name="SequenceNumber" TypeName="opc:UInt32" />
  65. <opc:Field Name="RequestId" TypeName="opc:UInt32"/>
  66. </opc:StructuredType>
  67. <opc:StructuredType Name="SecureConversationMessageFooter">
  68. <opc:Documentation>Secure Conversation Message Footer</opc:Documentation>
  69. <opc:Field Name="PaddingSize" TypeName="opc:Byte" />
  70. <opc:Field Name="Padding" TypeName="opc:Byte" LengthField="PaddingSize" />
  71. <opc:Field Name="Signature" TypeName="opc:Byte"/>
  72. </opc:StructuredType>
  73. <opc:StructuredType Name="SecureConversationMessageAbortBody">
  74. <opc:Documentation>Secure Conversation Message Abort Body</opc:Documentation>
  75. <opc:Field Name="Error" TypeName="opc:UInt32" />
  76. <opc:Field Name="Reason" TypeName="opc:String" />
  77. </opc:StructuredType>
  78. <!-- Transport types end -->
  79. </opc:TypeDictionary>