Access Keys:
Skip to content (Access Key - 0)
blog entry  2009/08/11
Last changed: Aug 15, 2009 09:49 by Juha Lindfors

A quick note to developers. An OpenRemote panel based on Android platform has been added to subversion at http://openremote.svn.sourceforge.net/viewvc/openremote/trunk/Panels/Android/

The current panel rendering is based on the existing iphone.xml UI schema and therefore most suitable for Android based touch phones with similar screen dimensions (G1, HTC Magic/Hero, etc.)

The functionality in the current implementation is roughly equivalent of OR Boss milestone 2 (M2) that was released earlier in June this year. Video of the iPhone UI is available on YouTube. The features in iPhone panel for M3 (mainly controller auto-discovery) has not yet been added to the Android codebase.

In order to run or test the Android panel, you will need to download the Android SDK. The SDK is available on the most popular systems including Windows, Linux and Mac. The application can be run on a emulator on any of these systems. No payments, subscriptions or additional hardware purchases required.

To deploy the the OpenRemote Android panel on the emulator, follow the instructions in the Android developer guide online. The SDK has all the necessary tools in its /Tools directory although an Eclipse plugin is also available if you have a fear of CLI.


(Click for larger image)

Steps to Build and Deploy

The process of building and deploying the OpenRemote Android panel on the emulator is roughly the following:

1. Create a new Android Virtual Device (AVD) profile. This configures the emulator for your target hardware profile

AndroidSDK/tools/android create avd --name G1 [you can use another name here] --target 2 [revealed by the 'list' operation, see below]

The hardware platform targets can be revealed by using the following command:

AndroidSDK/tools/android list targets

which should yield a target roughly similar to what is below:

id: 2
     Name: Android 1.5
     Type: Platform
     API level: 3
     Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P

2. Checkout the trunk of OpenRemote SVN:

svn co http://openremote.svn.sourceforge.net/svnroot/openremote/trunk/Panels/Android

3. Set up an Android project

AndroidSDK/tools/android update project --target 2 --path OpenRemoteSVN/trunk/Panels/Android

This should create a 'local.properties' file in the /trunk/Panels/Android directory which contains a path to the root of your Android SDK installation

4. Build the OpenRemote Android panel

The OpenRemoteSVN/trunk/Panels/Android contains an Ant 'build.xml' file you can use to build the project:

OpenRemoteSVN/trunk/Tools/apache-ant-1.7.0/bin/ant debug

The 'debug' target automatically signs the package with a self-signed key which is sufficient to deploy and execute the app on the emulator. The binary is created in OpenRemoteSVN/trunk/Panels/Android/bin/.Main-debug.apk

5. Run the Android Emulator

AndroidSDK/tools/emulator -avd G1 [or any other name you used for your hardware profile]

Wait for the emulator to start completely (it can take a while)

6. Install the app

AndroidSDK/tools/adb install OpenRemoteSVN/trunk/Panels/Android/bin/.Main-debug.apk

You should see OpenRemote in the application selection.

7. Start the OpenRemote Controller

Download latest OR Controller beta: http://archive.openremote.org/download/OpenRemote-Controller-1.0.0_Beta6_JavaOnly.zip

It contains a stand-alone Tomcat which you can run directly:

OpenRemote-Controller-1.0.0_Beta6_JavaOnly/bin/startup

8. Create a sample user interface

http://composer.openremote.org/demo/

When you're done, use the download button and save the OpenRemote Zip file on your hard drive.

http://composer.openremote.org/demo

9. Deploy UI definition

Go to http://localhost:8080/controller and upload the OpenRemote Zip.

10. Start the OpenRemote Android app

Configure the application to http://<Your IP>:8080/controller

Configure Controller URL
(Click for larger image)

Have fun!

Posted at 11 Aug @ 12:30 AM by user Juha Lindfors | comment 3 comments
blog entry  2009/08/24
Last changed: Aug 24, 2009 12:56 by Juha Lindfors

Our third and final milestone for OpenRemote Boss 1.0 was tagged in July but I never got around announcing it. Better late than never.

What is new in M3 is largely changes on the hosted online tools. The new protocols (KNX, TCP/IP, HTTP and Telnet) that were added to the controller in M2 are now supported on the UI composer. It means that instead of hand-editing the controller XML files to use these protocols, you can configure them using drag and drop online tools. All the configuration is generated for you and you can easily upload them to the controller with one button click.

The OR Boss 1.0 M3 composer is available at http://composer.openremote.org/demo.

In addition some changes went into the controller and iPhone console to add an auto-discovery of the controller in a local network setup (using multicast). This eases the deployment somewhat when you don't have to know or type the controller IP address yourself.

Downloads

The M3 controller is available as a binary download for those eager to try it out. It is a pure Java binary so it will run on any machine that has the Java Runtime Environment (JRE) installed. For more details on accessing the source code, testing the functionality and and running the controller, see the OpenRemote Releases page. Now that the 1.0 milestones are completed, we will be focusing on documenting the setup and deployment and providing some tutorials to get the system up and running for non-developers as well. In the meanwhile, some additional useful links are listed below:

Download OpenRemote Boss 1.0 M3
What is included in OpenRemote 1.0 Milestone 3?
How to check out the source to OpenRemote 1.0 Milestone 3?

What's Coming

As mentioned, version 1.0 of OR Boss is almost feature complete. X10 library integration still needs to be put back in, and I'm trying to sneak in some tweaks to KNX functionality but mostly we'll be working on packaging to make it more consumable from now on.

We also have UPnP (thanks to contribution of Mathieu Gallissot) and some GlobalCache support (from Marc Fleury and Eric Bariaux) coming up. These are currently in the feature branches in subversion but expect to see them in either 1.1 or 2.0 version of the OR Boss.

We've already begun working on the OR Boss 2.0 in parallel, and some of the discussions related to the next version can be read in the links below:

UIComposer Design for 2.0
iPhone Panel 2.0, next generation
UI composer, next generation
Posted at 24 Aug @ 11:55 AM by user Juha Lindfors | comment 0 comments
blog entry  2009/08/25
Last changed: Aug 25, 2009 17:52 by Juha Lindfors

A bunch of us are heading to Atlanta around September 10th to check out the CEDIA show. Would be happy to try and organize an ad-hoc get-together over drinks and meet and chat. If you plan to be there and would like to sit down and discuss the current state of the HA industry, leave a note here (or email). Will post more information about what/where/when as we get closer to the event. Hope to see you there!

– Juha

Posted at 25 Aug @ 5:31 PM by user Juha Lindfors | comment 2 comments
© 2008-2011 OpenRemote Inc. OpenRemote is a trademark of OpenRemote, Inc.
Adaptavist Theme Builder (3.3.3-conf210) Powered by Atlassian Confluence 2.10.3, the Enterprise Wiki.
Free theme builder license