Moteino Mega and ESP8266

Started by cformigal, August 25, 2015, 07:08:45 AM

cformigal

Hi,

I have a Moteino Mega connected to a ESP8266 WiFi module. The Serial 0 ( 8 and 9 pins) is used to download the sketches and Serial 1 ( 10 and 11 pins) is used to connect the Moteino Mega to the ESP8266 module.

What happens is that I can't place the Software Serial sketch to allow to receive on Serial 0 the receiving data on Serial 1.

The ESP8266 module is working perfectly.

Is there any issue with the Software Serial library / sketch and the Motion Mega ?

Regards,

Carlos


TomWS

Quote from: cformigal on August 25, 2015, 07:08:45 AM
Hi,

I have a Moteino Mega connected to a ESP8266 WiFi module. The Serial 0 ( 8 and 9 pins) is used to download the sketches and Serial 1 ( 10 and 11 pins) is used to connect the Moteino Mega to the ESP8266 module.

What happens is that I can't place the Software Serial sketch to allow to receive on Serial 0 the receiving data on Serial 1.

The ESP8266 module is working perfectly.

Is there any issue with the Software Serial library / sketch and the Motion Mega ?

Regards,

Carlos
I don't understand why you are trying to use the Software Serial sketch on this setup.  The Mega supports Hardware Serial on both ports.  Serial and Serial1 are the objects to use.

Tom

cformigal

Hi Tom,

Thanks a lot for you reply and recommendations.

The Software Serial is very handy to sniff data that comes from the second serial port. I'm trying to have a single FTDI ( USB to Serial ) to download sketches, to debug through serial.print commands and to receive and transmit data from the second serial.

Thanks once more.

Regards,

Carlos


gregcope

I am afraid, if I recall correctly, Software Serial does not work on the Atmega1284p of the Moteino Mega.

Use the hardware ones!