Decoding post home automation controllers - free source code @ Home Automation eHouse.Pro
Home Automation, Building Management eHouse - Decoding the status of microprocessor controllers Home Automation received by the control panel connected to the LAN or WiFi, via UDP (UDP). klima The standard frame reception status in binary form, with Controllers was discussed in the article "Intelligent Building eHouse controller status package". Decoding the frame needs to analyze every bit of data from pack. In addition, Each type of controller: Room Manager External Manager Heat Manager Input Extender Comm Manager Level Manager EthernetRoomManager It will amount digital inputs, measurement inputs, digital klima outputs, dimmers, monitoring functions and algorithms that result, the data in the standard frame mutate depending klima on the type controller. This results in the need for decoding the bit by bit for each type of controller independently. In the case of implementing any control microprocessor to create and test the frame decoding algorithm may take up to 1 month. To reduce this time to a minimum, to facilitate ready to present the algorithm borrowed from eHouse. EXE application, automatically read all the information from the controller and load data into the template records touch panel (for tablets) Windows XP, Vista, 7, 8. After automatic data into the software eHouse libraries, with a few lines of code, you can create your own control algorithms eHouse system in a few minutes. Binary Frame decoding software of the eHouse status standard klima is implemented in template klima library for panel. klima There must be a binary, for direct decoding status from Ethernet without eHouse. Exe monitoring programs. klima Decoding the entire frame (for microprocessor controllers eHouse1 RM, EM, HM) is carried klima out by set_rm method function (STR: array_of_char; TCP_INDEX_INC: integer); parameters are functions klima of buffer status and shift (offset). The buffer contains all data obtained from the position. Receive Depending on the type of transmission (extended address, normal, and other future applications dependent on communication algorithms). It automatically fills the array status for each controller individually and can then directly manipulate the data or update data automatically on screen touch panel. This function klima is active in the procedure if you want to receive data from UDP socket component (TNMUDP - called binary) if onDataReceived. The reception is as follows: procedure TForm1. binary data Received (Sender: TComponent; klima Number Bytes: Integer; FromIP: String; Port: Integer); was C: array [0. . 1024] of char; MyStream: TMemoryStream; begin if filesystem_status stop them; / / If there is no file system filesystem_status MyStream: klima = TMemoryStream. Create; / / Create a stream klima of data double. Read Stream (MyStream); / / Read data MyStream. Reading (C [0], Number Bytes); / / Full set_rm buffer C (C 1); / / Converts binary data and loads the registers rm [index] for controllers eHouse 1 Test_save; / / Test the output file to a text file for easy use update_panel; klima / / Load the data control terminal; It allows you to automatically and non - invasive collection of data over LAN or Wi - Fi with the package broadcast via UDP (UDP). What more does not require connection to the server only listens on the port broadcast '6789' default or other. Errors link, Network, routers do not result in a suspension or unspecified software errors klima (as in the case of communication with TCP server), but disappears just update the data without data or suitable klima server UDP client application.
WARNING! . If you create control software on Windows for eHouse Home Automation, klima it is necessary to implement all algorithms in one application, which analyzes the data and performs all the algorithms and visualize them. We observed sometimes that 2 UDP listener socket can not be on the same computer. The important points klima in the library binary: boiler_alarm: Boolean = false; / / Boiler alarm alarm programmed temperature above / / In - temperature boiler bonfire_stat warning: integer; / / Bonfire heating level 0-7 represents a double - employment status of fire / / 0 - shoot at - no heat / / 1 - Fire on / extinguishing =>; ; green level <; ; Temperature jacket (green LED flashing) - runs flashes green / / 2 - fire on =>; klima ; green points>; ; = Temp jackets>; ; yellow level - histeressis (green LED) - green / / 3 - fire on =>; ; yellow level - histeressis>; ; Temperature jackets>; ; histeressis level + yellow) (green + yellow LED) - green - yellow / / 4 - fire on =>; ; yellow level + histeressis>; ; Temperature jackets>; ; Red level - histeressis (yellow) - yellow / / 5 - unconditional =>; ; Red level - histeressis <; ; Temperature jacket <; ; histeressis level + red (red + yellow LED) yellow - red / / 6 - unconditional =>; ; Temperature jackets>; ; histeressis level + r
Home Automation, Building Management eHouse - Decoding the status of microprocessor controllers Home Automation received by the control panel connected to the LAN or WiFi, via UDP (UDP). klima The standard frame reception status in binary form, with Controllers was discussed in the article "Intelligent Building eHouse controller status package". Decoding the frame needs to analyze every bit of data from pack. In addition, Each type of controller: Room Manager External Manager Heat Manager Input Extender Comm Manager Level Manager EthernetRoomManager It will amount digital inputs, measurement inputs, digital klima outputs, dimmers, monitoring functions and algorithms that result, the data in the standard frame mutate depending klima on the type controller. This results in the need for decoding the bit by bit for each type of controller independently. In the case of implementing any control microprocessor to create and test the frame decoding algorithm may take up to 1 month. To reduce this time to a minimum, to facilitate ready to present the algorithm borrowed from eHouse. EXE application, automatically read all the information from the controller and load data into the template records touch panel (for tablets) Windows XP, Vista, 7, 8. After automatic data into the software eHouse libraries, with a few lines of code, you can create your own control algorithms eHouse system in a few minutes. Binary Frame decoding software of the eHouse status standard klima is implemented in template klima library for panel. klima There must be a binary, for direct decoding status from Ethernet without eHouse. Exe monitoring programs. klima Decoding the entire frame (for microprocessor controllers eHouse1 RM, EM, HM) is carried klima out by set_rm method function (STR: array_of_char; TCP_INDEX_INC: integer); parameters are functions klima of buffer status and shift (offset). The buffer contains all data obtained from the position. Receive Depending on the type of transmission (extended address, normal, and other future applications dependent on communication algorithms). It automatically fills the array status for each controller individually and can then directly manipulate the data or update data automatically on screen touch panel. This function klima is active in the procedure if you want to receive data from UDP socket component (TNMUDP - called binary) if onDataReceived. The reception is as follows: procedure TForm1. binary data Received (Sender: TComponent; klima Number Bytes: Integer; FromIP: String; Port: Integer); was C: array [0. . 1024] of char; MyStream: TMemoryStream; begin if filesystem_status stop them; / / If there is no file system filesystem_status MyStream: klima = TMemoryStream. Create; / / Create a stream klima of data double. Read Stream (MyStream); / / Read data MyStream. Reading (C [0], Number Bytes); / / Full set_rm buffer C (C 1); / / Converts binary data and loads the registers rm [index] for controllers eHouse 1 Test_save; / / Test the output file to a text file for easy use update_panel; klima / / Load the data control terminal; It allows you to automatically and non - invasive collection of data over LAN or Wi - Fi with the package broadcast via UDP (UDP). What more does not require connection to the server only listens on the port broadcast '6789' default or other. Errors link, Network, routers do not result in a suspension or unspecified software errors klima (as in the case of communication with TCP server), but disappears just update the data without data or suitable klima server UDP client application.
WARNING! . If you create control software on Windows for eHouse Home Automation, klima it is necessary to implement all algorithms in one application, which analyzes the data and performs all the algorithms and visualize them. We observed sometimes that 2 UDP listener socket can not be on the same computer. The important points klima in the library binary: boiler_alarm: Boolean = false; / / Boiler alarm alarm programmed temperature above / / In - temperature boiler bonfire_stat warning: integer; / / Bonfire heating level 0-7 represents a double - employment status of fire / / 0 - shoot at - no heat / / 1 - Fire on / extinguishing =>; ; green level <; ; Temperature jacket (green LED flashing) - runs flashes green / / 2 - fire on =>; klima ; green points>; ; = Temp jackets>; ; yellow level - histeressis (green LED) - green / / 3 - fire on =>; ; yellow level - histeressis>; ; Temperature jackets>; ; histeressis level + yellow) (green + yellow LED) - green - yellow / / 4 - fire on =>; ; yellow level + histeressis>; ; Temperature jackets>; ; Red level - histeressis (yellow) - yellow / / 5 - unconditional =>; ; Red level - histeressis <; ; Temperature jacket <; ; histeressis level + red (red + yellow LED) yellow - red / / 6 - unconditional =>; ; Temperature jackets>; ; histeressis level + r
No comments:
Post a Comment