SYM2 Gateway Modem Complete Setup


2020-11-13 16:25

SYM2 Complete Setup

Initial Setup:
The first thing we need to do before we can update the operating system and install the required tools, we need to have an internet connection first. The two most simple way to do it is to use a WIFI connection or use the Ethernet port on the Orange Pi Zero.
Method 1:
We can use the nmtui command to connect to a WIFI network.
Type nmtui in the console
Select Activate Connection
Connect to the SSID you are familiar with and type in the password.
Method 2:
Plug an Ethernet cable into the Ethernet port of the Orange Pi Zero. The Orange Pi Zero has DHCP enabled by default on the Eth0 interface.
After using method 1 or method 2, you should be able to ping and get a response to confirm that the internet connection is active.

Install latest updates after setting up internet connectivity:
apt-get update
apt-get upgrade
apt-get install ppp  **We need this to be able to use Sakis3G to connect to a 3G network via Huawei USB Stick

We need to download the software and scripts from pnpscada:
Go to the ?root? directory by entering cd .. until you get to this line: root@orangepizero:/#
First we need to download and install Java: apt-get install default-jdk
Enter the following commands to get all the software we are going to use:

After downloading these files we need to:
Compile javac -cp .
Compile javac -cp .


Install Sakis3G:
Make a Directory to store Sakis3G in: mkdir 3G
Go into that directory: cd 3G
Download Sakis3G using the following command:
sudo wget ''
This command will download Sakis3g to the current directory you are in (Which should be the 3G Folder).
Unzip the compressed sakis3g file by typing: sudo tar xopf sakis3g.tar
Give the sakis3g file executable rights: sudo chmod +x sakis3g

Now we have to install and set up usb modeswitch to enable the Orange Pi Zero to identify the Huawei USB Stick as a modem.
Plug in the Huawei USB Stick into the Orange Pi Zero
The lsusb command finds Huawei USB modem as a storage device:
Huawei Technologies Co., Ltd. Modem (Mass Storage Mode)

Install usb modeswitch: apt-get install usb-modeswitch
Go into: nano /lib/udev/rules.d/40-usb_modeswitch.rules
Add entry: ATTR{idVendor}=='12d1', ATTR{idProduct}=='14fe', RUN+='usb_modeswitch '/%k''
Create file: nano /etc/usb_modeswitch.d/12d1:14fe
Add entry:
# Huawei E3131 series

Reload rules: udevadm control --reload-rules && udevadm trigger
Reboot the Orange Pi Zero
Now the lsusb command finds the Huawei Stick as: Huawei Technologies Co., Ltd. Modem/Networkcard

To connect to internet using SAKIS3G:
Go to folder where Sakis3G is downloaded to and run command: ./sakis3g --interactive
>Select connect 3g
Now we have successfully connected to the Internet via USB Stick.


We need to set up the Eth0 (Ethernet port of the Orange Pi Zero) to connect to the SYM2 Meter
Open /etc/network/interfaces file and add the following commands:
# Ethernet adapter 0
auto eth0
allow-hotplug eth0
#no-auto-down eth0
iface eth0 inet static

Save and exit the configuration by typing ifdown eth0 followed by ifup eth0 to save changes.

Now we need to edit the following configurations:
To save the configurations after editing, enter: CTRL+X > Yes > OK

Enter: nano /etc/default/cpufrequtils
This is to adjust the clock speed of the Orange Pi Zero CPU to minimize heat and increase stability.
Ensure the file looks like this:

Enter: nano /etc/rc.local
This file will run on start-up and execute all important scripts and programs.
Ensure the file looks like this:
#!/bin/sh -e
# rc.local
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will 'exit 0' on success or any other
# value on error.
# In order to enable or disable this script just change the execution
# bits.
# By default this script does nothing.
date --set='2002-01-01'
#sudo / &
sudo /3G/sakis3g connect OTHER='USBMODEM' USBMODEM='12d1:1506' USBINTERFACE='0'
sudo ntpdate -b
sudo java -cp . MultiCast &

exit 0


Enter: nano /etc/crontab
Make sure the files looks like this:
This file is used to check that certain programs are running.
/etc/crontab: system-wide crontab

# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

# m h dom mon dow user  command

17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly

25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --repo$

47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --repo$

52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --repo$

* /10 * * * * /./



Hardware Requirements:
You need a 5V 2A POE Splitter in order to split the POE from the SYM2 Meter into power and data respectively.
Connect the Ethernet from the SYM2 meter to the input of the POE splitter.
Connect the data output (Ethernet) from the POE splitter to the Ethernet port of the Orange Pi Zero.
Connect the power output (red cable is 5V) (black cable is GND) from the POE splitter to the 5V and Ground pins of the Orange Pi Zero as can be seen on this image:

Reboot the Orange Pi Zero.
The SYM2 gateway modem will operate straight from start-up. You do not need to configure anything else!
Congratulations!!! Your SYM2 Gateway Modem is completely set up.

Tags: sym2
Please log in to post a comment