Building Automation eHouse – Analyzing Logs Programming Windows system source code

eHouse Home Automation allows you to create text log files and file-based markers to signal a more significant system states , output status , I , measurements measuring inputs , dimmer levels .


The software package Control Automation eHouse keep drivers read the complete status , creating text reports in the directory “%EHOUSE_DIR%\Logs\”.

Depending on the value of the parameter in the file “%EHOUSE_DIR%\Logsize.cfg” , containing the size of the log files , beyond this value, the file is moved to “%EHOUSE_DIR%\Backup-logs\” with the addition of the date and time of the creation of the name.

In the event of a significant increase in the archive log directory , worth once a year to check archived files and delete those that are no longer needed .

Contents of the directory “Logs”

The directory contains the files and folders.

Directories: The content of the log directory 000,254 catalogs and CommManager contain information about the status of the alarm controller – blinds , marquess , gates .

CommManager is the name of the controller (not amended in the application) . 000254 is the tip of the TCP/IP . Other drivers appear online in the same way .

Directories: Active , Alarm , Warning , Monitoring contains a list of active detector alarm .

Active Directory includes all the currently active alarm detector .

The contents of other directories depending on the currently selected level of security (protection zone) , that is, the mask set independently for each alarm output (siren , Warning light , Signal Monitoring).

The names of the detectors (ie digital input control) and all other signals are transmitted in the application configuration at the beginning of the hardware and software configuration.

Similarly, the case shows the directories: ActiveSet , AlarmSet , WarningSet , MonitoringSet , that contain the same information as discussed above , However, markup files do not disappear automatically after disabling the detector input , but require manual removal.

This prevents skipping , short activity and alarm sensors can include this information with third-party applications , eHouse outside the system or manually check .

He leaves a trace of all detectors activated after deleting the contents of this directory , which may in some circumstances be very beneficial .

 Example of Active Directory , ActiveSet , Monitoring , MonitoringSet , Alarm , AlarmSet , Warning , WarningSet

The files are named after the name of the controller inputs CommManager ‘ and , which enables very easy to check the current state of the file system Windows or third-party applications to support a system eHouse .

Catalogs: Office , Daria , Office , Marco , Nina , Workshop , Salon , Tom are the names of the controllers (RoomManagers) on eHouse .

Example based on the contents of a directory for RoomManager Salon ‘ and to control the living room
 Contents of the directory space for the driver Salon RoomManager ' and

In this directory are the files visible markers currently enrolled in the digital output file name identical to the name of the stored output configuration . After starting off the file disappears from the system log .

Subdirectory “Salon\Temps\” contains files with the results from sensors (analog) File name the same as the name given to the driver configuration . Use only the file “.txt” because , the possibility of conflict between simultaneous write to file an application eHouse , a reading from the outside by other methods (such as using your own software) .

Each file in the directory contains 3 temps results in the following lines . for example:

20.10 The temperature sensor is connected to the input (graduated as LM335)

41.30 The value of the percentage of the supply voltage (for VCC = 5v RoomManager) for any sensor with a positive magnification

58.65 The value of the reverse-percent 100 % – x (for example, a reverse sensor and phototransistor scale for measuring lighting)

The contents of files in a directory “%EHOUSE_DIR%\Logs\”.

The files in the directory “logs” are informative for detecting errors in the system. Opening and tampering with log files are enlarging can reduce the stability of the application eHouse , conflictual open for other software when you try to write , so it is better not to do so for a reason .

Deserve attention and the file names of microprocessor controllers , which is full of the status of the driver in the form of text .

The file can be used by log analyzers and software working with eHouse otherwise .

Example file Salon.txt Controller Salon RoomManager.

Salon 2011 – 12 – 07 18:56:17 name of the driver date and time

Program: (1) number of the current program after the change

Lighting Level: 0 % [T = – 273 . 1 [C] , U = 0 [V] , 0 [ % ]]

Input level measurement scale inverted light


Internal temperature: 58 . 75 % [T = 20 . 6 [C] , U = 2 . 937 [V] , 58 . 75 [ % ]]

External Temperature PN: 58 . 65 % [T = 20 . 1 [C] , U = 2 . 933 [V] , 58 . 65 [ % ]]

AN Input 4: 100 % [T = 226 . 8 [C] , U = 5 [V] , 100 [ % ]]

AN Input 5: 100 % [T = 226 . 8 [C] , U = 5 [V] , 100 [ % ]]

AN Input 6: 100 % [T = 226 . 8 [C] , U = 5 [V] , 100 [ % ]]

AN Input 7: 100 % [T = 226 . 8 [C] , U = 5 [V] , 100 [ % ]]

AN Input 8: 100 % [T = 226 . 8 [C] , U = 5 [V] , 100 [ % ]]

Inputs first result in a percentage of the control voltage (5v)
T = temperature scaled for LM335
U = voltage measured in volts
The percentage in relation to the supply voltage controller
Active Outs: Active driver output

Central Lighting

Lighting Couch C

Lighting PD – In

Lighting PN – In

Lighting PN 1

Lighting Central 2

Lighting PN Couch

Night light

Lighting PD Couch

Lighting PN 2

Lighting Central 3

Output 14

Active Inputs: Active digital inputs (switches / sensors, etc. – in the case of momentary switches / pulse is stored until 2 consecutive acceptance status from the controller)

Switch 8

Switch 6

Input 4

Input 5

Input 7

Input 8 Descriptions indicated in red

File format output depending on the type of controller can vary , But the idea is similar .

Output file formats are subject to change so be sure to monitor the results .

Files marker (indicating on / off) inputs and outputs can be checked using the software functions

fileexists() or similar, depending on the programming language .

Files containing text , you need to open and read , must first copy the next and then restore from a backup to avoid conflicts while writing or reading files for multiple applications .

Home Automation – Room Controller Home Automation Producer eHouse Home automation – control The house