New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serial1.availableforwrite returns 0 #1
Comments
Hi @jayang727 , I cannot find Can you please tell me which line(s) in which file you are referring to? Best wishes, |
Hi Paul,
Apologies for the confusion. I was actually modifying the firmware to
include some outgoing communication protocol to send commands to the
external sensor.
I was discovering that whenever I used Serial1.write while the logger was
receiving data, the received/logged data was incomplete. I was suspecting
the write() was maybe blocking. I added Serial1.availableforwrite to
monitor the available tx buffer at the end of setup() and during loop() to
the original firmware, which doesn't have any outgoing data serial1, and
discovered that the available tx buffer was always 0.
Perhaps this is not the right venue to ask about the tx buffer for OLA? Or
perhaps I'm misunderstanding availableforwrite?
Baud rate:230k
Data: ~60bytes at 25hz
Thank you so much for your help.
Hj
…On Sun, Jul 2, 2023, 00:20 Paul ***@***.***> wrote:
Hi @jayang727 <https://github.com/jayang727> ,
I cannot find Serial1.availableforwrite anywhere in the code. Did you
mean Serial1.available() ? Unless this is something to do with the Print
class ?
Can you please tell me which line(s) in which file you are referring to?
Best wishes,
Paul
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BA7QK263ZM7SNAMWQR3XSDLXOEOKDANCNFSM6AAAAAAZ3GXE2I>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi Hj (@jayang727 ), With version 2 of the Apollo3 core, it looks like But it was implemented correctly in version 1 of the core: Please ask your question again in the Artemis forum: https://forum.sparkfun.com/viewforum.php?f=172 Best wishes, |
I discovered that Serial1.availableforwrite always returns 0. I suspect this is causing blocking and interrupting thread1 and 2 from properly receiving and saving.
Is this normal for OLA or do I need to change some config to set up a non-zero buffer to Tx?
Thank you.
The text was updated successfully, but these errors were encountered: