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 » 12 Feb 2019 17:23

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: 4536
Joined: 26 Jan 2011 19:36

Re: 19200bd with Softwareserial ?

Post by PoltoS » 14 Feb 2019 23:01

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 » 16 Feb 2019 18:18

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