Decoding the binary status of home automation controllers - free source code @ Home Automation eHouse.Pro
Home Automation, Building tube led Management eHouse - Decoding the status of microprocessor controllers Home Automation received by the control panel connected to the LAN or WiFi, via UDP (User Datagram Protocol). Standard frame reception status in binary form, with Controllers discussed the article "Intelligent tube led Building eHouse controller status package". Decoding the frame needs to analyze every bit of data from pack. In addition, each type of controller: tube led InputExtender HeatManager tube led RoomManager ExternalManager CommManager LevelManager EthernetRoomManager The difference in amount of digital inputs, measurement inputs, digital outputs, dimmers, monitoring functions and algorithms that result, that the data in the frame mutate standard depending on the type of controller. This results in the need for decoding the bit by bit for each type of controller independently. For the implementation of all types of microprocessor controllers to create and test the decoding algorithm frame take up to 1 month. To minimize this time at least, to facilitate ready to present the algorithm borrowed from eHouse. exe application? , Automatically decode all the information on the controller and load data into the template records tube led of touch panel (for tablets) Windows XP, Vista, 7, 8. After automatically loading the data into the eHouse software libraries, tube led with a few lines of code, you can create tube led your own system eHouse control algorithms in a few minutes. Binary Frame decoding software is the standard application eHouse status in template tube led library for panel. It must be done binary, for direct tube led decoding status from Ethernet controllers without eHouse. Supervision application tube led exe . Decoding the entire frame (for microprocessor controllers eHouse1 RM, EM, HM) carried out by the force set_rm procedure (str: array_of_char; TCP_INDEX_INC: int); Parameters are functions of the buffer status and shift (offset). Buffer the data obtained tube led from the status. Offset depends on the type of transmission (extended address, normal, and other future applications tube led 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 panels. The function is activated in the event procedure to get data from UDP socket component tube led (TNMUDP - called binary) for onDataReceived. The reception is as follows: procedure TForm1. tube led binaryDataReceived (Sender: TComponent; NumberBytes: Integer; FromIP: String = Port: Integer); var C: array [0. . 1024] of char; MyStream: TMemoryStream; begin if filesystem_status retirement; / / If any system file filesystem_status MyStream: = TMemoryStream. Create; / / Create a stream of binary data. ReadStream (MyStream); / / Read the data stream MyStream. Read (C [0], NumberBytes); / / Loads set_rm buffer C (C, 1); / Converts / binary data and loads the registers rm [index] for controllers eHouse 1 Test_save; / / Test the output recorded in a text file for easy operation update_panel; / / Load the data on the control panel end; It allows you to automatically and is not - invasive collection of data over a LAN or Wi - Fi with the package broadcast via UDP (User Datagram Protocol). What more does not require an open 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 (as in the case of communication with TCP server), but disappears just refresh the data without affecting the data or suitable server UDP client application.
MINISTER! . If you create a Windows control software for Home Automation eHouse, it is necessary to implement all algorithms in one application, which analyzes the data out and all the algorithms and visualize them. We can sometimes cause 2 UDP listener socket on the same computer. The most important variables in the library binary: boiler_alarm: Boolean false; / / Boiler tube led alarm alarm temperature registered over / / Over - boiler temperature alarm bonfire_stat: integer; / / Heat Level bonfire 0-7 for binary mode - fire employment status / / 0 - burnt out - not heat / / 1 - Fire on / turn off =>; ; green level <;
Home Automation, Building tube led Management eHouse - Decoding the status of microprocessor controllers Home Automation received by the control panel connected to the LAN or WiFi, via UDP (User Datagram Protocol). Standard frame reception status in binary form, with Controllers discussed the article "Intelligent tube led Building eHouse controller status package". Decoding the frame needs to analyze every bit of data from pack. In addition, each type of controller: tube led InputExtender HeatManager tube led RoomManager ExternalManager CommManager LevelManager EthernetRoomManager The difference in amount of digital inputs, measurement inputs, digital outputs, dimmers, monitoring functions and algorithms that result, that the data in the frame mutate standard depending on the type of controller. This results in the need for decoding the bit by bit for each type of controller independently. For the implementation of all types of microprocessor controllers to create and test the decoding algorithm frame take up to 1 month. To minimize this time at least, to facilitate ready to present the algorithm borrowed from eHouse. exe application? , Automatically decode all the information on the controller and load data into the template records tube led of touch panel (for tablets) Windows XP, Vista, 7, 8. After automatically loading the data into the eHouse software libraries, tube led with a few lines of code, you can create tube led your own system eHouse control algorithms in a few minutes. Binary Frame decoding software is the standard application eHouse status in template tube led library for panel. It must be done binary, for direct tube led decoding status from Ethernet controllers without eHouse. Supervision application tube led exe . Decoding the entire frame (for microprocessor controllers eHouse1 RM, EM, HM) carried out by the force set_rm procedure (str: array_of_char; TCP_INDEX_INC: int); Parameters are functions of the buffer status and shift (offset). Buffer the data obtained tube led from the status. Offset depends on the type of transmission (extended address, normal, and other future applications tube led 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 panels. The function is activated in the event procedure to get data from UDP socket component tube led (TNMUDP - called binary) for onDataReceived. The reception is as follows: procedure TForm1. tube led binaryDataReceived (Sender: TComponent; NumberBytes: Integer; FromIP: String = Port: Integer); var C: array [0. . 1024] of char; MyStream: TMemoryStream; begin if filesystem_status retirement; / / If any system file filesystem_status MyStream: = TMemoryStream. Create; / / Create a stream of binary data. ReadStream (MyStream); / / Read the data stream MyStream. Read (C [0], NumberBytes); / / Loads set_rm buffer C (C, 1); / Converts / binary data and loads the registers rm [index] for controllers eHouse 1 Test_save; / / Test the output recorded in a text file for easy operation update_panel; / / Load the data on the control panel end; It allows you to automatically and is not - invasive collection of data over a LAN or Wi - Fi with the package broadcast via UDP (User Datagram Protocol). What more does not require an open 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 (as in the case of communication with TCP server), but disappears just refresh the data without affecting the data or suitable server UDP client application.
MINISTER! . If you create a Windows control software for Home Automation eHouse, it is necessary to implement all algorithms in one application, which analyzes the data out and all the algorithms and visualize them. We can sometimes cause 2 UDP listener socket on the same computer. The most important variables in the library binary: boiler_alarm: Boolean false; / / Boiler tube led alarm alarm temperature registered over / / Over - boiler temperature alarm bonfire_stat: integer; / / Heat Level bonfire 0-7 for binary mode - fire employment status / / 0 - burnt out - not heat / / 1 - Fire on / turn off =>; ; green level <;
No comments:
Post a Comment