Our step-by-step guide to prepare a lean yet versatile SD card image for the IG60.
Learn how we at reelyActive prepare a SD card image for a Laird IG60 gateway.
[OPTIONAL] Download, configure and build Laird Linux.
If building Laird Linux from source, the official documentation can be found here.
If building Laird Linux from source, the official documentation can be found here.
Unless there is a specific need to build a custom configuration of Laird Linux, we recommend starting from a pre-built image, as described in Step 2 below.
Download and flash the image to a SD card using Etcher.
We'll flash the SD card with Etcher, a friendly open source tool that you can download here.
Download the SD card image from www.reelyactive.com/downloads/2020-08-09-reelyactive-ig60-bl654.img.gz
If instead using a custom build from Step 1, a SD card image can be created using the mksdcard.sh script found in the root of the build image folder.
We recommend using micro SD cards from reputable vendors of at least 2GB size. From the computer with which you intend to flash the SD card:
Within a few minutes the SD card should be flashed and verified. Unmount (if necessary) and eject the card which is now ready to find its way into the IG60.
Boot the IG60 for the first time and SSH in to update the network configuration.
The micro SD card should now be inserted into the IG60 gateway.
With the micro SD card inserted into the IG60 , complete the following:
From a computer on the same network as the IG60, open a terminal and establish a SSH connection with the command ssh root@xxx.xxx.xxx.xxx
replacing the xxx with the IG60's IP address from Part 1.
When prompted, enter the root user password of the build. On the pre-built image, the password is summit.
Now that you're logged in to the IG60, it is possible to configure the network to simplify such connections in future.
This part has already been completed on the pre-built image.
While logged in to the IG60 via SSH, create a static IP profile called reelyStatic with the command nmcli con add con-name reelyStatic ifname eth0 type ethernet ip4 10.0.50.100/24
Behaviour of the IG60 | Purpose | |
---|---|---|
LAN1 | The IG60 will accept a DHCP-assigned IP address | Use to provide wired connectivity for embedded software applications |
LAN2 | The IG60 will use the static IP address 10.0.50.100 | Use to directly connect a computer to configure the IG60 |
Future SSH connections to the IG60 can be made by connecting directly via Ethernet to LAN2 using a static IP address such as 10.0.50.101 and with the command ssh root@10.0.50.100
It is possible to create one or more WiFi connections which the IG60 will automatically establish whenever the corresponding network is in range. While logged in to the IG60 via SSH, WiFi connections can be created as follows:
Create a connection called WiNotCon to the SSID WiNot with the command:
nmcli con add con-name WiNotCon ifname wlan0 type wifi ssid "WiNot"
Activate the connection with the command nmcli con up WiNotCon
Create a connection called reelyCon to the SSID reelyActive having password owl-in-one with the commands:
nmcli con add con-name reelyCon ifname wlan0 type wifi ssid "reelyActive"
nmcli con modify id reelyCon 802-11-wireless-security.key-mgmt wpa-psk
nmcli con modify id reelyCon 802-11-wireless-security.psk "owl-in-one"
Activate the connection with the command nmcli con up reelyCon
If required, update the firmware of the Bluetooth Low Energy module within the IG60.
The pre-built image includes a program provided by Laird to update the BL654 firmware. From an SSH session, browse to this program's folder with the command cd /home/summit/node_bl_deploy
then execute the program with node index
. Once the firmware update is complete, the program will configure the BL654 to scan for advertisements, and print these to the console. When lines beginning with adv: are observed, exit the program with Ctrl+C.
Install the laird-edge software and configure to run on boot.
The pre-built image includes laird-edge and its package dependencies. From a terminal connected to the IG60 via SSH:
cd /home/summit/laird-edge
vi config/config.js
npm start
Configure systemd to run the laird-edge service on boot by completing the following:
systemctl enable laird-edge.service
systemctl start pi-suite.service
The IG60 will now run the laird-edge software each time it boots up.
Pareto Anywhere is pioneering open source software for real-time location and context.
Continue exploring our open architecture and all its applications.