Gate control method and device, electronic equipment and computer readable storage medium
By centrally managing the opening requests of multiple turnstiles through the control terminal and determining whether there are any unsettled historical records for the turnstile tickets, the problem of traditional turnstiles being unable to globally prevent the duplication and reuse of turnstile tickets is solved, thus achieving the effect of globally preventing the reuse of turnstile tickets.
Patent Information
- Application Number
- CN202211392828.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-08
- Publication Date
- 2026-01-23
- Estimated Expiration
- 2042-11-08
AI Technical Summary
Traditional turnstiles cannot effectively prevent the reuse of tickets for internet payment methods at different turnstiles, making it impossible to prevent ticket theft and leakage from all areas.
The system obtains opening requests from multiple turnstiles through the control terminal, determines whether there are any unsettled historical opening requests for the ticket, and decides whether to send an opening command based on the current and historical opening requests to prevent the same ticket from being reused on different turnstiles.
It achieves global anti-duplicate measures for gate tickets using the internet payment model, effectively preventing ticket theft and reducing the probability of illegal repeated entry and exit.
Smart Images

Figure CN115798061B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of machine control, in particular to a gate control method and device, electronic equipment and computer readable storage medium. BACKGROUND
[0002] With the rapid development of rail transit technology, the automatic ticket checking mode of using the Internet payment mode such as two-dimensional code or biological (face, fingerprint or palm print) identification code to pass through the gate machine is widely used. In the traditional technology, the gate machine checks the in-out gate rules of the passenger to prevent the passenger from repeatedly entering or exiting the gate.
[0003] However, the traditional technology can only prevent repeated entry and exit at the same gate machine using the same gate ticket, and cannot avoid the problem of repeated entry and exit at different gate machines using the same gate ticket, so it can only achieve local anti-repetition and cannot achieve global anti-repetition. SUMMARY
[0004] Therefore, the present disclosure provides a gate control method and device, electronic equipment and computer readable storage medium to solve the problem of being unable to achieve global anti-repetition.
[0005] In a first aspect, a gate control method is provided, applied to a control end for controlling a plurality of gate machines. The method comprises: in response to a current gate opening request for a target gate machine, determining whether a gate ticket initiating the current gate opening request corresponds to an unsettled historical gate opening request, the target gate machine being one of the plurality of gate machines, and the gate ticket being an Internet payment mode gate ticket; in a case where it is determined that the gate ticket corresponds to an unsettled historical gate opening request, obtaining at least one unsettled historical gate opening request corresponding to the gate ticket; and determining whether to send an opening instruction to the target gate machine based on the current gate opening request and the at least one historical gate opening request, so that the target gate machine opens the gate for a user of the gate ticket to pass through.
[0006] In a second aspect, a gate control method is provided, applied to one of the gate machines controlled by a control end, the control end controlling a plurality of gate machines. The method comprises: in response to a gate ticket verification operation received by a target gate machine, generating a current gate opening request for the target gate machine; and sending the current gate opening request to the control end, so that in response to the current gate opening request for the target gate machine, it is determined whether a gate ticket initiating the current gate opening request corresponds to an unsettled historical gate opening request, the target gate machine being one of the plurality of gate machines, and the gate ticket being an Internet payment mode gate ticket; in a case where it is determined that the gate ticket corresponds to an unsettled historical gate opening request, obtaining at least one unsettled historical gate opening request corresponding to the gate ticket; and determining whether to send an opening instruction to the target gate machine based on the current gate opening request and the at least one historical gate opening request, so that the target gate machine opens the gate for a user of the gate ticket to pass through.
[0007] In a third aspect, a gate control device is provided, which is applied to a control end for controlling a plurality of gates. The device comprises: a first determination module configured to determine whether a gate ticket initiating a current gate opening request corresponds to an unsettled historical gate opening request in response to the current gate opening request for a target gate, the target gate being one of the plurality of gates, and the gate ticket being an Internet payment mode gate ticket; an acquisition module configured to acquire at least one unsettled historical gate opening request corresponding to the gate ticket in a case where the gate ticket corresponds to the unsettled historical gate opening request; and a second determination module configured to determine whether to send a gate opening instruction to the target gate based on the current gate opening request and the at least one historical gate opening request, so that the target gate opens the gate for a user of the gate ticket.
[0008] In a fourth aspect, a gate control device is provided, which is applied to one of gates controlled by a control end, the control end controlling a plurality of gates. The device comprises: a generation module configured to generate a current gate opening request for a target gate in response to a gate ticket verification operation received by the target gate; and a sending module configured to send the current gate opening request to the control end, so that, in response to the current gate opening request for the target gate, it is determined whether a gate ticket initiating the current gate opening request corresponds to an unsettled historical gate opening request, the target gate being one of the plurality of gates, and the gate ticket being an Internet payment mode gate ticket; at least one unsettled historical gate opening request corresponding to the gate ticket is acquired in a case where the gate ticket corresponds to the unsettled historical gate opening request; and it is determined whether to send a gate opening instruction to the target gate based on the current gate opening request and the at least one historical gate opening request, so that the target gate opens the gate for a user of the gate ticket.
[0009] In a fifth aspect, an electronic device is provided, which comprises a processor and a memory for storing computer executable instructions, the processor being configured to execute the computer executable instructions to implement the method mentioned in the first aspect or the second aspect.
[0010] In a sixth aspect, a computer readable storage medium is provided, which stores instructions, the instructions being executable to implement the method mentioned in the first aspect or the second aspect.
[0011] In a seventh aspect, a computer program product is provided, which comprises instructions, the instructions being executable to implement the method mentioned in the first aspect or the second aspect.
[0012] Since the control end can obtain the opening gate request of all the gate machines under control, after responding to the current opening gate request for the target gate machine, the control end can determine whether different users repeatedly enter and exit the gate with the same gate ticket based on the at least one unsettled historical opening gate request corresponding to the gate ticket and the current opening gate request in the case that the gate ticket corresponding to the gate ticket has an unsettled historical opening gate request. Compared with the prior art, the present disclosure can effectively prevent the ticket stealing and ticket leakage behavior of different users entering and exiting the gate from different gate machines in the way of copying the gate ticket of the Internet payment mode, thereby achieving the purpose of global anti-repetition. BRIEF DESCRIPTION OF DRAWINGS
[0013] Figure 1 Fig. 1 shows a system architecture schematic diagram of a gate machine control method application scenario provided by an embodiment of the present disclosure.
[0014] Figure 2 Fig. 2 shows an interaction flow schematic diagram of a gate machine control method provided by an embodiment of the present disclosure.
[0015] Figure 3 Fig. 3 shows a flow schematic diagram of sending an opening gate instruction to a target gate machine in the case that the fee is successfully collected based on the fee information provided by an embodiment of the present disclosure.
[0016] Figure 4 Fig. 4 shows a flow schematic diagram of obtaining an offline opening gate request received by a gate machine provided by an embodiment of the present disclosure.
[0017] Figure 5 Fig. 5 shows a structure schematic diagram of a gate machine control device provided by an embodiment of the present disclosure.
[0018] Figure 6 Fig. 6 shows a structure schematic diagram of a gate machine control device provided by another embodiment of the present disclosure.
[0019] Figure 7 Fig. 7 shows a structure schematic diagram of a gate machine control device provided by still another embodiment of the present disclosure.
[0020] Figure 8 Fig. 8 shows a structure schematic diagram of a gate machine control device provided by yet another embodiment of the present disclosure.
[0021] Figure 9 Fig. 9 shows a structure schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0022] The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, not all the embodiments.
[0023] In order to facilitate travel, most people will choose to use graphical codes (such as two-dimensional codes) or biometric features (such as face, fingerprint or palmprint features) and other Internet payment modes to pass through the gate, which can save time and reduce the use of traditional paper tickets, thereby saving resources. However, the Internet payment mode of the ticket is more likely to be copied, and it is easy for people to take advantage of it to cause ticket stealing and ticket leakage, thereby causing losses to the relevant departments. Therefore, it is crucial to check the tickets of passengers to prevent them from repeatedly entering or exiting the gate.
[0024] In the conventional technology, the gate recognizes the ticket of the passenger to determine whether the passenger repeatedly enters or exits the gate using the same ticket, which is also called gate anti-reuse. However, gate anti-reuse can only prevent reuse of the same ticket at the same gate, and cannot prevent reuse of the same ticket at different gates. That is, gate anti-reuse can only achieve local prevention and cannot achieve global prevention.
[0025] For example, user A wants to enter a subway station through gate a to take the subway. Then, when user A wants to open gate a, a ride two-dimensional code is generated, and the ride two-dimensional code is shared with user B, user C and user D. User A, user B, user C and user D enter the gate at gate a, gate b, gate c and gate d at the same time or in a very short time interval, respectively. At this time, the four users can all enter the gate and pass through. The conventional technology cannot detect that the ride two-dimensional code of user A is reused at different gates.
[0026] For another example, an office park has four gates, each of which is provided with a gate (gate x, gate y, gate z and gate k) that restricts entry into the park. Only user X is an employee of the office park and is allowed to enter. User X generates an entry two-dimensional code at gate x and shares the entry two-dimensional code with user Y, user Z and user K. At this time, the four users can all enter the park. Only user X is allowed to enter, and the other three users (user Y, user Z and user K) enter the park by copying the entry two-dimensional code of user X, which is illegal entry. The conventional technology cannot detect that the entry two-dimensional code of user X is reused to repeatedly enter the park.
[0027] As can be seen, the conventional technology cannot effectively reduce the situation of copying the ticket to repeatedly enter or exit from different gates, thereby failing to achieve global prevention.
[0028] It should be noted that the above-mentioned anti-reuse refers to preventing the reuse of the same ticket at the same gate or different gates.
[0029] To solve the above problems, the gate control method provided by the embodiment of the present disclosure comprises the following steps: in response to a current gate opening request for a target gate, determining whether a gate ticket initiating the current gate opening request corresponds to an unsettled historical gate opening request; in the case that the gate ticket corresponds to an unsettled historical gate opening request, obtaining at least one unsettled historical gate opening request corresponding to the gate ticket; and based on the current gate opening request and the at least one historical gate opening request, determining whether to send a gate opening instruction to the target gate, so as to reduce the probability of illegal repeated entry and exit of passengers and effectively prevent repeated entry and exit.
[0030] Since the control end can obtain the gate opening requests of all the gates under control, after responding to the current gate opening request for the target gate, the control end can determine whether the user of the gate ticket is a repeated entry and exit based on the at least one unsettled historical gate opening request corresponding to the gate ticket and the current gate opening request in the case that the gate ticket corresponds to an unsettled historical gate opening request, compared with the traditional technology, the purpose of preventing the behavior of stealing and leaking tickets from different gates by copying the gate ticket of the Internet payment mode can be achieved, so that the global prevention of repeated entry and exit can be effectively achieved.
[0031] The following will be described in combination with Figure 1 The system architecture of the gate control method is exemplified.
[0032] As Figure 1 shown, the system architecture of the gate control method provided by the embodiment of the present disclosure involves a control end 110 and a plurality of gates (i.e., gate 121, gate 122, gate 123 and gate 124) controlled by the control end 110.
[0033] In actual application, a user shows a gate ticket of an Internet payment mode of the user at a target gate (any one of the gates, such as the gate 122 in Figure 1 The target gate identifies the gate ticket of the Internet payment mode of the user, generates a current gate opening request for the target gate, and sends the current gate opening request to the control end 110.
[0034] The control end 110 responds to the current gate opening request for the target gate, determines whether the gate ticket initiating the current gate opening request corresponds to an unsettled historical gate opening request, obtains at least one unsettled historical gate opening request corresponding to the gate ticket in the case that the gate ticket corresponds to an unsettled historical gate opening request, and determines whether to send a gate opening instruction to the target gate based on the current gate opening request and the at least one historical gate opening request, so that the target gate opens the gate for the user of the gate ticket to pass through.
[0035] Further, the control terminal 110 determines the access demand corresponding to the current gate opening request based on the current gate opening request, determines the access demand corresponding to each of the at least one historical gate opening request, and determines that there is no continuous access and continuous exit condition based on the access demand corresponding to the current gate opening request and the access demand corresponding to each of the at least one historical gate opening request, and then sends a gate opening instruction to the target gate machine.
[0036] Exemplarily, the gate ticket of the Internet payment mode can be a two-dimensional code, a mobile phone near field communication (NFC), a biological feature gate ticket generated based on a face, etc. The current gate opening request can correspond to the access demand of the user, or can correspond to the exit demand of the user.
[0037] In an example, when the user needs to access the target gate machine, a mobile phone application (APP) generates a ticket two-dimensional code, the target gate machine recognizes the ticket two-dimensional code of the user, generates a current gate opening request for the target gate machine, the access demand corresponding to the current gate opening request is an access demand, and sends the current gate opening request to the control terminal 110. The control terminal 110 queries all unsettled at least one historical gate opening request belonging to the user from all historical gate opening requests received from the historical time before the current time, that is, queries the unsettled at least one historical gate opening request corresponding to the ticket two-dimensional code initiating the current gate opening request.
[0038] If there is no request in the at least one historical gate opening request whose access demand is the same as the access demand corresponding to the current gate opening request (that is, there is no case that the ticket two-dimensional code of the user is copied and used at multiple gate machines), it is determined that the user is normally accessing, and a gate opening instruction is sent to the target gate machine, so that the target gate machine opens the gate for the user of the gate ticket to pass through.
[0039] If there is a historical gate opening request in the at least one historical gate opening request whose access demand is the same as the access demand corresponding to the current gate opening request (that is, there is a case that the ticket two-dimensional code of the user is copied and used at multiple gate machines), it is determined that the user is repeatedly accessing, and no gate opening instruction is sent, so that the target gate machine remains in a closed state and the user cannot pass through.
[0040] In another example, when the user needs to exit at the target gate, the user uses the mobile phone NFC to approach the target gate, the target gate identifies the mobile phone NFC, generates a current gate opening request for the target gate, and sends the current gate opening request to the control terminal 110, and the access demand corresponding to the current gate opening request is an exit demand. The control terminal 110 queries all at least one historical gate opening request that has not been settled and belongs to the user from all gate opening requests received at the historical time before the current time, that is, queries at least one historical gate opening request that has not been settled and corresponds to the mobile phone NFC initiating the current gate opening request.
[0041] If there is a historical gate opening request corresponding to the access demand matching the access demand corresponding to the current gate opening request (that is, the exit demand corresponding to the current gate opening request and the entry demand corresponding to the historical gate opening request can be considered to belong to the same trip) in the at least one historical gate opening request, it is determined that the user exits normally, and a gate opening instruction is sent to the target gate to open the gate for the user to pass through.
[0042] If there is no historical gate opening request corresponding to the access demand matching the access demand corresponding to the current gate opening request (that is, the exit demand corresponding to the current gate opening request has no entry demand belonging to the same trip) in the at least one historical gate opening request, it is determined that the user is a repeated exit, and the target gate is closed and cannot be opened, so that the user cannot pass through.
[0043] In some embodiments, the system architecture of the gate control method provided by the embodiments of the present disclosure further relates to a biological feature acquisition terminal in addition to the control terminal 110 and the plurality of gates controlled by the control terminal 110.
[0044] In actual application, when the user needs to access the target gate, the biological feature acquisition terminal is used to acquire the biological feature information of the user, generate a biological feature ticket, and send the biological feature ticket to the target gate. The target gate identifies the biological feature ticket of the user, generates a current gate opening request for the target gate, and sends the current gate opening request to the control terminal 110. The subsequent steps are the same as the above-mentioned embodiments, and will not be described here.
[0045] In further embodiments, the biological feature acquisition terminal can be integrated with the gate and arranged integrally with the gate.
[0046] The gate control method provided by the embodiments of the present disclosure will be described in detail below. Figures 2 to 4 The gate control method provided by the embodiments of the present disclosure will be described in detail below.
[0047] Figure 2 As shown in FIG. 1, a flowchart of a gate control method provided by an embodiment of the present disclosure is shown. Exemplarily, as shown in FIG. 1, the gate control method provided by the embodiment of the present disclosure includes the following steps. Figure 2As shown, the gate control method mentioned in the embodiments of the present disclosure involves controlling the control end of a plurality of gates and the plurality of gates controlled by the control end.
[0048] For the control end, the gate control method provided by the embodiments of the present disclosure includes the following steps.
[0049] Step S210, in response to the current gate opening request for the target gate, determining whether the gate ticket initiating the current gate opening request corresponds to an unsettled historical gate opening request.
[0050] Exemplarily, the target gate is one of the plurality of gates. Specifically, the target gate is a gate that any user currently needs to pass through among the plurality of gates, that is, a gate that needs to identify the gate ticket of the user at the current time.
[0051] Exemplarily, the gate ticket is an Internet payment mode gate ticket. The Internet payment mode gate ticket refers to a gate ticket whose passenger related information bearing mode is an Internet communication mode, rather than a traditional paper mode. For example, it can be a two-dimensional code, a biological feature gate ticket generated based on a face, etc.
[0052] Considering that if the same user's gate ticket is copied and used at several gates at the same time or at a very short interval, when receiving the current gate opening request of the user sent by the target gate, the control end will also receive the gate opening request of the user sent by other gates in addition to the target gate. Therefore, among all the gate opening requests received by the control end, there must be an unsettled historical gate opening request belonging to the user, that is, the gate ticket corresponds to an unsettled historical gate opening request. Based on this, by determining whether the gate ticket initiating the current gate opening request corresponds to an unsettled historical gate opening request, a judgment basis is provided for determining whether the current gate opening request is a repeated gate opening request.
[0053] Step S220, in the case where it is determined that the gate ticket corresponds to an unsettled historical gate opening request, obtaining at least one unsettled historical gate opening request corresponding to the gate ticket.
[0054] Step S230, based on the current gate opening request and the at least one historical gate opening request, determining whether to send a gate opening instruction to the target gate so as to open the gate for the user of the gate ticket to pass through.
[0055] Exemplarily, based on the current gate opening request and the at least one historical gate opening request, determining whether to send a gate opening instruction to the target gate can be executed as follows: determining the access gate demand corresponding to the current gate opening request based on the current gate opening request; determining the access gate demand corresponding to each of the at least one historical gate opening request; and in the case where there is no continuous access gate and continuous exit gate based on the exit gate demand corresponding to the current gate opening request and the access gate demand corresponding to each of the at least one historical gate opening request, sending a gate opening instruction to the target gate.
[0056] In an example, the access demand corresponding to the current opening request is an access demand, and if none of the at least one historical opening request corresponds to the access demand corresponding to the current opening request (i.e., it is determined that there is no historical opening request corresponding to the access demand, and the access demand and the exit demand can be considered to belong to a trip), it is determined that the user does not have a continuous access situation, and an opening instruction is sent to the target gate machine so that the target gate machine opens to allow the user of the ticket to pass.
[0057] If there is at least one historical opening request corresponding to the access demand in the at least one historical opening request, it is determined that the user has a continuous access situation, and no opening instruction is sent, so that the target gate machine is closed and cannot be opened, and the user of the ticket cannot pass.
[0058] Considering the two opening requests of the same ticket in time, the access demand and the exit demand corresponding to each of the two opening requests can be considered to belong to a trip, which should be normally settled. It is also considered that the at least one historical opening request and the current opening request belong to the same user and are both unsettled. Therefore, if there is at least one historical opening request corresponding to the access demand in the at least one historical opening request, it is determined that the user has a continuous access situation, that is, there is a situation that the ticket is copied and used at multiple gate machines.
[0059] In another example, the access demand corresponding to the current opening request is an exit demand, and if there is no historical opening request in the at least one historical opening request that matches the access demand corresponding to the current opening request (i.e., it is determined that there is no historical opening request corresponding to the access demand, and the access demand and the exit demand can be considered to belong to a trip), it is considered that the user only has an exit demand and does not have an access demand, which does not conform to the normal access and exit rules, and it is determined that the user has a continuous exit situation, that is, there is a situation that the ticket is copied and used at multiple gate machines.
[0060] If there is at least one historical opening request in the at least one historical opening request that matches the access demand corresponding to the current opening request (i.e., it is determined that there is a historical opening request corresponding to the access demand, and the access demand and the exit demand can be considered to belong to a trip), it is determined that the user does not have a continuous exit situation, and an opening instruction is sent to the target gate machine so that the target gate machine opens to allow the user of the ticket to pass.
[0061] Correspondingly, for multiple gate machines, the gate machine control method provided by the embodiments of the present disclosure includes the following steps.
[0062] Step S240, in response to the ticket verification operation received by the target gate machine, a current opening request for the target gate machine is generated.
[0063] For example, in response to the ticket verification operation received by the target gate machine, the current opening request for the target gate machine can be generated by reading the information of the Internet payment mode ticket by the target gate machine.
[0064] Step S250, sending the current opening request to the control terminal.
[0065] The purpose of sending the current opening request to the control terminal is that the control terminal can determine whether the gate ticket initiating the current opening request corresponds to an unsettled historical opening request in response to the current opening request for the target gate machine, the target gate machine being one of the plurality of gate machines, and the gate ticket being an Internet payment mode gate ticket; in the case where the gate ticket corresponds to an unsettled historical opening request, obtaining at least one unsettled historical opening request corresponding to the gate ticket; and determining whether to send an opening instruction to the target gate machine based on the current opening request and the at least one historical opening request, so that the target gate machine opens the gate for the user of the gate ticket.
[0066] In some embodiments, the gate control method provided by the embodiments of the present disclosure further includes the following steps for the plurality of gate machines.
[0067] Step S260, receiving the opening instruction sent by the control terminal.
[0068] Exemplarily, the opening instruction is sent by the control terminal in the case where it is determined that there is no continuous entry and continuous exit based on the entry and exit requirements corresponding to the current opening request and the entry and exit requirements corresponding to the at least one historical opening request.
[0069] Step S270, opening the target gate machine for the user of the gate ticket in response to the opening instruction.
[0070] Since the control terminal can obtain the opening requests of all the gate machines under its control, after the target gate machine responds to the current opening request, the control terminal can determine whether the user of the gate ticket is a repeated entry and exit based on the at least one unsettled historical opening request corresponding to the gate ticket and the current opening request in the case where the gate ticket initiating the current opening request corresponds to an unsettled historical opening request. Compared with the conventional technology, the embodiments of the present disclosure can effectively prevent the behavior of stealing and missing tickets by repeatedly entering and exiting from different gate machines through copying the gate ticket of the Internet payment mode, thereby effectively achieving global anti-repetition. In addition, since the control terminal rather than the gate machine determines whether the gate ticket is a repeated entry and exit, the gate machine does not need to set a complex calculation module, which not only saves computing resources but also facilitates maintenance.
[0071] As can be seen from the above description, the control terminal sends the opening instruction to the target gate machine in the case where there is no continuous entry and continuous exit. Exemplarily, sending the opening instruction to the target gate machine can be executed by generating fee information based on the current opening request and the historical opening request matching the current opening request; and in the case where it is determined that the fee is successfully collected based on the fee information, sending the opening instruction to the target gate machine.
[0072] It should be noted that the current opening request, and the access demand corresponding to the current opening request and the historical opening request matched by the access demand can be considered as belonging to the same trip. The premise of being considered as belonging to the same trip is that all gate machines are real-time online. If some gate machines are offline, the control end cannot completely obtain all the unsettled historical opening requests corresponding to the gate ticket due to communication failure, and then the mismatch phenomenon can occur.
[0073] The mismatch phenomenon refers to that the current opening request and the historical opening request of the same trip are not settled. For example, user A, historical opening request 1, access at 10 o'clock (gate machine online), historical opening request 2, exit at 11 o'clock (gate machine offline), historical opening request 3: access at 12 o'clock (gate machine offline), and current opening request 4: exit at 13 o'clock (gate machine online); if the control end settles the fee based on the current opening request 4 and the historical opening request 1, the mismatch phenomenon occurs.
[0074] Therefore, considering that the gate machine cannot be 100% real-time online, the mismatch phenomenon is likely to occur, in order to reduce the probability of the charging error caused by the mismatch phenomenon, it is necessary to determine whether to settle the fee according to the real-time online state of the gate machine. The following will be described in detail. Figure 3
[0075] Figure 3 As shown in the figure, the flowchart shows the process of sending the opening instruction to the target gate machine in the case of determining that the fee is successfully collected based on the fee information. As shown in the figure, Figure 3 As shown in the figure, in the embodiment of the present disclosure, the step of sending the opening instruction to the target gate machine in the case of successfully collecting the fee based on the fee information includes the following steps.
[0076] Step S310, based on the communication state of the plurality of gate machines and the control end, determining the online rate of the plurality of gate machines at the control end.
[0077] Step S320, in the case of determining that the online rate meets the settlement condition, sending the fee information to the settlement end.
[0078] For example, if the online rate is greater than or equal to the preset threshold, the fee information is directly sent to the settlement end, so that the settlement end can settle in time. If the online rate is less than the preset threshold, the updated online rate is obtained every first preset time; until the updated online rate is greater than or equal to the preset threshold, the fee information is sent to the settlement end for settlement after waiting for a preset time, such as 10 seconds or 15 seconds.
[0079] Step S330, in the case of determining that the settlement end successfully collects the fee based on the fee information, sending the opening instruction to the target gate machine.
[0080] According to the real-time online condition of the gate machine, the settlement time is determined, the settlement time is as high as possible, the probability of settlement error is as low as possible, and the system operation accuracy is improved.
[0081] According to the above description, it can be known that the gate machine offline may cause mismatch. In order to find the mismatch in time, the gate machine offline needs to be found in real time, and the offline gate opening request needs to be acquired in real time. The following will be described in combination with Figure 4 The following describes how to acquire the offline gate opening request received by each of the plurality of gate machines. As shown in Figure 4 In the embodiment of the present disclosure, the step of acquiring the offline gate opening request received by each of the plurality of gate machines includes the following steps.
[0082] In step S410, for each gate machine, the maximum gate opening request generation serial number of the gate machine is acquired.
[0083] In step S420, the maximum gate opening request record serial number of the gate machine recorded by the control end is acquired.
[0084] In step S430, in the case that the maximum gate opening request generation serial number and the maximum gate opening request record serial number are inconsistent, the offline gate opening request received by the gate machine is acquired from the gate machine.
[0085] In some embodiments, the historical gate opening request includes historical online gate opening request and historical offline gate opening request. Before determining whether the gate ticket corresponding to the current gate opening request is corresponding to the un-settled historical gate opening request in response to the current gate opening request for the target gate machine, the gate control method provided by the embodiment of the present disclosure further includes: for each gate machine, in the case that the gate machine and the control end are in a communication connection state, acquiring the offline gate opening request received by each of the plurality of gate machines. Based on this, the above-mentioned acquiring at least one historical gate opening request corresponding to the gate ticket in the case that the gate ticket is corresponding to the un-settled historical gate opening request can be executed as follows: acquiring the historical offline gate opening request corresponding to the gate ticket from the offline gate opening request received by each of the plurality of gate machines; acquiring the historical online gate opening request corresponding to the gate ticket from the online gate opening request received by each of the plurality of gate machines.
[0086] In order to solve the influence caused by the gate machine offline in time, the mismatch needs to be corrected in time. In another embodiment, the offline gate opening request needs to be acquired in time after the offline gate machine is online, and then the error fee information is corrected.
[0087] For example, following the above embodiment, after a mismatch occurs during fee settlement at the control end based on the current gate opening request 4 and the historical gate opening request 1, the control end receives the offline historical gate opening requests 2 and 3. The current gate opening request 4 and the historical gate opening request 1 are then separated. Historical gate opening request 1 and historical gate opening request 2 are paired for fee settlement, generating corrected fee information 1. Similarly, historical gate opening request 3 and historical gate opening request 4 are paired for fee settlement, generating corrected fee information 2.
[0088] In this embodiment of the disclosure, by obtaining historical offline gate opening requests and historical online gate opening requests, mismatch phenomena can be detected in a timely manner, thereby providing a basis for correcting the mismatch phenomena and for timely correcting the cost information caused by the mismatch.
[0089] The above text combined Figures 2 to 4 The present disclosure describes in detail the method embodiments, which are then combined with the following. Figures 5 to 8 The present disclosure provides a detailed description of the apparatus embodiments. Furthermore, it should be understood that the descriptions of the method embodiments correspond to the descriptions of the apparatus embodiments; therefore, any parts not described in detail can be found in the foregoing method embodiments.
[0090] Figure 5 The diagram shown is a structural schematic of a gate control device provided in an embodiment of this disclosure. Figure 5 As shown, the gate control device 500 provided in this embodiment is applied to a control terminal for managing multiple gates. The gate control device 500 provided in this embodiment includes: a first determining module 510, an acquiring module 520, and a second determining module 530. Specifically, the first determining module 510 is configured to, in response to a current gate opening request for a target gate, determine whether the ticket initiating the current gate opening request corresponds to an unsettled historical gate opening request. The target gate is one of multiple gates, and the ticket is a ticket using an internet payment method. The acquiring module 520 is configured to, if it is determined that the ticket corresponds to an unsettled historical gate opening request, acquire at least one unsettled historical gate opening request corresponding to the ticket. The second determining module 530 is configured to, based on the current gate opening request and at least one historical gate opening request, determine whether to send an opening command to the target gate so that the target gate opens to allow the ticket holder to pass.
[0091] Figure 6 The diagram shown is a structural schematic of a gate control device provided in another embodiment of this disclosure. Figure 5 Extending from the illustrated embodiment Figure 6 The illustrated embodiment will be described in detail below. Figure 6 The illustrated embodiments and Figure 5 The differences between the embodiments shown are not repeated here, and the similarities are not repeated here.
[0092] like Figure 6As shown, the second determining module 530 provided by the embodiments of the present disclosure further includes a first determining unit 610, a second determining unit 620 and a third determining unit 630. Specifically, the first determining unit 610 is configured to determine the access demand corresponding to the current opening request. The second determining unit 620 is configured to determine the access demand corresponding to each of the at least one historical opening request. The third determining unit 630 is configured to, in a case where it is determined, based on the access demand corresponding to the current opening request and the access demand corresponding to each of the at least one historical opening request, that there is no continuous access-in and continuous access-out, send an opening instruction to the target gate machine.
[0093] In some embodiments, the third determining unit 630 is further configured to, based on the access demand corresponding to each of the at least one historical opening request and the access demand corresponding to the current opening request, determine a historical opening request in the at least one historical opening request that matches the access demand of the current opening request; generate fee information based on the current opening request and the historical opening request that matches the access demand; and in a case where it is determined, based on the fee information, that the fee is successfully collected, send the opening instruction to the target gate machine.
[0094] In some embodiments, the third determining unit 630 is further configured to, based on the access demand corresponding to each of the at least one historical opening request and the access demand corresponding to the current opening request, determine a historical opening request in the at least one historical opening request that matches the access demand of the current opening request; generate fee information based on the current opening request and the historical opening request that matches the access demand; determine, based on the communication states of the plurality of gate machines and the control end, the online rate of the plurality of gate machines at the control end; in a case where it is determined that the online rate meets the settlement condition, send the fee information to the settlement end; and in a case where it is determined that the fee is successfully collected by the settlement end based on the fee information, send the opening instruction to the target gate machine.
[0095] Figure 7 As shown, the structure of the gate machine control device provided by another embodiment of the present disclosure is shown in a structural schematic diagram. In this embodiment, the second determining module 530 further includes a fourth determining unit 640. Figure 7 Based on the embodiments shown above, the following embodiments are extended Figure 6 In the embodiments shown above, the following embodiments are emphasized Figure 7 In the embodiments shown above, the following embodiments are emphasized Figure 6The differences between the embodiments are not described again. In this embodiment, the historical gate opening requests include historical online gate opening requests and historical offline gate opening requests, and the gate control device 500 provided by the embodiment of the present disclosure further includes a first receiving module 710. The first receiving module 710 is configured to, in response to a current gate opening request for a target gate, determine whether a gate ticket initiating the current gate opening request corresponds to an unsettled historical gate opening request before obtaining offline gate opening requests received by each of a plurality of gates. Wherein, the obtaining module 520 is further configured to, in the case that the gate ticket corresponds to an unsettled historical gate opening request, obtain the unsettled historical offline gate opening request corresponding to the gate ticket from the offline gate opening requests received by each of the plurality of gates; obtain the unsettled historical online gate opening request corresponding to the gate ticket from the online gate opening requests received by each of the plurality of gates.
[0096] In some embodiments, the first receiving module 710 is further configured to, for each gate, obtain a maximum gate opening request generation serial number of the gate; obtain a maximum gate opening request record serial number recorded by the control end; and in the case that the maximum gate opening request generation serial number and the maximum gate opening request record serial number are inconsistent, obtain the offline gate opening request received by the gate from the gate.
[0097] Figure 8 The structure schematic diagram of the gate control device provided by another embodiment of the present disclosure is shown. The gate control device 800 provided by the embodiment of the present disclosure is applied to one of the gates controlled by a control end, the control end controls a plurality of gates, and the gate is used to limit users to enter a target place. As shown in the figure, Figure 8 As shown, the gate control device 800 provided by the embodiment of the present disclosure includes a generating module 810 and a sending module 820. Specifically, the generating module 810 is configured to, in response to a gate ticket verification operation received by a target gate, generate a current gate opening request for the target gate. The sending module 820 is configured to send the current gate opening request to the control end, so as to, in response to the current gate opening request for the target gate, determine whether a gate ticket initiating the current gate opening request corresponds to an unsettled historical gate opening request, the target gate is one of a plurality of gates, and the gate ticket is an Internet payment mode gate ticket; in the case that the gate ticket corresponds to an unsettled historical gate opening request, obtain at least one unsettled historical gate opening request corresponding to the gate ticket; and based on the current gate opening request and the at least one historical gate opening request, determine whether to send a gate opening instruction to the target gate, so that the target gate opens the gate for a user of the gate ticket to pass through.
[0098] In some embodiments, as Figure 8As shown, the gate control device 800 further includes a second receiving module 830 and an executing module 840. The second receiving module 830 is configured to receive an opening gate instruction sent by the control end, the opening gate instruction being sent by the control end in a case where it is determined, based on the current opening gate request corresponding access demand and the at least one historical opening gate request each corresponding access demand, that there is no continuous access and continuous exit. The executing module 840 is configured to open the target gate for the user of the gate ticket to pass in response to the opening gate instruction.
[0099] Figure 9 Fig. 1 shows a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. Figure 9 As shown, the electronic device 900 (which can be a computer device in particular) includes a memory 901, a processor 902, a communication interface 903, and a bus 904. The memory 901, the processor 902, and the communication interface 903 are communicatively connected to each other through the bus 904.
[0100] The memory 901 can be a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 901 can store a program, and when the program stored in the memory 901 is executed by the processor 902, the processor 902 and the communication interface 903 are configured to perform various steps of the gate control method of the present disclosure.
[0101] The processor 902 can be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), a graphics processing unit (GPU), or one or more integrated circuits, configured to execute related programs to implement the functions required by the units in the gate control device of the embodiments of the present disclosure.
[0102] The processor 902 can also be an integrated circuit chip on which one or more of the above described functions are performed. In implementation, the various steps of the gate control method of the present disclosure can be completed by integrated logic circuits or instructions in the form of software in the processor 902. The processor 902 described above can also be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in combination with the embodiments of the present disclosure can be directly embodied as a hardware code processor to execute, or be executed by a combination of hardware and software modules in the code processor. The software module can be located in a random access memory, a flash memory, a read only memory, a programmable read only memory or an electrically erasable programmable memory, a register, etc. The storage medium in the storage 901 is read by the processor 902, which combines the hardware to complete the functions required by the units included in the gate control device of the embodiments of the present disclosure, or executes the gate control method of the method embodiments of the present disclosure.
[0103] The communication interface 903 uses a transceiver such as but not limited to a transceiver to realize the communication between the electronic device 900 and other devices or communication networks. For example, the product announcement request or product announcement data can be received through the communication interface 903.
[0104] The bus 904 can include a path for transmitting information between various components (e.g., the storage 901, the processor 902, the communication interface 903) of the electronic device 900.
[0105] It should be noted that although Figure 9 The electronic device 900 shown only shows the memory, processor, communication interface, but in the specific implementation process, those skilled in the art should understand that the electronic device 900 also includes other devices necessary for normal operation. At the same time, according to the specific needs, those skilled in the art should understand that the electronic device 900 can also include hardware devices for realizing other additional functions. In addition, those skilled in the art should understand that the electronic device 900 can also only include the devices necessary for the embodiments of the present disclosure, and does not necessarily include all the devices shown in the above. Figure 9
[0106] In addition to the method, device, and equipment described above, the embodiments of the present disclosure can also be a computer program product, which includes computer program instructions that, when executed by a processor, cause the processor to perform the steps of the gate control method provided by various embodiments of the present disclosure.
[0107] The computer program product can be written in any combination of one or more programming languages to perform the operations of the embodiments of the present disclosure, including an object-oriented programming language, such as Java, C++, and the like, and a conventional procedural programming language, such as "C" language or similar programming languages. The program code can be executed entirely on a user computing device, partially on a user device, as an independent software package, partially on a user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0108] In addition, the embodiments of the present disclosure can also be a computer readable storage medium, which stores computer program instructions, which, when executed by a processor, cause the processor to perform the steps of the gate control provided by various embodiments of the present disclosure.
[0109] The computer readable storage medium can use any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium may, for example, include but is not limited to an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or instrument, or any combination of the above. More specific examples (non-exhaustive list) of readable storage medium include: electrical connection with one or more conductive wires, portable disk, hard disk, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
[0110] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether the functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present disclosure.
[0111] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiments, which will not be described here.
[0112] In several embodiments provided by the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other manners. For example, the described device embodiments are merely schematic. For example, the division of the units is merely a logical function division. There can be another division manner for the actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between the units can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.
[0113] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e., can be located in one place, or can be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purposes of the embodiments.
[0114] In addition, each functional unit in the various embodiments of the present disclosure can be integrated into a similar region division unit, or each unit can be physically present alone, or two or more units can be integrated into one unit.
[0115] If the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present disclosure can be embodied in the form of a software product, and the computer software product is stored in a storage medium, and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present disclosure. The aforementioned storage medium includes various media that can store program codes, such as U disk, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk, etc.
[0116] The above is merely specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the present disclosure, which should be covered within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.
Claims
1. A gate control method, applied to a control terminal for managing multiple gates, the method comprising: In response to a current gate opening request for a target gate, it is determined whether the gate ticket that initiated the current gate opening request corresponds to an unsettled historical gate opening request, wherein the target gate is one of the plurality of gates, and the gate ticket is a gate ticket in the Internet payment mode; If it is determined that the gate ticket corresponds to an unsettled historical gate opening request, at least one unsettled historical gate opening request corresponding to the gate ticket is obtained; Determine the entry / exit requirements corresponding to the current gate opening request; Determine the entry / exit requirements corresponding to each of the at least one historical gate opening request; If, based on the entry and exit requirements corresponding to the current gate opening request and the entry and exit requirements corresponding to each of the at least one historical gate opening requests, it is determined that there is no continuous entry or continuous exit, then, based on the entry and exit requirements corresponding to each of the at least one historical gate opening requests and the entry and exit requirements corresponding to the current gate opening request, the historical gate opening request that matches the entry and exit requirements of the current gate opening request is determined from among the at least one historical gate opening requests. Based on the current gate opening request and the historical gate opening requests that match the entry and exit gate requirements, generate fee information; Based on the communication status between the multiple turnstiles and the control terminal, the online rate of the multiple turnstiles on the control terminal is determined; if the online rate meets the settlement conditions, the fee information is sent to the settlement terminal. Once it is confirmed that the settlement terminal has successfully collected the fee based on the fee information, an opening command is sent to the target gate so that the target gate can open and allow the user of the ticket to pass.
2. The method according to claim 1, wherein the historical gate opening request includes historical online gate opening requests and historical offline gate opening requests, and the method further includes: Obtain the offline gate opening request received by each of the plurality of gates, wherein the offline gate opening request is a gate opening request when the gate and the control terminal are in a state of communication disconnection; The step of obtaining at least one unsettled historical gate opening request corresponding to the gate ticket includes: From the offline opening requests received by each of the multiple turnstiles, obtain the unsettled historical offline opening requests corresponding to the gate ticket; From the online opening requests received by each of the multiple turnstiles, obtain the unsettled historical online opening requests corresponding to the gate ticket.
3. The method according to claim 2, wherein obtaining the offline gate opening request received by each of the plurality of gates includes: For each of the gates, obtain the sequence number of the maximum gate opening request generated for that gate; Obtain the maximum gate opening request record number of the gate recorded by the control terminal; If the maximum gate opening request generation sequence number and the maximum gate opening request record sequence number are inconsistent, the offline gate opening request received by the gate is obtained from the gate.
4. A turnstile control method, applied to one of the turnstiles controlled by a control terminal, wherein the control terminal manages multiple turnstiles, the method comprising: In response to the ticket verification operation received by the target gate, a current gate opening request is generated for the target gate; The current gate opening request is sent to the control terminal so that, in response to the current gate opening request for the target gate, it is determined whether the gate ticket initiating the current gate opening request corresponds to an unsettled historical gate opening request. The target gate is one of the plurality of gates, and the gate ticket is a gate ticket in the Internet payment mode. If it is determined that the gate ticket corresponds to an unsettled historical gate opening request, at least one unsettled historical gate opening request corresponding to the gate ticket is obtained. Determine the entry / exit requirements corresponding to the current gate opening request; Determine the entry and exit requirements corresponding to each of the at least one historical gate opening requests; if, based on the entry and exit requirements corresponding to the current gate opening request and the entry and exit requirements corresponding to each of the at least one historical gate opening requests, it is determined that there are no continuous entry and continuous exit, then, based on the entry and exit requirements corresponding to each of the at least one historical gate opening requests and the entry and exit requirements corresponding to the current gate opening request, determine the historical gate opening request among the at least one historical gate opening requests that matches the entry and exit requirements of the current gate opening request. Based on the current gate opening request and the historical gate opening requests that match the entry and exit gate requirements, generate fee information; Based on the communication status between the multiple turnstiles and the control terminal, the online rate of the multiple turnstiles on the control terminal is determined; if the online rate meets the settlement conditions, the fee information is sent to the settlement terminal. Once it is confirmed that the settlement terminal has successfully collected the fee based on the fee information, an opening command is sent to the target gate so that the target gate can open and allow the user of the ticket to pass.
5. The method according to claim 4, further comprising: The control terminal receives the gate opening command sent by the control terminal. The gate opening command is issued by the control terminal after determining that there is no continuous entry or continuous exit based on the entry and exit requirements corresponding to the current gate opening request and the entry and exit requirements corresponding to each of the at least one historical gate opening request. In response to the gate opening command, the target gate is opened to allow the user of the ticket to pass through.
6. A turnstile control device, used in a control terminal for managing multiple turnstiles, the device comprising: The first determining module is configured to, in response to a current gate opening request for a target gate, determine whether the gate ticket initiating the current gate opening request corresponds to an unsettled historical gate opening request, wherein the target gate is one of the plurality of gates, and the gate ticket is a gate ticket in the Internet payment mode; The acquisition module is configured to acquire at least one unsettled historical gate opening request corresponding to the gate ticket when it is determined that there is an unsettled historical gate opening request corresponding to the gate ticket. The second determining module is configured to determine the entry / exit requirements corresponding to the current gate opening request; Determine the entry and exit requirements corresponding to each of the at least one historical gate opening requests; if, based on the entry and exit requirements corresponding to the current gate opening request and the entry and exit requirements corresponding to each of the at least one historical gate opening requests, it is determined that there are no continuous entry and continuous exit, then, based on the entry and exit requirements corresponding to each of the at least one historical gate opening requests and the entry and exit requirements corresponding to the current gate opening request, determine the historical gate opening request among the at least one historical gate opening requests that matches the entry and exit requirements of the current gate opening request. Based on the current gate opening request and the historical gate opening requests that match the entry and exit gate requirements, generate fee information; Based on the communication status between the multiple turnstiles and the control terminal, the online rate of the multiple turnstiles on the control terminal is determined; if the online rate meets the settlement conditions, the fee information is sent to the settlement terminal. Once it is confirmed that the settlement terminal has successfully collected the fee based on the fee information, an opening command is sent to the target gate so that the target gate can open and allow the user of the ticket to pass.
7. A turnstile control device, applied to one of the turnstiles controlled by a control terminal, the control terminal managing multiple turnstiles, the device comprising: The generation module is configured to generate a current gate opening request for the target gate in response to the gate ticket verification operation received by the target gate; The sending module is configured to send the current gate opening request to the control terminal so as to determine whether the gate ticket initiating the current gate opening request corresponds to an unsettled historical gate opening request in response to the current gate opening request for the target gate, wherein the target gate is one of the plurality of gates and the gate ticket is a gate ticket in the Internet payment mode; if it is determined that the gate ticket corresponds to an unsettled historical gate opening request, at least one unsettled historical gate opening request corresponding to the gate ticket is obtained; Determine the entry / exit requirements corresponding to the current gate opening request; Determine the entry and exit requirements corresponding to each of the at least one historical gate opening requests; if, based on the entry and exit requirements corresponding to the current gate opening request and the entry and exit requirements corresponding to each of the at least one historical gate opening requests, it is determined that there are no continuous entry and continuous exit, then, based on the entry and exit requirements corresponding to each of the at least one historical gate opening requests and the entry and exit requirements corresponding to the current gate opening request, determine the historical gate opening request among the at least one historical gate opening requests that matches the entry and exit requirements of the current gate opening request. Based on the current gate opening request and the historical gate opening requests that match the entry and exit gate requirements, generate fee information; Based on the communication status between the multiple turnstiles and the control terminal, the online rate of the multiple turnstiles on the control terminal is determined; if the online rate meets the settlement conditions, the fee information is sent to the settlement terminal. Once it is determined that the settlement terminal has successfully collected the fee based on the fee information, an opening command is sent to the target gate so that the target gate can open and allow the user of the ticket to pass.
8. An electronic device, comprising: processor; as well as A memory storing computer program instructions that, when executed by the processor, cause the processor to perform the method as described in any one of claims 1 to 5.
9. A computer-readable storage medium storing computer program instructions that, when executed by a processor, cause the processor to perform the method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Intelligent terminal, ticket verification system and method and computer readable storage medium
CN109118597A
Travel control method, device and system based on subway riding codes and electronic equipment
CN111951412A