diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000..c72102a --- /dev/null +++ b/TODO.md @@ -0,0 +1,7 @@ +- (7) Application Layer: +- (6) Presentation Layer: MOPP encoding +- (5) Session Layer: none - port 7373 +- (4) Transport layer: UDP, connectionless +- (3) Network layer: IP +- (2) Data Link Layer: ... +- (1) Physical Layer: LoRa (Radio Waves), Ethernet, ... diff --git a/wip/cwcom.yaml b/wip/cwcom.yaml new file mode 100644 index 0000000..4916d22 --- /dev/null +++ b/wip/cwcom.yaml @@ -0,0 +1,59 @@ +asyncapi: '2.0.0' + +info: + title: CWCom over MQTT + version: '1.0.0' + +channels: + morseCode: + publish: + message: + $ref: '#/components/messages/MorseCodeMessage' + + receiveMorseCode: + subscribe: + message: + $ref: '#/components/messages/MorseCodeMessage' + +components: + messages: + MorseCodeMessage: + payload: + type: object + properties: + command: + type: string + description: 'The command type (e.g., DAT for data).' + length: + type: integer + description: 'Length of the Morse code message.' + id: + type: string + description: 'Identifier or sender ID.' + sequence: + type: integer + description: 'Sequence number.' + code: + type: array + items: + type: integer + description: 'Array of Morse code elements.' + n: + type: integer + description: 'Number of elements in the Morse code array.' + status: + type: string + description: 'Status or version information.' + a21: + type: integer + description: 'Additional field.' + a22: + type: integer + description: 'Additional field.' + a23: + type: integer + description: 'Additional field.' + a4: + type: string + description: 'Additional field.' + diff --git a/wip/mopp.yaml b/wip/mopp.yaml new file mode 100644 index 0000000..3f3a576 --- /dev/null +++ b/wip/mopp.yaml @@ -0,0 +1,55 @@ +asyncapi: 2.0.0 +info: + title: MOPP over MQTT + version: 1.0.0 + +channels: + morseCode: + publish: + message: + payload: + type: string + description: "MOPP-encoded Morse code message." + +components: + messages: + MOPPMessage: + properties: + version: + type: string + description: "MOPP Protocol Version." + serialNumber: + type: integer + format: int32 + description: "Serial number for packet identification." + speed: + type: integer + format: int32 + description: "Speed at origin in Words per Minute (WpM)." + payload: + type: string + description: "MOPP-encoded Morse code payload." + + schemas: + MOPPPacket: + properties: + protocolVersion: + type: string + description: "MOPP Protocol Version." + serialNumber: + type: integer + format: int32 + description: "Serial number for packet identification." + speed: + type: integer + format: int32 + description: "Speed at origin in Words per Minute (WpM)." + payload: + type: string + description: "MOPP-encoded Morse code payload." + + MOPPPublishMessage: + properties: + message: + $ref: "#/components/messages/MOPPMessage" + diff --git a/wip/topic b/wip/topic new file mode 100644 index 0000000..4f5da42 --- /dev/null +++ b/wip/topic @@ -0,0 +1,13 @@ +moip/channel/name + mopp/ +moip/channel/name + cwcom/ + +moip/channel/name + durations/ + +moip/listchannels + + +channel = mtc.kob..._wire1 +channel = udp_mopp....