Kategoriarkiv: web

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

Wirediagram_edisonRelay Pir and temp sensor on Edison

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

 

 

 

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

IoT, will we ever leave the silos?

Internet of Things is today huge, but as always it is hyped and includes almost every-Thing. Today we are back in the 1990’s creating business models based on a connected thing, letting the mainframe investigate and use our data. And for me as a customer I again, as it was in the 1990’s, end up with a bunch of incompatible systems, today called apps.

from Postscapes I found a very good sentence

When data is removed from siloed warehouses and is able to be identified and shared between products and services like it is within the current Internet architecture a true Internet of Things can emerge.

The explosion on apps on the phone is a result of innovation, based on the easy accessible sensors on the phone such as, camera, temperature, gps, gyro etc. Imagine the services that could be created if all IoT things was as easy to use as if they all were in the same phone? And in that case which phone?

We will always need integration and a way to interconnect system, IoT also needs that and no company based solution should win expecially if they own a phone. Please go for open solutions when you create your things, from my heart I think that XMPP-IoT is one of the more beautiful solutions.

IoT_Protocols_Updated