Smart Card Cache Data Accuracy via Dummy File Writing
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In data transmission systems where smart cards are integrated with memory storage devices, host systems often struggle to accurately read response messages due to the presence of old data in cache memory, leading to incorrect or incomplete responses.
Innovation Solution
A response reading method that involves transmitting a first operation command sequence and executing writing operations using dummy files to update data in the cache memory, ensuring that old data is cleared and accurate responses from the smart card can be read.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If the host system uses cache memory to store data for faster access, then access speed is improved, but old data remains in the cache causing response reading errors
Solution Approach 1:
The system performs a preliminary cache clearing operation by writing dummy data to dummy files before reading the smart card response. This preliminary action ensures that old data is removed from cache memory before the actual response reading operation, preventing response reading errors while maintaining cache functionality for speed.
2Reliability
If the system executes writing operations to clear cache memory, then response reading accuracy is improved, but system operation time increases
Solution Approach 1:
The cache clearing writing operation is merged with the existing file operation workflow. The system combines the cache clearing purpose with the normal file access operations already present in the system, so that a single operation achieves both cache maintenance and data access functions, minimizing additional time overhead.
3Speed
If the host system directly reads data from cache memory, then reading speed is improved, but old response data is read instead of new response data
Solution Approach 1:
The system implements a feedback mechanism where it first attempts to read the response from cache, detects if the data is stale or incorrect, and then triggers a cache refresh operation. This feedback loop allows the system to maintain fast cache-based reading while ensuring data accuracy through automatic correction when needed.
Data Source
AI summary
A response reading method and a data transmission system are provided. The method includes, transmitting a first operation command sequence corresponding to a first temporary file to a memory storage device by a system, where the first operation command sequence instructs a smart card to execute a first operation. The method also includes, executing a first writing operation of a first dummy file to update first data in a cache memory. The method further includes, executing a response reading operation corresponding to a second temporary file by the system to read a response of the smart card corresponding to the first operation command sequence.


