temcocontrols/T3000_Building_Automation_System — pull request #80 by Fance (2013-08-16 08:13:30+00:00)
Title: Decode the binary blocks

1.Decode the binary blocks, if CM5 send programming blocks to our software,it will exlain to corresponding programming language.
For example:
CM5 Send :00 01 0a 00 1a 04 54 45 53 54 01 14 00 0e 9c 00 03 9d e8 03 00 00 6e ff 29 00 09 9c 01 03 9d d0 07 00 00 ff 10 ff 33 00 09 9c 02 03 9d b8 0b 00 00 ff 01 1e 00 09 9c 03 03 9c 04 03 9d d0 07 00 00 6c 01 28 00 09 9c 05 03 9c 06 03 9d d0 07 00 00 6b fe
It will show programming as:
10 REM TEST
20 IF VAR1 > 1 THEN VAR2 = 2 ELSE VAR3 = 3
30 VAR4 = VAR5 - 2
40 VAR6 = VAR7 + 2