Serial Communication in Raspberry pi 3 B+
问题 I want to communicate between Raspberry pi 3 B+ and GSM GPRS A6. I tried and I am unable to send data to GPRS Module from Raspberry pi. Now, I know that GPIO serial port is disabled by default in newer Operating Systems (in my case Raspbian Stretch), so I have enabled it by adding following line in config.txt file, enable_uart=1 Here's my Code: import serial import time port = "/dev/ttyS0" COMM = serial.Serial(port, baudrate=115200) while(1): COMM.write("AT\r") print (COMM.read(5)) This