It is currently 20 Apr 2018 02:14

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: 30 Jan 2018 14:38 
Offline

Joined: 30 Jan 2018 11:39
Posts: 5
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:

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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: