Using the TCP command interface
Using the TCP socket ‘64’, the following commands have been added to start and stop streams.
• Enable output stream: FF2n
• Disable output stream: FF3n
whereby ‘n’ is the stream number (see below)
The generic command structure is:
• <command word, little endian>
• <command parameter length, little endian>
• <command parameters>.
The Disable command does not take any parameters. The enable command can have two
parameters; neither of them are required.
• Parameter 1: Duration of the stream enable (0 = forever)
• Parameter 2: Destination (string).
The duration is given in system ticks, which come at an interval of 5 ms.
So to elaborate on the commands:
To enable stream 0 for one second (200 ticks), to the pre-configured destination address, the bytes
sent over the TCP control port are:
20 FF 02 00 00 C8
To enable stream 0 indefinitely to ‘192.168.0.119’, you’d send:
20 FF 0F 00 00 00 192.168.0.119 (the latter part being ASCII)
-> Command length = string length + 2 bytes.
To disable stream 0, you send:
30 FF 00 00 (length of parameters is 0)