Design and Implementation of Magnetic Card Detection System Based on Embedded System
|School||East China University of Science and Technology|
|Course||Control Science and Engineering|
|Keywords||magnetic card detection system embedded system program design|
With the development of modern science and technology,the requirement of information processing speed and capacity is improving continually.The development and popularity of the magnetic card technology make it play an irreplaceable role in information storage, handling and transfer process.Now magnetic card has been widely used in banking, education, transportation and other fields.The development in the field of magnetic stripe card production and testing in our country is not smooth.Related technology is very dependent on foreign countries.There is no independent developed streamline magnetic card production and detection system.This paper studies the working principle and process of magnetic detection.The paper designs a magnetic card detection system based on embedded system design and development principle.The magnetic card detection system compares information on the surface of card with information in the magnetic stripe.Then the purpose of verifying the accuracy of card information will be achieved.This paper mainly focuses on the software design of the magnetic card detection system,and also briefly expounds the frame structure of the hardware circuit of detection system.The magnetic stripe reading program uses the decoding chip MRD531B-LQ to decode the electrical signal reading from magnetic head into binary signal.Write the reading program to convert the data stored in the memory to ASCⅡ,according to the magnetic stripe information encoding rules, and data storage format.The program design of image identification uses OpenCV function library for image processing.It will get the target image can be used for identification through the steps such as regional interception,image segmentation,denoising and binaryzation.This paper adopts a recognition method based on characteristic extraction.It extracts four characteristics of a number and classifies it according to the different characteristic values.The program design of communication board is accomplished on the development board SmartCortex M3-1700.The program is writen with the integrated development environment Keil4.The control program is based on embedded real-time operating system μC/OS-Ⅱ.It transplants μC/OS-Ⅱ to the development board,and use API of μC/OS-Ⅱ for program design.The desion of magnetic card detection system was accomplished in Shanghai institute of process automation instrumentation.The detection system has been run tests for a long time,under different environment.At present,the magnetic card detection system can ensure continuous detection of thousands of cards.Image information recognition rate can reach more than98%.It takes about12seconds from entering card to exiting card.The test result shows that the magnetic card detection system has the properties of high efficiency and good reliability.The performance achieves the expected design target and realize the initial target of design.