User login

Weekly Report - 9/05/14

11

May

2014

Have been busy with assignments the last couple of weeks, although one was a literature review on wireless sensor networks that I did together with Richard Sanger, which conveniently relates to my project. It gave me some really good further background knowledge (and a solid page of references) with regards to the technologies I'm working with, so I'm hoping that will be useful when it comes to writing later on.

This week I was able to sit down for a few hours and play with Contiki a bit more. I spent much longer than I should have trying to get a toolchain set up for cross compiling Contiki from my own Debian system, so that I don't have to rely on the Instant Contiki virtual machine any more. It turns out that the process of setting up the toolchain (at least for the platform I am working with) is actually really straightforward - there's just no documentation on it. I also worked out some interesting differences between the most recent stable release of Contiki and the master branch currently in Git - it seems there has been quite a lot of development since that release which brings about useful changes, but the mbxxx platform hasn't quite been brought up to date with the core changes and so it's not so usable. I've decided to go off the 2.7 release for application implementations (example CoAP/HTTP servers etc) but backported the improvements made to the stm32 tools so that it's possible to flash the devices from Debian without HAL.

So I've got to the stage where I've flashed a device with a CoAP server but I don't have a way of easily testing it since I don't have a gateway device. I'm thinking of putting a client on the second device with a shell that I can control it through, and I'll have to look into how the devices actually pair with each other etc. I ran into issues with overflowing RAM and ROM with newer versions of the apps from the master branch, but r2.7 versions seem fine. Once I've determined whether memory is going to be sufficient on this platform we might need to acquire a couple more devices to test RPL (or the simulator might also do the trick, but that's boring).

17

Jun

2014

Comment

i don't know how to watch the comments on this blog.
Please reply at giacogenovese [at] gmail [dot] com

thanks

17

Jun

2014

Contiki-os on Raspberry pi

Hi,
I'm working on contiki too and i would like to use a Raspberry Pi like server.
Was your Debian Systen on a Raspberry pi ?

Thanks,
Giacomo

22

Jun

2014

Working with Contiki on Debian/Raspberry Pi

Hi Giacomo,

My Debian system is just on a regular desktop computer, but I'm hoping to start using a Raspberry Pi soon as a border router using the 6LBR project.
The toolchain I ended up using for cross compiling was the Code Sourcery toolchain, as included in Instant Contiki, although the toolchain is now deprecated and has been renamed to something else. I initially tried downloading and installing an old version of the toolchain from the Code Sourcery website (the last one that was still known as Code Sourcery, since I figured that was what Instant Contiki used) however I had problems getting this to work with Contiki. I ended up just copying the Code Sourcery files from the Instant Contiki VM straight into my Debian system and I set up the path variables accordingly, and that worked perfectly straight away.

However, you won't be able to get away with doing that on the Raspberry Pi since that's ARM and not x86. I'm not sure whether there is a download for Code Sourcery compiled for ARM, but it could be worth having a look. Otherwise, I'd just stick to compiling from x86 hardware as you might end up spending more time than it's worth trying to get that working.

Let me know how you get on anyway. I'm very much a beginner to the Contiki world so I hope my advice is accurate and can be of help. :)

Regards,
Brad