CN115862208A - Service processing method, equipment and storage medium for rail transit gate software - Google Patents

Service processing method, equipment and storage medium for rail transit gate software Download PDF

Info

Publication number
CN115862208A
CN115862208A CN202211523400.1A CN202211523400A CN115862208A CN 115862208 A CN115862208 A CN 115862208A CN 202211523400 A CN202211523400 A CN 202211523400A CN 115862208 A CN115862208 A CN 115862208A
Authority
CN
China
Prior art keywords
processing method
business
service
service processing
gate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211523400.1A
Other languages
Chinese (zh)
Inventor
张健生
李志超
刘伟航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Grg Intelligent Technology Solution Co ltd
GRG Banking Equipment Co Ltd
Original Assignee
Grg Intelligent Technology Solution Co ltd
GRG Banking Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Grg Intelligent Technology Solution Co ltd, GRG Banking Equipment Co Ltd filed Critical Grg Intelligent Technology Solution Co ltd
Priority to CN202211523400.1A priority Critical patent/CN115862208A/en
Publication of CN115862208A publication Critical patent/CN115862208A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Devices For Checking Fares Or Tickets At Control Points (AREA)

Abstract

The invention discloses a service processing method, equipment and a storage medium of rail transit gate software. The service processing method of the rail transit gate software in the embodiment of the invention comprises the following steps: dividing a plurality of independent business processes according to different ticket business, wherein each business process is communicated with a master control process; acquiring a newly added ticket card service operation; and adding an independent service process according to the newly added ticket card service operation, wherein the newly added service process is communicated with the master control process. According to the business processing method of the gate software, a plurality of independent business processes are divided according to different ticket card businesses, each business process is not affected by each other, when the operation of the newly added ticket card business is obtained, a corresponding business process is added according to the newly added ticket card business, the existing business process does not need to be modified, the probability of abnormal exit of the software is reduced, and the normal use of the gate is ensured.

Description

Service processing method, equipment and storage medium for rail transit gate software
Technical Field
The invention relates to the technical field of rail transit gate control, in particular to a service processing method of rail transit gate software, rail transit gate equipment and a storage medium with a computer program stored therein.
Background
In the rail transit industry, when a ticket card type is added, the existing gate software needs to modify the existing business logic to support the new ticket card type. In the process of modifying the existing service software, the software may exit abnormally due to the influence of the newly added service, thereby causing the channel gate to stop the service.
Disclosure of Invention
The embodiment of the invention provides a service processing method of rail transit gate software, rail transit gate equipment and a storage medium with a computer program stored therein.
The service processing method of the rail transit gate software in the embodiment of the invention comprises the following steps:
dividing a plurality of independent business processes according to different ticket business, wherein each business process is communicated with a master control process;
acquiring a newly added ticket card service operation;
and adding an independent service process according to the operation of the newly added ticket card service, wherein the newly added service process is communicated with the master control process.
According to the business processing method of the gate software, a plurality of independent business processes are divided according to different ticket card businesses, each business process is not affected by each other, when the operation of the newly added ticket card business is obtained, a corresponding business process is added according to the newly added ticket card business, the existing business process does not need to be modified, the probability of abnormal exit of the software is reduced, and the normal use of the gate is ensured.
In some embodiments, the service processing method further includes:
and realizing the decoupling among a plurality of business processes through a message queue.
In some embodiments, the service processing method includes:
calling a monitoring process to monitor the service process;
when an abnormal process occurs in a plurality of business processes, the monitoring process supervises the abnormal process and automatically restarts the abnormal process;
and after the abnormal process is restarted, the monitoring process delivers the monitored data to the business process after the abnormal process is restarted.
In some embodiments, the service processing method includes:
and after the related business processing of the business process is completed, the business process generates persistent data.
In some embodiments, the service processing method includes:
calling a network detection process to detect whether the network fails;
when the network fails, the gate software is switched to an offline mode;
when the network is restored, the gate software restores the networking mode.
In some embodiments, the service processing method includes:
when the transaction data file is damaged, the gate software analyzes the damaged transaction data to obtain a unique transaction data identifier;
and matching in a transaction data log by using the unique identifier so as to recover the damaged transaction data file.
In some embodiments, the service processing method includes:
when a hardware module fails, the gate software automatically switches to a corresponding degradation mode according to the failure condition of the hardware module;
and the gate software automatically checks the hardware module and performs fault removal on the hardware module.
In some embodiments, the service processing method includes:
the gate software controls the hardware module to turn on the power supply and the screen in the operation period and turn off the power supply and the screen in the non-operation period.
The rail transit gate equipment of the embodiment of the invention is used for an urban rail transit system, and comprises: memory, a processor and a computer program stored in the memory, which when executed by the processor implements the steps of the method of any of the above embodiments.
A computer-readable storage medium of an embodiment of the present invention stores thereon a computer program, which when executed by a processor implements the steps of the method of any one of the above-described embodiments.
The gate device and the computer readable storage medium divide a plurality of independent service processes through different ticket card services to realize the safety isolation among the service processes, and when the ticket card type is newly added for support, the service logic of the existing software is not required to be modified, so that the availability of the existing services can be ensured; the decoupling among a plurality of business processes is realized through the message queue, the abnormal process is supervised and restarted through the monitoring process, the influence range of the business is narrowed under the condition that part of ticket card business fails, the normal operation of other business processes is ensured, and the integral availability of the gate software is improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 to 5 are schematic flow charts of a business processing method of gate software according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an independent process mode of a business processing method of gate software according to an embodiment of the present invention;
FIG. 7 is a schematic view of the interaction between processes of the business processing method of the gate software according to the embodiment of the present invention;
FIG. 8 is a table of a degraded mode transition comparison of a business processing method of gate software according to an embodiment of the present invention;
fig. 9 is a block schematic diagram of a rail transit gate apparatus of an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", and the like, indicate orientations and positional relationships based on those shown in the drawings, and are used only for convenience of description and simplicity of description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered as limiting the present invention. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
The disclosure herein provides many different embodiments or examples for implementing different features of the invention. In order to simplify the disclosure of the present invention, the components and arrangements of specific examples are described herein. Of course, they are merely examples and are not intended to limit the present invention. Moreover, the present invention may repeat reference numerals and/or reference letters in the various examples, which have been repeated for purposes of simplicity and clarity and do not in themselves dictate a relationship between the various embodiments and/or configurations discussed. In addition, the present invention provides examples of various specific processes and materials, but one of ordinary skill in the art will recognize the application of other processes and/or the use of other materials.
Referring to fig. 1 and fig. 6, a service processing method of rail transit gate software according to an embodiment of the present invention includes:
step S101, dividing a plurality of independent business processes according to different ticket business, wherein each business process is communicated with a master control process;
step S103, acquiring a newly added ticket business operation;
and step S105, adding an independent service process according to the operation of the newly added ticket card service, wherein the newly added service process is communicated with the master control process.
According to the business processing method of the gate software, a plurality of independent business processes are divided according to different ticket business, each business process is not affected mutually, when the operation of the newly added ticket business is obtained, a corresponding business process is added according to the newly added ticket business, the existing business process is not required to be modified, the probability of abnormal exit of the software is reduced, and the normal use of the gate is ensured.
Specifically, a plurality of service processes are divided according to different ticket card services and software logic processing services, each ticket card type is divided into independent service processes, when a ticket card service is added, the existing service logic does not need to be changed, one service process is directly added, and the processing of the newly added ticket card service is realized. And realizing the safety isolation among all service processes by applying a multi-process architecture.
In some embodiments, the service processing method further includes:
and the decoupling among a plurality of business processes is realized through the message queue. Thus, the influence among the business processes can be reduced.
Specifically, a message queue is used for realizing decoupling among a plurality of business processes, each business process is responsible for all business logic control in the business, a message interface among the business processes is designed according to the requirements of high cohesion and low coupling, the message is written and acquired through the message queue, message transmission among all the business processes is minimized, and when the business process for controlling one ticket card business is abnormal, other business processes are not influenced.
In one example, as shown in fig. 6 and 7, the gate software is used for subway station operation, and the service processes are divided into a master control service process, a unionpay ticket service process, a face service process, a bus code service process and the like according to different ticket card services and software logic processing services, and the service processes perform communication between the service processes by writing and acquiring messages by using a message queue. When a passenger uses a union pay card to enter and exit a subway station at a gate, a reader-writer on the gate successfully searches the card, a union pay card reading interface is called to read information, a union pay SDK interface is called to check the validity of the union pay card, the information is written into a message queue, a main control process acquires the message and carries out related operation of the business, an interface process acquires the message, and if a ticket is valid, the interface prompts ticket information; if the ticket is invalid, the interface prompts the invalid ticket and guides the passenger to the customer service center for processing.
In some embodiments, referring to fig. 2, a service processing method includes:
step S109, calling a monitoring process to monitor a service process;
step S111, when an abnormal process occurs in a plurality of business processes, the monitoring process supervises the abnormal process and automatically restarts the abnormal process;
and step S113, after the abnormal process is restarted, the monitoring process delivers the monitored data to the business process after the abnormal process is restarted. Therefore, the failure of a certain ticket card service caused by the abnormality of a certain service process can be avoided.
Specifically, when one process is abnormal, the monitoring process monitors the state data and the core transaction data of the abnormal process and automatically restarts the abnormal process, and after the abnormal process is restarted, the monitored state data and the core transaction data are continuously handed to the process for processing.
In some embodiments, the service processing method includes:
after the relevant business processing of the business process is completed, the business process generates persistent data. Therefore, the integrity and the accuracy of the transaction data in the transmission process can be ensured.
Specifically, when the ticket card is processed by the gate, in order to ensure the integrity of transaction data, persistent data is generated in the independent process when the processing of the related business of the ticket card is completed, so that the problems of loss, tampering and the like of the transaction data in the transmission process are avoided.
In some embodiments, referring to fig. 3, a service processing method includes:
step S117, invoking a network detection process to detect whether the network is faulty;
step S119, when the network fails, the gate software is switched to an offline mode;
and step S121, when the network is recovered, the gate software recovers the networking mode. In this way, part of the functions can be kept in normal operation under the condition that the gate machine has a network fault.
Specifically, under the condition of network disconnection, the gate software controls the gate to be switched into an offline function, and when the network is recovered, the gate software can automatically recover the related functions of the networking service according to the network condition.
In some embodiments, referring to fig. 4, the service processing method includes:
step S123, when the transaction data file is damaged, the gate software analyzes the damaged transaction data to obtain a unique transaction data identifier;
step S125, the transaction data log is matched with the unique identifier to recover the damaged transaction data file. Therefore, the gate software can recover the damaged transaction data file and ensure the integrity of the transaction data.
Specifically, when the transaction data file is damaged, the gate software analyzes the file name of the damaged transaction data to obtain the unique ID of the transaction data, and the damaged transaction data file is automatically recovered according to the unique ID of the transaction data matched in the transaction data log, so that the condition that the core transaction data is not damaged or lost is ensured.
In some embodiments, referring to fig. 5, the service processing method includes:
step S127, when the hardware module has a fault, the gate software automatically switches to a corresponding degradation mode according to the fault condition of the hardware module;
and step S129, the gate software automatically checks the hardware module and eliminates the fault of the module. Therefore, normal operation of partial functions can be guaranteed when partial hardware modules of the gate break down.
Specifically, when a part of hardware modules of the gate fail, the gate software can be switched to a corresponding degradation mode according to the failure condition of the hardware modules, so that part of service functions of the gate can run normally. In one example, the gate software is used for subway station operation, the subway station gate has three ticket processing services, namely a stored value card processing service, a bus code processing service and a one-way ticket processing service, a stored value card service process, a bus code service process and a one-way ticket service process are respectively set in the gate software, and hardware modules related to the processing of the three services are a reader-writer, a bus code scanning device and a recycling mechanism. The two antennas of the outbound reader-writer respectively read the stored value card information and the one-way ticket information, the riding code scanning device processes riding code services, and the recovery mechanism is used for recovering the one-way ticket. Setting a gate at an exit of a subway, wherein when a gate exit reader-writer fails, a value card service and a one-way ticket service are unavailable, and when the gate software detects the failure, converting the gate into a mode of only processing a riding code; when the outbound riding code scanning device fails, the gate is switched to a mode of temporarily not processing the riding code, and a specific degradation mode is switched as shown in fig. 8.
In some embodiments, the service processing method includes:
and the gate software controls the hardware module to turn on the power supply and the screen in the operation period and turn off the power supply and the screen in the non-operation period. Therefore, the standby time of the hardware module can be reduced, and the service life of the hardware module is prolonged.
Specifically, in one example, the gate software is used for subway station operation, and the gate software can acquire information of the operation time of the subway station by analyzing gate operation parameters of the subway station, so that the software automatically turns off a power supply and a screen of a hardware module in a time period when the operation is finished, the standby time of the hardware module is shortened, the service life of the hardware module is prolonged, and after the operation is started, the software automatically powers on and initializes the hardware module, automatically enters a normal service mode, and provides services for passengers.
In summary, the business processing method of the gate software divides the software business processes according to the ticket card processing business, so as to realize the safety isolation among the businesses of different ticket card types, when the ticket card business is newly added, only one business process needs to be newly added without modifying the original business logic, thereby reducing the problems of abnormal exit of the software and the like caused by improper processing of the new ticket card type business, and simultaneously realizing the decoupling among the business processes by using the message queue and reducing the influence among the business processes. The abnormal process is monitored and restarted by monitoring the process, the operation of the gate can be ensured under the condition of abnormal process, when partial hardware modules of the gate break down, the mode conversion of the gate software is carried out, the maximum availability is fully considered, and the gate software can provide service for passengers to the maximum extent under the condition that individual ticket card processing service is abnormal.
Referring to fig. 9, in a rail transit gate device 100 according to an embodiment of the present invention, the rail transit gate device 100 is used in an urban rail transit system, and includes: a memory 10, a processor 12 and a computer program stored in the memory 10, wherein the computer program when executed by the processor 12 implements the steps of the service processing method according to any of the above embodiments.
The embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by the processor 12, implements the steps of the service processing method of any of the above embodiments.
For example, the service processing method for implementing the gate software when the computer program is executed by the processor 12 includes:
step S101, dividing a plurality of independent business processes according to different ticket business, wherein each business process is communicated with a master control process;
step S103, acquiring a newly added ticket business operation;
and step S105, adding an independent service process according to the operation of the newly added ticket card service, wherein the newly added service process is communicated with the master control process.
The gate device and the computer readable storage medium divide a plurality of independent service processes through different ticket card services to realize the safety isolation among the service processes, and when the ticket card type is newly added for support, the service logic of the existing software is not required to be modified, so that the availability of the existing services can be ensured; the decoupling among a plurality of business processes is realized through the message queue, the monitoring process is used for monitoring and restarting the abnormal process, the influence range of the business is narrowed under the condition that part of ticket card business fails, the normal operation of other business processes is ensured, and the integral availability of the gate software is improved.
In the description of the present specification, reference to the description of "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples" or "some examples", etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made in the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A service processing method of rail transit gate software is characterized by comprising the following steps:
dividing a plurality of independent business processes according to different ticket business, wherein each business process is communicated with a master control process;
acquiring a newly added ticket card service operation;
and adding an independent service process according to the newly added ticket card service operation, wherein the newly added service process is communicated with the master control process.
2. The service processing method according to claim 1, wherein the service processing method further comprises:
and realizing the decoupling among a plurality of business processes through a message queue.
3. The service processing method according to claim 1, wherein the service processing method comprises:
calling a monitoring process to monitor the service process;
when an abnormal process occurs in a plurality of business processes, the monitoring process supervises the abnormal process and automatically restarts the abnormal process;
and after the abnormal process is restarted, the monitoring process delivers the monitored data to the business process after the abnormal process is restarted.
4. The service processing method according to claim 1, wherein the service processing method comprises:
and after the related business processing of the business process is completed, the business process generates persistent data.
5. The service processing method according to claim 1, wherein the service processing method comprises:
calling a network detection process to detect whether the network fails;
when the network fails, the gate software is switched to an offline mode;
when the network is restored, the gate software resumes networking mode.
6. The service processing method according to claim 1, wherein the service processing method comprises:
when the transaction data file is damaged, the gate software analyzes the damaged transaction data to obtain a unique transaction data identifier;
and matching in a transaction data log by using the unique identifier so as to recover the damaged transaction data file.
7. The service processing method according to claim 1, wherein the service processing method comprises:
when the hardware module fails, the gate software automatically switches to a corresponding degradation mode according to the failure condition of the hardware module;
and the gate software automatically checks the hardware module and performs fault removal on the hardware module.
8. The service processing method according to claim 1, wherein the service processing method comprises:
the gate software controls the hardware module to turn on the power supply and the screen in the operation period and turn off the power supply and the screen in the non-operation period.
9. A rail transit gate apparatus for an urban rail transit system, the rail transit gate apparatus comprising: memory, processor and computer program stored in said memory, which when executed by said processor implements the steps of the business process method of any one of claims 1 to 8.
10. A storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of the traffic processing method of any of claims 1 to 8.
CN202211523400.1A 2022-11-30 2022-11-30 Service processing method, equipment and storage medium for rail transit gate software Pending CN115862208A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211523400.1A CN115862208A (en) 2022-11-30 2022-11-30 Service processing method, equipment and storage medium for rail transit gate software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211523400.1A CN115862208A (en) 2022-11-30 2022-11-30 Service processing method, equipment and storage medium for rail transit gate software

Publications (1)

Publication Number Publication Date
CN115862208A true CN115862208A (en) 2023-03-28

Family

ID=85668496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211523400.1A Pending CN115862208A (en) 2022-11-30 2022-11-30 Service processing method, equipment and storage medium for rail transit gate software

Country Status (1)

Country Link
CN (1) CN115862208A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010108282A (en) * 2008-10-30 2010-05-13 Toshiba Corp Station service system
US8181867B1 (en) * 2009-01-06 2012-05-22 Sprint Communications Company L.P. Transit card credit authorization
CN107040425A (en) * 2017-06-02 2017-08-11 广东汇泰龙科技有限公司 A kind of automatic identification network environment is locked with the method for switching working mode and intelligent cloud
CN111784851A (en) * 2020-06-08 2020-10-16 上海申通地铁集团有限公司 General software system of ticket selling and checking machine
CN112799795A (en) * 2019-11-14 2021-05-14 阿里巴巴集团控股有限公司 Service implementation method, process management method, device, equipment and storage medium
CN113986594A (en) * 2021-10-28 2022-01-28 西安热工研究院有限公司 Method, system, storage medium and server for real-time database fault recovery
US20220051250A1 (en) * 2020-08-12 2022-02-17 Capital One Services, Llc Systems and methods for chip-based identity verification and transaction authentication

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010108282A (en) * 2008-10-30 2010-05-13 Toshiba Corp Station service system
US8181867B1 (en) * 2009-01-06 2012-05-22 Sprint Communications Company L.P. Transit card credit authorization
CN107040425A (en) * 2017-06-02 2017-08-11 广东汇泰龙科技有限公司 A kind of automatic identification network environment is locked with the method for switching working mode and intelligent cloud
CN112799795A (en) * 2019-11-14 2021-05-14 阿里巴巴集团控股有限公司 Service implementation method, process management method, device, equipment and storage medium
CN111784851A (en) * 2020-06-08 2020-10-16 上海申通地铁集团有限公司 General software system of ticket selling and checking machine
US20220051250A1 (en) * 2020-08-12 2022-02-17 Capital One Services, Llc Systems and methods for chip-based identity verification and transaction authentication
CN113986594A (en) * 2021-10-28 2022-01-28 西安热工研究院有限公司 Method, system, storage medium and server for real-time database fault recovery

Similar Documents

Publication Publication Date Title
KR101298558B1 (en) Method and system for switching main/standby boards
JP7508703B2 (en) Method for managing ECU in vehicle, ECU and readable storage medium
CN109525434B (en) Redundancy backup method based on onboard equipment board card
CN104401365A (en) Realization method of ATO (automatic train operation) hot standby and ATO hot standby
CN102026042A (en) Keep-alive and self-healing method and device for advanced telecom computing architecture control surface
CN115862208A (en) Service processing method, equipment and storage medium for rail transit gate software
CN113147776A (en) Hot backup fault processing system and method for vehicle and vehicle adopting hot backup fault processing system
CN117435405A (en) Dual hot standby and failover system and method
CN100514911C (en) Configuration of distributive telecommunication system
CN111698136B (en) Data transmission method and data transmission system of high-reliability PLC
CN113794595A (en) IoT (Internet of things) equipment high-availability method based on industrial Internet
CN113162735A (en) Enhanced signal control system and method based on general server
CN115416721A (en) Method and device for processing faults of vehicle-mounted controller with head-tail redundancy structure
CN104702422A (en) Method, device and system for realizing high availability of communication equipment
JPH09274575A (en) Integrated system managing system
KR950010490B1 (en) Double-using method for the control system of an electronic exchanger
CN114750774B (en) Safety monitoring method and automobile
CN110278106B (en) Method for high availability of long-distance double-living network of Oracle database
JPH06197112A (en) Management system
CN111901709B (en) Optical fiber communication network system with multiple network control backups
CN217689799U (en) Controller and dual-rack redundancy control system
JP2008083896A (en) Method for identifying source of abnormality, system operation method, base station control system operation method, and processing system
CN111190632B (en) Method and device for realizing server BMC dual-activity
JP2010055509A (en) System, method, and program for fault recovery, and cluster system
CN112929120A (en) Method, device and computer-readable storage medium for time synchronization

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination