The HomeWSN project is designed to find a cheap and easy way to create a home wireless sensor network. The basic requirements for hardware and software are presented as follows:

The network topology is shown below. Click the device icon or the connection label to learn more.

Sensor node

Wireless sensor node. The most of sensor nodes must be in the sleep state (power saving mode for minimizing battery usage to extend battery life) most of the time.

The sensor node is based on TI CC2530.

Firmware is based on the Contiki OS and Rime lightweight network protocol used in Contiki.

The possible types of sensors:

  • Door, window switch
  • SHT10: temperature and humidity
  • DS18B20: temperature
  • BMP085: temperature and atmospheric pressure
  • BH1750: light intensity
  • MHZ14: carbon dioxide CO2 concentration

Actuator node

Wireless sensor node. Must be in the active state (ready for potential incoming transmissions) all the time.

The actuator node is based on TI CC2530 and Skyworks Solutions RFX2401C (PA/LNA RF Front End).

The actuator has a repeater function also to extend distances between nodes.

Firmware is based on the Contiki OS and Rime lightweight network protocol used in Contiki.

The possible types of actuators:

  • Relay

Border-router node

Wireless sensor node. Must be in the active state (ready for potential incoming transmissions) all the time.

The border-router node is based on TI CC2530 or CC2531 and Skyworks Solutions RFX2401C (PA/LNA RF Front End).

Firmware is based on the Contiki OS and Rime lightweight network protocol used in Contiki.

The possible types of border-router node:

  • CC2531 + RFX2401C USB Dongle
  • CC2530 + RFX2401C UART Module

MQTT broker-gateway

Any Linux or Windows driven computer with USB or UART support to connect with the wireless border-router node and Ethernet or Wi-Fi support to connect with the database server and end-user computer. The best choice is an embedded system like small home router under OpenWrt.

Whsnbg plays a central role in routing packets between wireless nodes, database server and end-user computer.

MySQL server

Any Linux or Windows driven computer with MySQL Community Server.

Follow these instructions to create the database structure for homewsn.com project.

Web server with PHP support

Any Linux or Windows driven computer with web server and PHP.

The best choice is a simple small and easy to use standalone web server with php support like civetweb.

To setup web user interface just copy all the files and subfolders into your web site document root (or another) folder.

End user computer

Any computer or a variety of smart phones with a modern browser. The browser must support HTML5 and Websocket.

WPAN connection

The protocol stack:

  • MQTT-SN
  • UDP
  • IPv4
  • Contiki Rime
  • IEEE 802.15.4(AES)

WPAN connection

The protocol stack:

  • MQTT-SN
  • UDP
  • IPv4
  • Contiki Rime
  • IEEE 802.15.4(AES)

USB or UART connection

The protocol stack:

  • MQTT-SN
  • UDP
  • IPv4
  • SLIP
  • (USB)

LAN or WAN connection

The protocol stack:

  • MySQL Client/Server Protocol
  • TCP(TLS)
  • IPv4
  • Ethernet

LAN, WAN or localhost connection

The protocol stack:

  • MySQL Client/Server Protocol
  • TCP(TLS)
  • IPv4
  • (Ethernet)

LAN or WAN connection

The protocol stack:

  • MQTT
  • Websocket
  • HTTP(HTTPS)
  • TCP(TLS)
  • IPv4
  • Ethernet

The connection is used to get the current status of the sensors and actuators from the whsnbg MQTT broker gateway.

LAN or WAN connection

The protocol stack:

  • HTTP(HTTPS)
  • TCP(TLS)
  • IPv4
  • Ethernet