2b

Sixfab GSM/GPRS Shield is using Quectel M66 GSM/GPRS module. It bears the optimal performance in SMS, Data transmission and audio service. Due to the small size(equal to size of raspberry pi zero) it is easily embeddable in any project like video streamer, establishing Internet connection, security systems, tracking system etc.

Features:
• It is a quad-band module(850/ 900/ 1800/ 1900MHz).
• Works on 3.3V ~ 4.6V(which is provided by the Raspberry Pi) No external power supply required.
• Operates at -35°C ~ +80°C.
• Supports Bluetooth BT 3.0 , Voice support
• Controlled via AT commands
• Autobauding 4800bps to 115200bps
• Maximum download speed 85.6kbps
• Uses UART ports or USB port (switchable port)

Now we will use this shield to create PPP (Point to protocol) internet connection. Elaborated steps are stated below.

 

So the shield comes a 2×20 pin female header.
Sixfab GSM/GPRS shield

Sixfab GSM/GPRS shield

1. The header is later soldered with the shield.

alttext

Soldered Header

2. Once soldered SIM is inserted.

Caption

Inserting SIM

3. Since the shield can be used either with UART or USB. It is needed to be selected with the switch available on the the shield. We select Pi here.

caption

USB<>Pi Switch

4. Now it is connected to Raspberry Pi 3 Model B.

Caption

Shield with Raspberry Pi 3 model B

5. 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)

Raspbian interface

Raspbian interface

Rasberry Pi Configuration

Raspberry Pi Configuration

6. Once Raspberry Pi is connected, run following command in order to update Raspberry Pi.

raspberry pi

Update command in Terminal

 

7. Now the getty service needs to be stopped on Raspbian. Getty manages a terminal line and it protects the system from unauthorized access. By default GPIO14 and GPIO15 of Raspberry Pi are active as console. So it need to be disabled as serial console is not being used. Moreover the service of serial console is to be deleted from cmdline.txt. Run the following commands (terminal is connected to /dev/ttyS0 in this case)

As in previous versions Raspberry Pi terminal is connected to /dev/AMA0, following commands should be used instead.

piraspberrypi

Stopping getty

 

8. Now console has to be removed from the cmdline.txt. This can be done by running following command

and removing ”console=serial0, 115200” or ”console=ttyAMA0, 115200” for Raspberry Pi other than version 3. Exit editor saving the changes.

piraspberrypi-_015

Removing “console = serial0, 115200”

 

Now Raspberry Pi is rebooted.
9. UART is enabled by adding ”enable_uart=1” at the end of text which is obtained by following command

piraspberrypi-_020

Adding “enable_uart=1”

 

10. In this step minicom will be installed, which is a serial communication program.

command will install the minicom to the Raspberry Pi.

piraspberrypi-_022

installing minicom

 

11. The settings will be configured now by

piraspberrypi-_023

Opening minicom

 

piraspberrypi-_001

minicom settings

 

12. Serial port setup is selected

piraspberrypi-_002

Selecting Serial port setup

This brings up following screen

piraspberrypi-_003

Serial Port setup Screen

 

13. Following changes are to be made

Serial Device: /dev/ttyS0 and Hardware Flow Control: No

piraspberrypi-_004

Changing Settings

 

14. The setup is saved as default

piraspberrypi-_005

Saving the changes

This will open minicom screen.

piraspberrypi-_006

minicom screen

 

15. In order to check either it working or not type ‘AT’ and enter. If it responds with ‘OK’ then its working properly.

For exiting this press CRTL-A Z then follow instructions

piraspberrypi-_007

minicom screen

piraspberrypi-_008

minicom screen

 

piraspberrypi-_009

minicom screen

 

selection_027

Indicating Power Up Button

 

16. Now before moving to next step POWER UP the shield with the press button available on the shield. Then blue led of State will blink which indicates successfully powered up of the shield.

The shield can also be Powered Up by making GPIO 25 HIGH for 2 seconds and then LOW, as GPIO 25 is connected to POWER KEY of the shield.

Pin assignment of the shield is provided below.

pinouts-1

Pin Assignment of shield

17. This step includes the connection tutorial

Here ppp-creator.sh is to be downloaded. Installation is done with following commands:

In the last command HOLOGRAM is the APN of the network operator. ‘ttyAMA0’ will be used instead of tty0 in case of other versions of Raspberry Pi.

 

18. Now the shield is ready to connect to internet. Disconnect Raspberry Pi from WiFi or Ethernet.
Type

or

Here & sign is used to run the command in background.
(Open a browser and check a website)

piraspberrypi-_012

Connecting to Internet

 

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

piraspberrypi-_013

Checking IP and status

 

9 thoughts on “[UPDATED] Tutorial 2 | Make a PPP internet connection with Sixfab GPRS Shield on Raspberry Pi”

  1. Is there any way to have the shield automatically power on without having to press the power button?
    I’ve an idea to use this in a remote unit to establish a PDP Context automatically, but that won’t work if the power has to be manually enabled every time the Pi has to restart.

      1. Thanks – I’ll try that.
        Thanks also for the updated Tutorial – it helps a lot 🙂
        Any chance you might be able to update the GPS one in the future please?

      1. Metin, Thanks for the reply. I read the answer you reply to Lloyd and I got my answer at the same time. My problem is that my PIR sensor is installed on GPIO25 🙂 bad luck! So I cannot use it with Turta HAT absolutely… Can you share the detailed pin assignment of the GSM/GPRS shield?

Leave a Reply

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