Im using an LoLIn ESP8266 nodemcu to read out my digital (electricity and gas) meter via
#define SERIAL_RX D7 // pin for SoftwareSerial RX
SoftwareSerial mySerial(SERIAL_RX, -1, true, MAXLINELENGTH); // (RX, TX. inverted, buffer)
But most of the readings ( 1 per second and software serial speed is 115200 ) always contain one or some mis readings. I only have 1 correct reading in about 10 to 30 readings ( luckly there is a CRC)
See example below :
should have been
( in human language : current consumptions is 003 amperes )
One compleet reading looks like this (I removed or modified some lines as these are id's ) :
===INVALID CRC FOUND!===
I know software serial isn't ideal for such high speeds, but as far as I untherstood I don't have an alternative here as the uart is used/connected by/to the USB chip ( and swapping to the uart data control lines didn't work for me)
Do you thing I'm running here to the limit of the software serial capacity ?
Or should there still be somewhere a solutions ?
Seems to me that timing isn't just correct or a bit off ?
PS : my sketch is a deriviate from
( Thanks Jan ! Bedankt Jan Ten Hove voor dit mooi stukje programeerwerk !)
Already thanks for all reactions and replys !