You are not logged in.

1

Tuesday, May 9th 2017, 3:57pm

First Start

Plug Raspberry Pi Board extension board on 40 Pin of Raspberry Pi. Now your Adapterboard will be powered by your Raspberry Pi and is connected via serial. You need no drivers, because Adapterboard is using standart tty drivers.

You have to switch GPIO20 from Raspberry Pi to high to power on Adapterboard. Easiest way, you do this is using Python Shell:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import RPi.GPIO as GPIO
import serial
import time


def SendATCommand(arg):
	port.write(arg)
	time.sleep(0.2)
	readbbytes = port.inWaiting()
	ATAnswer = port.read(readbbytes)
	print ATAnswer

GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
try:
	GPIO.setup(20,GPIO.OUT)
except:
	pass
GPIO.output(20, True)
time.sleep(8)
port = serial.Serial("/dev/ttyAMA0", baudrate=115200, timeout=0)

SendATCommand("AT\r")
SendATCommand("AT+CMEE=2\r")
SendATCommand("AT+CPIN?\r")
SendATCommand("AT\r")
SendATCommand("AT#GPIO=1,0,2\r")
SendATCommand("AT#SLED=2\r")
SendATCommand("AT#SLEDSAV\r")
print 'Script is complete'

We have added time.sleep(8), because module needs sometime to turn on, before you can send AT commands.
Script is attached for Download.

Please check your access rights for ttyAMA0, you can change like this:

Source code

1
2
3
pi@raspberrypi:~ $ cd /dev
pi@raspberrypi:/dev $ sudo chmod 666 ttyAMA0
pi@raspberrypi:/dev $ lsusb


It might be necessary that you will have to reconfigure your Bluetooth port at Raspberry Pi 3, as it is using ttyAMA0. Several Forums and online tutorials are available online to show how this is done.

You also have to check your serial support with dmesg command to find correct name of your serial port:


Source code

1
$ dmesg | grep tty

my ports for example are:
ttyAMA0
ttyS0
ttyUSB0
ttyUSB1
ttyUSB2
ttyUSB3
ttyUSB4

If you connect your Adapterboard also with an USB cale or swifel, you can use also ttyUSB3 as connection, which is recommended if you need faster connection for 4G or 3G modules.

Now you can send AT commands via Python shell like

Source code

1
SendATCommand("AT\r")


or you can estabilish a connection via putty or other terminal software, when you configure ports right.

AT commands reference Guide for Telit:
2G / GE910
3G / HE910
4G / LE910
Modules Software User Guide 2G-3G-4G_r19

Manual will follow soon. Please open a new thread for questions, so everyone can be supported and support!

Regards,

Hüseyin
Hüseyin has attached the following image:
  • Präsentation1.jpg
Hüseyin has attached the following files:

Rate this thread