Did you know? DZone has great portals for Python, Cloud, NoSQL, and HTML5!

I'm a Civil Engineer in Computation and Computer Science of Andrés Bello University, Santiago - Chile. I'm working as a Software Engineer in Ingerencia, an small company that develop software solutions. In paralell i'm working on a project with a new company that calls ID (Ingeniería Domótica, in english means Home Automation Engineering), where i'm developing a software solution based on Netbeans platform 6.8 and some other interesting technologies like PLCBUS protocol and hardware devices. I love Linux and I love Java. In my other life I'm a heavy weight lifter, 7 years already. What can I say, I'm combining the develop of the mind and body. Daniel has posted 3 posts at DZone. View Full User Profile

Home Automation Design with PLCBUS on the NetBeans Platform

05.31.2010
Email
Views: 6621
  • submit to reddit

I'm in Chile, developing an application for a business in the home automation area. This business focuses on departments (buildings). The application I'm developing uses PLCBUS technology to control hardware devices by using electrical power lines to send data using a specific protocol (PLCBUS protocol). To connect the application to a PLCBUS interface, I'm using the RXTX project, so that I'm able to use serial ports. In addition, webcams are used in my application, via the v4l4j project, which only works on Linux.

Basically, with the application you can build a scene of your department by simply dragging and dropping widgets that represent the devices you want to control.



Right now the widgets are only bulbs and webcams. It is really user friendly, thanks to the Visual Library.


This is a server-client solution:

  • Server.
    • (1) EJB with web services running on Glassfish V3 to expose services to control devices via PLCBUS.
    • (2) A little application that exposes webcams via sockets, works the same as a chat, many connections are allowed and webcams are just resources that can be shared intelligently.

  • Client. An application built over NetBeans Platform 6.8 from where you can control your department easily.

 

Some more screenshots:

 

I developed the software as a client-server because I want to develop some other clients for other devices and systems, like Android.

Developing the client on the NetBeans Platform really helps me focus on what I want to do and not to rebuild the wheel. The NetBeans Platform APIs are really complete and helpful. This is my first project using the NetBeans Platform APIs, I like them very much and that is why I already pre-ordered the book of NetBeans Platform 6.9, I can't wait to get hold of it!

Published at DZone with permission of its author, Daniel Morales.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

Patricia Albornoz replied on Tue, 2010/06/01 - 1:47pm

Excellent! i want to do that! how can i do this?? Maybe you can do a simple how to...? :D Congrats!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.