BluePill Software Serial Library

Post here first, or if you can't find a relevant section!
Post Reply
gproduct
Posts: 5
Joined: Wed Jan 03, 2018 8:08 am

BluePill Software Serial Library

Post by gproduct » Fri Feb 02, 2018 4:01 am

Hi!

Has anyone found a good Software Serial library for the STM32 on Arduino? (I'm using a Bluepill)

Cheers!

User avatar
zoomx
Posts: 567
Joined: Mon Apr 27, 2015 2:28 pm
Location: Mt.Etna, Italy

Re: BluePill Software Serial Library

Post by zoomx » Fri Feb 02, 2018 7:45 am

BluePill has 3 hardware serial but there is also this software serial
viewtopic.php?t=864
and this
viewtopic.php?t=6

gproduct
Posts: 5
Joined: Wed Jan 03, 2018 8:08 am

Re: BluePill Software Serial Library

Post by gproduct » Fri Feb 02, 2018 8:51 am

Thannks a lot!

asmallri
Posts: 20
Joined: Fri Oct 06, 2017 12:37 am

Re: BluePill Software Serial Library

Post by asmallri » Tue Feb 06, 2018 2:32 am

If you skip to the last post of each referenced link you will see that currently neither method works

User avatar
Rick Kimball
Posts: 1077
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: BluePill Software Serial Library

Post by Rick Kimball » Tue Feb 06, 2018 3:21 am

The code I tested (viewtopic.php?f=13&t=6&start=40#p21156") works just fine. The key is not trying to handle read data as quickly as it becomes available so that the buffers don't overflow and the interrupts aren't blocked.

You (asmallri) are using delays while you are reading, I'm guessing this is a problem. You might try making your logic less dependent on delay() type code and make it more event driven.
-rick

Post Reply