asyncapi: 2.6.0
info:
  title: M-Bus (EN 13757-2/3), short frame
  version: EN 13757-2
  description: Utility meter readout bus. 8E1 -- even parity, a format neither G460
    nor any earlier test used -- at one of several fixed baud rates the spec enumerates
    (300/600/1200/2400/4800/9600).
servers:
  serial_link:
    url: serial://tty/300
    protocol: serial
    description: Physical UART Transport (300 bps, 8N1.0)
    bindings:
      serial:
        baudRate: 300
        dataBits: 8
        parity: even
        stopBits: 1.0
        framingType: delimited
        integrity: sum8
channels:
  omniuart/cmd/ShortFrame:
    publish:
      summary: 'Send command ShortFrame (ID: 0x00)'
      description: The whole frame is fixed at 5 bytes; there is no length field to
        describe.
      message:
        name: ShortFrame_Message
        title: ShortFrame Command
        payload:
          $ref: '#/components/schemas/ShortFrame_Request'
components:
  messages: {}
  schemas:
    ShortFrame_Request:
      type: object
      properties:
        command_id:
          type: integer
          const: 0
          description: Opcode ID for ShortFrame
        cField:
          type: integer
        aField:
          type: integer
      description: The whole frame is fixed at 5 bytes; there is no length field to
        describe.
