Being friend with an Intel Edison and have Secure access over XMPP

Today I started the amazing Intel Edison board to try and use the XMPP-IoT tools to connect it securely over internet and it worked like a charm.

inittial setup and configuring for wifi was done with the instructions from Intel, i used the mac version. It didn’t take long to get i hooked upp to wifi. Activate a password on root for it to enable remote ssh

https://software.intel.com/en-us/iot/getting-started

https://software.intel.com/en-us/articles/getting-started-with-the-intel-edison-board-on-mac

Upgrade flash image to the latest

http://www.intel.com/support/edison/sb/CS-035280.htm

http://www.intel.com/support/edison/sb/CS-035180.htm

 Get the software started

I am using a fork from the python SleekXMPP package. Just wget the SleekXMPP package with the XMPP-IoT extensions from my Github. Python 2.7.3 is  already on the machine. The GPIO package ”mraa” for python is also installed from the beginning very handy.

You need two XMPP accounts on a server somewhere there are many https://xmpp.net/directory.php I usually use the swedish jabber.se. Create two accounts so they later can talk to each other.

in the /home/root folder on the Edison do:

wget --no-check-certificate https://github.com/joachimlindborg/SleekXMPP/archive/xep_0323_325.zip
unzip xep_0323_325.zip

Start off with blinking the magical led

Go down in the example katalog and start the python Edison example with your xmpp account.

cd SleekXMPP-xep_0323_325/examples/IoT/
python IoT_GPIODevice_Edison.py -j yourfirstaccount@domain.com -p password -n test_device

should look something like this

Started_Edison

Now direct your browser to https://conversejs.org/# login with the other xmpp user you created. yoursecondaccount@domain.com.  Then choose to add a contact and  provide the first account it should just accept and you can start chat with the device. use ”hi”, ”toggle” ”relay=true” and ”?”

converse_addcontact
converse_chat

 

If you have a RELAY and a PIR sensor wire them up to the board use GPIO pin 13 for the relay and GPIO 8 for the PIR you can see the PIR sensor changing

Some more interesting articles

 

The journal logs keep filling up so I changed the journaling.conf

to restart a clean image but I failed totally the reflashed edison keeps all settings

http://www.instructables.com/id/Factory-Reset-your-Intel-EdisonTroubleshooting-Con/step5/Reflash/

I found dokumentation on the opkg package manager very useful, especially the command to remove a package with dependencies

http://wiki.openmoko.org/wiki/Opkg/Documentation

opkg --force-removal-of-dependent-packages remove <<yourpackage>>

Examples on using GPIO with python on the Edison Aurduion board

https://github.com/intel-iot-devkit/mraa/tree/master/examples/python

Jumpers on the Edison board

https://communities.intel.com/docs/DOC-23455

 

 

 

Launching #IoTevery9th, count down to #IoTday 9th april 2015

We are launching a count down towards the official iotday.org.

Find more details on #IoTevery9th here

December 9th

workshop done by  Evothings try it out at https://github.com/Sionarch/xmpp-hybrid-app-examples

January 9th

Using python to connect xmpp devices get your raspberries connected to a network and publish dem globally. Follow the simple example

February 9th

Set up your own disco lights with philips hue integration and  XMPP.  use this easy to set up python integration providing ”hue, sat, bri, st” values to be controlled both over standard xmpp based on  XEP 323 and XEP 325

disco_lightsMars 9th

TBD check in later. Have a suggestion? tell @joachimlindborg

On 9th of April 2015 the official Global IoT day.

The Global IoTDay is a Internet of Things council initiative and will take place for the 5th year 2015. There will be a lot of action and activities around the world!

Let the alarm chimes ring! Severe security breaches in building automation systems

Swedens largest newspaper Dagens Nyheter just revealed severe security breaches on buildings in Sweden not only apartment buildings but also police offices and other important builings have their systems open to internet.

The problem is that the building automation equipment is more and more sophisticated and unskilled personnel in combination with por design makes it hard to enforce any security.

End users need access to the washing booking systems o you open a web port on the firewall.
Operators need access to a ventilation unit.
Installers don’t know where to put the passwords so they leave the default ones.

In an average building today it is only a poorly configured internet modem/firewall that keeps the systems from being accessed from internet. And when several holes are drilled in it to gain access it is easy to gain access and control many of the systems.

(Links in Swedish)
Internet modems easily crackable
Police office disconnects internet cable
Reporter hacks into school
Reporter hacks a church

Build ing green, Copenhagen

I was invited to the EU project PLEEC to talk in Copenhagen on the Building green fair The program from the PLEEC projekt I spoke on the subject ”Technology driven energy efficiency are innovations the solution”  There were some 40 persons present at the conference and the exhibition

@PLEECproject is on twitter

PLEECproject site

Smart Sustainable Cities Day 2014

At the event Smart sustainable cities day I held a talk on the theme of the cities grids and the need for Internet Of Things in them

The energy landscape is changing rapidly and we are demanding instant access to energy everywhere. IoT is needed in endpoints not only to measure for payment but also to interact with the grid managing peak loads.

Abstract and slides are here
smart-sustainable-cities-iot-challenge
Video from talk
Twitter hashtag discussions

The electric revolution

I was thrilled to see the first formula E electric racing. This is reallay a fantastic trend! The evolution of electrical motors killing the old oil based ones. With clean renewables we will get everything over to electric.


We also see changes in motorcross and motorcycles my son is longing for this

http://www.ktm.com/freeride/freeride-e/highlights.html

Organizing the Global IoTDay Stockholm

I’m organizing the event in Stockholm on the Global IoTDay

If you are in stockholm
Or if you would like to participate virtually
It will be a fantastic day and evening

Smart, creative solutions