10
Command Control via the Network (continued)
Command Format
[TCP #23]
1. Protocol
&RQVLVWRIKHDGHUE\WHVFRPPDQGGDWDE\WHV
2. Header
%(()&5&BORZ&5&BKLJK
&5&BORZ/RZHUE\WHRI&5&ÀDJIRUFRPPDQGGDWD
&5&BKLJK8SSHUE\WHRI&5&ÀDJIRUFRPPDQGGDWD
3. Command data
&RPPDQGGDWDFKDUW
E\WHB
E\WHB
E\WHB
E\WHB
E\WHB
E\WHB
Action
7\SH
Setting code
ORZ
KLJK
ORZ
KLJK
ORZ
KLJK
$FWLRQE\WHB
Action
&ODVVL¿FDWLRQ
Content
1
Set
&KDQJHVHWWLQJWRGHVLUHGYDOXH
2
Get
5HDGSURMHFWRULQWHUQDOVHWXSYDOXH
4
,QFUHPHQW
,QFUHPHQWVHWXSYDOXHE\
5
'HFUHPHQW
'HFUHPHQWVHWXSYDOXHE\
6
Execute
Run a command.
Requesting projector status (Get command)
6HQGWKHIROORZLQJUHTXHVWFRGHIURPWKH3&WRWKHSURMHFWRU
Command data (‘02H’ + ‘00H’ + type (2 bytes) + ‘00H’ + ‘00H’)
7KHSURMHFWRUUHWXUQVWKHUHVSRQVHFRGH
‘1DH’ + data (2 bytes)
WRWKH3&
Changing the projector settings (Set command)
6HQGWKHIROORZLQJVHWWLQJFRGHIURPWKH3&WRWKHSURMHFWRU
Command data (‘01H’ + ‘00H’ + type (2 bytes) + setting code (2 bytes))
7KHSURMHFWRUFKDQJHVWKHVHWWLQJEDVHGRQWKHDERYHVHWWLQJFRGH
7KHSURMHFWRUUHWXUQVWKHUHVSRQVHFRGH
‘06H’
WRWKH3&
Using the projector default settings (Reset Command)
7KH3&VHQGVWKHIROORZLQJGHIDXOWVHWWLQJFRGHWRWKHSURMHFWRU
Command data (‘06H’ + ‘00H’ + type (2 bytes) + ‘00H’ + ‘00H’)
7KHSURMHFWRUFKDQJHVWKHVSHFL¿HGVHWWLQJWRWKHGHIDXOWYDOXH
7KHSURMHFWRUUHWXUQVWKHUHVSRQVHFRGH
‘06H’
WRWKH3&
Increasing the projector setting value (Increment command)
7KH3&VHQGVWKHIROORZLQJLQFUHPHQWFRGHWRWKHSURMHFWRU
Command data (‘04H’ + ‘00H’ + type (2 bytes) + ‘00H’ + ‘00H’)
7KHSURMHFWRULQFUHDVHVWKHVHWWLQJYDOXHRQWKHDERYHVHWWLQJFRGH
7KHSURMHFWRUUHWXUQVWKHUHVSRQVHFRGH
‘06H’
WRWKH3&