Design and Test of the Ticket Process Unit of Tianjin Subway Line2AFC System
- Author
- XingQingQuan
- Advisor
- SongMaoQiang
- School
- Beijing University of Posts and Telecommunications
- Major
- Software Engineering
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 59
- Citations
- 0
Abstract
Ticket process unit (TPU) is the core component of the automatic fare collection system (AFC), and has played an important role in the ticket issue, ticket check, recharge, update and other work. The speed and accuracy of ticket process will directly affect the operation of the whole system. TPU of Tianjin Subway Line2AFC system is designed base on "AFC technical standards of Tianjin subway", combined with the requirement of the system, using Microsoft Visual C++6.0as a development tool. After single test, system debugging and network test, TPU has been used in Tianjin Subway Line2.Through a successful example, we know the TPU’s basic function and feedback data, communication timing between TPU and station locale equipment (SLE), the key points and difficulties in software design. First, we analyse the current situation of TPU used in the operated subway, finding out significant of the software design. Secondly, using the object-oriented analysis method, we carry on the demand analysis and the technology selection for Tianjin Subway Line2’s AFC system. The TPU will be divided into several subsystems, each subsystem is a function of TPU. Summarizing all kinds of founctions in this paper, we find out the correlation between them. At last, we find out how to deal with the difficult problem in software realization after analysis, sum up the software design process and achievements, prospecting for the future development of TPU.Design and implementation of the software realize all important founctions of AFC system include ticket selling, ticket check, and recharge. The software make TPU work normaly after Tianjin subway line2is operating, enriching the work experience of developers in AFC field.
Table of contents
Summary 4-5
ABSTRACT 5-9
Chapter 1 Introduction 9-12
1.1 subject background 9 <br / > 1.2 topics task 9-10
1.2.1 subject content 9-10
1.2.2 I assume the task of 10
1.3 design 10
1.4 project management 10-11
1.5 thesis structure 11-12
Chapter II demand analysis 12-28
2.1 TPU ( ticket processing unit ) Description 12-13
2.2 functional analysis 13-20
2.2.1 ticketing 14
2.2 .2 recharge 14
2.2.3 replacement ticket 14-15
2.2.4 for votes 15-16
2.2.5 refund 16
2.2.6 activation 16-17
2.2.7 analysis 17-18
2.2.8 / out station 18
2.2.9 query 18-20
2.3 TPU and SC interactive communication 20-27
2.3.1 physical Layer 21
2.3.2 data Link Layer 21-26
2.3.3 application layer 26-27
2.4 Summary 27-28
third Chapter detailed design 28-67
3.1 class diagram modeling 28-29
3.1.1 Requirements Description 28
3.1.2 discovered class 28
3.1.3 class drawing 28-29
3.1.4 responsibilities analysis 29
3.2 data exchange 29-35
3.2.1 ticketing 29-30
3.2.2 recharge 30-31
3.2.3 replacement ticket 31-32
3.2. 4 -for-votes 32
3.2.5 refund 32-33
3.2.6 activation 33-34
3.2.7 analysis 34
3.2.8 / out station 34-35
3.2.9 query 35
3.3 control Command data Design 35-54
3.3.1 initialization TPU 36-37
3.3.2 reset TPU 37
3.3.3 stop TPU business 37
3.3. 4 termination TPU current action 37-38
3.3.5 set TPU clock 38
3.3.6 download TPU parameter 38-39
3.3. 7 download applications EXEC_Firmware 39
3.3.8 update applications EXEC_Firmware 39-40
3.3.9 reads TPU state 40
3.3. 10 reads TPU clock 40
3.3.11 reads TPU parameter version 40-41
3.3.12 reads TPU basics 41
3.3.13 find the card command 41
3.3.14 stop trading 41-42
3.3.15 outbound transactions 42-43
3.3 .16 Gets UD data 43
3.3.17 reader information 43-44
3.3.18 Vending trading 44-45
3.3. 19 replacement ticket transaction 45-46
3.3.20 recharge transaction 46-48
3.3.21 -owned retreat back card transactions 48-49
3.3 .22 a ticket through the MAC calculation 49
3.3.23 set TPU business model 49-50
3.3.24 inquiry fare information 50
3.3 .25 lock card transactions 50-51
3.3.26 Universal reader Interface (UL card ) 51-52
3.3.27 Universal reader Interface (M1 card ) 52
3.3.28 sign ( online ) 52-53
3.3.29 check-out ( online ) 53
3.3.30 clock-in/out ago information, access 53-54
3.4 feedback data design 54-66
3.4.1 TPU general results of the implementation of feedback data 54
3.4.2 TPU erroneous execution result of feedback data 54-55
3.4.3 TPU parameter file downloaded feedback data 55
3.4.4 TPU clock operation feedback data 55-56
3.4.5 TPU parameter version feedback data 56-57
3.4.6 TPU device information feedback data 57-58
3.4.7 TPU search results back card data 58
3.4.8 TPU ticket processing results feedback data ( including UD) 58-61
3.4.9 TPU ticket processing results feedback data ( excluding UD) 61-63
3.4.10 TPU pass a vote of MAC calculation feedback data 63
3.4.11 TPU card details read the feedback data 63-64 <br / > 3.4.12 TPU fare query results feedback data 64-65
3.4.13 universal card reader Interface (UL card ) Results feedback data structures 65
3.4.14 Universal card reader Interface (M1 card ) Results feedback data structures 65
3.4.15 clock-in/out get the results back before the information data 65-66
3.5 Summary 66-67
Chapter IV test 67-73
4.1 test time 67
4.2 test environment 67-68
4.2.1 hardware environment 67
4.2.2 software environment 67-68
4.3 test participants 68
4.4 device mode and ticket status 68-69
4.4.1 device mode 68
4.4.2 ticket status 68-69
4.5 testing process 69 -72
4.5.1 -way ticket validation test 69-70
4.5.2 Stored Value Ticket validation test 70-71
4.5.3 concurrent test 71-72
4.6 test results and analysis 72
4.6.1 test Results 72
4.6.2 failure Analysis 72 <br / > 4.7 summary 72-73
Chapter V Conclusion 73-75
5.1 thesis summary 73
5.2 problems and prospects 73-75
References 75-76
Appendix 76-77
Thanks 77
Related dissertations
- Studies on the Chinese Listing Corporation Assets Stripping Motivation and Timing
- The Study on Enterprises Refocusing Strategy Implementation
- The Profitability of Jump Combined with Momentum Strategy and Contrarian Strategy
- Design and implementation of the system of brake machine control system based on QT
- Study on Frequency Offset Estimation of In-train Repeaters for High-speed Railway
- Synchronization Network Design of a Communication Company Based on DWDM
- Visual Search Features and Neural Mechanism on Timing of Sport Scenatios in Epee Athletes
- Study on Sino Japanese conversation behavior according to the questionnaire
- The Clinical Study on the Relationship between the Predictors of Ovarian Reserve and Treatment Outcome of in Vitro Fertilization and Embryo Transfer
- Bus Rapid Transit Appearance Design Research
- Design and development of Nanjing subway automatic ticket vendor payment and change subsystem
- Research on Schedule Management of Ticket Vending Machine Renovation Project for G Metro
- Research on Virtual Digital Camera Based on Camera Link Interface
- Research on the Timing of Listed Companies’ Earnings Report Announcement Based on Limited Investor Attention
- The Assessment of Mining Rights Value of Galena in Hei Shan
- Study on Quantifying of the Selection of Funds
- Research on Market Reaction of Financial Restatement in Our Country’s Listed Companies
- Research and design of module of multi channel VXI bus timing based on trigger
- The Design and Research on a Timing Card Applied to Satellite Monitoring
- Fuzzy Modeling and Control for a Class of Nonlinear Systems