update readme
This commit is contained in:
1 parent
d6ec9890c9
commit
0a21479c85
4 files changed
+28
No files matched your search
@@ -26,6 +26,22 @@ There's no live-stream server built into this project yet.
|
||||
|
||||
The protocol is weirdly complex, though very little communication is necessary to use the device
|
||||
|
||||
The base structure of a packet is:
|
||||

|
||||
|
||||
The payload is command-dependent; most commands have only a literal payload, but the `Drw` command has a framing scheme
|
||||
|
||||
`Drw` uses the second byte in the payload to discriminate into two types of subcommands:
|
||||
|
||||
Control packets:
|
||||

|
||||
|
||||
The payload on control packets is "encrypted" when the length is > 5.
|
||||
|
||||
Data packets:
|
||||

|
||||
|
||||
Data packets further discriminate based on the first 4 bytes into: Audio Data (0x55aa15a8), Video data.
|
||||
|
||||
To establish a session, a few _control packets_ are sent.
|
||||
```mermaid
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Do not edit this file with editors other than draw.io -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="background-color: rgb(255, 255, 255);" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="881px" height="61px" viewBox="-0.5 -0.5 881 61" content="<mxfile host="app.diagrams.net" modified="2024-01-27T13:44:52.894Z" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0" version="23.0.2" etag="LzmYAY8hzuM2OIQWMagZ" type="device" scale="1" border="0">
 <diagram name="Page-1" id="vcnmT5kUgwDzwB2t1Yhq">
 <mxGraphModel dx="1938" dy="2088" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
 <root>
 <mxCell id="0" />
 <mxCell id="1" parent="0" />
 <mxCell id="2" value="" style="group" vertex="1" connectable="0" parent="1">
 <mxGeometry x="50" y="280" width="880" height="60" as="geometry" />
 </mxCell>
 <mxCell id="3" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="2">
 <mxGeometry width="880" height="60" as="geometry" />
 </mxCell>
 <mxCell id="4" value="&lt;div&gt;0xD1&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#757575&quot; style=&quot;font-size: 10px;&quot;&gt;1 byte&lt;/font&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="2">
 <mxGeometry width="60" height="60" as="geometry" />
 </mxCell>
 <mxCell id="5" value="&lt;div&gt;Data?&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#757575&quot; style=&quot;font-size: 10px;&quot;&gt;1 byte&lt;/font&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="2">
 <mxGeometry x="60" width="60" height="60" as="geometry" />
 </mxCell>
 <mxCell id="6" value="&lt;div&gt;Payload&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#757575&quot; style=&quot;font-size: 10px;&quot;&gt;PAYLOAD_LENGTH bytes&lt;/font&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="2">
 <mxGeometry x="720" width="160" height="60" as="geometry" />
 </mxCell>
 <mxCell id="7" value="&lt;div&gt;Sequence number&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#757575&quot; style=&quot;font-size: 10px;&quot;&gt;2 bytes&lt;/font&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="2">
 <mxGeometry x="120" width="120" height="60" as="geometry" />
 </mxCell>
 <mxCell id="8" value="&lt;div&gt;Start Command&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#757575&quot; style=&quot;font-size: 10px;&quot;&gt;2 bytes&lt;/font&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="2">
 <mxGeometry x="240" width="120" height="60" as="geometry" />
 </mxCell>
 <mxCell id="9" value="&lt;div&gt;Command&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#757575&quot; style=&quot;font-size: 10px;&quot;&gt;2 bytes&lt;/font&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="2">
 <mxGeometry x="360" width="120" height="60" as="geometry" />
 Line truncated
|
||||
|
After Width: | Height: | Size: 15 KiB |
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Do not edit this file with editors other than draw.io -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="background-color: rgb(255, 255, 255);" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="881px" height="61px" viewBox="-0.5 -0.5 881 61" content="<mxfile host="app.diagrams.net" modified="2024-01-27T13:45:11.886Z" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0" version="23.0.2" etag="Svth5DndFV1dF0O-5VtO" type="device" scale="1" border="0">
 <diagram name="Page-1" id="z9J9yOwocruYn9Zh8Do-">
 <mxGraphModel dx="1938" dy="2088" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
 <root>
 <mxCell id="0" />
 <mxCell id="1" parent="0" />
 <mxCell id="2" value="" style="group" vertex="1" connectable="0" parent="1">
 <mxGeometry x="50" y="390" width="880" height="60" as="geometry" />
 </mxCell>
 <mxCell id="3" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="2">
 <mxGeometry width="880" height="60" as="geometry" />
 </mxCell>
 <mxCell id="4" value="&lt;div&gt;Payload&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#757575&quot; style=&quot;font-size: 10px;&quot;&gt;PAYLOAD_LENGTH bytes&lt;/font&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="2">
 <mxGeometry x="240" width="640" height="60" as="geometry" />
 </mxCell>
 <mxCell id="5" value="&lt;div&gt;0xD1&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#757575&quot; style=&quot;font-size: 10px;&quot;&gt;1 byte&lt;/font&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="2">
 <mxGeometry width="60" height="60" as="geometry" />
 </mxCell>
 <mxCell id="6" value="&lt;div&gt;Data?&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#757575&quot; style=&quot;font-size: 10px;&quot;&gt;1 byte&lt;/font&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="2">
 <mxGeometry x="60" width="60" height="60" as="geometry" />
 </mxCell>
 <mxCell id="7" value="&lt;div&gt;Sequence number&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#757575&quot; style=&quot;font-size: 10px;&quot;&gt;2 bytes&lt;/font&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="2">
 <mxGeometry x="120" width="120" height="60" as="geometry" />
 </mxCell>
 </root>
 </mxGraphModel>
 </diagram>
</mxfile>
"><defs/><rect fill="#ffffff" width="100%" height="100%" x="0" y="0"/><g><rect x="0" y="0" width="880" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><rect x="240" y="0" width="640" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 638px; height: 1px; padding-top: 30px; margin-left: 241px;"><div style="box-sizing: border-box; font-size: 0px; text-align: center;" data-drawio-colors="color: rgb(0, 0, 0); "><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; ovLine truncated
|
||||
|
After Width: | Height: | Size: 8.6 KiB |
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Do not edit this file with editors other than draw.io -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="background-color: rgb(255, 255, 255);" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="491px" height="61px" viewBox="-0.5 -0.5 491 61" content="<mxfile host="app.diagrams.net" modified="2024-01-27T13:43:51.348Z" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0" version="23.0.2" etag="QmAqA48LNsYfVP4OyB0k" type="device" scale="1" border="0">
 <diagram name="Page-1" id="IBloG96rIcs3xFGNmANc">
 <mxGraphModel dx="1938" dy="2088" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
 <root>
 <mxCell id="0" />
 <mxCell id="1" parent="0" />
 <mxCell id="2" value="" style="group" vertex="1" connectable="0" parent="1">
 <mxGeometry x="50" y="180" width="490" height="60" as="geometry" />
 </mxCell>
 <mxCell id="3" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="2">
 <mxGeometry width="490" height="60" as="geometry" />
 </mxCell>
 <mxCell id="4" value="&lt;div&gt;Command ID&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#757575&quot; style=&quot;font-size: 10px;&quot;&gt;2 bytes&lt;/font&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="2">
 <mxGeometry width="120" height="60" as="geometry" />
 </mxCell>
 <mxCell id="5" value="&lt;div&gt;Payload length&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#757575&quot; style=&quot;font-size: 10px;&quot;&gt;2 bytes&lt;/font&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="2">
 <mxGeometry x="120" width="120" height="60" as="geometry" />
 </mxCell>
 <mxCell id="6" value="&lt;div&gt;Payload&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#757575&quot; style=&quot;font-size: 10px;&quot;&gt;PAYLOAD_LENGTH bytes&lt;/font&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="2">
 <mxGeometry x="240" width="250" height="60" as="geometry" />
 </mxCell>
 </root>
 </mxGraphModel>
 </diagram>
</mxfile>
"><defs/><rect fill="#ffffff" width="100%" height="100%" x="0" y="0"/><g><rect x="0" y="0" width="490" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><rect x="0" y="0" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 30px; margin-left: 1px;"><div style="box-sizing: border-box; font-size: 0px; text-align: center;" data-drawio-colors="color: rgb(0, 0, 0); "><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;"><div>Command ID<br /></div><div><font style="font-size: 10px;" color="#757575">2 bytes</font><br /></div></div></div></div></foreignObject><text x="60" y="34" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">Command ID...</text></switch></g><rect x="120" y="0" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject style="overflow: visible; text-align: left;" pointer-events="none" width="1Line truncated
|
||||
|
After Width: | Height: | Size: 7.0 KiB |
Reference in new issue
Block a user