Electro Magnates
Chipping away at the energy data silo – part 1
Mar 8th
As the title suggests, this is the first of two somewhat technical posts describing my experiences of pulling energy data from smart meters across the University of Lincoln (UoL) campus for LiSC’s Electro-Magnates (EM) project. I felt it might be useful or interesting for others to read as a blog post (trying to avoid using ‘opinion’ post!) on what I learned of this niche area. Many organisations use energy monitoring systems similar to Lincoln’s and their carbon/sustainability people may want to understand how they might begin to break free of the incumbent constraints of an energy data silo. There are many ways to do this using a wide range of tools and bespoke coding – I won’t go into this in detail as my *primary* interest is research with open energy data – the development tools with resultant code are just conduits in getting to the gold; the empirical peer-reviewed research that can then take place. My philosophy behind this perspective is a bit at odds with my own background; diesel engineer turned computer scientist– I know full well the value of good tools in both physical and virtual form to ‘build’, however the uptake and engagement with end-user-centric energy interventions (user-centred design approach), or any technology-enabled intervention for that matter, followed with an impact evaluation of their experiences are far more important than mere tools. It is probably the case that if you do have a genuine interest in open energy data you are planning on doing something more interesting with it than just going through the process of making it open in the first place.
Figure 1 Left to right; Multilog data logger with GSM modem allowing remote access to energy data
For several years I have been accessing UoL’s smart meters and pulling off energy consumption data for use in our EM project. A good relationship with our estates sustainability team facilitated timely access to the meters and monitoring software, highlighting the importance of interdepartmental relationships when attempting to enable pragmatic research. The background on Lincoln’s smart meter infrastructure reveals arcane hardware overlaid on modern, using dated and limited software from an era still suffering growing pains of moving from 16bit to 32bit platforms; the mid-90’s. One of EM’s requirements was the ‘opening up’ of our energy data so third party applications developed by anyone, and indeed our own study trials could use it. Sounds simple but it’s actually a tall order due to the currently available infrastructure at Lincoln. Even though we do currently have a working means of making the energy data open, it’s still not 100% where we would like it to be in terms of update frequency and reliability.
Figure 2 Data silo vs. internet of things
A little more technical detail – yawn inducing for some! - each smart meter has a data logger and GSM modem with SIM card strapped to its back, see figure 1; energy data is stored in the logger and can be pulled by dialling into the GSM modem. Dialling in? Yes we currently dial-in (not for much longer though, more on that later) using a standard PCI modem over an analogue telephone line, basically a traditional data silo using a Machine-to-Machine (M2M) connection, see figure 2. This approach is not uncommon as you might think, for example remote weather stations may adopt it, likewise for some road/motorway signs where the near ubiquity of 3G/WIFI technologies or even GPRS is absent. In order for us to schedule frequent dialling-in to get the most recent energy data we had to use ‘specialised’ software from the mid 90′s called ‘Multilog’, see figure 3.
Figure 3 The delectable Multilog software circa. 1995
This process of dialling-in isn’t to be confused with using GPRS or 3G or any of the other ‘wondrous’ by comparison methods to pull data remotely, as we aren’t accessing the internet or intranet using venerable TCP/IP. We pull the energy data by initiating a ‘data call’ using the Circuit Switched Data (CSD) transmission method for data transfer, so that data transfers much the same as it would during a FAX call – extremely slow at around 9.6kbps. An enabling feature of this is the receiving end SIM card you are dialling into (bolted onto smart meter) must be allocated a mobile ‘data’ number, not a voice number, and have CSD enabled – all of which can only be setup at the mobile provider’s end; importantly, not all mobile providers offer this service in the UK. For the more nerdy types out there and lovers of old tech, the following mobile provider CSD settings are required for talking to the receiving SIM, with corresponding Multilog network settings:
· 9600bps
· 8 data bits, No Parity bits, 1 Stop Bit
· Non-Transparency enabled (also known as error corrected or “RLP”)
Figure 4 Mobile provider CSD settings and corresponding Multilog network settings
Each hour Multilog initiates a scheduled data call or ‘dialling-in session’ with each session taking ~30 minutes to get round all the smart meters for the most recent data, the time quoted assumes all meters are online with no power-pack failures of which unfortunately we have had many. If any meters are offline Multilog subjects you to repeated dial-in attempts which can increase a session to 1 hour+. The result after each successful dial-in session is we have pulled the most recent energy data from the meters which are then stored locally in Multilog’s ASCII format .dat files, one .dat file for each meter of which there is most likely big chunky holes in the data– all rather unpalatable as a data format. By holes I mean some of the meter readings may be missing simply because of the slow process of dialling into all the meters, the meters themselves log energy readings every 30 minutes so we could easily miss the latest one. Suffice to say it’s predictable that the latest energy data available is usually at least 60 minutes old by the time Multilog stores it. This is the best achievable near-realtime data we can get given smart meter infrastructure that captures data at 30 minute intervals and uses GSM modems and data calls for energy data retrieval. At this stage we are still many steps away from making the energy data available to third party applications in an easily consumed open format.
What happens next? Most institutions the size of a university will have Carbon Management Software (CMS) that pulls in and parses these ASCII files for carbon analytics and graphical presentation, as the Multilog software thankfully offers none of this. Multilog data formats appear to be akin to a standard in this area, with interoperability with most enterprise-level CMS. Unsurprisingly, this type of software is expensive with associated yearly licensing and maintenance fees, at Lincoln the choice of CMS is the common Esight package, a web based CMS which stores parsed energy data in an encrypted SQL database.
All of the above is generally an indicative vanilla installation for many organisations; a standard M2M method to get energy consumption data out of remote smart meters and into an enterprise class CMS, purely for consumption by carbon managers and senior management. There is hardly any notion of open energy data in the processes described here as these types of installations are designed with a proprietary mind-set with data locked down. Unsurprisingly, some CMS companies genuinely assume (having engaged in multiple dialogues with them) that by offering graphing and at a push basic widgets, you won’t ever need access to the energy data for anything else, this is a strategic business stance as they want you locked down. The mere mention of offering an open API would likely result in a sharp intake of breath, followed by some business vitriol of ‘they know best’ and ‘data corruption’ (!)
Jemmying the data open
Senior management and sustainability teams are probably relatively happy with the data they get out of their CMS; they just want the numbers to crunch. What if we want more? What if we want to build our own innovative and interactive applications using the energy data and feed it back to the end-users as part of bespoke energy interventions i.e. we want to do some research with real people with measurable results? Who incidentally for the most part are completely unaware of their own consumption behaviours. To do this the data really needs to be smashed open – publicly. At this point there aren’t many viable options to hack a workaround in making the energy data open at Lincoln, the ASCII .dat files that Multilog create contain energy data which would be painful to parse and be locked by Multilog for reading/writing to for an indeterminate amount of time – messy. The Esight CMS database itself is also a no go being locked down and encrypted. The only feasible way we could begin to make the data open was to use Esight’s export data function on a schedule. By using the export function we scheduled an hourly export to CSV format, time-stamped at 30 minute intervals for the current day’s energy usage. Again, the CSV file was far from in good shape, patchy at best. Of course there are ways to fix the holes, develop an algorithm to patch them by looking at previous patterns of energy usage for that specific day/time in the past. Later you can go back and replace these auto-generated readings with the real values when you have them – this amounts to quite a lot of work and all in the name of forcing the data open, tantamount to using a jemmy on it.
At this stage our energy data is open to all by parsing the aforementioned exported CSV files for consumption via public facing REST API’s. The API’s were built in-house as well as using external data storage platforms, however the process is not as robust as we’d like due to the infrastructure constraints. The data is available through Pachube and our colleagues over in the LNCD group who are actively building and promoting university-generated opendata through data.lincoln.ac.uk. Things will soon be a lot better in terms of reliability and update frequency, when pulling from the smart meters; our carbon manager Cara Tabuka has secured funding from the Salix/HEFCE revolving green fund that will remove the whole dialling-in process and place the smart meters within the campus network through wireless or LAN. The same funding may also be used for a pilot sub-metering project which would facilitate further novel research with more granular energy data being made available. Overall the upgrades to the smart meter infrastructure will greatly improve the data collection process giving access to energy data 30 minutes old or better without the reliability problems of using GSM modems.
The technical problems of energy monitoring in a large organisation are not trivial, but neither should they be the most important thing when addressing energy monitoring overall, as I pointed out at the start of this post. We know how to build and develop systems to monitor energy effectively; it’s largely a matter of getting the funding to do it with a keen eye on scaling. What we don’t know much about is what to do with that data when it is open – visualise it in a compelling fashion? design interventions around it? post it to a data portal and hope someone else does something with it? how do we evaluate an end-user’s experience of consuming energy? These are just a few of the research areas that need to be rigorously investigated around open energy data in an organisational context, otherwise we are just building stuff to open up data – simply because we can.
If you are interested in how to effectively design an organisational energy intervention from a user-centred design approach, you may find our latest peer-reviewed paper useful: ‘Watts in it for me?’ Design implications for implementing effective energy interventions in organisations. The paper will be presented at the CHI2012 conference in Austin, Texas this coming May.
Organisational Change for Sustainability Workshop
Nov 21st
As a researcher on our sustainablity project – Electro Magnates – I have always been pro-active in looking for potential collaboration opportunities with other universities doing similar work to our own in the sustainability field, particularly when parallels of behaviour change and technology are present. At a recent CABOT energy workshop in Bristol which Shaun and I attended, we met some great people from both academic and industry backgrounds with a keen interest in energy use demand, covering both the residential and commercial sectors.
Of particular note were the folks from Sustain , a carbon reduction company who specialise in reducing energy consumption in organisations and who have a partnership with Bristol University. During discussion at the workshop with Rachel Freeman, a Research Engineer at Sustain and also based at Bristol University, we found that hers and our own energy work at Lincoln had many parallels with research direction and goals. In light of this we are jointly organising a workshop to investigate the theme of ‘Organisational Change for Sustainability’. So far we have had a good level of interest and it promises to be an interesting day. The workshop is scheduled to run on Thursday 8th December 10am-4pm at Bristol University, more information available here. If you would like to attend the workshop or would like more information then please contact Rachel Freeman at Rachel.Freeman@sustain.co.uk or Derek Foster at defoster@lincoln.ac.uk.
Derek
Smart Energy and the Internet of Things
Jun 12th
It’s been a while since I last posted so have likely gone overboard with content, but here goes anyway! I recently attended the ‘Smart Energy: generation, supply and consumption’ workshop held by the Technology Strategy Board (TSB) which was focused on the concept of the Internet of Things (IoT) and what the implications and possibilities are for the energy sector. The workshop was well attended with almost 70 delegates split roughly 50/50 between people from industry and academia. For LiSC this was a great opportunity to see how both sides are collaborating towards innovating and commercialising in the domain of the IoT and energy. For connected devices such as smart meters it brings new experiences for consumers in how they can better understand and act on their energy consumption across a range of devices; from washing machines to mobile phones to vehicles. So first of all, what is this IoT all about?
The IoT is the idea of practically any object, including people, sharing information (via networked sensors) about their current state; for example location, energy usage or activity data sent to the cloud that can enhance our physical and digital experiences. It could be argued that the IoT is the latest evolution of ubiquitous/pervasive computing now being realised by inexpensive sensors and technology platforms that weren’t available as little as a few years ago. Adam Greenfield’s insightful book ‘Everyware’ published back in 2005 is a good read, albeit rather verbose, on the concept of IoT and the interaction of citizens with omnipresent networked devices. In a recent interview he admits the book didn’t see the iPhone coming and the rapid game-changing experience that came with it, but really, who could have foreseen that in its entirety? Last year I was lucky enough to participate in a ‘Walkshop’ (a quirky spin on the workshop) by Adam in the city of Oulu, Finland whilst attending the UBI Summer School. Each Walkshop involves a tour of a city with a view to finding the various networked devices in the city urbanscape and attempt to decipher (as a group) their purpose and impact on citizens. In Oulu we found wind powered storm covers, obscured cameras, large interactive situated displays, pedestrian crossing sensors embedded in pavements and the usual plethora of CCTV cameras. Interestingly, when we turned our own sensors (cameras) on a street facing CCTV camera we invited the attentions of an irate security guard intent on being aggressive towards our ‘sousvelliance’….
Ed Borden from Pachube recently posted a succinct overview of the IoT over on the Pachube blog titled ‘The Open Data Steamroller’ and includes the nice illustration below of what the IoT is by moving away from ‘closed’ machine to machine data silos over to open data for consumption. LiSC’s Electro-Magnates project utilises the Pachube platform to store near-real time energy data from the University of Lincoln, effectively opening up the data for public consumption using open standards. We hope to have a few more universities on board with us shortly to push their energy data to Pachube and are in talks with Lincolnshire County Council as they will have nearly 1000 smart meters coming online over the summer from the county’s schools. In addition to our own open data efforts at LiSC, Joss Winn, also from Lincoln University is co-ordinating a team working towards making various components of university-generated data open and ready for consuming via API’s.
The TSB Smart Energy workshop was worth attending and generated some useful data for our Electro-Magnates project. With the workshop having a strong industry presence there was discussion based around the potential creation of new business models that can benefit consumers more to optimise their energy usage. For example a smart meter connected to the IoT could allow a consumer to regularly change their tariff simply by selecting a new deal online and downloading the tariff to the smart meter instantly. Fine grain control of appliances by smart meters could be enabled to control/recommend which times energy-intensive devices can be used to limit peak demand and cost. Another task at the workshop was to envisage the types of objects we would like to see connected by the IoT. Aside from the obvious choices such as fridges, washing machines and heating there was some outside the box thinking with the top three non-energy object choices being people, animals and vehicles, something we at LiSC are actively aware of and will discuss a little shortly! Perhaps the most hotly debated topic at the workshop were the privacy and security issues surrounding energy data from smart meters, do the utilities own the data or the householder? More importantly, does the householder have complete access and control over their energy data? These are important questions for the consumers and will no doubt be parleyed with for some time.
At LiSC we are no strangers to the IoT revolution and have ran several studies that incorporate it with the inclusion of open datasets. Maurizio Pilu, a lead technologist at the TSB, said in his keynote at the workshop that when you mix the IoT with open datasets then “magic will happen”. We couldn’t agree more as this is exactly what lots of our own research does! Our domestic energy research has used various IoT devices such as the Wattson energy monitor and the Current Cost Bridge then mashed the energy data from these devices with datasets from social media networks and music services to enhance the end-users digital and lifestyle experiences. We also demonstrated the use of an embodied IoT agent (Nabaztag) providing aversive feedback on energy consumption. Other recent IoT innovations from our group include the Fearsquare and the forthcoming Tweeting Cats projects. Fearsquare mashes UK crime data with location data from mobile devices, thereby creating a unique experience and an opportunity to investigate citizens’ perceptions of crime in their daily localities. Through our links with animal behaviour experts we are looking at ways to enhance human-animal interaction through RFID tags worn by cats which expose eating/toileting behaviours and also through social media to increase connectedness between humans and companion animals.
Around the world the power of the IoT is helping empower citizens, in New York for example public sensors are being used to inform residents when the sewage system is close to overflow and to make an informed decision on their water usage. In Japan citizens are empowered by aggregating crowd-sourced radiation sensor data and calling for more evacuations in some areas. Plants are even benefiting from the IoT by giving them the right amount of water and light. These examples just highlight the diversity and huge untapped potential in creating unique user experiences by mixing IoT sensor data with open datasets.
I don’t think any blog post of mine would be complete without a mention of beer! After the workshop I made an obligatory visit to the Euston Tap and sampled the Meantime IPA on tap, a great beer. They also had the friendly face of Brewdog on display with their Ripetide and Hardcore IPA, both excellent beers!
Derek
Electro-Magnates – Public Energy API and Project Progress
Mar 20th
It has been quite a while since we posted an update on our Electro-Magnates project so here goes! The project is progressing along nicely and has reached another ‘technical’ milestone. Using Windows Communication Foundation, we have built a Restful API that exposes the University of Lincoln’s near-real-time energy consumption data in either XML or JSON formats. Exposing the energy data using open formats is one of the project’s core deliverables and follows the ethic that only good can come of data transparency. Having the data ‘online and out there’ allows the potential for tapping into the creativity of developers, designers and anybody who knows a little bit of basic programming. The API has granularity at the building level (for now) and energy data consumed (KWh) at half-hour intervals.
Although the API is built and ready for consumption, it will be released at an appropriate time in the project’s timeline in the near future. And there’s more! By building our own API we have the benefit of designing it to meet the needs of the project and that of any requested features, we also understand the benefits of an ‘internet of things’ service in the ‘cloud’. To this end we are about halfway through the development of automatically syncing the energy data to Pachube, described by themselves as ‘a data brokerage platform for the internet of things’. With Lincoln’s energy data also on Pachube developers will have access to Pachube’s feature-rich API for consuming the data, its community and its growing set of ‘ready-to-go’ applications (desktop and online widgets) built by the community. Readiness with Pachube is just a few weeks away; again the availability of the Pachube energy feeds to the public will be released in the near future.
In other Electro-Magnates work we are collaborating with Oxford University to run three ‘energy themed’ workshops across Lincoln, Oxford and De Montfort universities. The Lincoln workshop is planned for May 17th, other dates to follow. The workshops are primarily part of Oxford’s JiSC funded project into the effectiveness of innovative energy usage ‘info-graphics’ to change consumption behaviours. The JiSC project complements the ‘energy visualisation’ work component of Electro-Magnates hence a collaborative effort with the workshops, with findings shared with each project.
More progress updates on Electro-Magnates will be posted over the coming months! In the meantime you can follow the project’s Twitter feed and Facebook group.
![]() |










