Jpeg

Previously we have used GPRS shield to establish internet connection. Now we will use 3G, 4G/LTE shield for PPP internet connection. In order to make a 3G and 4G connection we will need to use Quectel UC20 and Quectel EC25 modules respectively.

As this tutorial is for 4G PPP Internet connection, we will use Quectel EC25, which is a series of LTE category 4 module optimized specially for M2M, IoT and multimedia applications. Due to rich set of protocols, industry-standard interfaces and abundant functionalities extend the applicability of the module ti a wide range of M2M and IoT applications such as industrial router, industrial PDA, rugged tablet PC, video surveillance and digital signage.

Features

  • Backward compatible with existing EDGE and GSM/GPRS networks.
  • Data rates: 150Mbps downlink and 50Mbps uplink
  • Simple migration from 3G to 4G
  • Operates with power from Raspberry Pi. Externally, 9V power can be supplied.
  • Operation Temperature -40°C ~ +85°C

Lets have a look on the pin assignment of the shield. GPIO23 disables wireless communications and GPIO24 is used for force hardware reset.

pinmap3g

Sixfab 3G,4G/LTE shield pin assignment

We will need to follow the following steps:

# The tutorial is covered using Raspberry Pi 3

1. Connect EC25 module to the shield.

Jpeg

Sixfab 3G,4G/LTE shield and EC25 module

Jpeg

EC25 module connected to shield

2. Insert SIM into the shield.

Jpeg

Inserting Sim to Shield

3. Attach the shield to the raspberry pi. Connect USB to Raspberry Pi

Jpeg

Shield Attached to Raspberry Pi 3

Jpeg

USB connected

4. Connect Raspberry Pi to Internet via WiFi or Ethernet.

Open the terminal(if you are using desktop or laptop you may connect raspberry pi with SSH. Also enable ssh from the Menu > Preferences > Raspberry Pi Configuration as shown in the figure below)

6

Raspbian Interface

7

Raspberry Pi Configuration

5. Once Raspberry Pi is connected, update Raspberry Pi by following command

piraspberrypi-_017

Update command in Terminal

6. Quectel Module support is to be added to the kernel, since Raspbian Jessie Kernel doesn’t support Quectel EC25/ UC20 modules.

6a. Install rpi-update

9

Installing rpi-update

6b. Update Raspberry Pi Kernel using following command

10

Running rpi-update

6c. Once updated Reboot the device

11

rebooting device

6d. Connect USB Cable to sheild from Raspberry Pi.

Use

and check if ttyUSB3 is available.

12

ls /dev

13

Looking for ttyUSB3

7. Now ppp-creator.sh script is to be downloaded.

14

Downloading ppp-creator.sh

*HOLOGRAM is the APN. As for example, APN for Boost Mobile is Boost_Mobile, for Verizon is  internet, for Virgin Mobile is Sprint etc. ttyUSB3 is the connection.

If you are using UART of Raspberry Pi 3 then use ttyS0 instead of ttyUSB3 or for other versions of Raspberry Pi use ttyAMA0.

15

change mode command

8. Disconnect Raspberry Pi from WiFi or Ethernet.

Type

or

Here & sign allows to run the command in background.

16

Connecting to Internet

The SIGNAL LED indicates the connectivity, HIGH indicates Network is connected.
(Open a browser and check a website)

17

Signal LED

9. Just to check the status of shield and ip, type

18

19

Checking IP and status

Leave a Reply

Your email address will not be published. Required fields are marked *