MQTT Joggler


Spurred on by the success of getting Mosquitto working on a Raspberry Pi, I recently had a play with MQTT on the Joggler. The O2 Joggler is still a great device for hacking and I currently have SqeezePlay OS running on it.

The reason I wanted to try and get MQTT on the Joggler was to make use of its light sensor, and publish light levels over MQTT. It all turned out to be pretty simple since most of the work has already been done by other people!

First thing to do was read the light sensor and get that working with an MQTT client. I had to skip some of Andy’s instructions and just built the client code rather than attempting to get doxygen working. Once I’d mashed up the light sensor code and publish example I could compile the worlds most pointless MQTT publisher:

gcc -Wall publightsensor.c -L../bin/linux_ia32 -I../src -lmqttv3c -lpthread -o publightsensor

Next it was time to check the results. This too was quick and easy thanks to the MQTT sandbox server, which has a handy HTTP bridge. And the final result… was a completely unscientific and slightly dingy light level 4! Now I’ll be able to turn on a lamp using an unreliable RF controlled socket and see whether it worked or not!

Update: the code really is all in the existing examples but I’ve created a Github Gist in case it’s any help: mqttjogglermashup.c (11 February 2013)

Advertisement

More Joggler upgrades


For an old defunct product, the O2 Joggler continues to surprise. If you still have one and have been neglecting it at all recently, there are a few potential upgrades around at the moment:

  • There was nothing actually wrong with the original O2 software, except that it was just a little… limited. The refresh of PnP to PnP Mk II should give the built in software a much needed boost.
  • Perhaps more surprisingly O2 are releasing an update themselves! It’s good to see that O2 are tidying up loose ends before deserting the Joggler completely. I’m interested to see just what the update will do, so my Joggler is back to running the original software for now. In case you’ve done a little too much hacking, there’s a reflashing tool which might help ahead of the April 30th update.
  • For me, the most promising Joggler hack is still the Android image, and even this is getting an upgrade. It’s not quite done yet but even so the Ice Cream Sandwich port looks like it was made for the Joggler!

And people are still hacking, so these probably won’t be the last upgrades!

Update: well the deO2ification update finally arrived on my Joggler and despite thinking I knew what to expect, I was really disappointed by one thing that vanished with the update. I was expecting the radio app to go, but I’m actually going to miss the O2 clock! If you’re more interested in replacing the radio, I can definitely recommend the SqueezePlay OS. It really works well on the Joggler and is probably the most straightforward replacement to the newly updated stock OS. The only slight problem is that I haven’t managed to get it to play any of the BBC channels so far. (18 May 2012)

Joggler upgrade


Since I’ve been running Android on the Joggler I’ve had a USB stick stuck out of the side, which isn’t ideal. My first attempted improvement wasn’t a great success: a tiny USB stick which turned out to be excruciatingly slow.

Plan B was a big improvement:

I was a little worried that this right angled USB adapter might end up pointing down, but it turned out to be perfect for the job. Result.

Intermission


At the risk of stating the obvious, I’m having a short summer break from blogging, mostly due to an ongoing project to buy a new house. That’s not exactly been going smoothly, so when we do eventually move I’m sure there’ll be a few posts on the subject! Until then I’m wondering whether to blog at all, and perhaps stock up a few posts for a new season, or just stick to the odd short ramble. Here are a few bite size updates from the last few weeks for example…

It seems a bit like I’ve spent every spare minute on Rightmove but investigating house locations has been the perfect opportunity for a spot of mapping; after initial success with Open Street Map, I’ve made a few more edits. I did think the map was pretty complete where I live but on closer inspection there are actually quite a few details missing.

I’ve also spent a bit of blogging time playing with Google+ instead. Meh. I think the most interesting thing has been the discussions around using your real name, but that issue is not exactly unique to Google+.

Exploring the Android Market looking for apps that will work on the Joggler has been a welcome distraction. Need to add a few more to that list, including my new favourite clock. I’m impressed with how well the Joggler has taken to it’s new life as an Android device, but it is somewhat tied the wall, so I’m seriously tempted to buy a ‘proper’ tablet. I’m sticking to my dumb phone so I want something portable enough to make it out of the house on a regular basis. For a budget option the Andy Pad seems like it might be worth a look, except that I’d want to try before buying, and now there are rumours about a Samsung Q mini tablet/giant phone, except that’s not going to be cheap at all!

And we’ve been on holiday to Germany, which was much more fun than any of the above.

Need another holiday already though!

New Joggler Apps!


Not technically new apps for the Joggler and as I’m not expecting to see any of those again, I cheated: all these apps run very well on the Joggler… after installing Android! I think my quest to find a better alternative to the stock Joggler software is finally at an end.

There are still a few apps left to find a replacement for but I didn’t use these ones much anyway: O2 Calendar, Video, Games, YouTube and Messages (SMS). Here’s what I do have working so far:

Clock

I’m still looking for something to use as a standby screen but, if all else fails, I can write my own now. I like the retro clock widget for a date display on the home screen though.

Photos

Perhaps not the obvious choice for showing photos. I quite like the RealPlayer app, unfortunately it doesn’t play music from my media server, so for now it’s only there for photos.

Music

It doesn’t seem to want to display album art, and the Joggler doesn’t do wma files, but this is definitely an improvement over the Joggler’s standard music player!

News

Works reasonably well on the Joggler’s screen and has feeds for pretty much anything.

Sports News

Added a whole page of news for Jo’s team!

Weather

At a glance weather. All weather forecasts are a work of fiction anyway aren’t they?!

Traffic

The Google map traffic layer is a definite improvement on the Joggler’s original traffic map.

Tools

I have to say, the Button Savior app was a genius suggestion; no more getting stuck in full screen apps!

App Shop

Android Market has that pretty well covered, although the AndAppStore also works, so another massive win over the Joggler’s selection.

Internet Radio

It’s pretty basic but, with a local radio added from Global Streaming, AndroRadio does a solid job. I’m leaning towards Resco Radio at the moment though since the UI is a bit nicer, plus it has a volume control which is very handy without any hardware controls.

Google Maps

Yes!

Probably the best addition to the Joggler is having a working web browser, so for loads more stuff there’s no need for an app. I can check bus times with www.mytraveline.mobi, and look up trains on www.nationalrail.co.uk for starters. Definitely the best value gadget I have!

Enjoy Android on O2’s Joggler in 3 easy steps


A few people have asked after my last Joggler post, so here’s how to unlock the potential of your dusty Joggler…

Step 1 – Prepare a USB stick

Follow the instructions at the top of the Android Prebuild Image page of the Joggler Wiki. I used the simple option, writing the empty partition .img file from Christian with the Image Writer for Microsoft Windows tool.

Step 2 – Download Android image

There are a few Android images around, but you can now download the best image I’ve found so far from Mijuu’s Porting Life blog.

Step 3 – Enjoy

Just unzip the image to the Android partition, boot up* and enjoy.

* I still haven’t made it to the Hursley Chinese lessons so I did have to switch to English. This is easier with the latest image which has a language option in grub.cfg – change it from LANG=zh to LANG=en before booting. To change the keyboard, long-press the text entry field and change the input type.

Step 3a – Get the market working

To get the most out of Android on the Joggler you’ll definitely want to install a few apps. Thanks to Angelo, it’s easy to get the Market working; the latest instructions are on the Joggler Wiki.

And finally, a few links which may be of use:

Updated: updated steps for latest version, Mijuu Release 1.2.3/Android 2.2.2. (22 June 2011)

Update: James Pearce has been doing some great work on creating a pre-loaded image to make it easier to get Android up and running on a Joggler. I haven’t tried the tweaked images but they seem well worth a look to avoid headaches coaxing the Market in to life using the vanilla image. (11 August 2011)

Update: the 1.2.3 release from Mijuu is probably still the best version of Android I’ve found for the Joggler, but there have been a few updates since I originally wrote this post. (3 April 2012)

Joggler OS


For the last couple of days I’ve finally begun to seriously consider deserting the standard O2 Joggler OS. I’ve tried a few alternatives since I first got the Joggler last year but, despite the limitations of the O2/OpenPeak software, none of them have tempted me to switch permanently. The pros have outweighed the cons enough to keep it in regular use… so far…

Pros:

  • It’s simple
  • It works pretty reliably
  • The traffic app is quite handy
  • The  internet radio is better than DAB
  • It streams music from my router

Cons:

  • It’s limited
  • The traffic/radio/music apps are pretty basic
  • No new apps – O2 are clearly not interested in the Joggler any more
  • The calendar is terrible
  • The SDK is disappointing

The O2 calendar app itself was more usable than many I’ve tried but it ultimately failed, mainly because it never actually shows you what’s in the calendar unless you go looking. It really needed to display reminders on the clock screen. It also relied on the O2 servers for all the data, which tended to be really unresponsive, and was certainly no good with an unreliable broadband connection. As for the SDK, I’ll admit to being a bit biased, not being a Flash developer. It still wasn’t great though.

First up, a couple of strong contenders. There are others but for me the Joggler isn’t just a small server to run some Linux variation on.

Jolicloud

I really like the idea of Jolicloud, and it was pretty simple and finger friendly. Unfortunately it always felt a bit sluggish on the Joggler, and it didn’t seem to replace the combination of O2 apps I was happy with, or open the door to new and interesting possibilities.

MeeGo

MeeGo is another OS that should be well suited to an always on touch screen device. I tried the image hosted on bug10738.openaos.org a while ago and it did work really well but, again, it always felt like the Joggler was struggling a bit. Definitely lots of potential though, and I would probably have spent a bit more time experimenting with MeeGo if I hadn’t tried Android…

Android

I wasn’t really expecting much from Android, having seen less than enthusiastic reviews of previous attempts with Android 1.6, but I tried a more recent 2.2 version. First impression was that it was way more responsive than either Jolicloud or MeeGo, and the Android UI is a perfect fit for the Joggler. The first image I tried did have a couple of problems: the screen was a bit fuzzy and the the replacement for the usual Android buttons wasn’t ideal (I liked the gestures but you have to switch between them and being able to get at the notifications). Still, I had seen my Jogglers future, and it had a little green robot in it.

Downloading the second image was marginally more tricky because it wasn’t in English, but it has been well worth it because the screen is rock solid now. It also has virtual buttons in the status bar, which aren’t as fun as the gestures, but work all the time which is a bonus.

So now I just need to find replacements for the O2 apps I use the most. I’m planning to try out Dale’s traffic checker at some point, but TomTom now make their live traffic service available free on the web, which works ok:

Certainly more detailed than the O2 traffic app! It looks like there are a few music apps to try out as well, and I’m definitely keen to download the Android SDK to finally write my first ‘Joggler’ app!!

Happy New Year!


Following Dan Power and Crysta Anderson’s lead, I’m going to kick off the new year with a look back at the most popular posts from 2010. So with barely a pause and not even a drum roll, the winners are…

1. My second CurrentCost development board circuit

Way out ahead at number one is the only circuit board I’ve completed and put to regular use. Still working fine, apart from a brief pause when the batteries ran out. Kind of regretting replacing the batteries just in time for the recent spell of cold weather!

2. Master Information Hub: Getting Started

Not a close second, but still respectably ahead of the pack, this post is one I regularly point people to the first time they use the MDM Workbench. Hopefully it’s helped a few people out this year.

3. New clock radio

Leading the pack is this surprise entry to the top ten. Unlike some Joggler owners, I still use it fairly regularly and, apart from the occasional experiment, I’m still using the O2 software it came with. I did give Jolicloud another go yesterday, to see whether a little bluetooth keyboard helps; nice, but just not quite fast enough to switch permanently. Might give MeeGo a try next.

4. Get off my hashtag

Had a really interesting chat at the last homecamp about tagging, so this is a subject I’m likely to return to this year.

5. Weather Underground + Mashup Hub + Pachube = orb food

Maybe it’s just me but I get quite excited about the potential that this kind of data mashup has. Perhaps it’s because I’ve seen what you can do with enterprise data and software like Message Broker; now imagine the possibilities with open data and simple ways for anyone to manipulate it. (That’s not manipulation in the political sense of course!)

6. Master Information Hub: Social Bookmark Services

This follows on from the number 2 post, while the third in the series has some catching up to do and didn’t make the top 10. I also have some has some catching up to do; I hope to get to the next instalment early this year.

7. Liberal Democrats can’t win here

Politicians, gotta love ’em. I wonder how these graphs will look if we get proportional representation for the next election.

8. Home Easy ambient orb

All soldered together but not yet receiving that lovely data from the number 5 post. I’m currently pondering whether to just hard code things ‘for now’ or hack some more so that the three orbs could be programmed using the BlinkM sequencer.

9. Digital House Arrest

Politicians again. Really. Very. Annoying. I never did get a reply to my last letter to my MP, Chris Huhne.

10. Manifesto

Given that all politicians seem to be as bad as each other I was half tempted to stand as a RON (reopen nominations) candidate Anyone else up for a For The Win party next time?!

Highly commended: It takes two

Not actually in the top ten but this post about Hedge End twinning deserves an honourable mention for the great comments about Frome’s twins.

Happy new year!

Too busy to blog


I seem to have been far too busy to get any time for blogging lately. Actually, it’s the finishing off posts that I’ve been having trouble finding time for; I do still keep adding to the number of unpublished posts, with this selection boosting the number of drafts to 38:

  • Master Information Hub: Social Bookmark Search Transaction
  • My first Joggler app
  • Election results!
  • Icelandic Economy Bill
  • dub dub dub dot fail
  • Parking charge

Instead of finishing any of those off I’ve been…

…ordering a canvas for one of our wedding photos.

We’ve been married almost a year so it seemed like it would be a good idea to finally do something with some of our favourite photos!

The canvas has arrived, and looks great, but it’s still sealed in a back to keep all the dust off from…

…decorating the porch.

We have two front doors; one on the outside and one on the inside. I added the outer door not long after moving in to create small enclosed entrance hall/porch, which has been great for shoes, coats, assorted junk, and getting rid of anyone trying to sell something without letting out all the heat in the process. The old front door has needed a coat of paint ever since, but because I never look at the outside much I only painted the inside, until now. As a result, most of the house is currently covered in dust from all the sanding!

…playing with a new toy.

A bit of an impulse buy, but after gradually increasing the number of boxes I have plugged in all the time (ironic since it all started with the Current Cost meter!), I’ve cut down a few with a FRITZ!Box. Pretty happy with it so far: it’s a neat combination of ADSL wireless router, file/media server and DECT base station. Plus, thanks to a tip off from Jee Labs, @jthouse will soon be following @andy_house‘s lead and sending me an SMS if I miss any calls.

…not hacking the Joggler.

Apart from being in German, the FRITZ!Box media server works very well with the Joggler, so I’m still really happy to keep using the default Joggler software. For now that is: the Joggler appears to have been discontinued, and my question to O2 about creating Joggler apps seems to have vanished as well. I didn’t have much/any luck using Flash Develop, which is a shame because it seems to be a decent IDE, but Nick has been getting on pretty well on Linux. His Joggler music app looks very promising.

I have been keeping an eye on various Joggler hacks and the first one to have me seriously tempted, is Opera mobile running on the Joggler. I did briefly boot Ubuntu off a USB stick, but I don’t think it’s worth it just yet. On the other hand, Jolicloud does look like it might be ideally suited to running on the Joggler, unfortunately it doesn’t seem to work. I’m still hopeful that someone will get Jolicloud booting on the Joggler though; any ideas?

Actually, I think Sony have got a much better idea of how devices like the Joggler should work with the Dash. Getting something like that running on the Joggler would be awesome.

…thinking about home automation.

@lauracowen sparked off some great discussions on the Homecamp group, and I definitely like some of the ideas in Ian’s blog post. I had a chat to Laura on Friday, and the idea of a ‘boost’ is probably a good starting point. I’m sure that would help lower my gas bill, although I’m wondering whether an even lower tech solution might work with my existing heating controls. We often turn on the hot water to top it up, but forget to turn it off again. So, since there is currently no boost button, I’m tempted to just get a basic timer to sit next to the controller to set a reminder to come back and turn off the hot water after a short period. Or I guess I could even use the kitchen timer that’s already in the microwave.

…visiting London.

We spent yesterday in London, mainly to see The Woman in Black, which was excellent. It was hard to work out which of the blood-curdling screams were from the audience and which were part of the production! We also had some time to visit the National Gallery, which brought back a few memories of art lessons.

See how much things have changed since I ruined Turner’s Ulysses deriding Polyphemus with an oil rig?!

…watching Inception.

Really enjoyed Inception although, now I think about it, it’s riddled with plot holes that I never noticed at the time. Guess that’s pretty normal for dreams!

…blogging.

I’ve also been posting on the MDM Workbench blog, so there’ll be fewer work related posts on here now. (Still figuring out how to decide which blog to pick for MDM posts.)

New clock radio


I managed to resist temptation during O2’s first Joggler special offer, but after having a look at someone else’s I failed to resist the second time round. If you can find an O2 cashback deal on their mobile broadband dongle, it’s even possible to get a Joggler for £35, although I must admit I’m a bit of a cynic when it comes to cashback offers.

The Joggler doesn’t appear to have got particularly good reviews and in trying to describe what a Joggler is, it’s easy to see why people are skeptical; it’s a bit like a really bad iPhone that you a) can’t use to phone anyone and b) can’t use outside your house. The software that comes with the Joggler is disappointing, which doesn’t help. It’s a shame because I think the basic principles for the apps are good as far as they go, but the execution is just not there yet. For example, the guide rightly notes that a tap-and-hold is not intuitive, but to move or delete apps that is exactly what you have to do. I also quite like being able to tap the time to display the clock screen saver straight away, but that isn’t exactly obvious either. The on screen keyboard is inconsistent, although I have on seen two so far. There’s a ‘commonly used’ information icon, but it’s so uncommon that I don’t think I’ve actually seen it. Right up there next to the home icon for every app would be nice. Browsing through music or photos is painful. The messaging app doesn’t allow short SMS codes. Let’s just say that there’s plenty of areas for improvement, although it is just possible that things will get better: the Joggler does get updates and something decent may yet turn up in the Joggler app store!

You might think that I’m disappointed by the Joggler, but I’m actually very happy with it, especially for the price. One big bonus is that the hardware is excellent, although even here there is one tiny omission… how can it possibly not have some kind of SD card slot? That just seems mad. Still, unlike a few people I know, I’m not quite ready to ditch the O2 software and replace it with something completely different. Despite shortcomings with the current apps, I like the concept and it’s certainly good enough for the (reduced) price. For example, I’ve been using the internet radio a fair bit; it disconnects now and then but is otherwise far better than DAB radio. I’ve also been checking the traffic app most mornings. It’s not great (I wish it at least had motorway junctions marked on the map) but it’s good enough to see when the worst of the morning rush is over. I would really like to use a calendar app as well and, having tried the google one, I may actually sign up for an O2 calendar to see how it compares. Google calendars are fine, but I don’t want to see all my google calendars on the Joggler and I couldn’t see any way to pick which calendar(s) to show in the app.

So for now, apart from a bit of tinkering (downloading Ubuntu for the Joggler at the moment for a quick look), I’m planning to leave it mostly as is. In the future it would be nice to get it to run the few bits I have on my other home server,  some home automation apps would be interesting, a decent feed reader instead of that Sky news rubbish would be handy, an Opera mini app would be great, etc. etc. Thinking about getting hold of the Joggler SDK to see what that’s like.

I was collecting a few handy looking links while investigating whether to buy one…

…but Graham and Nathan have that pretty well covered already.

All in all, £35 for a hackable internet radio isn’t bad. And I do really like the clock!