Hi Joep,

On 03/31/12 02:52 pm, Rob Hamerling wrote:

So in all possible situations transmission can be considered as
successful, and 'serial_send_success' can in fact be removed!

I've removed this flag on a local copy of the library and it works well. I tested it with a PIC-program which echoes every received character 10 times to make sure that the transmit buffer in the PIC is filled up when a bunch of characters is received.
- When I have serial-overflow-discard = FALSE I loose nothing
- When I have serial-overflow-discard = TRUE I loose characters,
  which proofs that serial-hw-write does not retry (anymore)
- When I disable CTS flow control in the PC program I loose
  characters too. This proofs that also the receive buffer
  becomes full: the PIC cannot keep up with the receive side
  because it has to transmit 10 times as many characters as
  it receives.
I think this version is again somewhat better than the previous....

Regards, Rob.


--
R. Hamerling, Netherlands --- http://www.robh.nl

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to