Updating the OEM Rock Solid Gateway image

There seems to be a problem using apt-get upgrade with the IPE-R1 image based rock solid gateway image. Even a clean newly installed copy of ipe-r1 alone will not upgrade.

Whilst putting together a new "rock solid gateway" image I found the gateway would fail to update emoncms immediately after using upgrade. The issue becomes apparent because the pi is no longer able to sync its clock following the upgrade. I had time discrepancies ranging from 2 to 4 hours behind actual time despite the clock being correct prior to upgrade, this meant I was now sending current data to emoncms time stamped 2 to 4 hours ago when emoncms has already been receiving data during that time. leaving it overnight to catch up had no effect either.

ntptime returns no errors just the incorrect time

ntpq -p returns "No association ID's returned"

servers appear to be present and correct in /etc/ntp.conf

tz-data is set correctly

UTC time is incorrect as well as local

ntpd -q has no effect

there is a error message immediately on boot regards drivers/rtc/hctosys.c

I have emailed NutCom as I can find no source of support for ipe but have had no reply as yet.

There is no doubt the ipe-r1 software works really well for our purpose but this issue does mean apt-get upgrade cannot be used to upgrade any packages on the pi which isn't ideal, it also makes it vulnerable to failure following incidental upgrade if trying to resolve another issue.

I do not think this is unique to me as I have recreated using just a virgin download but I would be great if it is just something I'm doing wrong and is easily fixed :-)

But just to be safe please back-up your "Rock solid gateway" image before attempting any upgrades !!! 

In the mean time I have put together a copy of the "Rock solid gateway" with the following

I have also installed git-core python-dev python-rpi.gpio python-serial python-configobj wpasupplicant wireless-tools and ukmoose's "wifi power-save fix" which has made my wifi work flawlessly for days (previously unachieved)

Everything works perfectly including the rfm2pi firmware update. but if the image is upgraded it will break !!

Does anyone know how to fix the upgrade issue or where i can get further info?

here is a link to what I currently have should someone fancy investigating further.(407MB zipped)

https://www.dropbox.com/s/82vu37767mr0q7i/20140310_RockSolidGateway.zip

Paul

cybergibbons's picture

Re: Updating the OEM Rock Solid Gateway image

I also tried contacting Nutcom right at the new year and chased after a week with no response. I followed mharizanov's advice (http://openenergymonitor.org/emon/node/3470) and switched to Raspbian in R/O. I didn't document the process very well which is regretable.

pb66's picture

Re: Updating the OEM Rock Solid Gateway image

​cybergibbons : thanks for the links I've had a brief look at Martin's links and concluded this probably isn't going to be straight forward, how easy did you find it to do and how has it performed? my current image works fine and I still have my previously working image as well so I'm inclined to sit tight for the moment as I have so many other projects on the go right now, but if its relatively straight forward I may do it as this niggles me alittle.

Also as the nutcom site has no forum, no support pages, no contact us page and even all comments are closed on all pages It strongly suggests they do not want to be contacted (I haven't had an email reply either). and although there is a news article dated 14/2/14 which mentions an "upcoming IPE R1 update release – which should be Raspbian-based again" it doesn't say when and suggests a possibility it won't be raspbian based. I therefore find myself wondering if it would be better to avoid relying on something as unsupported and non-mainstream as ipe. maybe we should find or create another solution.

SO... Just to throw an idea out there what about a single solution for both remote and local emoncms? a hybrid between the "rock solid" read only forwarder and the "full hdd stack" emoncms server, the oem_gateway is already used in both local and remote emoncms. A raspbian based read only image on a sd card that is configurable as a forwarder only or mount a hdd with the additional server files and configure as a server.

This would focus development in one direction without parts becoming less compatible or suitable, it would possibly make the server image more robust being partialy read only, it would simplify the hdd solution as the main file system will remain on the sd card, it would provide an easy upgrade path from remote to local emoncms and I think if something like this was suitable, then now may be the best time to implement with the current focus in packaging and versioning emoncms and also the development of dedicated Pi hardware.

An ideal package arrangement maybe a "rock solid gateway" package to create the custom image from a standard fresh raspbian image (rather than downloading the whole image and maybe it can also be "debianised") and an optional "emoncms" package to add the server files.

As I am already working a custom boot to hdd image with separate partitions for data etc (and I may now be looking at sorting a gateway image) I would be happy to work on or contribute to a hybrid sd/hdd gateway design if the interest was there and the emoncms side I believe would probably be pretty much the same but I could be wrong, I'll leave that to be commented on by the emoncms guy's.

Any thoughts anyone?

Regards Paul

threldor's picture

Re: Updating the OEM Rock Solid Gateway image

thanks for the upgraded image Paul!!

I am trying to add some 1-wire DS18B20 sensors to the oemgateway setup I have but am struggling to change the gpio pin used for w1-gpio. I was able to get the sensors to work without the RFM12PiV2 installed and using the GPIO 4 for 1-wire but I need them both going at the same time :) hence the 1-wire pin change.
I tried http://openenergymonitor.org/emon/node/4973 but this didn't work as I think this only works for kernel 3.10+ not the 3.6 which this IPE-R1 is based off. 

I understand you were having troubles with apt-get upgrade and I had these also. Do you know a way in which I could upgrade the IPE-R1 image to use the later kernel which allows the gpio pin change for 1-wire? Or another upgrade option to accommodate my needs.

cheers

pb66's picture

Re: Updating the OEM Rock Solid Gateway image

Hi, we are generally moving away from the IPE-R1. you can install Raspbian to run in read-only mode to replace IPE-R1 and then install OEM gateway that you are familiar with or the replacement, emonHub is under development. Although not officially released yet there are a couple of versions currently being trialed.

See http://openenergymonitor.org/emon/node/5289 for info on the version I'm currently working on which can be installed using a script via 1 line command, it is still a development version but so far results are all positive.

To find out more about emonHub see some of these posts http://openenergymonitor.org/emon/search/node/emonhub.

Paul

threldor's picture

Re: Updating the OEM Rock Solid Gateway image

Thanks, I will give them a spin

Comment viewing options

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