Ticket checking method, device and equipment based on distributed gate and medium

Through the distributed gate system and edge computing, the low efficiency and low security problems caused by the scenic spot gate's dependence on the central server are solved, and an efficient, stable and safe ticket verification process is achieved.

CN118692158APending Publication Date: 2024-09-24ZHEJIANG SHENDA INTELLIGENT TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410906479.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing scenic spot gates rely on central servers, resulting in low efficiency and low security. Especially during peak hours and when the network is unstable, it may cause ticket verification delays and security risks.

Method used

Using a distributed gate system, the central server synchronizes ticket purchase orders to the main gate. The main gate uses the edge computing module to conduct ticket verification and cooperates with the backup gate when necessary to implement a distributed architecture and edge computing model to reduce the cost Dependence on central server.

Benefits of technology

It improves ticket verification efficiency, reduces the burden on the central server, and enhances the stability and security of the system. It can continue to operate normally when the central server fails or the network is unstable, and prevents data leakage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118692158A
    Figure CN118692158A
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, and provides a ticket checking method, device and equipment based on a distributed gate machine and a medium, which can be applied to a distributed gate machine system comprising a central server, a main gate machine and a standby gate machine. And the order information of the ticket buying order is synchronized to the main gate machine by the central server, so that the main gate machine subsequently uses the built-in edge calculation module to execute ticket checking according to the order information. Therefore, the ticket checking efficiency can be effectively improved in combination with a distributed architecture and an edge computing mode, meanwhile, the burden of the central server is relieved, the strong dependency on the central server is effectively reduced, and the problems of low efficiency and low safety caused by the dependency on the central server are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a ticket checking method, device, equipment and medium based on a distributed gate machine. Background Art

[0002] At present, the gates of scenic spots usually need to rely on the central server. They need to communicate with the central server every time they check tickets, which not only causes a certain delay, but also during the peak ticket checking period with large flow of people, a large number of concurrent requests may cause the server load to increase, thereby increasing the verification time and affecting the speed of tourists' passage. In addition, due to the strong dependence on the central server, when the central server fails or the network connection is unstable, the gate may not work properly, resulting in tourists being unable to pass smoothly, affecting the operation efficiency of the scenic spot and the passenger experience.

[0003] Moreover, centralized servers are also a key target for hacker attacks. Once a central server is hacked, it may endanger the data security and operational stability of the entire system. Sensitive information including tourists’ personal information and transaction data may be leaked, causing certain security risks. Summary of the invention

[0004] In view of the above, it is necessary to provide a ticket verification method, device, equipment and medium based on distributed gate machines, aiming to solve the problems of low efficiency and low security caused by dependence on a central server.

[0005] A ticket verification method based on a distributed gate machine is applied to a distributed gate machine system, wherein the distributed gate machine system includes a central server, a main gate machine and a standby gate machine; the ticket verification method based on the distributed gate machine includes:

[0006] When the central server receives a ticket purchase order, the central server obtains the order information of the ticket purchase order and synchronizes the order information to the main gate machine;

[0007] When the main gate machine receives the ticket verification request, the main gate machine uses the built-in edge computing module to perform ticket verification according to the order information to obtain the ticket verification result;

[0008] When the ticket inspection result shows that the ticket inspection is passed, the main gate machine controls the corresponding gate machine door to open; or

[0009] When the ticket checking result shows that the ticket checking has not been passed, the main gate machine controls the corresponding gate machine door to not respond.

[0010] According to a preferred embodiment of the present invention, after synchronizing the order information to the main gate machine, the method further includes:

[0011] The main gate machine synchronizes the order information to the standby gate machine.

[0012] According to a preferred embodiment of the present invention, the method further comprises:

[0013] When the main gate machine receives the ticket analysis instruction, the main gate machine obtains all ticket data within a preset time period;

[0014] The main gate machine uses the edge computing module to perform statistical analysis on all the ticketing data to obtain the peak ticket sales period, the main ticket purchasing population, the main location of the ticket purchasing population, and the gate machine abnormal peak period;

[0015] The master gate machine generates a ticketing service strategy according to the peak ticketing period and the gate machine abnormal peak period;

[0016] The main gate generates an advertising strategy according to the main ticket purchasing group and the main location of the ticket purchasing group.

[0017] According to a preferred embodiment of the present invention, the applications in the distributed gate system are deployed based on containerization technology; the master gate communicates with each of the backup gates based on a self-organizing network and a lightweight communication protocol, each gate shares the first preset information, and each gate stores the second preset information in a local storage manner.

[0018] According to a preferred embodiment of the present invention, the method further comprises:

[0019] When the main gate machine is abnormal, the distributed gate machine system adopts a sentinel mechanism to select a gate machine from the standby gate machines to replace the main gate machine for service.

[0020] According to a preferred embodiment of the present invention, the method further comprises:

[0021] The distributed gate system counts passenger flow in real time;

[0022] When the passenger flow reaches a preset threshold, the distributed gate system expands the number of the main gates according to the passenger flow;

[0023] Among them, when the standby gate machine meets the expansion demand, the standby gate machine is used to expand the number of the main gate machine; when the standby gate machine does not meet the expansion demand, the main gate machine is expanded and deployed.

[0024] According to a preferred embodiment of the present invention, the method further comprises:

[0025] When it is detected that the data of the master gate is damaged, the distributed gate system determines the damaged data as data to be covered;

[0026] The distributed gate machine system obtains data corresponding to the data to be covered from the standby gate machine as update data;

[0027] The distributed gate machine system controls the standby gate machine to synchronize the updated data to the main gate machine, and uses the updated data to overwrite the data to be overwritten.

[0028] A ticket verification device based on a distributed gate machine runs in a distributed gate machine system, wherein the distributed gate machine system includes a central server, a main gate machine and a standby gate machine; the ticket verification device based on the distributed gate machine includes:

[0029] The central server is used to obtain the order information of the ticket purchase order when the central server receives the ticket purchase order, and synchronize the order information to the main gate machine;

[0030] The main gate machine is used to use the built-in edge computing module to perform ticket verification according to the order information to obtain the ticket verification result when the main gate machine receives the ticket verification request;

[0031] The master gate is further configured to control the corresponding gate door to open when the ticket verification result indicates that the ticket verification is passed; or

[0032] The main gate machine is also used to control the corresponding gate machine door to not respond when the ticket verification result shows that the ticket verification has not passed.

[0033] A computer device, comprising:

[0034] a memory storing at least one instruction; and

[0035] The processor executes the instructions stored in the memory to implement the ticket verification method based on the distributed gate machine.

[0036] A computer-readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor in a computer device to implement the ticket verification method based on a distributed gate.

[0037] It can be seen from the above technical scheme that the present invention can be applied to a distributed gate system including a central server, a main gate and a standby gate; the central server synchronizes the order information of the ticket purchase order to the main gate, so that the main gate can subsequently use the built-in edge computing module to perform ticket verification according to the order information. Since the main gate with a built-in high-performance embedded processor is used for ticket verification, the distributed architecture and edge computing mode can be combined to effectively improve the ticket verification efficiency, while reducing the burden on the central server and effectively reducing the strong dependence on the central server, thereby solving the problems of low efficiency and low security caused by dependence on the central server. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 It is a flow chart of a preferred embodiment of the ticket checking method based on distributed gate machines of the present invention.

[0039] Figure 2 It is a functional module diagram of a preferred embodiment of the ticket checking device based on a distributed gate machine of the present invention.

[0040] Figure 3 It is a structural diagram of a computer device of a preferred embodiment of the present invention to implement a ticket checking method based on a distributed gate machine. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0042] like Figure 1 FIG. 1 is a flow chart of a preferred embodiment of the ticket checking method based on a distributed gate machine of the present invention. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted.

[0043] The ticket verification method based on distributed gate machines is applied to one or more computer devices, which are devices that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and their hardware includes but is not limited to microprocessors, application specific integrated circuits (ASIC), programmable gate arrays (FPGA), digital processors (DSP), embedded devices, etc.

[0044] The computer device may be any electronic product that can perform human-computer interaction with a user, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), a game console, an interactive network television (IPTV), a smart wearable device, etc.

[0045] The computer device may also include a network device and / or a user device, wherein the network device includes, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud consisting of a large number of hosts or network servers based on cloud computing.

[0046] The server can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), as well as big data and artificial intelligence platforms.

[0047] Among them, Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0048] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0049] The network where the computer device is located includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), etc.

[0050] This embodiment is applied to a distributed gate system, which includes a central server, a main gate and a standby gate. The ticket verification method based on the distributed gate includes:

[0051] S10, when the central server receives a ticket purchase order, the central server obtains the order information of the ticket purchase order and synchronizes the order information to the main gate machine.

[0052] In this embodiment, the central server can be deployed locally or as a cloud server.

[0053] In this embodiment, the number of the main gate machine and the standby gate machine can be one or more, and can be specifically configured according to actual ticket inspection requirements.

[0054] In this embodiment, the distributed gate system can be deployed in areas where ticket inspection is required, such as scenic spots or cruise ships.

[0055] In this embodiment, the order information may include, but is not limited to: order time, identity information of the ordering user, etc.

[0056] In this embodiment, after synchronizing the order information to the main gate machine, the method further includes:

[0057] The main gate machine synchronizes the order information to the standby gate machine.

[0058] In the above embodiment, a data synchronization strategy is implemented to synchronize data between each gate and the central server when network conditions permit, so as to ensure information consistency.

[0059] In this embodiment, the applications in the distributed gate system are deployed based on containerization technology to facilitate management and updating, thereby improving the flexibility and maintainability of software deployment; the master gate communicates with each of the backup gates based on a self-organizing network and a lightweight communication protocol, each gate shares the first preset information, and each gate stores the second preset information locally.

[0060] Among them, through self-organizing network, gate machines can communicate directly with each other and share necessary information (such as blacklists, update instructions and other first preset information), and can work together without a central server.

[0061] Furthermore, in order to further improve security, only devices with access authorization may be allowed to access the ad hoc network to prevent illegal intrusion.

[0062] The lightweight communication protocol may be an MQTT (Message Queuing Telemetry Transport) protocol to optimize communication efficiency between gates and reduce bandwidth usage.

[0063] Among them, using local storage methods such as local databases or cache systems (such as Redis) to store commonly used data (such as ticketing policies, verification-free lists, prohibited entry lists, and other second preset information) can effectively reduce dependence on external data sources. Local cache can significantly reduce the number of requests to the central server, speed up data access, reduce response delays, and increase the speed at which gates process tourists, especially when there is a large passenger flow.

[0064] S11, when the main gate machine receives a ticket verification request, the main gate machine uses the built-in edge computing module to perform ticket verification according to the order information to obtain a ticket verification result.

[0065] Specifically, the main gate machine can use the built-in edge computing module to verify the purchase time of the ticket or boat ticket to ensure that the ticket meets the validity period. It can also verify whether the ticket belongs to the ticket of the corresponding scenic spot to ensure the validity of the ticket.

[0066] In the above embodiment, the use of edge computing for local ticket verification is more efficient and effectively reduces the dependence on the central server.

[0067] Among them, the edge computing module can also be integrated with an encryption module to ensure the security of data during transmission and storage. In the gate edge computing environment, security measures such as data encryption, access control and anti-tampering are implemented to efficiently implement high-level security protection on limited edge resources.

[0068] S12, when the ticket checking result shows that the ticket checking is passed, the main gate machine controls the corresponding gate machine door to open.

[0069] In this embodiment, when the gate is opened, the corresponding user is allowed to pass through the gate. In addition, the main gate can detect whether the visitor has passed through the gate through a gate grating, an optical coupler, etc.

[0070] S13, when the ticket checking result shows that the ticket checking has not been passed, the main gate machine controls the corresponding gate machine door to not respond.

[0071] In this embodiment, when the ticket verification result shows that the ticket verification has not been passed, the main gate machine controls the corresponding gate machine door not to respond, so as to avoid safety hazards caused by users using invalid tickets to pass through the gate machine.

[0072] In this embodiment, the method further includes:

[0073] When the main gate machine receives the ticket analysis instruction, the main gate machine obtains all ticket data within a preset time period;

[0074] The main gate machine uses the edge computing module to perform statistical analysis on all the ticketing data to obtain the peak ticket sales period, the main ticket purchasing population, the main location of the ticket purchasing population, and the gate machine abnormal peak period;

[0075] The master gate machine generates a ticketing service strategy according to the peak ticketing period and the gate machine abnormal peak period;

[0076] The main gate generates an advertising strategy according to the main ticket purchasing group and the main location of the ticket purchasing group.

[0077] The preset time period may be a period of history.

[0078] Among them, the ticket service strategy is generated according to the peak ticket sales period and the peak gate machine abnormality period. More main gate machines can be deployed for service during peak periods to reduce the service pressure of the main gate machines; more backup gate machines are provided during the peak gate machine abnormality period to switch between primary and backup when the main gate machine is abnormal, thereby reducing the impact caused by the gate machine abnormality and improving the stability of the service.

[0079] Among them, generating advertising strategies based on the main ticket-buying groups and the main locations of the ticket-buying groups can make more targeted recommendations and further increase customer flow.

[0080] Of course, more personalized services can be provided in the scenic area according to the main ticket-buying groups and the main places of origin of the ticket-buying groups to improve customer stickiness. For example, when there are more children, more amusement facilities suitable for children can be prepared; when there are more tourists from Guangdong, restaurants that conform to Guangdong's eating habits can be prepared.

[0081] In this embodiment, the method further includes:

[0082] When the main gate machine is abnormal, the distributed gate machine system adopts a sentinel mechanism to select a gate machine from the standby gate machines to replace the main gate machine for service.

[0083] Specifically, the sentinel mechanism can select a gate machine from the backup gate machine to replace the main gate machine for service through election. In this way, when the main gate machine fails or is offline, its tasks can be automatically assigned to other online gate machines, ensuring uninterrupted overall service.

[0084] In this embodiment, the method further includes:

[0085] The distributed gate system counts passenger flow in real time;

[0086] When the passenger flow reaches a preset threshold, the distributed gate system expands the number of the main gates according to the passenger flow;

[0087] Among them, when the standby gate machine meets the expansion requirements, the standby gate machine is used to expand the number of the main gate machines; when the standby gate machine does not meet the expansion requirements, the main gate machine is deployed for expansion. For example: when a main gate machine needs to be added for service according to the passenger flow, one of the standby gate machines is selected as the main gate machine to provide services; when three main gate machines need to be added, but there are only two standby gate machines, an additional gate machine needs to be deployed for service.

[0088] The preset threshold value may be specifically configured according to the scenic area capacity, the vessel capacity, or the gate performance.

[0089] In the traditional solution that relies on the central server, the expansion of the central server will greatly increase the operating costs, and as the business volume grows, the server may become the bottleneck of the system. Expanding server resources requires time and money, and has a certain upper limit, making it difficult to quickly adapt to large-scale or sudden passenger flow needs.

[0090] Different from the traditional solution that relies on a central server for expansion, this embodiment can realize dynamic allocation of resources based on a distributed architecture, intelligently dispatch gate service intensity according to real-time passenger flow, and improve overall throughput. In addition, the distributed system can be easily expanded horizontally according to actual needs. It only needs to add more gate nodes to cope with the increased business volume, which is more flexible and efficient without making major adjustments to the existing architecture.

[0091] In this embodiment, the method further includes:

[0092] When it is detected that the data of the master gate is damaged, the distributed gate system determines the damaged data as data to be covered;

[0093] The distributed gate machine system obtains data corresponding to the data to be covered from the standby gate machine as update data;

[0094] The distributed gate machine system controls the standby gate machine to synchronize the updated data to the main gate machine, and uses the updated data to overwrite the data to be overwritten.

[0095] In the above embodiment, the distributed architecture reduces the risk of single point failure by distributing the load to multiple gates. Even if some gates have problems, the system can continue to operate, ensuring the continuity and stability of the service. The distributed architecture and decentralized storage method can reduce the risk of data leakage. Even if a part of the data is attacked, it will not affect the overall situation.

[0096] This embodiment combines a distributed architecture and an edge computing mode. The edge computing module can integrate multiple functions such as data analysis, security verification, and decision-making. The distributed architecture achieves decentralization, high data availability, and efficient data sharing between gates through master-slave switching, gate expansion, etc., which can not only significantly improve the stability and processing efficiency of the gate system, but also enhance its ability to cope with complex scenarios, providing tourists with a smoother and safer passage experience.

[0097] It can be seen from the above technical scheme that the present invention can be applied to a distributed gate system including a central server, a main gate and a standby gate; the central server synchronizes the order information of the ticket purchase order to the main gate, so that the main gate can subsequently use the built-in edge computing module to perform ticket verification according to the order information. Since the main gate with a built-in high-performance embedded processor is used for ticket verification, the distributed architecture and edge computing mode can be combined to effectively improve the ticket verification efficiency, while reducing the burden on the central server and effectively reducing the strong dependence on the central server, thereby solving the problems of low efficiency and low security caused by dependence on the central server.

[0098] like Figure 2, which is a functional module diagram of a preferred embodiment of a ticket verification device based on a distributed gate machine of the present invention. The ticket verification device based on a distributed gate machine 11 includes a central server 110 and a main gate machine 111. The module / unit referred to in the present invention refers to a series of computer program segments that can be executed by a processor and can complete fixed functions, which are stored in a memory. In this embodiment, the functions of each module / unit will be described in detail in subsequent embodiments.

[0099] The ticket checking device 11 based on the distributed gate machine operates as follows Figure 1 The distributed gate system specifically includes:

[0100] The central server 110 is used to obtain order information of the ticket purchase order when the central server 110 receives the ticket purchase order, and synchronize the order information to the main gate machine 111;

[0101] The main gate machine 111 is used to use the built-in edge computing module to perform ticket verification according to the order information to obtain the ticket verification result when the main gate machine 111 receives the ticket verification request;

[0102] The main gate machine 111 is also used to control the corresponding gate machine door to open when the ticket inspection result shows that the ticket inspection is passed; or

[0103] The main gate machine 111 is also used to control the corresponding gate machine door to not respond when the ticket verification result shows that the ticket verification has not passed.

[0104] It can be seen from the above technical scheme that the present invention can be applied to a distributed gate system including a central server, a main gate and a standby gate; the central server synchronizes the order information of the ticket purchase order to the main gate, so that the main gate can subsequently use the built-in edge computing module to perform ticket verification according to the order information. Since the main gate with a built-in high-performance embedded processor is used for ticket verification, the distributed architecture and edge computing mode can be combined to effectively improve the ticket verification efficiency, while reducing the burden on the central server and effectively reducing the strong dependence on the central server, thereby solving the problems of low efficiency and low security caused by dependence on the central server.

[0105] like Figure 3 The figure is a schematic diagram of the structure of the computer equipment of the preferred embodiment of the ticket checking method based on the distributed gate machine of the present invention.

[0106] The computer device 1 may include a memory 12, a processor 13 and a bus, and may also include a computer program stored in the memory 12 and executable on the processor 13, such as a ticket checking program based on a distributed gate machine.

[0107] Those skilled in the art will appreciate that the schematic diagram is merely an example of the computer device 1 and does not constitute a limitation on the computer device 1. The computer device 1 may be a bus-type structure or a star-type structure. The computer device 1 may also include more or less other hardware or software than shown in the diagram, or a different arrangement of components. For example, the computer device 1 may also include input and output devices, network access devices, etc.

[0108] It should be noted that the computer device 1 is only an example, and other existing or future electronic products that are suitable for the present invention should also be included in the protection scope of the present invention and included here by reference.

[0109] The memory 12 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. The memory 12 may be an internal storage unit of the computer device 1 in some embodiments, such as a mobile hard disk of the computer device 1. The memory 12 may also be an external storage device of the computer device 1 in other embodiments, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the computer device 1. Further, the memory 12 may also include both an internal storage unit and an external storage device of the computer device 1. The memory 12 may not only be used to store application software and various types of data installed in the computer device 1, such as the code of the ticket verification program based on the distributed gate, but also be used to temporarily store data that has been output or is to be output.

[0110] In some embodiments, the processor 13 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 13 is the control core (Control Unit) of the computer device 1, and uses various interfaces and lines to connect the various components of the entire computer device 1, and executes or executes programs or modules stored in the memory 12 (for example, executing a ticket verification program based on a distributed gate machine, etc.), and calls the data stored in the memory 12 to execute various functions of the computer device 1 and process data.

[0111] The processor 13 executes the operating system of the computer device 1 and various installed applications. The processor 13 executes the applications to implement the steps in the above-mentioned various embodiments of the ticket verification method based on distributed gates, for example Figure 1 Steps shown.

[0112] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 12 and executed by the processor 13 to implement the present invention. The one or more modules / units may be a series of computer-readable instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the computer device 1. For example, the computer program may be divided into a central server 110 and a main gate machine 111.

[0113] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, and includes a number of instructions for enabling a computer device (which can be a personal computer, a computer device, or a network device, etc.) or a processor to execute the part of the ticket verification method based on the distributed gate described in each embodiment of the present invention.

[0114] If the module / unit integrated in the computer device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware devices through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of each of the above-mentioned method embodiments can be implemented.

[0115] The computer program includes computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory, etc.

[0116] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.

[0117] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0118] The bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 The bus is represented by only one straight line, but it does not mean that there is only one bus or one type of bus. The bus is configured to realize the connection and communication between the memory 12 and at least one processor 13, etc.

[0119] Although not shown, the computer device 1 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 13 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The computer device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0120] Furthermore, the computer device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used to establish a communication connection between the computer device 1 and other computer devices.

[0121] Optionally, the computer device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the computer device 1 and to display a visual user interface.

[0122] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0123] Figure 3 Only the computer device 1 having components 12-13 is shown, and it can be understood by those skilled in the art that Figure 3 The structure shown does not constitute a limitation on the computer device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0124] Combination Figure 1 , the memory 12 in the computer device 1 stores a plurality of instructions to implement a ticket checking method based on a distributed gate machine, and the processor 13 can execute the plurality of instructions to implement:

[0125] When the central server receives a ticket purchase order, the central server obtains the order information of the ticket purchase order and synchronizes the order information to the main gate machine;

[0126] When the main gate machine receives the ticket verification request, the main gate machine uses the built-in edge computing module to perform ticket verification according to the order information to obtain the ticket verification result;

[0127] When the ticket inspection result shows that the ticket inspection is passed, the main gate machine controls the corresponding gate machine door to open; or

[0128] When the ticket checking result shows that the ticket checking has not been passed, the main gate machine controls the corresponding gate machine door to not respond.

[0129] Specifically, the specific implementation method of the processor 13 for the above instructions can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.

[0130] It should be noted that the data involved in this case were all obtained legally.

[0131] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0132] The present invention can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present invention can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0133] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0134] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0135] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0136] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.

[0137] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the present invention can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

[0138] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A ticket checking method based on a distributed gate machine, characterized in that: Applied to a distributed gate machine system, the distributed gate machine system includes a central server, a main gate machine and a standby gate machine; The ticket verification method based on the distributed gate machine includes: When the central server receives a ticket purchase order, the central server obtains the order information of the ticket purchase order and synchronizes the order information to the main gate machine; When the main gate machine receives the ticket verification request, the main gate machine uses the built-in edge computing module to perform ticket verification according to the order information to obtain the ticket verification result; When the ticket inspection result shows that the ticket inspection is passed, the main gate machine controls the corresponding gate machine door to open; or When the ticket checking result shows that the ticket checking has not been passed, the main gate machine controls the corresponding gate machine door to not respond.

2. The ticket checking method based on a distributed gate machine as claimed in claim 1, characterized in that: After synchronizing the order information to the main gate machine, the method further includes: The main gate machine synchronizes the order information to the standby gate machine.

3. The ticket checking method based on a distributed gate machine as claimed in claim 1, characterized in that: The method further comprises: When the main gate machine receives the ticket analysis instruction, the main gate machine obtains all ticket data within a preset time period; The main gate machine uses the edge computing module to perform statistical analysis on all the ticketing data to obtain the peak ticket sales period, the main ticket purchasing population, the main location of the ticket purchasing population, and the gate machine abnormal peak period; The master gate machine generates a ticketing service strategy according to the peak ticketing period and the gate machine abnormal peak period; The main gate generates an advertising strategy according to the main ticket purchasing group and the main location of the ticket purchasing group.

4. The ticket checking method based on a distributed gate machine as claimed in claim 1, characterized in that: The applications in the distributed gate system are deployed based on containerization technology; the main gate communicates with each of the backup gates based on a self-organizing network and a lightweight communication protocol, each gate shares the first preset information, and each gate stores the second preset information in a local storage manner.

5. The ticket checking method based on a distributed gate machine as claimed in claim 1, characterized in that: The method further comprises: When the main gate machine is abnormal, the distributed gate machine system adopts a sentinel mechanism to select a gate machine from the standby gate machines to replace the main gate machine for service.

6. The ticket checking method based on a distributed gate machine as claimed in claim 1, characterized in that: The method further comprises: The distributed gate system counts passenger flow in real time; When the passenger flow reaches a preset threshold, the distributed gate system expands the number of the main gates according to the passenger flow; Among them, when the standby gate machine meets the expansion demand, the standby gate machine is used to expand the number of the main gate machine; when the standby gate machine does not meet the expansion demand, the main gate machine is expanded and deployed.

7. The ticket checking method based on a distributed gate machine as claimed in claim 1, characterized in that: The method further comprises: When it is detected that the data of the master gate is damaged, the distributed gate system determines the damaged data as data to be covered; The distributed gate machine system obtains data corresponding to the data to be covered from the standby gate machine as update data; The distributed gate machine system controls the standby gate machine to synchronize the updated data to the main gate machine, and uses the updated data to overwrite the data to be overwritten.

8. A ticket checking device based on a distributed gate, characterized in that: Running on a distributed gate machine system, the distributed gate machine system includes a central server, a main gate machine and a standby gate machine; The ticket checking device based on the distributed gate machine includes: The central server is used to obtain the order information of the ticket purchase order when the central server receives the ticket purchase order, and synchronize the order information to the main gate machine; The main gate machine is used to use the built-in edge computing module to perform ticket verification according to the order information to obtain the ticket verification result when the main gate machine receives the ticket verification request; The master gate is further configured to control the corresponding gate door to open when the ticket verification result indicates that the ticket verification is passed; or The main gate machine is also used to control the corresponding gate machine door to not respond when the ticket verification result shows that the ticket verification has not passed.

9. A computer device, characterized in that: The computer device comprises: a memory storing at least one instruction; and A processor executes instructions stored in the memory to implement the ticket verification method based on a distributed gate machine as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor in a computer device to implement the ticket verification method based on a distributed gate machine as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Embedded server operation state switching method and device

    CN106559235A

  • Automatic ticket selling / ticket checking method and system for public transit

    CN106780773A

  • Gate, ticket checking transaction method and device thereof, and storage medium

    CN112669471A

  • Scenic spot passenger's current drive system

    CN207376514U

  • Ticket checking device and ticket checking system

    CN207851901U