~/.ssh/configis effectively the 'real' config on the client side- The connection is established by executing:
# serverbinaryname defaults to 'cdba-server'
/usr/bin/ssh user@server serverbinaryname- ssh
stdoutreceivesmessagesand the client is expected to handle them instantly after receiving, untilEOF - ssh
stderrreceivesstatus updates(blue text) and the client is expected to handle them instantly after receiving, untilEOF
- The server enumerates all of the connected devices, based on a configuration file
- Client messages are received over
stdin - Messages are sent to the clients over
stdout, until the connection is closed (or drops) - The server opens a tty to the serial port on the device and forwards the output via
MSG_CONSOLE
C - client | S - server
data = string board name | len = sizeof(data)Select the board to operate on.
Return [S]: Echo the command back with
len = 0.
data = string_buffer | len = sizeof(data)Send TTY I/O.Return [C/S]: Echo the command back with
len = sizeof(buf), data = buf.
<unused>
len = 0Power on the board.
Return [S]: Echo the command back with
len = 0.
len = 0Power off the board.
Return [S]: Echo the command back with
len = 0.
data = 0 / 1 | len = 1Signal that the device is available over fastboot and ready to receive further commands. Return [C]: MSG_FASTBOOT_DOWNLOAD or MSG_FASTBOOT_CONTINUE with
len = 0.
data = binary_chunk | len = sizeof(data)Send binary data for fastboot.
Return [S]: Echo the command back with
len = 0.
<unused>
TODO: json
Return:
Enable USB VBUS going to the board.
Return [S]: None
Disable USB VBUS going to the board.
Return [S]: None
<unused>
len = 0Send a tcsendbreak to the board.
Return [S]: None
len = 0List the available boards.
Return [S]: Echo the command back NUM_DEVICES times with
len = sizeof(buf), data = buf. Once done, echo the command back withlen = 0.
data = string board name | len = sizeof(data)Get the board description.
Return [S]: Echo the command back with
len = sizeof(buf), data = buf.
len = 0Send
fastboot continueto the board.Return [S]: Echo the command back with
len = 0.