IoT Gateway for Raspberry Pi Tutorial

The gateways 26 pin header will fit onto any of the Raspberry Pi models (26 pin or 40 pin). The pictures below show how the gateway fits on a 40 pin Raspberry Pi.

Important Note!
Make sure you fit the gateway the right way around and and perfectly aligned with pins 1-26 of the Raspberry Pi. You could damage the gateway if fitted incorrectly.

Installation steps:
1. Power off the Raspberry Pi

2. Carefully align the header as shown in Figure 1 and push the gateway all the way down onto the Raspberry Pi GPIO header.


Figure - 1 Align gateway with Raspberry Pi Header

3. In order to remove the gateway from the raspberry Pi power off the Raspberry Pi and then hold the Raspberry Pi firmly with one hand and gently wiggle the Gatway loose with your other hand. Wiggling it from side to side is easier than pulling it directly upwards.

4. The gateway receiver uses the Raspberry Pi serial port in order to communicate. Follow this link to configure the Raspberry Pi serial port: Enable the Serial port on the Raspberry Pi


The next few steps explain how to test the device

6. Now open up a Raspberry Pi terminal window

7. Create a directory where you want to store the RF configuration tool
eg:
sudo apt-get install python-serial
cd ~ 

8. Download the RF sensor configuration tool

git clone https://github.com/JemRF/rf_tools.git

9. Send HELLO command to the Gateway

cd rf_tools

python rf_config.py 01 HELLO

SENT : 01HELLO
RECEIVED : 01HELLO----

pi@raspberrypi:~/rd_tools $

As shown above the rf_config.py tool sent the command a01HELLO and it received a response a01HELLO---. That means it is working.

If the tool was unable to communicate with the gateway then you would see two failed attempts to send the HELLO command as shown here:

python rf_config.py 01 HELLO
SENT : 03HELLO
SENT : 03HELLO

If you did no get the above response then retrace each of the above steps carefully.