Languages

Patch on AFSoftSerial: multi-buffers

Following a comment expressed in a post in the Arduino forum I wrote a patch on the source code of AFSoftSerial by Ladyada. This patch adds a distinct buffer for each serial input (instead of a static, shared buffer). It thus allows to have several inputs/outputs (rx/tx).

Attention:

  1. Each serial input allocates a new buffer of 64 bytes.
  2. The baudRate is static ie. shared among all channels
  3. There is max. one buffer per pin, so it is not recommended to declare several AFSoftSerial objects with the same receivePin

Patch and new files are attached to this file.

Following a comment expressed in a post in the Arduino forum I wrote a patch on the source code of AFSoftSerial by Ladyada. This patch adds a distinct buffer for each serial input (instead of a static, shared buffer). It thus allows to have several inputs/outputs (rx/tx).

how to set up a serial comm ?

Hello,
i need to communicate with a 1200 bauds, 7 datas bits , 1 parity (paire), 1 stop bit device
is it possible ?
Thanks

Interested...

Hi
Sorry for this stupido question but this could be just what i'm looking for...
how do i install your code? do i need to patch something and if so how?

ben

how to apply the patch

I'm not familiar with the process of applying patches to software. how would you do that? copy paste? include? no idea how this works.

New project

I created a project on Google code for this rework of SoftwareSerial:
http://code.google.com/p/softwareserial2/

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <h3> <h4> <h5> <h6>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Fill in the blank
By submitting this form, you accept the Mollom privacy policy.