Serial Interface Protocol Switching for Wait-State-Free Data Transfer
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing asynchronous, serial interfaces suffer from low throughput due to synchronization wait states between communicating devices, leading to inefficiencies and potential data loss.
Innovation Solution
Implementing a method that switches between text-based and binary receiving/sending protocol modes using a binary header and length indication in request messages, allowing devices to operate in full duplex mode without wait states.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If flow control mechanisms are used to manage data transmission, then data loss is prevented, but wait states increase and throughput decreases
Solution Approach 1:
The receiver performs preliminary actions by pre-allocating buffer memory and proactively sending ready notifications to the transmitter before data arrives. This allows the transmitter to send data immediately without waiting for confirmation, eliminating wait states while maintaining reliable data transfer through pre-prepared reception buffers.
Solution Approach 2:
The system maintains continuous data transmission by allowing the transmitter to send multiple data packets back-to-back without interruption. The receiver continuously processes incoming data in binary mode and can send ready notifications asynchronously, ensuring the transmission channel remains active and productive without unnecessary pauses or wait states.
2Reliability
If synchronization confirmation is implemented between sender and receiver, then data accuracy is improved, but transmission speed decreases
Solution Approach 1:
The receiver prepares reception buffers in advance and sends ready notifications before data arrives, allowing the transmitter to send data immediately without waiting for synchronization confirmation. This preliminary preparation maintains data accuracy while eliminating transmission delays.
Solution Approach 2:
The system introduces an intermediary ready notification mechanism that decouples the synchronization requirement from the data transmission flow. Instead of requiring direct acknowledgment for each data packet, the ready notification acts as an intermediary signal that enables continuous transmission while maintaining coordination between sender and receiver.
3Ease of operation
If text-based protocol mode is used for data exchange, then ease of debugging is improved, but throughput is reduced due to protocol overhead
Solution Approach 1:
The protocol is segmented into two distinct modes: text-based mode for control and debugging, and binary mode for data transmission. The system automatically switches between modes based on the operation phase, allowing text-based protocols to be used only when necessary for debugging while binary protocol handles bulk data transfer to maximize throughput.
Solution Approach 2:
The system periodically switches between text-based and binary protocol modes based on operational requirements. Text-based mode is used intermittently for control and debugging, while binary mode is used continuously for data transmission, creating a periodic pattern that balances debuggability with throughput optimization.
Data Source
Figure 1
Figure 2
Figure 3
AI summary
In one embodiment a method for transmitting data via a serial, asynchronous interface comprises the steps of operating (S10) a device in a text-based receiving protocol mode, receiving (S12), by the device while operating in the text-based receiving protocol mode, via the interface, a request message (Rq) comprising a binary header component and a length indication, entering (S13), by the device, into a binary receiving protocol mode upon receipt of the request message, receiving (S14), by the device while operating in the binary receiving protocol mode, an amount of binary data (D), the amount being specified by the length indication of the request message, exiting (S15), by the device, the binary receiving protocol mode.