mwh123
Posts: 1
Joined: Mon Oct 16, 2017 8:51 pm

How to configure GSM SIM800L in raspberry pi 3 without using serial

Mon Oct 16, 2017 8:59 pm

HOw to configure GSM SIM800L in raspberry pi 3 But not using Gpio Rx & Tx. Because I used Rx&Tx pin for Gps Neo6m in same time Kindly give me suggestion ....Thanks

User avatar
DougieLawson
Posts: 30188
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: How to configure GSM SIM800L in raspberry pi 3 without using serial

Tue Oct 17, 2017 6:19 pm

Connect an Arduino Nano using USB, you may need to run SoftwareSerial on the Arduino Nano.

In some cases you can run this blank sketch on the Arduino (using pin#2/pin#3)

Code: Select all

void setup() {
}

void loop() {
}
in other cases you'll need to run

Code: Select all

#include <SoftwareSerial.h>
#define BAUD 152000

SoftwareSerial SerialS(4,5);

void setup() {
  Serial.begin(BAUD);
  SerialS.begin(BAUD);
  Serial.write("Ready");
  delay(1000);
}

void loop() {
  if (SerialS.available()) {
    byte s1 = SerialS.read();
    Serial.write(s1);
  }
  if (Serial.available()) {
    byte s = Serial.read();
    SerialS.write(s);
  }
}
with the serial device connected to pin#4/pin#5 on the Arduino.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

Return to “Interfacing (DSI, CSI, I2C, etc.)”

Who is online

Users browsing this forum: No registered users and 20 guests