write shit
This commit is contained in:
@@ -2,11 +2,18 @@
|
||||
|
||||
This document introduce the protocol used between Basalt Presenter and Basalt Trainer.
|
||||
|
||||
If there is no specific description, the endian of data is **native endian**, and the alignment also is native.
|
||||
Because all data are transmitted in local machine, so we use native layout.
|
||||
|
||||
## Command Protocol
|
||||
|
||||
Before introducing command protocol, it would be better to the priniciple,
|
||||
that Presenter is the slave application, and Trainer is the master application.
|
||||
|
||||
Command protocol is tramsmitted by system named pipe.
|
||||
The name of pipe is `\\.\pipe\ed0e3f1f-d214-4880-9562-640bce15e72e` on Windows
|
||||
or `/tmp/ed0e3f1f-d214-4880-9562-640bce15e72e` on POSIX.
|
||||
|
||||
|Code|Direction|Comment|
|
||||
|:---|:---|:---|
|
||||
|`0x61`|Presenter<--Trainer|Handshake code (Are Presenter ready?)|
|
||||
@@ -36,8 +43,16 @@ For the all possible values of "pixel kind" in above table, there is also a tabl
|
||||
|
||||
|Value|Comment|
|
||||
|:---|:---|
|
||||
|`0x01`|Grayscale represneted by one float32|
|
||||
|`0x01`|Grayscale represented by one float32|
|
||||
|`0x02`|Grayscale represented by one u8|
|
||||
|`0x03`|RGB represented by three float32|
|
||||
|`0x04`|RGB represented by three u8|
|
||||
|
||||
## Data Protocol
|
||||
|
||||
TODO
|
||||
### Pipe
|
||||
|
||||
For this kind deliver, it is tramsmitted by system named pipe.
|
||||
The name of pipe is `\\.\pipe\ebe2a39d-75de-4cf4-933f-c50284149d63` on Windows
|
||||
or `/tmp/ebe2a39d-75de-4cf4-933f-c50284149d63` on POSIX.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user