-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Special problems manifested themselves in conjunction with the circular service 11150, when calling piTelex as recipient of circulars: 1. Previously, piTelex gobbled up all data sent via i-Telex as fast as it could, and fed it to the teleprinter driver module, which manages the printing process. All read characters were instantly reported as "printed" in Acknowledge packets, which lead remotes to believe they could continue sending this quickly. Typically, the i-Telex connection was long closed when the printer module had emptied its buffer. The adverse side-effect, in particular with 11150, was that the final WRU exchange didn't work because the teleprinter had not printed even half of the data sent (with 80 chars/s or 600 Bd). The remote timed out on the WRU answer and reported the connection as failed. 2. Also, the first datum sent by 11150 is a WRU request. The current version sends it as soon as an Acknowledge with content 0 is received (meaning printer is running and all data has been printed, matching the spec), or a Heartbeat is received (contrary to the spec). Because piTelex sends Heartbeats early in the connection, the probability was high that remote sends the WRU whilst the welcome banner is still being printed, garbling the output. Fix 1 by introducing ESC-~ printer buffer feedback, which serves two purposes: - Printer start feedback -- printer startup is signalled by sending the first ESC-~ - Printer buffer feedback: ESC-~ has as "payload" the current printer buffer length. The legacy printer start feedback (ESC-AC/ACK/ACT) isn't needed any more and thus removed. Attention: This patch only contains the feedback provisions for txDevED1000SC. Fix 2 by disabling Heartbeats for now. Also, record number of printed characters per session in txDevED1000SC to aid in debugging. The overhead is minimal.
- Loading branch information
1 parent
c37f1c8
commit 3157cc9
Showing
6 changed files
with
346 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.