I'm a begginer with the raspberry pi (I own version 3, running Jessie) and I try to comminucate with a LoRa module taking AT commands that we write on the USB serial port.
To do so, I've wrote a small script in python (v 2.7.9) using the pyserial library (v 3.2.1) :
Code: Select all
import serial
# Set up the connection to the dongle
dongle = serial.Serial(port="/dev/ttyUSB1",baudrate=38400,timeout=0,rtscts=0,xonxoff=0)
# get help
dongle.write('help')
# Close the connection
dongle.close()Also, I've tried to activate/desactivate the shell login from serial, it's not fixing the problem
Any idea on what I've possibly did wrong?
Thanks