This page explains how to test your wireless sensor. We will cover all our RF sensor types.
  1. Open a terminal window on the Raspberry Pi where the Gateway is installed.

  2. Download the serial monitor application:

git clone https://github.com/JemRF/rf_tools.git
  1. Run the serial monitor
python serial_mon.py 

The serial monitor is now running. Any messages received by the Gateway’s radio will be displayed on the screen. You can exit the serial monitor anytime by pressing ctrl-c.

  1. Insert the battery into the sensor with the flat side (+ve) facing upwards. The sensor will send 5 STARTED– messages followed by a 5 second pause and then it will go to sleep.

The following sections cover the sensor data that will be displayed for each type of sensor. Each example shows the sensor reading(s) before going to sleep. We have configured the sensors to send a reading every 5 minutes. If you wait for 5 minutes then the sensor will awake from sleep and send another temperature reading and then go back to sleep. You can configure the interval to another setting if you wish (see sensor configuration section of this documentation).

TEMPERATURE SENSOR

python serial_mon.py 9600

Sat Oct 28 20:57:31 2017 02 STARTED--
Sat Oct 28 20:57:31 2017 02 STARTED--
Sat Oct 28 20:57:31 2017 02 STARTED--
Sat Oct 28 20:57:31 2017 02 STARTED--
Sat Oct 28 20:57:31 2017 02 STARTED--

...5 second pause...

Sat Oct 28 20:57:36 2017 02 TMPA22.05
Sat Oct 28 20:57:36 2017 02 SLEEPING-

TEMPERATURE and HUMIDITY SENSOR

python serial_mon.py 9600

Sat Oct 28 20:57:31 2017 02 STARTED--
Sat Oct 28 20:57:31 2017 02 STARTED--
Sat Oct 28 20:57:31 2017 02 STARTED--
Sat Oct 28 20:57:31 2017 02 STARTED--
Sat Oct 28 20:57:31 2017 02 STARTED--

...5 second pause...

Sat Oct 28 20:57:36 2017 02 TMPA22.05
Sat Oct 28 20:57:36 2017 02 HUM56.55-
Sat Oct 28 20:57:36 2017 02 SLEEPING-

PRESSURE, TEMPERATURE and HUMIDITY SENSOR

python serial_mon.py 9600

Sat Oct 28 20:57:31 2017 02 STARTED--
Sat Oct 28 20:57:31 2017 02 STARTED--
Sat Oct 28 20:57:31 2017 02 STARTED--
Sat Oct 28 20:57:31 2017 02 STARTED--
Sat Oct 28 20:57:31 2017 02 STARTED--

...5 second pause...

Sat Oct 28 20:57:36 2017 02 TMPA22.05
Sat Oct 28 20:57:36 2017 02 HUM56.55-
Sat Oct 28 20:57:36 2017 02 PA1001.55-
Sat Oct 28 20:57:36 2017 02 SLEEPING-

SWITCH SENSOR, MOTION SENSOR, or WATER SENSOR

python serial_mon.py 9600


Sat Oct 28 21:05:03 2017 02 STARTED--
Sat Oct 28 21:05:03 2017 02 STARTED--
Sat Oct 28 21:05:03 2017 02 STARTED--
Sat Oct 28 21:05:03 2017 02 STARTED--
Sat Oct 28 21:05:03 2017 02 STARTED--
Sat Oct 28 21:05:06 2017 02 STATEOFF-
Sat Oct 28 21:05:07 2017 02 SLEEPING-

In the above example the sensor sent the state of the switch (a02STATEOFF-) before going to sleep. Every time the switch changes state (ie: opens or closes) then the sensor awakens from sleep and transmits the new state of the switch.

Try testing this by closing and opening the switch or bridging the contacts shown in the picture below. This will also work if your sensor is configured for Temperature sensing.

Switch contacs

Red circle shows the button switch contacts

Messages transmitted when contacts bridged (switch closed):

Sat Oct 28 21:50:41 2017 02 AWAKE----
Sat Oct 28 21:50:41 2017 02 BUTTONON-
Sat Oct 28 21:50:41 2017 02 BUTTONON-
Sat Oct 28 21:50:41 2017 02 SLEEPING-

Messages transmitted when contacts not bridged (switch open):

Sat Oct 28 21:50:43 2017 02 AWAKE----
Sat Oct 28 21:50:43 2017 02 BUTTONOFF
Sat Oct 28 21:50:43 2017 02 BUTTONOFF
Sat Oct 28 21:50:43 2017 02 SLEEPING-

LIGHT SENSOR

Messages transmitted when sensor is started:

Sat Oct 28 20:57:31 2017 02 STARTED--
Sat Oct 28 20:57:31 2017 02 STARTED--
Sat Oct 28 20:57:31 2017 02 STARTED--
Sat Oct 28 20:57:31 2017 02 STARTED--
Sat Oct 28 20:57:31 2017 02 STARTED--

...5 second pause...

Sat Oct 28 20:57:36 2017 02 ANAA1456-
Sat Oct 28 20:57:36 2017 02 SLEEPING-

Messages transmitted every 5 (or INTVL) minutes thereafter.

Sat Oct 28 21:50:43 2017 02 AWAKE----
Sat Oct 28 21:50:43 2017 02 ANAA1456-
Sat Oct 28 21:50:43 2017 02 ANAA1456-
Sat Oct 28 21:50:43 2017 02 SLEEPING-

ANAA refers to Analog Sensor A.

1456 is the light reading.

To change the interval of the transmissions (or other configurations) refer the configuration section of this documentation.