Skip to content

Commit

Permalink
wip topics for mqtt
Browse files Browse the repository at this point in the history
  • Loading branch information
8cH9azbsFifZ committed Nov 16, 2023
1 parent 51139d3 commit e63fe1e
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 0 deletions.
7 changes: 7 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -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, ...
59 changes: 59 additions & 0 deletions wip/cwcom.yaml
Original file line number Diff line number Diff line change
@@ -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.'

55 changes: 55 additions & 0 deletions wip/mopp.yaml
Original file line number Diff line number Diff line change
@@ -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"

13 changes: 13 additions & 0 deletions wip/topic
Original file line number Diff line number Diff line change
@@ -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....

0 comments on commit e63fe1e

Please sign in to comment.