Avatar for IvanMaksimov

IvanMaksimov

Member since Jan 2017 • Last active Apr 2017
  • 0 conversations
  • 2 comments

Most recent activity

  • in ESP8266
    Avatar for IvanMaksimov

    Hi Rodri,

    My test code is as follows:

    #include
    SoftwareSerial mySerial(D8, D7); // RX, TX
    void setup() {
    Serial.begin(19200); //Скорость порта для связи Arduino с компьютером

    // SIM800 PWK pin is conected to D0
    pinMode(D0, OUTPUT);

    // switching on SIM800 by powering down PWK pin for a second
    digitalWrite(D0, LOW);
    delay(1000);
    digitalWrite(D0, HIGH);

    mySerial.begin(19200);
    mySerial.println("AT");

    mySerial.begin(19200);
    delay(5000);

    if(mySerial.available())
    Serial.write(mySerial.read());
    

    // setting some parameters
    mySerial.write("AT+CMGF=1\n\r"); // SMS output text mode

    if(mySerial.available())
    Serial.write(mySerial.read());
    

    mySerial.write("AT+CNMI=1,2,2,1,0\n\r");­ // Show SMS text in output

    if(mySerial.available())
    Serial.write(mySerial.read());
    

    mySerial.write("at+clip=1\n\r"); // Calling line presentation in output
    }

    void loop() {

    // code to play with AT commands from the terminal
    if (mySerial.available())

    Serial.write(mySerial.read());
    

    if (Serial.available())

    mySerial.write(Serial.read());
    

    }

  • in ESP8266
    Avatar for IvanMaksimov

    Hi tve,

    Did you try to connect sim800 over the software serial?

    Also if you are trying to send AT-commands to sim800 via the console you have to set NL + CR flags in the console settings.

    And are you sure that you have started sim800 correctly? Following the HW manual you should ground the PWK pin for 1 second to start the module. As for me I have two different sim800 boards. One has two leds: power led and network led. When you connect the sim800 board to a power source you see the power led is on and this may let you think that the board is really on but it is not so. When you ground the PWK as I stated above you'll also see the network led blinking which means that finally the board is really on. The second sim800 I have has only network led. The another one sim800 has only netowkr led but it is started in the similar way.

    Don't forget that sim800 consumes 2A 4.2v (or 5v depending on board model) during the Location Update procedure which means you have to use an external adapter for that. I used just 3-4 AA-batteries for test. The NodeMCU Base Shield is also not enough for such a power consumption as it can let only 1A current.

Actions