I have made a small script for testing the communication between the RPi and the GSM3 Click:
Code: Select all
import time
import serial
ser = serial.Serial(
port = '/dev/serial0',
baudrate = 9600, # I have also tried 115200
timeout = 1
)
print str(ser.isOpen()) # Prints 'True'
ser.write('AT' + '\r\n')
time.sleep(1)
response = ser.read(2) # Returns empty string, expected "OK"
print response
Can anyone point me in the right direction?