Skip to content
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

Detect fifo buffer underrun #73

Closed
TheNetStriker opened this issue Mar 21, 2016 · 4 comments
Closed

Detect fifo buffer underrun #73

TheNetStriker opened this issue Mar 21, 2016 · 4 comments

Comments

@TheNetStriker
Copy link

Is it possible to detect fifo buffer overflows with this library?

The reason why I'am asking is because of the changes in this issue: #36

I suspect that my OpenHAB server is loosing some ZWave events because of this. Is there a way to check how often the serial port buffer did overflow?

@madhephaestus
Copy link
Member

The buffers are dynamic and should only "overflow" if your computer runs out of ram. I have pushed a steady 1Mbaud for days and days without any overflow on a ras pi. I would suggest using VisualVM to analyze your application's memory management because it sounds more like leaky memory than some buffer drop. If you are losing bytes in the serial stream, look at your physical layer and microcontroller code.

@TheNetStriker
Copy link
Author

There should be more than enough free ram on my BeagleBone Black, but it seams to make a difference if I use the new or the old version of nrjavaserial. (Some of the ZWave values ar not loading with the new version) I will also discuss this in the OpenHAB forum after some more testing.

@TheNetStriker
Copy link
Author

I forgot to ask, did you test this with the latest 3.12.0 version? (The issue was merged after 3.11.0 was released)

@madhephaestus
Copy link
Member

stale closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants