Merge pull request #185 from QuantumEntangledAndy/refractor
Refractor code into workspaces and sub commands
This commit is contained in:
84 files changed
+4505
-1611
No files matched your search
@@ -98,9 +98,9 @@ Most of this information comes from the work of @twisteddx at his
|
||||
After the ADPCM header is another header of the form
|
||||
|
||||
- 2 bytes Magic either 0x00 0x01 or 0x00 0x7a
|
||||
- 2 Bytes DVI-4 Block size
|
||||
- 2 Bytes DVI-4 Block size divided in bytes.
|
||||
|
||||
After this header the adpcm DVI-4 data follows.
|
||||
After this header the adpcm DVI-4 data follows should be 4+Block size bytes.
|
||||
|
||||
## Processing
|
||||
|
||||
|
||||
@@ -363,6 +363,25 @@ Message have zero to two payloads.
|
||||
|--------------|--------------|----------------|-------------------|-------------------|---------------|---------------|
|
||||
| 0a bc de f0 | 00 00 00 12 | 00 00 00 00 | 1e 00 00 00 | c8 00 | 00 00 | 00 00 00 00 |
|
||||
|
||||
- 23: `Reboot`
|
||||
|
||||
- Client
|
||||
|
||||
- Header
|
||||
|
||||
| Magic | Message ID | Message Length | Encryption Offset | Status Code | Message Class | Binary Offset |
|
||||
|--------------|--------------|----------------|-------------------|-------------------|---------------|---------------|
|
||||
| 0a bc de f0 | 00 00 00 17 | 00 00 00 00 | 00 00 00 00 | 00 00 | 64 14 | 00 00 00 00 |
|
||||
|
||||
|
||||
- Camera
|
||||
|
||||
- Header
|
||||
|
||||
| Magic | Message ID | Message Length | Encryption Offset | Status Code | Message Class | Binary Offset |
|
||||
|--------------|--------------|----------------|-------------------|-------------------|---------------|---------------|
|
||||
| 0a bc de f0 | 00 00 00 17 | 00 00 00 00 | 00 00 00 00 | c8 00 | 64 14 | 00 00 00 00 |
|
||||
|
||||
- 25: `<VideoInput>` (write)
|
||||
|
||||
- Client
|
||||
@@ -2085,6 +2104,78 @@ Message have zero to two payloads.
|
||||
</body>
|
||||
```
|
||||
|
||||
- 201: `<TalkConfig>`
|
||||
|
||||
- Client
|
||||
|
||||
- Header
|
||||
|
||||
| Magic | Message ID | Message Length | Encryption Offset | Status Code | Message Class | Binary Offset |
|
||||
|--------------|--------------|----------------|-------------------|-------------------|---------------|---------------|
|
||||
| 0a bc de f0 | 00 00 00 c9 | 00 00 01 f2 | 12 00 00 00 | 00 00 | 64 14 | 00 00 00 68 |
|
||||
|
||||
- Body
|
||||
```xml
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<Extension version="1.1">
|
||||
<channelId>0</channelId>
|
||||
</Extension>
|
||||
```
|
||||
|
||||
- Binary
|
||||
|
||||
```xml
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<body>
|
||||
<TalkConfig version="1.1">
|
||||
<channelId>0</channelId>
|
||||
<duplex>FDX</duplex>
|
||||
<audioStreamMode>followVideoStream</audioStreamMode>
|
||||
<audioConfig>
|
||||
<audioType>adpcm</audioType>
|
||||
<sampleRate>16000</sampleRate>
|
||||
<samplePrecision>16</samplePrecision>
|
||||
<lengthPerEncoder>1024</lengthPerEncoder>
|
||||
<soundTrack>mono</soundTrack>
|
||||
</audioConfig>
|
||||
</TalkConfig>
|
||||
</body>
|
||||
```
|
||||
|
||||
- Camera
|
||||
|
||||
- Header
|
||||
|
||||
| Magic | Message ID | Message Length | Encryption Offset | Status Code | Message Class | Binary Offset |
|
||||
|--------------|--------------|----------------|-------------------|-------------------|---------------|---------------|
|
||||
| 0a bc de f0 | 00 00 00 c9 | 00 00 00 00 | 12 00 00 00 | c8 00 | 00 00 | 00 00 00 00 |
|
||||
|
||||
- 202: `Talk`
|
||||
|
||||
- Client
|
||||
|
||||
- Header
|
||||
|
||||
| Magic | Message ID | Message Length | Encryption Offset | Status Code | Message Class | Binary Offset |
|
||||
|--------------|--------------|----------------|-------------------|-------------------|---------------|---------------|
|
||||
| 0a bc de f0 | 00 00 00 ca | 00 00 08 c3 | 00 00 00 00 | 00 00 | 64 14 | 00 00 00 83 |
|
||||
|
||||
- Body
|
||||
```xml
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<Extension version="1.1">
|
||||
<binaryData>1</binaryData>
|
||||
<channelId>0</channelId>
|
||||
</Extension>
|
||||
```
|
||||
|
||||
- Binary
|
||||
|
||||
Binary data contains media-packets of adpcm data
|
||||
|
||||
|
||||
**Notes**: No reply from camera. After this the client keeps sending this packet with binary in the BcMedia encoded packets of adpcm data
|
||||
|
||||
- 208: `<LedState>`
|
||||
|
||||
- Client
|
||||
|
||||
Reference in new issue
Block a user