eHouse4Android smartphones programming status update controllers for Android

eHouse Home Automation – Synchronization of drivers , I , O , measured values ​​for the equipment and panels on Android . Description of the software package and libraries to create their own panels on the platform EHouse home automation – Software to control the system Home Automation eHouse – Control and Building Automation eHouse – Management .

Class EhouseTCP

Class is used to maintain the TCP / IP connection with the system Building Automation eHouse (online) and update the data coming from the microprocessor controllers eHouse { Building Automation eHouse – Drivers } .
It also requires the use of classes:
* Ehousecommunication . class
* StatusEhouse . class
* StatusCommManager . class

When the connection ” query ” of Automation eHouse , to receive the current status of the drivers (online) for visualization applications { Building Automation eHouse – Gallery of Software Control } , data are updated in instances (1 controller => ; an instance of the class status) classes:

  • StatusEhouse (for drivers eHouse1)
  • StatusCommManager (for drivers eHouse TCP / IP)

These data can then be retrieved by the software for logging and visualization algorithms, or any other software on the Android platform , without having to write ” algorithms translate ” eHouse PC configuration for Android platform .


Features:

public static void TerminateQuery ()

Discontinuation of TCP / IP (infinite loop for receiving the status of drivers .

Example of use: EhouseTCP . TerminateQuery () ;


public static boolean QueryStart (String host , int port)

Initiates and maintains communication and reception of the status of all system drivers eHouse (infinite loop – it can be stopped by TerminateQuery ())

If the specified host is using host and port parameters

otherwise it uses the configuration settings (separately for Local and Internet connection, depending on the function to run public EnableInternet (boolean enab) )

Example of use: EhouseTCP . QueryStart ( ” ” , 9876) ; / / Connects to the default server at the TCP / IP eHouse


public static void AllDevsStatus ()

Imports driver names ” eHouse 1 – 485 ” , together with the names of exits , I , measuring inputs from Configuration Files

Example of use: EhouseTCP . AllDevsStatus () ;


public static void AllDevsTCPStatus ()

Imports driver names ” Ethernet eHouse ” together with the names of exits , I , measuring inputs from Configuration Files

Example of use: EhouseTCP . AllDevsTCPStatus () ;



Example of complete code:

More information eHouse Drivers:

lighting control , heating , HiFi in spaces
Control central heating and ventilation
control of blinds , gates , awnings
control gates , shutters , awnings system version eHouse1

Design and installation of the system do it yourself

Home Automation eHouse – Independent System Design
Building Automation eHouse – Self-Installation





Digg this! Add to del.icio.us! Stumble this! Add to Techorati! Share on Facebook! Seed Newsvine! Reddit! Blip Dodaj na FaceBooku.Pl Twitt! GaduGadu Gmail Wykop! Dzone Dzone Delicious Add Google Bookmark Add To Favorities


Comments are closed.