Font Size: a A A

Design And Implementation Of Two-dimensional Barcode Ticket System Based On Android

Posted on:2015-07-30Degree:MasterType:Thesis
Country:ChinaCandidate:Q ZhangFull Text:PDF
GTID:2308330464466574Subject:Computer technology
Abstract/Summary:PDF Full Text Request
Wisdom tourism is changing the way people travel. In order to meet the online-offline consumption patterns of wisdom tourism, using electronic ticket to replace paper ticket is already a trend. Currently electronic ticket is usually encoded by one-dimensional barcode or alphanumeric string. At the time of offline consumption, tourists also need to replace paper tickets, which makes the process of offline consumption tedious. To simplify the process of offline consumption and to make online and offline seamless, developing a ticket system which can identify electronic tickets automatically becomes very necessary.This paper analyzes the development situation of the "wisdom scenic area" and its application scenarios. Combined with the development of scenic electronic ticket system, this paper presents a solution of two-dimensional barcode ticket system based on Android. The system is a set of two-dimensional barcode electronic ticket check and automated tourists access control. The system is used to replace the existing mode of artificial checking ticket. The system consists of a two-dimensional barcode recognition device, the Android computation of control system, and the gate machine.In order to implement the design function of the ticket system, firstly this paper introduces the overall structure design of the ticket system and introduces the hardware of the ticket system and its working principle, then completes the entire ticket system hardware integration according to each part of the interface circuit. Secondly, this paper analyzes the relationship between Android system and Linux kernel, obtained a conclusion that the Android system inherits the Linux device driver model. Through the research of Linux device driver model, this paper gives the development method of Android driver, and completed the development of Android gate driver. Thirdly, this paper presents two ways of HAL and NDK based on the realization of Android master program to access the interface of the gates machine driver. Although the method based on HAL is more in line with the Android system architecture, but it was difficult to realize. The NDK development method is consistent with the system architecture of Android, but the implementation is more simple.The paper provides access to the gates machine driver for the Android master program through the Android NDK development, to make ticket gates actions be switched by the Android master program for the ticket system. Finally, this paper completes the design and development of Android master program,realizes two-dimensional code ticket format checking,two-dimensional code ticket validity verification and gate movement control.The Android master program is a logic processing center of the two-dimensional code ticket system, has the data interaction between it and each module, so this paper uses Android master program tests the ticket system.After the functional testing, the system can accurately identify the two-dimensional barcode electronic ticket check sent by the electronic ticket system, and can accurately verify the validity of electronic ticket, and can control the gate machine to change the status for electronic ticket validation results.
Keywords/Search Tags:wisdom tourism, Android, HAL, NDK, two-dimensional barcode ticket system
PDF Full Text Request
Related items