
cbus Documentation, Release 0.1-dev
GETFILELIST
Client command:
GETFILELIST
Server response:
202 FILE1=C:\HomeGate\Projects\Current\EXAMPLEproj.tar.gz
Retrieves a list of “files” on the device associated with the project. This only returns the project file.
The path is faked by the daemon, with “EXAMPLE” replaced by the project name.
GETPROJ
Client command:
GETPROJ
Server response:
202-Port=8337
202 FILE=C:\HomeGate\Projects\Current\EXAMPLEproj.tar.gz
Returns the “project filename” for the contents of flash partition 6. The path information is hard coded and fake, with
“EXAMPLE” replaced by the project name.
INSTALL
Client command:
INSTALL PROJECT example.tar.gz
Server response:
202 Port=8337
Starts an out of band transfer for overwriting the Wiser’s project file.
The server opens up another TCP server on a different port (on Wiser, this is always 8337) in order to accept the file
transfer out of band.
4.4.4 Project file transfer
Project file transfer is done on another port (always 8337), and initiated by the INSTALL command.
The client immediately sends:
FILE example.tar.gz
This is then immediately followed by a UNIX newline character, and then the file length as a 32-bit unsigned big-
endian integer.
Files must not be bigger than 512kB, or the transfer will be rejected by the Wiser. File names must end in ”.tar.gz”.
Projects must also not extract to a size greater than about 1 MiB. Wiser stores the contents of this archive in ramfs,
so larger archives will use all available RAM on the Wiser, and cannot be freed, leading to Linux’s oomkiller to
run or processes to fail to dynamically allocate memory. This has the potential in turn to partially brick the Wiser
18 Chapter 4. Wiser
Comentários a estes Manuais