-->
Page 1 of 1

[ESP-12-E] Software Serial at low baud rate (1200bps)

PostPosted: Sat Jan 30, 2016 2:02 pm
by rclsilver
Hello,

For a project, i want to use a ESP-12-E to read each minute two serials port which send data at 1200 bps. To read thoses serials, i'm using SoftwareSerial library.

I'm using Arduino IDE 1.6.5 with ESP8266 "package" v2.0.0. In this package, SoftwareSerial cannot handle this rate. Then i modified the void SoftwareSerial::begin(long speed) method:

Before:
Code: Select all   if (m_bitTime < 5 || m_bitTime > 500) {


After:
Code: Select all   if (m_bitTime < 5 || m_bitTime > 900) {


Currently, my hardware is restarted with this error:
Code: Select allwdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld


To reproduce the problem, i've used an arduino nano which send data to serial at 1200 bps, with the following code: http://pastebin.com/EAm3MWbT

On my ESP-12-E, i'm using this code:
http://pastebin.com/jh3anB8m

I'm powering my arduino Nano with my ESP-12-E by connecting ESP(vin) to Nano(vin), ESP(gnd) to Nano(gnd).

Nano is sending data through serial by connecting ESP(D1) to Nano(TX).

Any idea about my problem?

Thank you for your help.

PS: i'm rclsilver on #esp8266 on freenode.