"As software serial doesn't use dedicated hardware there are some compromises:
Baud rates significantly above 9600 baud are unlikely to be reliable
Sending more than one or two characters will block execution of other JavaScript code until completion (hardware serial ports have a ~100 byte transmit buffer)
Software serial reception will become increasingly unreliable the higher the CPU load."
In my application, I use soft serial (rx=D5, tx=D6). I get bursts of 60+ bytes (5x a second) from an external source. I find that anything beyond 2400 baud increases errors in the data received. What's the experience of others?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
From http://www.espruino.com/USART
"As software serial doesn't use dedicated hardware there are some compromises:
Baud rates significantly above 9600 baud are unlikely to be reliable
Sending more than one or two characters will block execution of other JavaScript code until completion (hardware serial ports have a ~100 byte transmit buffer)
Software serial reception will become increasingly unreliable the higher the CPU load."
In my application, I use soft serial (rx=D5, tx=D6). I get bursts of 60+ bytes (5x a second) from an external source. I find that anything beyond 2400 baud increases errors in the data received. What's the experience of others?
Using an Amica 8266 board.