Digital Logger PLDuino ESP8266

Dear all,

I purchased a Digital Logger PLDuino (Arduino megs 2560) based PLC with and integrated ESP8266. I spend hours and hours of testing but I can't get the serial communication to work between the ESP and the PLduino. In the documentation it says that the PLC uses Atmel 2 for communication. If I upload firmware to my ESP8266 with basic AT commands and I use the following code :

Serial2.begin(9600);
Serial2.println("AT");

I get a perfect "OK" back. So far so good. However, I don't want to use lua because I simply don't have the time and energy to learn yet another programming language. I'm pretty good with C# and sufficient with C and java, so I can make nice sketches for Arduino. However, the ESP talks Arduino (C) too , so I shouldn't have to learn something new. True, it may not be as stable as NodeMCU, but I'm willing to give it a try. So far I've tried setting this on the ESP8266 :

#include <SoftwareSerial.h>

const byte rxPin = 2;
const byte txPin = 3;

SoftwareSerial conn (rxPin, txPin);

//snippet

setup{

conn.begin(9600);
for(int i=0;i<10000;i++)
  {
    uart.println("XX");
    Serial.println("Sending : XX");
    delay(1000);
  }}

and on the arduino :

loop{
while (Serial2.available())
    {
      char ch = Serial2.read();
      if (ch == '\n') recv = String();
      else recv += ch;

      tft.print(recv);
    }}

That doesn't work. The other way around doesn't work either. (Arduino sending on Serial2 and ESP listening on ... something). It's that "something" that I would love to know. I'm able to listen on serial and programming via the jumper (J9) on board. J9 uses Serial.begin(115200) for connecivity to the PC.

Basically my question is : How do I have to program the Arduino firmware for ESP8266 in order to make it listen on Serial (or speak) to the PLduino Serial2. I hope someone can help.

Regards,

Hey...

On their Github repository there is software that demos talking to the ESP directly.

You don't need software serial at all.

It is a Mega based board. Serial ports are connected to :

touch display
USB port (Serial 0)
RS232 -> careful, not TTL
ESP...

I don't know by heart which one is which, but if you look at the repo, you will see examples in the Arduino that have "esp" in their name.

I know this is a late response, but better later than never.

ps: I just got this unit and it is really cool :slight_smile: My setup is RS 485, so I actually just ignore the existence of the ESP in it:)