19200bd with Softwareserial ?

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
sil
Posts: 22
Joined: 09 Oct 2018 12:35

19200bd with Softwareserial ?

Post by sil »

Hi,

I need 2 UARTs but no one is lower than 19200bd. Is there any hope to get 19200bd with Softwareserial ?

Thanks
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: 19200bd with Softwareserial ?

Post by PoltoS »

I think, yes. You can try it with a PC on the other side.
sil
Posts: 22
Joined: 09 Oct 2018 12:35

Re: 19200bd with Softwareserial ?

Post by sil »

Tx at 19200 is working fine. But strangely Rx at this speed is not working or my sketch is not correct ?

Code: Select all

#include "SoftwareSerial.h"

SoftwareSerial swserial(11, 12);      // duplex mode on pins 11 and 12

void setup() {
    swserial.begin(19200);
  Serial.begin();   
}

void loop() {
    while(swserial.available())
    {
        char c = swserial.read();
        Serial.print(c);
    }
}
Thanks
Post Reply