Friday, January 18, 2008

Network events from the BBSB controller!


Great news on the BBSB Online controller front -How to get controller events on your local Lan - something that has been a bit of a mystery to us.

Reader Marcus J has posted a comment on my earlier BBSB Online Review about how he set about writing his own software to control the BBSB controller device locally on his LAN. - While we'd already discovered how to 'control devices' by talking direct to the controller, he's cracked the event notification side which is even more useful , as the subscription BBSB online software which is currently able to send e-mails and Texts on events, but nothing that is extensible for those of us who want the events to go to our own apps and scripts.

Here's how:

Using a network packet analyser he discovered that whenever the device detects a RF signal it broadcasts a UDP packet to the broadcast IP of 255.255.255.255 with destination port of 53003 and the packet data is in format of "devicecommand:1e01:" for example where e1 has been turned on.

All you do is write a script or application to listen for udp broadcast packets on port 53003. :)

Marcus tells me this has enabled him to write his own macros to trigger other devices /emails/alerts etc whenever an event occurs.

He has also written a script plus php web front end to allow control of devices using a schedule all thanks to our earlier discovery on the URL format.

The script simply opens port 80 on the device and sends the necessary http header and url when a scheduled event occurs.
If this was facebook, I'd have bought you a virtual Pint Marcus! - well done.
If anyone else has any clever ways of making use of this little controller, feel free to let us all know using the comments link below.
Update
Yup, it's true - works like a charm - here's an updated SleepTool.exe, that can hear BBSB events from the controller on the network. It also has a simple way of mapping BBSB devices (switches, motion detectors - etc ) to executing stuff on your host PC so you can run an app when a detector is triggered etc - link to the code and binary. - Enjoy. (standard horrid-vb coding disclaimer applies 8-) ) - you can use this on multiple PC's to put them to sleep when you turn off the power, the app still supports all the functions of the previous version.
Also, when the controller is instructed by the BBSB website to turn on/off a device, Marcus's observation also applies - so a local packet with 'devicecommand:0A01:' is seen when the website turns off Device A1 for example. Finally, there looks to be some sort of heartbeat packet as well every 10-20 seconds, which contains all sorts of interesting stuff when the controller heart-beats to the BBSB mothership....

Sunday, January 13, 2008

Does your Media Center sleep through the night?


Mine does, but initially not the way I wanted it to.. so:

You'll all know that you can set the power management settings in Vista, and MCE2005 to Sleep/Hibernate your MCE PC when it's not being used, but this doesnt take account of 'fixed time events', like when you go to bed at night for example, and doesnt ensure that the MCE machine is 'awake' when you want it to be - like when you sit down to watch TV in the evening - of course if you have the right type of BIOS and motherboard you can wake it with the MCE remote..

Enter 'SleepTool' , another VB app, that this time is based on an excellent code sample from
coder iPrank on VBForums.com (post is here).

I've added a few lines of code to make it accept command line parameters, but essentially it's all his work - nicely done.
So, I now have a scheduled task on the PC at the time I go to bed in the evening that says:

SleepTool sleep 17:30

This sleeps the PC immediatley (unless it's recording!) and wakes it up ready for me when I sit down to watch TV in the evening. (If the machine is recording or playing the sleep request is over-ridden by MCE and the request has no effect)

You can also tell the machine to 'hibernate' by swapping 'sleep' on the command line for 'hibernate', and use a relative time from the sleep point - so

SleepTool Hibernate 300

will hibernate the PC for 5 hours from 'now'.

Hope this is of use to someone 8-)

A Little Home-Automation side-note. Our Domia Lite controller has had a firmware upgrade, and sadly has lost the ability for me to 'sniff' the events on the controller from it's local web-server. I currently have another nasty VB app called PingAction.exe (source/binary here if you want it), that I use on a scheduled event every 10 minutes - this pings the IP of my Slim Squeezebox and uses this to 'deduce' if I've gone to bed for the night or not (I turn off the Slim with the ByeBye Standby 'green switch' (See earlier blog post) - this is a very nasty crude way of 'telling' if I'm no longer wanting media center to be on - and the application then invokes the SleepTool to put it to sleep.

Domia (if you're reading) - this is plea for some public API's to your excellent web-based HA system and/or the controller itself- its great , but I'd love to be able to actually integrate some other software with it - currently I cant work out any other way! -- am I missing something?


Mart../

Wednesday, January 02, 2008

A critical Media Center process has failed

I dont usually rant on here, but this one has got me all annoyed.

My Vista Media Center machine has been in 'production' in the house for a good 5 months now, and apart from a few annoyances (see below), it's been relativley plain sailing.

Until the christmas hols that is:

  • Just when it was time to book in all the rubbish xmas TV recordings over the festive season, I got the ominous 'A critical Media Center process has failed' message.

If you search on the GreenButton, and other popular forums, you'll pretty much see that people are tearing their hair out on this one - everything from new motherboards to repeated rebuilds to try and get rid of it.

Now, being from a SW engineering background, I'm not sure who in the ivory tower decided it was a good idea to present this as a modal dialog to the end-user on the 10-foot interface, rather than log something useful in the event logs, or even (gasp) 'report' the issue and get a fix for it, but here is story from my perspective, and what it led to:

  • Recordings.xml was about 1.5MB, and had about 2 years worth of series recordings, in fact it was moved over from the MCE2005 machine using Ian Dixons 'MCEBackup' utility, which works really well.
  • Disk space was down to about 20GB free, on a 250GB drive
  • About every 30 minutes, usually when using the Recorded TV page the message appeared, and the machine stuttered for a few minutes, then came back to life.
  • A number of error logs appeared in C:\ProgramData\Microsoft\ehome (433 of them)
  • The machine started recording two scheduled shows, and then 'stuck' - the shows were (alledgedly) still recording the next day.

I dont understand what actually caused this, but I remedied with the following steps. If you want to actually keep all those series settings that you have booked in, then use Ian's MCEBackup utility to back them up before you continue.

  1. Stop "Windows Media Center Scheduler Service" and "Windows Media Center Receiver Service". Services
  2. Delete Recordings.xml , and Recordings.xml.bak from C:\ProgramData\Microsoft\ehome\Recordings
  3. Restart the "Windows Media Center Service Launcher" service
  4. Restore the recordings if you backed 'em up.

I skipped the restore, and booked the ones I wanted to keep in again using the keyboard, I suspect that 'series bloat' is more than a contributing factor here.

Now, I think we are looking at a number of bugs here Microsoft:

  • The recording disk space limit in the settings menu doesnt appear to work all the time - MCE went 'over' it's disk space budget, and when it's done this, it appears to refuse to delete shows that are old (which is the intended mechanism to make disk space)
  • 'Something' is going on with the Recordings.xml file - given that this is a fairly simple 'dump' of the booked in recordings I'm not sure what.
  • finally, the crash reporting on my machine doesnt appear to be reporting anything - I doubt that it has reported the 433 crashes to the mother ship - if this due to the nature of the issue, then I suspect it might not be hugely understood back in Redmond.

(one of the 433 crash reports)

[Crash Information]ReportVersion=2MainBinary=C:\Windows\ehome\ehRec.exeMainBinaryVersion=6.0.6000.16386 (vista_rtm.061101-2205)CrashTime=11/20/2007 22:54:41 UTCException=System.NullReferenceExceptionExceptionMessage=Object reference not set to an instance of an object.
[Stack Trace]IP=0x000001ad RecordingObjects.RecordingScheduleItem.get_AlternateAirings()+0x7A :0,0IP=0x00000166 RecordingObjects.ConflictManager.FixAlternateStates(RecordingObjects.RecordingScheduleItem item)+0x43 :0,0IP=0x00000055 RecordingObjects.ConflictManager.FixAlternateStatesOnStateChange(RecordingObjects.RecordingScheduleItem item, ehiProxy.DVRSTATE oldState, ehiProxy.DVRSTATE newState)+0x29 :0,0IP=0x000001b7 RecordingObjects.RecordingScheduleItem.StatePostTransition(ehiProxy.DVRSTATE oldState, ehiProxy.DVRSTATE currentState)+0x115 :0,0IP=0x00000166 RecordingObjects.RecordingScheduleItem.set_State(ehiProxy.DVRSTATE value)+0x9B :0,0IP=0x00000967 RecordingObjects.RecordingScheduleItems.ConsistencyCheck(System.Object state)+0x38E :0,0

Its a real shame that this particular issue is not well understood and patched already, as it may even be spreading like rot across the MCE Vista community (!).

So, my feature request for 2008, is that there be an update to Windows Home Server, that incorporates Media Center 'server side' functionality - so that the machine can be used as a media center via the new v2 Media Center Extenders - this way the MC becomes more 'appliance' like, there are less pathces and updates required (because there is less 'clag' on the machine), and it's therefore more stable... it will be interesting if this becomes a reality .. I suspect (as others do) that this will be a future version.. 8-(

Hey ho, roll on Feb 1st when we can get our hands on a Linksys DMA2100 extender.... 8-)

Wednesday, November 28, 2007

Do you have enough Cat5?

Like me, you might have sneaked a few CAT-5 cables into the walls when you were decorating, or maybe you've strung some across the loft to move your network from place to place.

You probably also thought, "Hey, I'll never need more than a couple will I?" - So did I , until I needed a 3rd to the same place for another device.
So, there is an easy answer here, put in a Switch, or a Hub. However, this is another Switch in your network, and it uses a few watts of power also.
How about a nifty way of running two CAT5 100mbit connections across ONE CAT-5 cable?



What's the catch? - Well you can't use this hack if you're running Gigabit networking, as it's only good for 10mbit, or 100mbit.

How does it work? - No secrets here, 10mbit, or 100mbit ethernet only uses TWO pairs out of the four on the cable. Therefore if you create a couple of adapters you can feed two connections on one cable.

This technique is mentioned here in Wikipedia

Wiring

I wired up the RJ45 plug as a standard T568A cable - see here for the colours, and then used 2 keystone RJ45 sockets, wired like this (The pic is from above, with the socket 'holes' at the bottom.


If you have a RJ45 cable tester, use that to make sure you have 2 good pairs on each end (you'll need to plug the two 'plugs' together using an 'end-to-end' adapter, of if you're like me, you just went for it and connected it up. The resulting diagram explains what is going on here:
You can also (in theory), according to the Wikipedia article, use this for running 1 x 100mbit Lan, and up to two Phone Lines provided your phone lines only require 2 wires, or 4 if you run just one - Running Phone lines over this type of setup may be forbidden by your telephone company, so beware before starting on this for that reason - you will also be likely to get interference from the LAN signals on your phone calls due to the unshielded nature of the cabling.

DISCLAIMER: Please dont attempt this if you're not confident in making up CAT5 cables, I assume no responsibility or liability for any injury, loss or damage incurred as a result of any use or reliance on this information. 8-)

Sunday, November 04, 2007

Using AutoDVRConvert on Vista Media Center..

If you've followed my post below about Pete Tong living on my IPod, and you have a Vista Media Center, you'll be a bit stuck right now, because the steps using AutoDVRConvert dont work in the way described on Vista.

Never fear! - here's how to fix the conversion - it's not AutoDVRConvert at all that causes the problem, it's the LAME mp3 DirectShow encoder I linked to below.

Do the following from a command prompt, in the folder where you have all the files:

  1. regsvr32 /u lame_enc.ax
  2. delete lame_enc.ax
  3. download http://files.commo.de/lame_dshow397.zip ( the forum I found this link on is here: http://forum.doom9.org/archive/index.php/t-104234.html )
  4. Use the new lame.ax file inside the zip
  5. Register it: regsvr32 lame.ax
  6. Open GraphEdt and re-make your filter chain using the new version of the Lame encoder (it shows up as 'Lame Audio Encoder' in the list - If you have Lame MPEG Layer III Audio Encoder its the *wrong* one)
  7. Save your graph as it's GRF file
  8. Select the new GRF file in AutoDVRConvert and save
  9. test it.

Worked for me 8-)

Wednesday, October 31, 2007

Juice and Vista Media Center

Juice, the popular podcast catching application works quite nicely on XP Media Center, but doesnt behave that well by default in Vista Media Center , as it was never written for Vista.


People keep asking me this, so here's the solution - having had to figure the last part out again because I forgot 8-) - it is possible to make it work just fine in Vista .. here's how:

Building on Chris Pirillo's helpful post here, here is how get the open source podcast catcher 'Juice' to work on Vista Media Center. This results in your podcasts arriving in the Shared Video folder in Media Center - meaning that Video Podcasts show up in 'My Videos' in Media Center:


  1. Run the setup as Administrator (or administration user)

  2. After installation *dont* start the application

  3. Go to c:\program files\Juice

  4. Set Juice to 'Windows XP SP2' compatibility mode in Explorer (right click)

  5. Go to c:\users\ in explorer

  6. Do Tools/Folder Options , 'Show hidden files and folders'

  7. Navigate to the now visible 'AppData\Roaming\iPodder' folder

  8. Edit ipodder.cfg in Notepad

  9. Change download_dir= line to remove the 'My ' from My documents

  10. Save the file and start Juice

  11. Go to File/Preferences

  12. Set 'Download Podcasts to this folder' to 'C:\Users\Public\Videos'

  13. Add your RSS video feeds 8-) and download.

  14. Enable General/At Startup only show Juice in the System Tray

  15. Click the Player tab and select No Player

  16. Save

  17. Select Tools Menu/Scheduler

  18. Set your favorite download time to whenever you want it to run

Your podcasts will now download automatically into Vista Media Center, and appear in folders under Videos on the main menu 8-) -- this happens regardless of what the enclosure is - if you add an MP3 feed , you'll get audio in there as well.


Friday, October 12, 2007

BBSB Office

Just as I'd pressed the submit button on the review below, look what Domia are launching at the E2 Energy Solutions Expo in London:

http://www.byebyestandby.co.uk/byebyestandbyoffice.html

This includes, from the initial information on the site above:

  • Some more 'secure' appliance modules
  • A different Remote
  • A 'PC' Service (perhaps similar to that described in my wishlist below) that can tell appliance modules to switch on and off (I think)

More news as I get it. 8-)

Wednesday, September 05, 2007

Bye Bye Standby ONLINE Review - Outsourced Home Automation anyone?

I've now completed this review, and re-posted it in one section so it's easier to read - enjoy.

I refer to Domia Lite and Bye Bye Standby (BBSB) in the same breath here - the devices are one and the same from a hardware standpoint, and cross-compatible.

Introduction

Domia have released the much anticipated 'bye bye standby online' controller - this little box , about the size of 1/2 a Netgear router plugs into your home network (e.g. like your PC) and , well, makes all your bye bye standby devices 'online enabled'.) - its really that simple.




The instructions supplied are 2 sides of A4, and to be honest , that's all you'll need. Plug it in and switch it on, then go to the site to register.

When I first got my hands on this, I couldnt believe how simple they have made this. I think anyone who wants to add a bit of 'remote control' to their home or office could easily handle this with *no* need for us propellor-head technical people (eek!)

What does it do?

      1. Lets you turn all your Domia Lite sockets on and off from the internet (and BBSB sockets because they're one and the same)

      2. 'reports' any Domia Lite events that it 'sees' - these might be motion sensors or switches to the website.

      3. Gives you simple, or sophisticated 'programming' ability on the site as well - you can make rules and group devices to create 'scenes' as well.

      4. Sends you e-mails or text messages if you want them when 'things happen'

      5. Lets you add web-cams to the site as well - so you can view them all in the same place.

      How does it work?

      (this gets a bit more technical)

      The controller connects to the BBSB online systems via your broadband connection, and sits 'heartbeating' with their site every 20 seconds, as well as listening for BBSB/Domia radio signals 'in the air' around your home.

      When you login to the site, you tell the site what your 'plug' address is - so this might be A1 for example, and once you've done this for any other sockets you have, you can control the sockets using 'buttons' on the site - the response time is almost instant, a few seconds at most.

      When something else in your home sends a compatible signal out -e.g. a wall switch, or motion sensor (these are the only Domia Lite sensors I could find on the web), the Controller 'hears' the signal and reports it up to the BBSB online system - this can cause emails, texts, or even trigger 'other' devices to switch on and off.

      This also includes being able to trigger sockets when a camera detects motion for example - but for this you need a web-cam that can ftp images to their website - for which you get a login during the configuration process.

      What does it cost?

      Currently, it's retailing for £49.95 inc vat here at domia's online store : http://www.simplyautomate.co.uk/productDisplay.asp?prodId=7384

      This includes a 30 day access subscription to the website - as it's a subscription service which you must maintain to get access to the website, though the controller appears to be operational without it - this is a groundbreaking, innovative way of getting HA to the masses, and you're going to have to pay for the service to continue beyond that.

      Controlling things locally using the controller, rather than the BBSB website

      About 5 minutes after I set the controller up, I read that the controller has a local web-site, which is similar to that of your home router, or other network connected device - like a wireless access point. You can use this to set a static IP address if you need one, see the firmware version, technical connection information, and access a 'control' tab which lets you manually control devices via the web-interface - it looks like this:

      While this is great, if you need to see if you've set the plug-modules up correctly - to the correct house and unit codes for example, its not easily scriptable to call from something else - unless of course, you view the page source and see what it's actually posting to the unit when you click the drop-downs 8-)

      Some direct / scripted contol can be had with a command line http command utility like wget:

      (the hostname of the controller is 'dlcmaster', then the 2 digits of the MAC address, therefore for a controller with '1a' as its selected 2 MAC address characters:

      'wget http://dlcmaster1a/4?3=1a01 - turns Device A1 ON
      'wget http://dlcmaster1a/4?3=0a01- turns Device A1 OFF


      There are also means for getting the log page from the controller to see what it going on in the house - note that it logs both signals it sends (e.g from the local page, above, or from the BBSB Website), AND signals recieved (like a remote switch) - You can get the log like this:


      http://dlcmaster1a/logsrc.htm


      I have no doubt that there are other interfaces to the unit over the network that are just hidden from view for now, and I've not investigated this further, because frankly, the online service is superb.

      There is bound to be support for the Harmony automation products communicating with the controller as well either already, or planned.

      I would be unsurprised too if we see a 'slim' version of Domia's Harmony neat Media Center UI being created quite rapidly by Domia (or by someone else) , to communicate with the BBSB Online service, or directly with the controller to give a 10ft experience to the automation control provided - this gives armchair control via the Media Center UI rather than the BBSB website.

      Domia have not attempted to hide this local interfacing mechanism, and many (like me) who like to tinker will be glad of it. I would be nice to see Domia publishing a network API to the controller that allows the attachment to the events in real-time- eliminating the need to 'poll' the controller to see what has happened - and/or some sort of web-service similar to that provided by Google Maps that allows developers to 'register' with Domia, and get an application 'key' to get access to some web-service API's on the main site ..

      Detecting 'changes' in status of devices using the controller
      My brain started ticking the other night as it often does - How about a cool PC software utility that runs in the background, listening for the 'BBSB OFF' switch - then shutting down your PC - if like me you dont put your PC on a BBSB adapter - (dont really want it 'dumped' when I leave the house because the power is cut off to it), but being able to have it 'detect' the BBSB button being pressed on a PC locally , could allow the PC to shut down / hibernate gracefully of it's own accord - Any voulenteers?! -

      I've not got the time to code that up currently, but it would be a useful little thing to have for a Media center for example - no point in that running all day when you're out, unless it's recording for example!


      The Good, The Bad, and the Ugly - What's cool, and what isnt about it.


      Good:

      • Price - controller and service are good value in my opinion.
      • Setup - your dad could do it without reading the manual (will test out on mine)
      • Flexibility of the subscription service - events, notifications etc
      • Price of the plug-adapters - About a tenner each (or pack of 3 with a remote)
      • No need for a dedicated PC or server to control everything
      • To my knowledge - unique (currently) in the marketplace

      Bad or Ugly


      No web-site API (yet) I'd like to be able to 'tell' the service to do stuff externally - like raise my own events to it - this isnt detracting from the paid for service, but adding to it - I'm sure the HA community will find a way, but it would be nice for us to have the official info!

      Security 8-( Domia Lite, like X10 RF is not secure, and with only 8 house codes, and 8 device codes - your neighbour (or anyone outside with a remote) will quickly make a disco out of your house lights and table lamps if they want to - X10 RF suffers from this too, I would imagine it would not be that hard to make the more Domia house codes - perhaps that rotary selector could be a 8 way dip-switch so you could select an 8 bit house code rather than a '1' bit one. -- X10 is exactly the same, so Domia are not alone in this issue.

      Expandabilty of modules: This is a double edged sword - there are quite a few devices for the average home user, but anyone who wants to wire in switches, or sensors or devices into the system they already have is all alone with their soldering iron , hacksaw and a keyfob transmitter to make their own transmitter (!)

      All the current Domia Lite modules work fine with BBSB Online, Currently there are: -

      • Two models of plug-switch, a plug-in dimmer ,
      • Two 'wired' lamp/appliance modules
      • A wall switch and a wall dimmer switch
      • An IR motion detector,
      • Two types of keyfob remote

      There's no expandable or 'hobby' module(s) with a couple of contacts on to wire up to a doorbell push, other sensor, or device - and there's no 'general purpose' hobby contoller device that could switch an external low-voltage load - perhaps the wired appliance module could, but it may need 240v for example to power the reciever, rather than a battery.


      One trick pony?: Domia make an X10 RF version of the controller, which sells for a little more than the BBSB/Domia Lite version - this from the look of it will work identically, and also allow you to have it on the same BBSB Online account as a BBSB/Domia Lite Controller - I dont have an X10 version to hand , but I cant imagine that the two models internals are 'that' different that a 2nd unit is really required to have X10 and Domia - couldnt one unit (costing more) do both protocols??? - (similar to http://www.rfxcom.com/receivers.htm) - I'm sure customers would pay more for a multi-protocol interface ??

      What about all my other RF devices? This also brings me to the other side of the RF protocol situation here - I counted 3 other manufacturers 433mhz RF devices in my home today, - I even have an alarm system that uses wireless 433mhz detectors - Currently no-one in the industry has acheived true cross platform integration with these 3rd party devices - with the exception of RFXCOMM (link above) - Perhaps Domia might consider making the controller able to receive and send unsupported protocols? - Using the BBSB Online website system to do the 'work' in decoding them - this would allow the site to 'learn' other device protocols and be able to read and write to other manufacturers devices without needing to update controller firmware -

      I dont really want to be removing my existing wireless alarm PIR detectors to replace them with Domia ones, but would *pay* domia for a service that can 'understand' the signals from the system and allow me to generate alerts/events from the ones I have!

      Then there's my RF Doorbell, RF Outside wireless weather-station , and RF Electricity consumption monitor ... all these devices are just 'begging' to be integrated with a system like this.

      Feature Wishlist?

      In no particular order, most of these are expensive investments in hardware manufacturing, and may not be the way Domia are planning on going, but hey, my blog, my poetic license:

      Design a 2-way 'uber' controlling module: Many HA appliance/dimmer modules are 'one way' - you have no way to telling IF the light is really on , or if the appliance connected is 'really' on - someone might have turned it off at the lamp stand for example, of the bulb may have blown.

      If you're managing your home remotley, it would be good to 'know' that something is really 'on' if it says its 'on' - this could be achieved by a more expensive 'two' way module, with a device to measure current in it as well - this could be perhaps added to the system at a higher cost - meaning that users could mix lower cost interfaces with the higher cost two-way one - the website could say 'OFF', 'ON', and 'ON and drawing current' - handy for security purposes for example , and you could calculate your energy usage from it too!

      Make the controller 'hear' and 'speak' other RF433 mhz protocols (See above)

      Make some General Purpose 'hobby' sensor and control modules - Many possibilities exist here depending on hardware, but a the basic level a version of the single channel remote, with two terminals to connect other switches to, and a similar version of an appliance module that can connect two terminals together perhaps?

      Put in some more security - Again, this could be simply making more house-codes (ones with say 5-8 bits that can be on or off, right up to having a 'learning in' process for sensors and modules meaning ones that are not 'learned' are ignored.

      Conclusion: Great system, has all the promise - lets hope Domia takes it beyond the limitations of X10 and other similar systems to become more pervasive in the consumer and hobbyist marketplace before someone else beats them to it - way to go Domia!

      Mart.

      Monday, May 07, 2007

      Bye Bye Standby..

      Noticed there werent too many reviews on the net for the Domia 'Bye Bye Standby' product, so I thought I'd post my experiences with it:




      Essentially, it's a big stick-up (or screw-up) switch, that when you press the 'green' bit, it turns off all the bye bye standby mains switch units (or in Home Automation speak Domia Lite 1000w Appliance Modules) , and turns them back on again when you press the 'top' of the swich above the 'green bit'

      The system uses 433.92mhz radio signals, and works very well. I have 5 modules running on the switch by the door, turning off the TV and AV stuff, all the PC printer, monitor and speakers, as well as one in the dining room on the hi-fi - furthest away module is 15M though a solid wall and its fine.

      Job done you might say. But being me I wanted to know more....

      So, The switch is actually very similar to the Domia Lite wall switch, though as the appliance modules are not 'dimmable' lighting modules, its impossible for me to confirm if the wall switch is the same as the Domia Lite dimmer switch sold separatley 8-)


      The modules are much smaller than X10 or X10*2 modules, and respond immediatley to the switching commands.

      The ByeBye Standby starter kit comes with 2 appliance modules, and the wall switch, and you can add more Domia Lite appliance modules to the system.

      Each component has a A-H 'house code' dial and a 'address' dial - 1-8. When setting up the system, you simply set the House code and address dials to match on all the components, and that's it!

      Now for some bad news:

      The system is not X10 compatible, (not that anyone said it was), the RF handset and wall switch dont work with X10 RF devices, and the system doesnt use your mains circuits to send signals.
      The wall swich has a house and device code dial which you need to set to match that of the appliance modules - unfortunatley, though the appliance modules support 'group' switching, the wall switch does not. - set it to A-1 and it will only control A-1 units, any other unit on the A house code and a different device address will ignore the wall switch - this is a bit of a shame, as a jumper or extra switch inside the 'green switch' would allow people to kill everything in house-code A for example on the way out the door, which is actually far more flexable should they have other units and use the hand-held remote for lights and other appliances that might benefit from being switched off too.




      I also went for the Domia Lite Starter Kit, which is a cheap way of getting 3 more appliance modules, and a neat handheld remote.

      Some thoughts on it's limitations:


      If you just want to switch off all your gadgets and save the planet (well a few watts anyway) you will be happy with the simplicity of this system - you dont need to be a propeller head, and you dont need a PC to set it up, and it works well.

      I do however think if you're more Home-Automation orientated you might share my thoughts on Domia's choice of multiple standards and systems in their products:


      • How about a Domia Lite PC controller module with a USB or Serial port? - the RF switching on these products is far more reliable than the X10 PLC protocols (in my house anyway!), and the response time is faster. The PC controller could also be a reciever as well, so it could pick up switching signals as well from wall switches etc. -- X10 PLC (Power Line Control) is dated, and doesnt work reliably in everyones home (including mine) -- if it 'looked' like a CM12 to the PC then all existing software would work with it without even knowing.
      • Adding a 'all-codes' option to the 'big green' switch would increase the system's effectiveness in a home where other Domia Lite units were being used.

      Friday, November 10, 2006

      Pete Tong lives on my IPOD

      Sometimes gadgets are irritating, they do almost everything you want. - I can record Pete Tong on my Media Center, but had to think about how to put him on my IPOD...

      This, with some help from some excellent utilities on the internet, is how I turned my Media Center 2005 PC into private podcast feed of recorded TV shows just for my IPOD:




      Firstly, this works for anything you've recorded on Media Center, so if you really want the audio from EastEnders on your IPOD, it's possible.-- it should also work for video, but more on that below:

      This is how I got Pete Tong to download to my IPOD as a private podcast - it's not his regular podcast from the web, - it's a recording of his Friday show on Radio 1 from MCE:

      • Schedule the recording / series you want. - My DVB Tuner can pick up Radio as well in UK
      • Write a little script that MOVES the recording out the way of media center (if you want to watch it as well, you could Copy it instead:

      move "C:\Documents and Settings\All Users\Documents\Recorded Tv\Pete*.*" "C:\Documents and Settings\All Users\Documents\Recorded Audio"

      (I followed Brian Frost's excellent howto here http://www.brianfrost.com/mce/mce_drvms2mp3.htm to configure it. )

      (one of his links is broken, try http://quicknet.heimiko.com/AutoDVRconvert_1.3.zip for AutoDVRConvert)

      I set up:

      • The filtergraph to produce MP3 format files at 128kbps from the MS-DVR file - try video if you have a video iPod - it should work too?
      • Input Path: "C:\Documents and Settings\All Users\Documents\Recorded Audio"
      • Output Path: "C:\Documents and Settings\All Users\Documents\Recorded Audio"
      • Start AutoConverter
      • Stuff C:\Program Files\AutoDVRConvert\autodvrconvert.exe in startup
      • Test it works - your magic shows should move folder, and over time (quite a while) be converted to MP3's as well - I also set autodelete on the .ms-dvr file as I dont need it.


      Finally, I wrote another nasty VB app (AutoRSS) to generate an Itunes compatible rss feed of the files it finds in your folder (it supports multiple folders and feeds, so just add more folders, you must just make sure that each different recording (or series) that you want to have it's own feed, must have it's own folder:

      • AutoRSS.zip - contains the AutoRSS.exe, and source code for vb6
      • Dump AutoRss.exe, and AutoRss.ini somewhere useful, and edit AutoRss.ini, to reflect your settings:


      [Feed1]

      FeedTitle="Pete Tong"

      FeedDescription="Pete Tong's Essential Selection"

      FeedType="audio/x-mp3"

      FileMask="C:\Documents and Settings\All Users\Documents\Recorded Audio\*.mp3"

      FeedFile="C:\Documents and Settings\All Users\Documents\Recorded Audio\feed.xml"

      DownloadURL=http://mce2005/recordedaudio/"


      To explain the fields:

      • FeedTitle - appears as the podcast title in ITunes Feed
      • Description - ditto, description
      • FileMask - Files types to include in the feed (only supports one type at a time, and the full path)
      • FeedType - the encoding type ITunes should expect this to be
      • FeedFile - Where the feed file is physically on the machine (you must run a web server on it -IIS works fine on MCE - if you use Webguide you already have it running)
      • DownloadURL - Where ITunes can get the files from on the machine.
      • I run this successfully on my media Center, again as a scheduled task, which runs AutoRss.exe just before I get up in the morning - this updates the feed(s) with the latest shows, and my other PC (with Itunes) can then update the IPOD.
        To add other feeds, create a new section [Feedx] where x is the next number in sequence.

      The vb app is very simple, and has little error checking and the XML is just a string, not a full xml object- quick and dirty.

      enjoy 8-)

      Legal note: Remember that re-encoding broadcast or other copyrighted content owned by other people and distributing it on the internet is illegal - you shouldn't publish this feed to others via the internet - as far as I can tell it's okay to convert content you have the right to record for personal use, to use on your own MP3 player, provided the resulting feed and files are not downloadable by others on the net.


      Saturday, October 14, 2006

      Update: Caller ID

      In response to a request for the nasty VB app code to interface to the CD50 Caller-display, here it is if you want to get the unit outputting phone numbers of incoming calls into your applications or Media Center (using the details in my previous post below) , the VB app shells a batch file with any name known or number from the incoming call, from which point you can integrate easily into anything else you can do from the command line:

      Download the CID VB app and VB6 source here (warning, terrible VB code)

      Friday, March 31, 2006

      Living in Harmony (688)

      I dont know about you, but our living room had 7 Remote controls on the armchair, and frankly watching anything other than just the TV involved switching stuff on, selecting inputs, and finally changing channels. -- and dont get the wife started on why we need 'em all!

      Most people who have a home cinema system suffer from this I imagine, and if you have a significant other, they probably suffer more than you do and say 'I just want to watch my tv shows', or other similar protests.

      Well, if you can get another gadget into the house, this might just help out. Last Christmas I got santa to send me a Harmony 688 remote control:


      There are several models to choose from, some of which have support for more activites, and better screens. Prices on the net range from £50-£200 depending on the model, the top-of-the-range one is rechargeable.


      I must say, it's not actually the most attractive of the available remotes, but there are quite a few to choose from, this model, the 688, is detailed here: http://www.logitech.com/index.cfm/products/detailsharmony/US/EN,CRID=2084,CONTENTID=8747

      Harmony were bought by Logitec a little while back, and have continued to produce a line of very clever, and intelligent remote controls. The entire idea is that controlling your devices in the living room (or wherever) becomes simple and straightforward, and becomes task orientated, rather than 'device' orientated.

      The idea is that before you had:

      To Watch a DVD: Turn on the TV with the tv remote. Select AV, Select Component, Turn on the DVD player with the dvd remote, Turn on the Amp with the amp remote, Select DVD , turn up the volume, pless play on the DVD remote..

      After Harmony, this becomes

      Sit down, press 'Watch DVD', sit down and watch it.

      But that's not new! - loads of remotes can do that!

      No it isnt new, I've been through no less than 4 other programmable remote controls that support 'macros', to allow you to send commands to the TV and other devices at the press of a single button. But, these remotes were all 'stateless' , they didnt 'remember' what they just asked your appliances to do. So if you pressed 'Movie' again, by accident, everything got messed up! - Additionally, many dont manage to cope with the 'delay' required between commands..

      The Harmony remotes, remember the state that everything is in , and send only the commands that are 'needed' to the devices - so if the TV is already on, its doesnt try to turn it on again for example. If I switch between MediaCenter, and DVD player, then it 'knows' just to tell the TV to go from AV1 to Component.

      So, Living in Harmony, what is it like?

      To begin with. Painful. You see, the remote is 'blank' when it comes out the box, and rather than teach it everything, by pointing the other remotes at it and doing some sort of dance, with them pressing buttons everywhere, you go to the harmony web-site, and create an account, then tell the site about your devices.

      This has the advantage that they already knew about all your devices, including my UK made Cambridge Audio AV amplifier, so the first part of the setup was easy. Then came the flood of dissapointment, when devices didnt act like they should, missed commands, and generally went mad...and the TV... lets not talk about the TV...

      Still, once you figure out what your 'tasks' are, you are half way there. I set up:

      • Watch TV - Just the TV
      • Watch DVD - The TV , with the DVD player selected
      • Watch Media Center - The TV ,and Media Center selected
      • Listen to MP3 - The Roku M1000 and AV Amp
      • Cinema - The TV, DVD and AV Amp for 5.1 audio.

      Next I figured out what exactly was going wrong, mainly it was the delays and lengths of the commands, this is all easily adjustable in the web-site, and made some improvements.

      The TV however, a Panasonic TX26LXD52 was a nightmare! - Panasonic TV's (the 3 I've owned), have a soft-menu system for selecting AV inputs and while quite 'intuitive' to the end-user, they do present issues for the harmony.

      This is where an otherwise partial rant about the remote, turns into a testament to the fantastic support provided by Harmony's support people..... 8-)

      Initially, I sent an email to their support people, specifically asking for assistance with the TV, and recieved a very helpful response, asking me to call them later and discuss it. One evening I called their US team on their international free-number, and spent nearly 2 hours working through the issues with some very helpful people.

      The downfall of the Harmony remote is not the remote itself, but the devices that it is controlling. Anything that has a 'toggle' function - say ON/OFF, TV/AV or other buttons that perform multiple functions from a series of presses cause issues, this is because the remote has to 'remember' exactly what state the device is in. In the TX26's case, this was the issue with the AV inputs. If I ever had the opportunity to go bang on the table at a panasonic design meeting I would say this:

      "stop designing your TV's so that they 'default' to 'tuner' every time they are switched on from standby. If I'm the owner, and I turned the TV off while watching AV1 (say sattelite TV for example), then when I turn it on again , its reasonable to expect that I'd like it to be back at AV1 - Not the tuner - which I might not even have set up!-- at least make it an option in the setup!"

      So, back at Harmony towers they worked on the Panasonic TX26 profile on the site- adding code so the remote could remember which input it last selected, and made loads of changes to it, as a result of the tests we did on my TV, after a week of work on, I downloaded the settings again, and hey-presto - working just fine.

      Problems?

      Don't leave the original remotes out as well - if someone picks them up, and uses them the harmony will be out of sync with the devices and you'll have to use the 'help' key. - the help key is good for solving input problems, but my family got fed up answering the questions!

      Teach your family about 'fixing' the sync issues if it happens - e.g turn everything off, and hold your hand over the remote transmitter, and press 'off', or use the 'help' key - or press the 'activity' button that the system is actually in.

      Keep working on the timings, some of the default settings are very 'slow', because the devices will definatley work, you can pretty much tinker with the remote continuously, reducing the delays etc until it's as fast as the original remote - this is especially important with things like 'volume up/down', and the navigation keys in Media Center - which if running slow make MCE feel like it's running really slow when its' not.

      You can tweak the amp say anytime, by pressing 'Devices' and selecting AV Amp, making the adjustment, and then press DVD again to put all the remote settings back in line with what is happening.

      In conclusion

      • Its a great concept, and quite intuitive, though my family needed some training to begin with.
      • Smart-State remotes need smart-state devices - come on manufacturers, how about it?, how about replying back to your remote with a 'yep, got that' or a 'no, that button doesnt do anything right now' - when this happens, task-based remotes will be just great.
      • Hide all the other remotes once its working

      Going more geeky..

      You may have noticed in your local B&Q that they sell little touch-sensitive dimmer switches with a little 'Infra-Red' eye in the middle.



      To add the 2 I had in the living room, I just got an old remote that I dont have the device for any more - programmed the 2 dimmers to respond to different buttons on the remote, then used the remote to teach the harmony the two key-presses required . Now we have 2 menu options on the LCD for controlling the lights...