Code: 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() But when I execute it, nothing is happening, for now I'm just trying to write something on the serial port, even if it's gargage. Also I've noticed that on minicom or putty, I can read data from the USB module (It send a start message at each reset) but I can't write to it. 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? Code: import serial dongle = serial.Serial(port='/dev/ttyUSB1',baudrate=38400,timeout=0,rtscts=0,xonxoff=0) dongle.write('help') response = dongle.readline() dongle.close() print response() this works for my sim800 device to detect if its switched on but i write AT which should return OK if its on but returns AT instead, im unsure if it yeilds the response or just the input that was wrote. Also i have to call this multiple times on first boot to get a response. Perhaps you may need to use PIPE or something as such.

Maybe dongle.readlines() to see more than 1 line Display posts from previous: Sort.

Python Serial Vs Pyserial

I'm new to Python. According to the internets I was looking for the module pyserial after receiving this error: ImportError: No module named serial I first tried to install pywin32, it went well. Ramblin jeffrey lee rarden.