1 #define PROTOCOL_VERSION 209
3 #define MAX_IR_DEVICES 256
7 #define COMMAND_LRNREM 2
8 #define COMMAND_LRNTIM 3
9 #define COMMAND_LRNCOM 4
10 #define COMMAND_CLOSE 5
11 #define COMMAND_STATUS 6
12 #define COMMAND_RESEND 7
13 #define COMMAND_LRNRAW 8
14 #define COMMAND_LRNRPT 9
15 #define COMMAND_LRNTOG 10
16 #define COMMAND_SETSTAT 11
17 #define COMMAND_LRNLONG 12
18 #define COMMAND_LRNRAWRPT 13
19 #define COMMAND_RELOAD 14
20 #define COMMAND_LCD 15
21 #define COMMAND_LEARNSTAT 16
22 #define COMMAND_TEMP 17
23 #define COMMAND_GETREMOTES 18
24 #define COMMAND_GETCOMMANDS 19
25 #define COMMAND_STORETRANS 20
26 #define COMMAND_LOADTRANS 21
27 #define COMMAND_SAVETRANS 22
28 #define COMMAND_FLASHTRANS 23
29 #define COMMAND_FUNCTIONS 24
30 #define COMMAND_TESTCOM 25
31 #define COMMAND_LONGSEND 26
32 #define COMMAND_SHUTDOWN 27
33 #define COMMAND_SENDCCF 28
34 #define COMMAND_LCDINIT 29
35 #define COMMAND_SETSWITCH 30
36 #define COMMAND_STATUSEX 31
37 #define COMMAND_RESET 32
38 #define COMMAND_DEVICEDATA 33
39 #define COMMAND_STARTCLOCK 34
40 #define COMMAND_LCDSTATUS 35
41 #define COMMAND_FUNCTIONEX 36
42 #define COMMAND_MCE_CHARS 37
43 #define COMMAND_SUSPEND 38
44 #define COMMAND_RESUME 39
45 #define COMMAND_DELETECOM 40
46 #define COMMAND_EMPTY 41
47 #define COMMAND_SETSTAT2 42
48 #define COMMAND_STATUSEXN 43
49 #define COMMAND_BRIGHTNESS 44
50 #define COMMAND_DEFINECHAR 45
51 #define COMMAND_STOREIRDB 46
52 #define COMMAND_FLASHIRDB 47
53 #define COMMAND_SAVEIRDB 48
54 #define COMMAND_LOADIRDB 49
55 #define COMMAND_LED 50
56 #define COMMAND_TRANSFILE 51
57 #define COMMAND_IRDBFILE 52
58 #define COMMAND_LISTBUS 53
59 #define COMMAND_SENDCCFSTR 54
60 #define COMMAND_LEARNDIRECT 55
61 #define COMMAND_TESTCOMEX 56
62 #define COMMAND_SENDCCFSTRS 57
63 #define COMMAND_SETSTATEX 58
64 #define COMMAND_DELETEREM 59
65 #define COMMAND_READ_ANALOG 60
66 #define COMMAND_RS232_SEND 61
67 #define COMMAND_SENDCCFLONG 62
69 #define COMMAND_ASCII 65
72 #define COMMAND_SENDSTRING 's' // 115
74 #define STATUS_MESSAGE 1
75 #define STATUS_TIMING 2
76 #define STATUS_DEVICEMODE 3
77 #define STATUS_RECEIVE 4
78 #define STATUS_LEARN 5
79 #define STATUS_REMOTELIST 6
80 #define STATUS_COMMANDLIST 7
81 #define STATUS_TRANSLATE 8
82 #define STATUS_FUNCTION 9
83 #define STATUS_DEVICEMODEEX 10
84 #define STATUS_DEVICEDATA 11
85 #define STATUS_LCDDATA 12
86 #define STATUS_FUNCTIONEX 13
87 #define STATUS_DEVICEMODEEXN 14
88 #define STATUS_IRDB 15
89 #define STATUS_TRANSLATIONFILE 16
90 #define STATUS_IRDBFILE 17
91 #define STATUS_BUSLIST 18
92 #define STATUS_LEARNDIRECT 19
93 #define STATUS_IRDBFLASH 20
94 #define STATUS_ANALOGINPUT 21
96 #define STATUS_ASCII 65
98 #define FILE_MODE_SAVE 0
99 #define FILE_MODE_SAVEAS 1
100 #define FILE_MODE_OVERWRITE 2
118 uint8_t repeat_pause
;
119 uint16_t pause_len
[TIME_LEN
];
120 uint16_t pulse_len
[TIME_LEN
];
121 uint8_t data
[CODE_LEN
];
131 uint8_t trasmit_freq
;
132 } OLD_NETWORKCOMMAND
;
143 int8_t framebuffer
[200];
152 int32_t protocol_version
;
155 uint8_t trasmit_freq
;
163 int32_t protocol_version
;
164 int8_t hotremote
[80];
165 int8_t hotcommand
[20];
166 int8_t hotremote_2
[80];
167 int8_t hotcommand_2
[20];
173 uint8_t wakeup_mac
[6];
179 // xxx1 xxxx Netmask active Flag
180 // xxx6 xxxx LED select
181 // x7f8 xxxx Bus Select
182 // 38xx xxxx Extended LED select
183 // 8xxx xxxx Extended LED enable
184 // 4xxx xxxx Bus Broadcast
186 // xxxxxxxx xxxxxxxx 11111111 11111111 Netmask (wie bisher genutzt)
187 // xxxxxxxx xxxxxxx1 xxxxxxxx xxxxxxxx Netmask aktiv (wie bisher genutzt)
188 // xxxxxxxx xxxxx11x xxxxxxxx xxxxxxxx LED Auswahl (intern / extern)
189 // xxxxx111 11111xxx xxxxxxxx xxxxxxxx Bus Auswahl (mehrere USB / LAN Module; max: 0-255 = 256 Stück)
190 // 1x111xxx xxxxxxxx xxxxxxxx xxxxxxxx Auswahl mehrer externer LEDs - bis zu 8
191 // x1xxxxxx xxxxxxxx xxxxxxxx xxxxxxxx Broadcast über alle USB / LAN Module
211 int32_t protocol_version
;
224 int32_t protocol_version
;
225 uint16_t ccf_data
[256];
233 int32_t protocol_version
;
234 uint16_t ccf_data
[450];
243 int32_t protocol_version
;
253 int32_t protocol_version
;
256 } CCFSTRINGCOMMAND_SHORT
;
265 int32_t protocol_version
;
268 int8_t framebuffer
[200];
277 int32_t protocol_version
;
281 uint8_t accelerator_timeout
;
282 uint8_t accelerator_repeat
;
283 uint16_t wait_timeout
;
291 uint8_t include_names
;
299 uint8_t extended_mode
;
300 uint8_t extended_mode2
;
302 uint16_t switch_mode
;
314 uint8_t extended_mode
;
315 uint8_t extended_mode2
;
317 uint16_t switch_mode
;
318 uint16_t switch_mode2
;
320 uint8_t extended_mode3
;
321 uint8_t extended_mode4
;
359 ANALOG_INPUTS inputs
;
373 uint32_t target_mask;
374 uint32_t source_mask;
384 int16_t count_buffer
;
386 int16_t count_remaining
;
387 REMOTELINE remotes
[40];
395 int16_t count_buffer
;
397 int16_t count_remaining
;
398 int8_t commands
[200][20];
406 int16_t count_buffer
;
408 int16_t count_remaining
;
409 TRANSLATECOMMAND trdata
[30];
418 int32_t protocol_version
;
439 int32_t protocol_version
;
444 uint8_t default_action
[100];
445 uint8_t err_status
[20];
446 uint8_t ok_status
[20];
447 uint8_t inputmode
[4];
451 uint8_t minledsel
[4];
452 uint8_t maxledsel
[4];
455 int8_t minremote
[4][80];
456 int8_t mincommand
[4][50];
457 int8_t maxremote
[4][80];
458 int8_t maxcommand
[4][50];
468 int16_t count_buffer
;
470 int16_t count_remaining
;
471 IRDBCOMMAND dbdata
[12];
479 int16_t count_buffer
;
481 int16_t count_remaining
;
502 MODELINE stat
[8][16];
513 MODELINEN stat
[8][16];
522 uint16_t statuslevel
;
533 uint16_t statuslevel
;
555 uint16_t command_num
;
570 int16_t num_commands
;
571 int8_t received
[CODE_LEN
];
588 NETWORKLEARNSTAT learnstatus
;
589 int8_t restdata
[sizeof (LCDCOMMAND
)];
598 #define TCP_PORT 21000
599 #define IRTRANS_PORT 21000
600 #define LIRC_PORT 8765
601 #define UDP_PORT 21000
603 #define ALTERNATE_WEB 8080
604 #define XAP_PORT 3639
608 #define CLIENT_COUNT MAXIMUM_WAIT_OBJECTS - 3
612 #define CLIENT_COUNT 64