Table of Contents

Peripherals

GPS

Localization

GPS signal is handled by the kgpsd daemon. By default, this daemon sends the received nmea frames to both virtual ports /dev/nmea1 and /dev/nmea2. Once a program reads a line from a virtual port, this line is deleted. Thus, only one program should read a virtual port at a time.

Some Wirnet™ i-series gateways don't have a GPS device. For these gateways, kgpsd will not be launched and /dev/nmeaX files will not be created.

By default, the packet forwarder reads the /dev/nmea1 virtual port.

The number of virtual ports can be increased using the /etc/kgpsd.conf configuration file.

To determine whether GPS signal is properly received, NMEA sentences can be monitored using the following command:

cat /dev/nmea2
# ctrl-c to exit 

The GGA sentences contain 2 fields that indicate the quality of the GPS signal.

Example of correct GGA sentence:

$GNGGA,194640.00,4530.70229,N,00914.26728,E,1,12,4.31,184.9,M,47.1,M,,*41

In this example, the fix quality is OK (1) and 12 satellites are received.

Examples of bad GGA sentence:

$GNGGA,152451.00,,,,,0,00,99.99,,,,,,*7E

$GNGGA,163411.00,,,,,0,04,24.77,,,,,,*7A

In case the number of received satellites is small, the value of the field fixed_altitude in the /etc/kgpsd.conf configuration file can be set to yes.

# 2D/3D Altitude management
fixed_altitude=yes

It will result in losing the altitude, however, only 3 satellites will be necessary to receive correct frames.

Time management

Leap second feature configuration

KGPSd configuration file is /etc/kgpsd.conf.
Configurations concerning leap second features are:

Example of kgpsd configuration file for this feature:

# Leap second management
## no: no leap second information is given, yes: information given
leap_second_feature=no
## where leap second information is written (this is not directly usable by NTPd)
leap_second_file=/tmp/kgpsd_leap_file.list
## Leap second information is looked for at first GPS fix after daemon start and then after given period
leap_second_period=2592000

Sensors

Temperature

Note that lmsensors library can also be used to extract temperature from Firmware 4.2 and above

CPU temperature sensor

All Wirnet™ Gateways have a temperature sensor in their CPU. To read the sensor output:

cat /sys/class/thermal/thermal_zone0/temp

It is necessary to divide the result by 1000 to get the temperature in degrees Celsius (°C).

Wirnet™ iBTS temperature sensor

Wirnet™ iBTS has another temperature sensor in CPU module. To read this sensor temperature:

cat /sys/class/hwmon/hwmon1/temp1_input

It is necessary to divide the result by 1000 to get the temperature in degrees Celsius (°C).

Light sensor (Wirnet iBTS only)

A light sensor can be used to know if the Wirnet iBTS casing door is opened or closed.
To use the light sensor use the following command:

# echo "0.1000" > /sys/bus/iio/devices/iio\:device2/in_illuminance_integration_time
# cat /sys/bus/iio/devices/iio\:device2/in_illuminance_input 
47.240000 => opened casing
# cat /sys/bus/iio/devices/iio\:device2/in_illuminance_input
0.880000 => closed casing

Humidity and temperature sensor (Wirnet iStation only)

To read humidity level inside Wirnet iStation:

cat /sys/bus/i2c/drivers/hdc100x/1-0040/iio\:device2/in_humidityrelative_raw
cat /sys/bus/i2c/drivers/hdc100x/1-0040/iio\:device2/in_humidityrelative_scale

Humidity level is:

To temperature:

cat /sys/bus/i2c/drivers/hdc100x/1-0040/iio\:device2/in_temp_scale
cat /sys/bus/i2c/drivers/hdc100x/1-0040/iio\:device2/in_temp_offset
cat /sys/bus/i2c/drivers/hdc100x/1-0040/iio\:device2/in_temp_raw

Temperature in degrees Celsius is:

LEDs

Common LEDs

All Wirnet gateways have:

Green power LED is on from power on to power off.

Status LED behavior:

Gateway state Status LED behavior
Boot part 1 Fix On
Boot part 2 Heartbeat
Boot part 3 Blink every second
Run time Off
Power down sequence Heartbeat
Update Blink fast (400 ms)
Restore backup Blink / 2 seconds
Restore Stock Blink / 4 seconds

On Wirnet iBTS:

On Wirnet iFemtoCell or iFemtocell-Evolution, the 3 LEDs are bicolor LEDs.

On Wirnet iStation:

On Wirnet iZeptoCell:

Other LEDs

Wirnet iBTS

Wirnet iFemtoCell or iFemtocell-Evolution

Wirnet iZeptoCell

LEDs management

It is possible to manage LEDs in some scripts, to make it blinking for example.
Here some scripts examples with LED path and management: