Synapse SNAP Connect E20 User manual

USER GUIDE
SNAP Connect E20
SNAP Enabled Gateway
Version 1.1 for
Firmware Versions 1.X and Higher
©2015 Synapse, All Rights Reserved. All Synapse products are patent pending. Synapse, the
Synapse logo, SNAP, and Portal are all registered trademarks of Synapse Wireless, Inc.
Doc# 116-031520-002-D000
6723 Odyssey Drive // Huntsville, AL 35806 // (877) 982-7888 // Synapse-Wireless.com

Disclaimers
Information contained in this document is provided in connection with Synapse products and services and is intended solely to assist its customers.
Synapse reserves the right to make changes at any time and without notice. Synapse assumes no liability whatsoever for the contents of this Manual or
the redistribution as permitted by the foregoing Limited License. The terms and conditions governing the sale or use of Synapse products is expressly
contained in the Synapse’s Terms and Condition for the sale of those respective products.
Synapse retains the right to make changes to any product specification at any time without notice or liability to prior users, contributors, or recipients of
redistributed versions of this Manual. Errata should be checked on any product referenced.
Synapse and the Synapse logo are registered trademarks of Synapse. All other trademarks are the property of their owners. For further information on any
Synapse product or service, including technical assistance, contact us at:
Synapse Wireless, Inc.
6723 Odyssey Drive
Huntsville, Alabama 35806
256-852-7888
877-982-7888
256-924-7398 (fax)
www.synapse-wireless.com
License governing any code samples presented in this user guide
Redistribution of code and use in source and binary forms, with or without modification, are permitted provided that it retains the copyright notice,
operates only on SNAP® networks, and the paragraphs below in the documentation and/or other materials are provided with the distribution:
Copyright 2008-2015, Synapse Wireless Inc., All rights Reserved.
Neither the name of Synapse nor the names of contributors may be used to endorse or promote products derived from this software without specific prior
written permission.
This software is provided "AS IS," without a warranty of any kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
SYNAPSE AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SYNAPSE OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR
DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY,
ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF SYNAPSE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
NOTE: This equipment is meant to be installed in accordance with all applicable local, state, and national
electrical codes. If the equipment is used in a manner not specified by the manufacturer, the protection
provided by the equipment may be impaired. Read these instructions, keep these instructions, and heed
all warnings.
Instructions
This symbol is intended to alert the user to the presence of important operating and
maintenance (servicing) instructions in the literature accompanying the appliance.

SNAP Connect E20 Users Guide 1
1. Overview
The SNAP Connect E20 combines a Synapse SM220 RF module and an embedded Linux-based computer to
provide connectivity (Ethernet, cellular, Wi-Fi, serial,) and site aggregation capabilities to a diverse array of SNAP
IoT networks across industrial temperature ranges.
TCP/IP connections can even bridge remote SNAP devices into one common network, an effective method for
centralizing data storage, performing web-based analytics, and monitoring remote applications.
Powered by Freescale’s i.MX 6 processor, the E20 has ample computing power, reliable connectivity options,
and a sturdy design that makes it the ideal networking gateway for large-scale IoT deployments.
* When running an application that demands unusually intensive CPU/Memory resources at 70C, the
temperature on the processor core might reach up to 90C resulting in performance degradation. For more
information, see http://cache.freescale.com/files/32bit/doc/app_note/AN4579.pdf.
This equipment is certified by Underwriters Laboratories for operation in a maximum ambient
temperature of 65°C. The product safety standard to which this unit is evaluated and certified, IEC 60950-
1, and UL 60950-1 for the US and Canada, specifies a maximum temperature limit of 70°C on metal
surfaces which may be touched. During operation, there is a slight temperature rise on the surfaces of the
E20. Therefore, when installed into an ambient environment at 70°C, the surface temperatures on the E20
will exceed the limit of 70°C.
E20
OS
Ubuntu 14.04 LTS, Linux kernel 3.10.17
CPU
ARM Cortex-A9, 800MHz (Freescale iMX6-S)
Flash
4GB eMMC
RAM
512M DDR3, 400MHz
Network
10/100 Ethernet, WiFi, SM220
USB host
1 type A
USB client
1 micro-USB - SiLabs CP2102
Operating
Temperature
-40C - 70C*
Board Size
15.5cm x 9cm x 2cm
Input Voltage
11-26V DC
AC power supply sold separately.
See synapse-wireless.com for more information.
Cellular Option
Internal cell modem
Storage Expansion
uSD – internal
LEDs / Buttons
4 LEDs
3 Buttons

2SNAP Connect E20 Users Guide
2. Quick Start Guide
1. Connect the Micro-USB Serial port on the E20 to your PC
2. Apply power to the E20
3. Find the serial port that has been assigned to the E20 by your computer:
a. Windows:
i. Look under “Ports” in Device Manager.
ii. Look for “Silicon Labs CP210x USB to UART Bridge.”
b. Linux:
i. look for /dev/ttyUSB0 in the /dev/ directory:
ii. The USB# may be higher if you have additional ttyUSB devices plugged in.
4. Using your preferred terminal emulator (Tera Term, PuTTY, minicom, etc.), connect to the E20 using the
following serial port settings:
a. Baud rate: 115200
b. 8 bits
c. No parity
d. 1 stop bit
e. No flow control
5. Initial login:
a. Username: snap
b. Password: synapse
NOTE: You must change your password on first boot
6. Obtaining SNAP Connect (optional)
a. sudo -H pip install snapconnect -i https://update.synapse-wireless.com/pypi/

SNAP Connect E20 Users Guide 3
3. Basic Installation and Specifications
Mounting the E20
The E20 has a number of mounting holes along the outside flanges of the unit, any of which can be used for
mounting the E20 to a solid surface.
Synapse also provides an optional DIN Rail Mounting kit if you wish to mount the E20 on a DIN rail. (See
synapse-wireless.com for part number.) There are two options for DIN rail attachment depending on your
available space.
To mount the E20 flat against the DIN rail:
Attach the two white mounting clips to the E20 as shown in the diagram below:

4SNAP Connect E20 Users Guide
To mount the E20 perpendicular to the DIN rail:
1. Attach the white mounting clip to the stand-off bracket using the two screws provided with the DIN rail
kit as shown in the diagram.
2. Remove the top and bottom screws from the narrow edge of the E20, leaving the one in the center.
3. Using the screws you just removed, attach the mounting bracket to the E20 as shown in the diagram.
Connecting Power to the E20
The E20 is powered by DC sources with output voltage in the range of 11V – 26V and is able
to supply up to 1A. The E20 has two provisions for supplying the DC input to the unit: 1) the
2.0 mm center-positive mono jack connector at the bottom of the left side and 2) the green
terminal block connector on the bottom of the unit.
The 2.0 mm center-positive mono jack connector on the side of the unit is typically used when powering the E20
using an external AC/DC power adapter. When powered by the mono jack, the DC input connector on the
bottom of the unit is physically disconnected internally.
If you’re applying power via the terminal block, the positive and negative terminals are marked on the front
label of the unit (see image to the right). The terminal block header that
connects to the E20 requires 14-30AWG wire. (The terminal block header
is part #1900882 from Phoenix Contact. See their website for more info.)
The DC source should be a SELV source in accordance with IEC 60950-1,
properly certified by the relevant authorities in your location, having
ratings suitable for the environmental conditions of the installation.
All DC wiring should be done in accordance with all relevant local and
national wiring regulations and should be protected by a suitably rated
fuse or circuit breaker sized according to the relevant wiring codes. The
maximum interrupting rating of the overcurrent protective device is not to exceed 8A.
Use only AC/DC power adapters that are properly certified by the relevant authorities in your location, having
ratings suitable for the environmental conditions of the installation.

SNAP Connect E20 Users Guide 5
E20 Dimensions

6SNAP Connect E20 Users Guide
Power supply requirements:
Table 1: E20 Power
Barrel or DC Input
Min
Typ
Max
Units
Input Voltage (DC) 11 26 V
Input Current 0.13 1.0 A
USB A Port (output)
Supply Voltage 4.75 5 5.25 V
Supply Current 500 mA
Note: If the E20 is installed into an end product, wiring should be done in accordance with the relevant
product safety standard of the end product.
Depending on configuration, the E20 will have one to three antennas, and connectors as shown below:

SNAP Connect E20 Users Guide 7
4. Initial Setup
Accessing the E20 Console
The micro-USB port on the E20 provides a serial connection which can be used to access the command prompt.
Additionally, the E20 is accessible via SSH over the Ethernet if you know the IP address. Generally, accessing the
E20 the first time is easiest via the micro-USB port.
Initial User Settings
•Initial login credentials:
oUsername: snap
oPassword: synapse
NOTE: On first login, the password must be changed. This is a security REQUIREMENT so that deployed
E20s will not have a known default password.
Serial Port Settings
•Baud rate: 115200
•8 bits
•No parity
•1 stop bit
•No flow control
Enabling Root and Changing Passwords
•Root is initially disabled. To enable you must set a root password:
$ sudo passwd root
•To change the password for another username, substitute the username in the password command:
$ sudo passwd snap
NOTE: No account can connect via SSH without a password.
Connecting in Windows
•Download and install a terminal emulator such as PuTTY or TeraTerm
•If necessary, obtain the SiLabs CP210x USB to UART VCP drivers from www.silabs.com
•Connect the E20 to the computer via the micro-USB cable
•Determine which COM port your OS has allocated to the E20 serial port.
oIn Windows, look under “Ports” in Device Manager.
oLook for “Silicon Labs CP210x USB to UART Bridge.”
•Using a terminal emulator, open a serial connection to the indicated COM port

8SNAP Connect E20 Users Guide
Connecting in Linux
•Download and install a terminal emulator such as minicom or screen
•Connect the E20 to the computer via the micro-USB cable
•Open /dev/ttyUSB0 in the /dev/ directory:
The USB# may be higher if you have additional ttyUSB devices plugged in.
•Using your terminal emulator, open a serial connection to the indicated tty port.
5. SNAP Connect (802.15.4 Connection)
The E20 contains a Synapse SM220 module, accessible via the serial ports /dev/snap0 and /dev/snap1.
SNAP Connect supplies the software infrastructure on the E20 to connect the gateway to the SNAP network via
these serial ports.
To download and install SNAP Connect run the following from the E20 command line:
$ sudo -H pip install snapconnect -i https://update.synapse-
wireless.com/pypi/
After installing SNAP Connect, you’ll also want to install the latest version of PyCrypto. This can be obtained via
apt-get by entering:
$ sudo apt-get install python-crypto
6. E20 Specific Software Packages
A factory defaulted E20 comes with Ubuntu 14.04, running a custom 3.10.17 Linux kernel based on the imx6
kernel by Freescale. The E20 comes with several support packages pre-installed and additional ones may be
installed via apt-get and pip.
NOTE: Before installing new packages, be sure to run apt-get update to sync your E20 with the
package server, so you will obtain the newest version. The apt-get update may take a few minutes
depending on your internet connection.
Additionally, it is recommended you upgrade your e20 utilities, (which are described in detail below,)
by running the following command, as new versions and bug fixes may be available:
sudo apt-get install e20-cell-helpers e20-leds e20-gpio-scripts e20-snap-
utils

SNAP Connect E20 Users Guide 9
The E20 is pre-installed with specific apt-get helper packages. The packages can be found in the
/usr/local/bin directory unless noted otherwise. They are:
e20-cell-helpers – a cell modem
support package
Telit modem
example scripts to
reset, disable, enable
the cell modem
callvz –Invokes PPPD to communicate with cell
modem on Verizon
power-cell-modem – Powers the cell modem
enable-cell-modem –Enables the cell modem
wake-cell-modem –Wakes the cell modem
Configuration and
control files for cell
modems
(/etc/ppp/peers)
telit-att – pppd configuration file for ATT
telit-att-chat -scripted AT commands issued to
modem for AT&T
telit-verizon – pppd configuration file for Verizon
telit-verizon-disconnect – Disconnects modem
from tower
verizon-chat - scripted AT commands issued to
modem for Verizon
e20-leds, e20-buttons packages –
a simple LED and button control
scripts package
led-1, led-2, led-3 Controls lighting for led 1, 2, and 3
button-1, button-2,
button-3
Reads button states
e20-gpio-scripts package -
Initializes GPIO lines (/etc/rc2.d)
S30gpios Start up script to initialize GPIO lines package
E20 support package for the SM220 must be installed via apt-get:
e20-snap-utils package –
maintenance and support scripts
for SM220
This package depends on SNAP
Connect (See Section 5 – SNAP
Connect for installation
instructions)
wake_snap_node wakes the SM220 (if it was sleeping)
reset_snap_node resets the SM220
flash-bridge performs maintenance on the SM220

10 SNAP Connect E20 Users Guide
7. User Buttons and LEDs
The E20 has 3 user-programmable buttons, and 3 user-programmable tri-color LEDs.
GPIO 40 LED-1 red
GPIO 41 LED-1 green
GPIO 42 LED-2 red
GPIO 43 LED-2 green
GPIO 44 LED-3 red
GPIO 45 LED-3 green
GPIO 117 Button 1
GPIO 118 Button 2
GPIO 119 Button 3
Each tri-color LED is controlled by 2 GPIO lines (red, green) and the combination of these lines gives 3 colors for
each LED (red, green, amber).
For convenience, programs are pre-installed on the E20 to interact with these peripherals:
Controlling LEDs
Provided by package e20-leds:
•/usr/local/bin/led-1
•/usr/local/bin/led-2
•/usr/local/bin/led-3
Usage:
•led-1 red
•led-1 green
•led-1 amber
•led-1 off
By default, on power-up all three LEDs will turn on in amber mode, then turn off after Linux has booted.
Reading the buttons (Provided by package e20-buttons):
•/usr/local/bin/button-1
•/usr/local/bin/button-2
•/usr/local/bin/button-3
Prints the button status (1 = up, 0 = pressed,) and returns this number as the exit code

SNAP Connect E20 Users Guide 11
8. Controlling the Internal SNAP Engine
The E20 has the ability to wake and reset the SM220 using two dedicated GPIO pins:
•Wake Snap Node: GPIO 33 (tied to pin GPIO_F1 on the SM220)
•Reset Pin: GPIO 34
Additionally, maintenance scripts on the E20 control the SM220 beyond interacting with the SNAPpy script over
the UART. These scripts allow you to perform recovery maintenance such as erasing an unresponsive SNAPpy
image, factory defaulting the NV params, and uploading new firmware.
SNAP maintenance scripts and helper utilities can be installed via:
$ sudo apt-get install e20-snap-utils
Waking the SM220
First, GPIO_F1 must be set as a wakeup pin on the SM220. To do this, use the wakeupOn function:
from synapse.pinWakeup import *
from synapse.platforms import *
# other code
# before putting node to sleep
wakeupOn(GPIO_F1, True, False)
When you want to wake the node, call the provided wake-snap-node script, which will perform this function
for you automatically.
•This script is located at /usr/local/bin/wake-snap-node
Resetting the SM220
There is no special setup required to reset the SM220, just call reset-snap-node which will briefly drive the
reset GPIO low, forcing the SM220 to reset.
This script is located at /usr/local/bin/reset-snap-node
Restoring the functionality of an unresponsive SM220
The E20 comes with a recovery utility which is capable of erasing the loaded SNAPpy image, factory defaulting
the NV params, and uploading a firmware image.
This script is included in the e20-snap-utils package (see above for installation instructions) and is located at
/usr/local/bin/flash-bridge
Usage:
•flash-bridge -e (to erase the running SNAPpy image)
•flash-bridge -i imageName (to upload firmware image “imageName” to the SM220)
•flash-bridge -nv (to restore the default NV params)

12 SNAP Connect E20 Users Guide
9. SM220 SNAP Node
The SM220 SNAP node connects the wireless SNAP network to the E20 gateway. The SM220 communicates with
the rest of the E20 via 2 serial ports.
LED Control
The SM220 controls the tri-color led labeled “SNAP” on the case via GPIO_A4 (green) and GPIO_A5 (red).
(For amber, both GPIOs are used.)
NOTE:This LED is only accessible via the SNAP node.
Example of flashing the led via GPIO_A4 on the SM220:
from synapse.platforms import *
@setHook(HOOK_STARTUP)
def startupEvent():
setPinDir(GPIO_A4, True)
@setHook(HOOK_1S)
def tick():
pulsePin(GPIO_A4, 500, False)
Controlling the E20 from the SM220
The SM220 has two pins dedicated to interfacing with the E20.
•GPIO_C4 – System Reset. Active low. Triggers a hardware reset on the E20.
•GPIO_F2 – Interrupt / General Use – Tied to GPIO 32 on the E20.
GPIO_F2 can be used to signal the E20 that some event of interest has occurred that might need a response
even if a SNAP Connect application is not running.
A simple example of how to monitor for this interrupt condition or event is provided below:
if [[ ! -d /sys/class/gpio/gpio32/ ]] ; then
echo 32 > /sys/class/gpio/export
echo in > /sys/class/gpio/gpio32/direction
fi
while [[ `cat /sys/class/gpio/gpio32/value` != 0 ]] ; do
sleep 1
done
echo "Got interrupt!"
GPIO_C4 can be used to perform a hard reset of the E20 without resetting the SM220. This can be used to force
a reboot if you are otherwise unable to access your E20. Note that any saved data may be lost when performing
a hard reset, and this is intended only to recover control when the E20 has become unresponsive.
@setHook(HOOK_STARTUP)
setPinPullup(GPIO_C4, True)
writePin(GPIO_C4, True)
setPinDir(GPIO_C4, True)
def resetE20():
pulsePin(GPIO_C4, 1, False)

SNAP Connect E20 Users Guide 13
10. Factory Restore / Re-Flashing your E20
For most E20s, a factory restore is accomplished using a microSD card image.
Note: Not all E20s can be programmed via the microSD card. If your E20 case does not look like the one
pictured in Figure 1, or when you remove the back panel there is no microSD card slot
and button present, skip ahead to Restoring from a USB Flash Drive.
Restoring from a MicroSD Card
•From the Synapse Wireless forums, download the newest microSD card E20
installer image:
https://forums.synapse-wireless.com/showthread.php?t=9
•Write this image to your microSD card.
oIn Windows, this is easiest done using something like Win32DiskImager.
oIn Linux, you can use dd from the command line:
Note: Make sure that the “of” variable points to the correct device before
executing this command. (An easy way to verify which device is the SD
card is to execute the ls command in the /dev directory before and after
inserting the SD card.) Writing to the wrong device could potentially
overwrite critical information such as your system hard drive.
$ dd if=e20-VERSION-sdcard.img of=/dev/sdX
bs=1M
# where e20-VERSION-sdcard.img is the sdcard
image file
# and /dev/sdX is the device file of the uSD card device
$ sync
$ eject /dev/sdX
•Remove the access cover on the rear of the E20
•Insert the microSD card into the microSD card slot on the back of the E20
•Hold the button near the slot, apply power, and release the button
•After a few moments, LEDs 1, 2, and 3 should turn red. When programming blink green three times,
programming has finished, and you can re-apply power to your unit
•Reinstall the access cover, tightening the screw using a screwdriver
Restoring from a USB Flash Drive
Some very early models of the E20 did not support flashing an image from the microSD card. These devices
require a USB flash drive image and slightly more user interaction to flash a new image. However the process is
finished, they are very similar.
•From the Synapse Wireless forums, download the newest USB flash drive E20 installer image:
https://forums.synapse-wireless.com/showthread.php?t=9
•Write this image to your flash drive.
oIn Windows, this is easiest done using something like Win32DiskImager.
oIn Linux, you can use dd from the command line:
$ dd if=e20-VERSION-sdcard.img of=/dev/sdX bs=1M
# where e20-VERSION-sdcard.img is the sdcard image file
Figure 1: The microSD card slot can be
found by removing the back panel.

14 SNAP Connect E20 Users Guide
# and /dev/sdX is the device file of the drive - NOT a partition on
the drive!
$ sync
$ eject /dev/sdX
•Apply power to the E20
•Establish a serial connection to the E20, then interrupt U-Boot by pressing a key when the prompt “Hit
any key to stop autoboot” appears.
oIf you miss this prompt and the E20 boots into Linux, issuing “reboot” from Linux will return you
to it.
•Once at the U-Boot-E20> prompt, insert the flash drive into E20 and issue the following two commands:
usb start; mw 0x12000000 0x0 0x10000; mmc write 0x12000000 0 0x10000;
fatload usb 0 0x12000000 u-boot.imx; mmc write 0x12000000 2 0x260;
usb start; fatload usb 0 0x12000000 installer-uImage; fatload usb 0
0x18000000 imx6s-e20.dtb; setenv bootargs console=ttymxc0,115200 --no-log;
bootm 0x12000000 - 0x18000000
•After a few moments, the LEDs should turn red – when the LEDs blink green three times and you can
then re-apply power to your unit.
11. Common Linux Operations
The E20 is pre-loaded with Ubuntu Linux, and use assumes knowledge of the Linux OS. Ample documentation is
available online to perform all operations within the capability of the E20. The following are a few common
operations:
Making Custom Software run Automatically at Startup
For trivial scripts that should do something once at boot time, you can add a simple shell script you want called
at one of a few places:
•/etc/rc.local
•/etc/rc2.d/newprogramname
For applications you want to have started as a service which can be started, stopped, and restarted; you can
create an Upstart service at:
•/etc/init/newprogramname.conf

SNAP Connect E20 Users Guide 15
A basic example of making a SnapConnect application run as a service could be achieved by generating the
following file in /etc/init/snapconnect.conf :
# SNAP Connect - start a SNAP Connect application as a service
#
description "Start SNAP Connect"
start on runlevel [2]
stop on runlevel [!2]
exec python /home/snap/my_snapconnect_example.py
The command python /home/snap/my_snapconnect_example.py would then be executed on boot, and
stopped on shutdown. You could also start and stop by issuing the following commands:
$ sudo service snapconnect start
$ sudo service snapconnect restart
$ sudo service snapconnect stop
Note that this is a basic example that illustrates a starting point for developing your custom Upstart service.
Resetting a Lost User Password
•Interrupt u-boot by rebooting the E20, then pressing any key when the message “Hit any key to stop
autoboot” appears.
•From the U-Boot command prompt, enter the following two commands:
U-Boot-E20> setenv mmcargs 'setenv bootargs console=${console},${baudrate} --no-
log fec.macaddr=${macaddr} root=${mmcroot} rootdelay=2 rw single'
U-Boot-E20> boot
Ensuring that the E20 stays connected over Ethernet
An unaddressed bug in Ubuntu 14.04 can affect E20 units with eth0 configured to boot automatically in DHCP
mode. By default, the E20 is patched to activate eth0 in a mode which should put the DHCP client in the
background, and obtain an IP address when a link becomes available. However, if you had an IP address before,
and the lease on your address has not passed, dhclient only tries to renew it ONE time and then quits trying. (As
opposed to if you didn’t have one, it keeps searching for a DHCP server.) This can potentially leave the E20
without an IP address. If this is a concern for you, consider setting up the following script to run in the
background on boot:
#!/bin/bash
while [[ true ]] ; do
OUTPUT=`ifconfig eth0 | grep 'inet addr:' | wc -w 2>/dev/null`
if [[ $OUTPUT == "0" ]] ; then
ifdown eth0 && ifup eth0 &
fi
sleep 600
done

16 SNAP Connect E20 Users Guide
12. Wifi
Typical steps in working with wifi:
Edit /etc/network/interfaces:
#auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant.conf
wpa-driver wext
•wlan0 does not activate by default
Uncomment #auto wlan0 to activate automatically
Connecting to an access point:
Generate your passphrase key:
$ wpa_passphrase 'myssid' 'mypassword'
network={
ssid="myssid"
#psk="mypassword"
psk=2f0568b3492812bd56b946dbaf3fd7dd669b9a4602a09aa6462ff057949b025c
}
Put the output of that into /etc/wpa_supplicant.conf
network={
ssid="myssid"
psk=2f0568b3492812bd56b946dbaf3fd7dd669b9a4602a09aa6462ff057949b025c
}
You may need additional options depending on your network setup.
You can now either run sudo ifup wlan0 to bring up the interface and connect to the network, or
reboot. Once auto wlan0 is present in your network interfaces file, wlan0 will be brought up and
attempt to connect to the network automatically on boot.

SNAP Connect E20 Users Guide 17
Setting up Access-Point (AP) mode:
•apt-get install udhcpd
•Generate your passphrase (you will need this information later when we call iwpriv):
$ wpa_passphrase 'myssid' 'mypassword'
network={
ssid="myssid"
#psk="mypassword"
psk=2f0568b3492812bd56b946dbaf3fd7dd669b9a4602a09aa6462ff057949b025c
}
•Set up /etc/udhcpd.conf
# The start and end of the IP lease block
start 192.168.0.20 #default: 192.168.0.20
end 192.168.0.254 #default: 192.168.0.254
# The interface that udhcpd will use
interface wlan0 #default:eth0
[rest cut off for brevity]
# The start and end of the IP lease block
start 192.168.0.20 #default: 192.168.0.20
end 192.168.0.254 #default: 192.168.0.254
# The interface that udhcpd will use
interface wlan0 #default:eth0
[rest cut off for brevity]
Set up udhcpd to run by default by editing /etc/default/udhcpd:
# Comment the following line to enable
DHCPD_ENABLED="yes"
# Options to pass to busybox' udhcpd.
#
# -S Log to syslog
# -f run in foreground
DHCPD_OPTS="-S"

18 SNAP Connect E20 Users Guide
Set up wlan0 with a static IP so it can act as a gateway by editing
/etc/network/interfaces:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
allow-hotplug eth0
iface eth0 inet dhcp
auto wlan0
iface wlan0 inet static
address 192.168.0.1
netmask 255.255.255.0
Set things up with iwpriv (using the information you gathered from wpa_passphrase
earlier, ):
snap@localhost:~$ sudo iwpriv wlan0 AP_SET_CFG
ASCII_CMD=AP_CFG,SSID="myssid",SEC="wpa2-
psk",KEY=2f0568b3492812bd56b946dbaf3fd7dd669b9a4602a09aa6462ff057949b025c,CHANNE
L=1,PREAMBLE=1,MAX_SCB=8,END
Change parameters as needed (e.g. what CHANNEL you want to be on.)
Start AP mode:
snap@localhost:~$ sudo iwpriv wlan0 AP_BSS_START
Stop AP mode:
snap@localhost:~$ sudo iwpriv wlan0 AP_BSS_STOP
Other manuals for SNAP Connect E20
2
Table of contents
Other Synapse Gateway manuals
Popular Gateway manuals by other brands

ADF Web
ADF Web KNX user manual

Cisco
Cisco VG30D quick start guide

Häfele
Häfele Wireless Smart Gateway user manual

Psion Teklogix
Psion Teklogix 9160 G2 user manual

New Rock Technologies
New Rock Technologies MX8G user manual

SMC Networks
SMC Networks DOCSIS 3.0 Commercial Cable Modem Gateway... Specifications