Tuesday, 11 May 2010

e.On Smart Meter development.

I have an eOn AMPY (Now Landis Gyr+) Smart Meter to monitor my electricity usage as well as a similarly enabled Gas Meter.   It also comes supplied with an eOn branded ‘ecometer’ which shows you energy usage on a current, daily, weekly, monthly and quarterly basis.  Because the smart meter is attached to the grid via a GPRS/GSM modem link, it is also ‘tariff’ aware, such that it gives an indicative figure on your bill.

However, the bit between the ecometer and the supplier’s website is where it all goes wrong – if you want a detailed understand of your power usage, you’re a bit stuck.  Because you can only see ‘current’ usage as a number, if you want to know how much you were using 15 mins ago, you’re stuffed, because the display isn’t detailed enough, and the website only updates on a monthly basis,

So, my plan is to try and understand the technology to see if there is a way of extracting the ‘live’ data as its transmitted from from the meter to the ecoMeter display, and I intend to track my progress here.

So, to start:-

Meter is an AMPY 5236E-Y which apparently has an mbus low power radio in it.
The ecoMeter display is an AMPY Model 5262

Inside the 5262 is a PCB with the LCD soldered to the front of it. However, there is a daughterboard tucked behind the LCD with a TI CC110, what looks like a Crystal Oscillator (ACT K7 26.00SCA) and a chip I can find no data on, but has the serial number 90-13026 037 something 7373vg.
Unfortunately I can’t currently see the controllers on the main board because of the LCD, but there is one ‘major’ microprocessor, and one small one. I suspect this is really just a logic chip and LCD driver.  The motherboard has the following stickers on it:
46228938A1-AG
AML2008/01/28-38A1/AG
There is also a 9 point (3x3) contact patch on the back of motherboard which may be either a programmer or output. This is accessible from outside the case, if that makes a difference.

What I need to find out:-

More about the MBus Protocol
If there is any encryption between the meter and the display panel.
Any control panel options for the ecoMeter – e.g. is there a PIN to set or the like, and how this relates to the meter itself. Additionally, are there any hidden menu’s e.t.c.

Tuesday, 13 October 2009

Channelling messages from beyond…

OK, so who owns a BT Home Hub?  I’m sure many tens of you do, as that's the default solution from BT for home internet connections. And I’m sure its a great product.  However, they seem to cause me nothing but trouble – you see, I don’t use BT as an ISP as they’re comparatively expensive, low on functionality, and reports indicate that its quite slow and unreliable too.   So, I’ve got my own Wifi routers (Linksys WRT54gl’s) in the house which run a custom firmware and allow me to set them up just so.  Three of them ensure that I have total wifi coverage at Very Good or above throughout the house.  Or that's the theory.

For those that don’t know, here’s a brief technical overview of how wifi works…   Wifi is generally split into 4 types – A, B, G and N, with A & N running at 5 Ghz, and B, G (and N) running at 2.1 Ghz.  5 Ghz offers around 19 channels in Europe with 20 Mhz separation, which is fine.  However,  2.1 Ghz only offers 13 channels spaced 5 Mhz apart, but the wifi protocol requires 25mhz of separation.  This means that in reality, there are only three or four channels that can be used without clashing with other networks.  And that's assuming that you’ve no other devices on the 2.1Ghz band such as Bluetooth, baby monitors,  TV senders,  wireless video game controllers – even microwaves and fluorescent lights can generate radio noise on this band.

A few minutes spent planning the network can reduce the impact that this has, even for a single access point.  The diagram shows the spectrum coverage of the given wifi channels, and you can use this to work out what the optimal settings for your network is.

File:2.4 GHz Wi-Fi channels (802.11b,g WLAN).png


So what you need to do is find out what channels your neighbours network is on (many wifi drivers and access points will show you).  If for example they’re on channel 11,  you could use 7 downwards.  Where it becomes more complicated is when you have neighbours both sides with wifi – you’ve got to slot in with them and hope that there are free channels available.

But back to my original point – flippin BT HomeHubs!  Most of my neighbours seem to be using them, which is fine, BUT the HomeHubs don’t seem to be able to pick a channel and stick with it – except when manually configured to do so! Every few weeks I find my wireless has gone to hell, and I look, and one of the hubs has changed its channel to the opposite end of the spectrum which means recalibrating my setup to get the best I can with the least overlap.  What’s most annoying is that they seem pretty useless at seeing what's available and will often arbitrarily pick channel 6 or 7 no matter what is around them!  Which makes it pretty difficult to configure the network without any overlap.  My only hope is 802.11n (N networks) will go someway to improve this, but I don’t currently have any experience on its impact, other than it is supposed to be better in noisy environments.  But for now, I’ll stick with wired ethernet where I require guaranteed service such as to my media server, as its the only way of ensuring a consistent an reliable connection. 

And if you find your wireless experience is awful, check your channel assignment – the chances are you and your neighbours are all shouting at the same time and drowning each other out!

Friday, 9 October 2009

Installing Debian Lenny on ML370 G3 with RAID Controller.

Whilst Debian Lenny is compatible with the Compaq/HP ML370 G3 with RAID Controller on-board, it took me a little work to get it installed and I wanted to document my efforts for myself and others!  This was a painful process to get it working, and perhaps isn’t for the weak of heart or those early in their Linux-ninja training, but hopefully this will guide you to the path of enlightenment and joy!

PreReqs:-
An ML370 G3 with sufficient hardware to boot/install e.t.c.
A copy of HP SmartStart (I used 7.20, others may work). ftp://ftp.hp.com/pub/products/servers/supportsoftware/ZIP/
A copy of Windows 2003 (2000 may also work).
Debian Lenny NetInst CD
USB Stick formatted as FAT with ‘non-free’ Array Controller Driver saved to it (ql2300_fw.bin in my case).

How I did it:-

  1. Connect up the machine, power on and insert the HP SmartStart CD
  2. Once the SmartStart has booted, configure your array(s) as per your requirement.  In my case, I used 2x147GB drives in a RAID1 and 4x72GB drives in a RAID5.
  3. Do an operating system install, choose to install Windows and let it do its own partitioning.
  4. Let Windows install, don’t bother doing any major configuratoring as you’re going to wipe the server again shortly…
  5. Once Windows is installed and on the desktop, insert the Debian CD and Reboot.
  6. Boot to the Lenny Installer, and choose a ‘Standard Install’.
  7. Configure as normal.
  8. When you get to the bit about partitioning, choose the Manual Option.
  9. Goto the NTFS partition that the Windows install created, change it to an Ext3 format, ensure it is set to be bootable, and set the mount point to be /.
  10. Id leave other partition configuration until the point that you can boot Linux.
  11. Carry on and install whatever packages/components you require as standard.
  12. When you’re prompted to install the GRUB bootloader into the MBR – SAY NO
  13. You’ll be asked where you want to install the bootloader.  My partition was /dev/cciss/c0d0p1.
  14. Finish off the Installer, remove the CD and Reboot.
  15. Fingers x’d, you’ll get GRUB boot menu.  Mine then refused to boot the OS saying that the Operating System wasn’t found.   I edited the initial boot menu because it was referring to HD (1,0).  I changed this to HD (0,0) and it booted.
  16. Login to the console.
  17. If the GRUB editing worked, make sure to edit /boot/grub/menu.lst and permanently change the setting to HD (0,0) for each of the menu items.

Cool Runnings:-
This server when running at full tilt with the fans is a noisy noisy beasty! However, you can control those fans to make them run at a dull roar rather than full hurricane force chat.  Follow the instructions from Jonas Bjork related to Ubuntu. Debian works exactly the same way, but you’ll need to install SNMPD and libstdc++2.10-glibc2.2 (the latter you’ll have to manually download the .deb from the Etch repository).  Once its all installed, run the ‘hpasm activate’ command and follow the on-screen instructions.

Profit!

Tuesday, 6 October 2009

Phish and Chips?

Do you use Windows Live/MSN/Hotmail/Windows Passport?  What about Google, AOL and Yahoo services?  If so, you may be well changing your password.  A large list of user accounts are believed to have been ‘phished’ from Internet users across the globe, originally thought to be centered on the Windows Live services, but now appears to be spread across many of the top companies.

Now, Phishing is quite a common occurrence related to IT security, but it certainly serves as a reminder that you should follow a few simple rules on the Internet and in Email.

  • Always use different, complex passwords on each service you register for.
  • Change those passwords on a regular basis
  • Never respond to requests for information, either via email or pop-up messages.  If you receive an email from a company that you do business with, go to their website directly – NEVER EVER EVER click on a link provided by email.
  • Engage brain before operating hand or mouth – Stop, take a deep breath and think about what you’re being asked for.  Don’t give it out and if you feel like you have to, why not give false information instead?
  • Check your statements/accounts regularly for any irregularities, and if you spot anything, contact the company IMMEDIATLY.
  • Many companies have a contact us area which you can report phishy emails to.  They will be able to investigate on your behalf and notify the relevant authorities.  Again,  visit their website by entering the address manually in the browser rather than clicking a link.

If you have difficulty remembering your passwords or building complex passwords to use,  why not investigate the KeePass utility.   This is a secure password vault in which you can store a database of usernames, sites and passwords in a safe, encrypted manor. I’ve started using it on my home computer and also on my mobile phone whilst at work (with synchronised databases) and allows me to keep a record of all of the websites Ive registered for and the secure password associated with it.  That way, all I have to do is remember one secure password to unlock the vault rather than 50-100 or use the same password across multiple services.  You should just remember to back it up regularly to ensure that you don’t loose all your passwords in one fell swoop!

The BBC have an article on the attack HERE.

Tuesday, 29 September 2009

Re-Re-Tune (when the crowd say Bo Selecta?)

Hopefully it won’t have escaped your attention, but Freeview watchers will need to retune your freeview box/TV tomorrow afternoon/evening (Wednesday 30th).

The BBC have put together an excellent overview of what's happening:-

What's happening and when?

On Wednesday morning, 30 September, the Freeview service is being updated. Some TV and radio channels will move position. If people don't retune their equipment they will no longer receive them. The move involves around 25 million Freeview TV sets, set-top boxes and digital recorders, including TopUp TV and BT Vision boxes. It doesn't affect satellite or cable systems such as Sky or Freesat or cable.

Why is the change needed?

To make channel Five available in half a million more homes and to prepare for high-definition broadcasts.

What happens if I don't retune?

On the affected channels, you'll see a message telling you the channel has moved and asking you to retune. Anyone who needs help can find it at www.tvretune.co.uk or via a telephone helpline - 08456 01 11 22.

Which channels are mainly affected?

Five is moving, and so are ITV3 and ITV4. There will also be a new TV channel called Quest.

Some BBC radio stations will be affected in areas that have already gone through digital switchover. Listeners in the Border TV region, the West country and some parts of Wales will lose these stations unless they retune.

Will some channels disappear altogether?

Around 460,000 homes - which get their TV signals through relay transmitters - will no longer receive ITV3 or ITV4. That means they will lose some European football matches and classic TV dramas such as Cracker and Poirot.

The Community Channel will no longer be available on Freeview in areas that have gone through switchover.

Can all Freeview equipment be retuned?

Around 22,000 older set-top boxes may no longer work.

If you’re not sure how to retune your Freeview, there is an excellent website www.tvretune.co.uk which has instructions for many devices – its something to make a note of as you should be doing a retune every couple of months to make sure you get the latest channel changes, especially in the run up to Digital Switchover.  And tuning digital equipment is much easier than the days of analogue – its usually a case of selecting an option from the on-screen menu and letting it run through.  Plus, a reminder to Cable and Satellite viewers (including Freesat), you don’t need to retune those set-top boxes.

Monday, 28 September 2009

Ask a Stupid Question….

Get a stupid Answer.   Or maybe not today (September 28th) as today is ‘Ask a Stupid Question Day’.  According to wikipedia "the roots of this special day go back to the 1980s. At the time, there was a movement by teachers to try to get kids to ask more questions in the classroom. The kids would then ask stupid questions to make the teachers happy."

I think this is a brilliant idea designed to get people thinking about crazy problems and perhaps finding a solution, and it should be encouraged. In fact, according to various newspapers, schools are starting to embrace the day and get pupils to think outside the box, perhaps escaping from the conscripted nature of the National Curriculum. 

The telegraph has an excellent list of questions reproduced here.

Q: What's the opposite of a camel?
A: The opposite of a camel is a soap dish: it has dimples instead of humps and lives in a mostly moist area.

Q: How long would it take to roast a fully grown Indian elephant?
A: An Indian elephant, average weight 5000kg, would take 2916 hours and 40 minutes to roast to perfection (based on 35 minutes a kilogram). You would need an extremely large serving dish.

Q: In Mars Bars, how much taller is Jeremy Clarkson than Tom Cruise?
A: A Mars bar is four inches long. Jeremy Clarkson measures 19.25 Mars Bars (six feet five), while Tom Cruise is 16.75 Mars bars high (five feet seven). That's a 2.5 Mars bar difference.

Q: How long would it take a snail to slide around the world?
A: 34,519 days at 0.7 miles a day or 0.03 miles per hour, the average speed for a garden snail.

Q: What’s the funniest word in the world?
A: The funniest word in the English language is fartlek (an athletic training regime); other funny words include furphy, pratfall, parp and firkin.

Q: What is the best type of biscuit to make a mattress from?
A: The best type of biscuits to make a mattress from would be fig rolls or strawberry Newtons. They would be soft, but still provide some back support.

Q: I want to write a film script which makes me millions: what should it be about?
A: Based on the top-grossing films, your script should be about a young wizard and a robot looking for a ring on a pirate ship which sinks. Good luck.

Q: In an average lifetime, how much gas will a human expel?
A: The average adult has 14 occurrences of flatulence per day. Total expulsion is about 538ml, making approximately 14,727 litres of gas expelled in a life time.

Q: How long is a piece of string?
A: A piece of string is twice as long as half its length. It is usually shorter than the amount you need to wrap a parcel, but always long enough to tangle.

Q: When will I die?
A: You will die in a freak parachuting accident aged 98. Your memorial service, attended by more than 1,000 of your closest friends, will be at Wembley.

Brilliant!  Have you got any daft questions, or have you been asked any recently?  Why not leave them in the comments below.

Friday, 25 September 2009

Creating a Monopoly…

This may have passed you by, but Monopoly have launched a new free online game called Monopoly City Streets.   This game uses Google Maps and Open Street Map to allow you to buy “real” life streets and build properties on them (all be it virtually). 

You start off with 3 million monopoly dollars,  buy up streets then can build a variety of properties on those streets.  The bigger the property, the more expensive it is to build, but the more rent you get back from it.  Additionally, you get random chance cards, some good (such as allowing you to to build protective ‘stadiums’ or ‘parks’) and bad (such as getting fined for not getting planning permission). You can also interfere with other peoples games, such as building a hazard (which cancels any rent on that road) or demolishing one of their buildings.  If you fancy it, you can make offers on other peoples streets and properties.

Its a great game which suffered from oversubscription to start with causing the servers to overload, but this has now been sorted after a reset and is ticking along nicely.  Its great fun playing an MMORPG based around Monopoly and Id recommend anyone to try it.

Its accessible at www.monopolycitystreets.com but it may not be accessible from your work computer – try it at home!