GSM3 Click without Libstock libraries

Post your reviews about the boards you have got.
Post Reply
Author
Message
robbannn
Posts: 5
Joined: 30 Jan 2018 11:39

GSM3 Click without Libstock libraries

#1 Post by robbannn » 30 Jan 2018 14:38

Im wondering how I would go ahead and program the GSM3 Click on my Raspberry Pi 3 (RPi) without using the libraries in Libstock. I would prefer using Node.js or Python.
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?

Post Reply

Return to “Review”