fixed buffering and added baud rate option #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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