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

fixed buffering and added baud rate option #2

Closed
wants to merge 1 commit into from

Conversation

zcsahok
Copy link
Contributor

@zcsahok zcsahok commented Feb 2, 2018

Fixed limited UDP read length and buffering of text while sending.

Switched to select-based timeout for UDP receive. This allows fine granular control and the timeout is set to 50 ms, which gives a maximum keyer data rate ~20 cps.
As 24 wpm is ~2 cps this is high enough not to cause buffer underflow and at the same time low enough to be able to react on "buffer 2/3 full" signal (round trip time is ~20 ms as it takes 10 ms to transfer a char @ 1200 Baud).

In/decrease speed in 2 wpm steps, conforming to cwdaemon.

Added baud rate setting. Could be needed for non original keyers.

Added use strict and using Data::Dumper to display datagram in debug mode.

Selecting printable chars was changed to regexp. It is easier to read than raw ASCII codes.

Added pot value reporting in debug mode. All status bits are evaluated and reported.

Also updated the man page. (still needs fixes, e.g. reset is not supported)

Tested with K3NG keyer.

edit: this PR fixes #1

@N0NB
Copy link
Owner

N0NB commented Feb 3, 2018

I made an amendment to the patch to add the change to the daemon file. I've pushed the new code. Thanks!

@N0NB N0NB closed this Feb 3, 2018
@zcsahok zcsahok deleted the fix_buffering branch January 26, 2020 20:58
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

Successfully merging this pull request may close these issues.

Buffering issues
2 participants