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 disable
Solution 1:
, First , be sure to enable the Serial.
sudo raspi-config -> Interfacing Option -> Serial
Second , sudo nano /boot/cmdline.txt
Delete "console=serial,115200"
And Then sudo nano /boot/config.txt
Add the end
dtoverlay=pi3-disable-bt core_freq=250
While you use : Serial(/dev/ttyAMA0,9600)
Solution 2:
try sending:
import serial
port = "/dev/ttyS0"
comm = serial.Serial(port, baudrate=115200)
whileTrue:
comm.write('AT' + '\n\r')
msg = comm.readline()
print(msg)
Post a Comment for "Serial Communication In Raspberry Pi 3 B+"