Bus riding verification method, system and device, electronic equipment and storage medium
By generating a unique boarding pass at the bus terminal and verifying it at the bus backend, the problems of low efficiency in bus boarding verification and poor applicability in complex network environments are solved, achieving efficient and accurate boarding verification and data management.
Patent Information
- Application Number
- CN202310886688.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2022-09-19
- Filing Date
- 2023-07-18
- Publication Date
- 2026-11-06
- Estimated Expiration
- 2043-07-18
AI Technical Summary
Existing bus passenger verification methods suffer from low verification efficiency and accuracy, are difficult to apply to complex network environments, and cannot effectively manage verification data.
By calling the offline fare certificate generation tool on the bus terminal, a unique fare certificate for the bus device is generated, and the fare code and the unique fare certificate are sent to the bus backend. The backend obtains the verification information of the passenger and sends it back to the terminal, which then displays the verification information.
It improved the efficiency and accuracy of bus passenger verification, enhanced its applicability in complex network environments and its ability to control verification data, and reduced system transformation costs and verification workload.
Smart Images

Figure CN116882438B_ABST
Abstract
Description
[0001] This application claims preference to patent application number 202211138328.0 (the earlier application was filed on September 19, 2022, and is entitled "Method, System, Apparatus, Electronic Device and Storage Medium for Verifying Bus Rides"). Technical Field
[0002] The embodiments of the present invention relate to the field of intelligent transportation technology, and in particular to a method, system, device, electronic device and storage medium for verifying bus passenger boarding. Background Technology
[0003] Smart mobility, also known as smart transportation, is a digital city technology that integrates computer networks, mobile communications, spatial information, big data, cloud computing, the Internet of Things, and grid management. With the increasing popularity and development of smart mobility, various payment and security authentication methods are constantly being upgraded to meet users' demands for convenience. For example, traditional payment methods primarily involved cash, while current methods mainly rely on mobile payments, such as using QR codes for public transportation. Similarly, traditional identity security authentication methods often verified passengers' ID cards, while current methods primarily verify identity codes, etc.
[0004] To improve user safety, users are required to show their ride monitoring information to the driver or staff for visual verification before boarding. The driver or staff will only allow the user to board after confirming the information is normal. Users can then scan a QR code at the bus terminal to board. To improve user efficiency, the verification efficiency of ride monitoring information needs further improvement. Currently, there are two main methods for improving the verification of user ride monitoring information. The first is to integrate ride monitoring data into the QR code, such as indicating legal boarding privileges or displaying the user as a whitelisted user, thus achieving "one code for all." The second method is to verify user ride monitoring information online at the bus terminal.
[0005] In the process of developing this invention, the inventors discovered the following shortcomings in the existing technology: The verification method of integrating ride monitoring information into the ride code still heavily relies on manual verification by staff, failing to reduce the workload of verifying ride monitoring information and posing risks of missed or incorrect verification. Furthermore, the public transportation system and the ride code system are relatively independent systems. Integrating ride monitoring information into the ride code makes it impossible to retrieve verification data from the public transportation system, thus preventing the public transportation system from accessing the verification data. Although online verification via public transportation terminals can solve the problem of data retrieval, this method requires high-quality network signals from the terminals. Network problems at the terminals can disrupt the entire ride process. In reality, poor network signals are common on public transportation routes, making online verification of ride monitoring information less feasible. Summary of the Invention
[0006] This invention provides a method, system, device, electronic device, and storage medium for verifying bus passenger boarding, which can improve the efficiency and accuracy of bus passenger boarding verification, and enhance the applicability of the bus system's verification capabilities in complex network environments and its ability to control its own verification data.
[0007] According to one aspect of the present invention, a bus passenger verification method is provided, applied to a bus terminal, comprising:
[0008] Obtain the boarding code provided by the user's boarding terminal;
[0009] Call the offline fare voucher generation tool to obtain the unique fare voucher for the public transportation device generated by the offline fare voucher generation tool;
[0010] Send the ride code and the unique ride voucher to the bus backend and obtain the ride verification information of the passenger from the bus backend.
[0011] The ride verification information is displayed.
[0012] According to another aspect of the present invention, a bus passenger verification method is provided, applied to the back-end of a bus, comprising:
[0013] Obtain the boarding code provided by the user's boarding terminal and the unique boarding credential from the bus equipment sent by the bus terminal;
[0014] The passenger's boarding verification information is obtained based on the boarding code and the unique boarding credential.
[0015] The passenger's verification information is fed back to the bus terminal so that the verification information can be displayed on the bus terminal.
[0016] According to another aspect of the present invention, a bus passenger verification system is provided, comprising a user boarding terminal, a bus terminal, and a bus backend, wherein:
[0017] The user boarding terminal is used to provide a boarding code to the bus terminal;
[0018] The bus terminal is connected to the bus backend for communication. After obtaining the ride code, it calls the offline ride certificate generation tool to obtain the unique ride certificate of the bus device generated by the offline ride certificate generation tool, and sends the ride code and the unique ride certificate to the bus backend.
[0019] The bus backend is used to obtain the passenger's passenger verification information based on the ride code and the unique ride credential, and to feed back the passenger's passenger verification information to the bus terminal.
[0020] The bus terminal is also used to display the boarding verification information.
[0021] According to another aspect of the present invention, a bus passenger verification device is provided, comprising:
[0022] The ride code acquisition module is used to acquire the ride code provided by the user's ride terminal;
[0023] The unique fare voucher acquisition module is used to call the offline fare voucher generation tool to obtain the unique fare voucher for the public transportation device generated by the offline fare voucher generation tool.
[0024] The ride verification information acquisition module is used to send the ride code and the unique ride credential to the bus backend, and to acquire the ride verification information of the ride user fed back by the bus backend.
[0025] The ride verification information display module is used to display the ride verification information.
[0026] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0027] At least one processor; and
[0028] A memory communicatively connected to the at least one processor; wherein,
[0029] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the bus passenger verification method according to any embodiment of the present invention.
[0030] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the bus passenger verification method according to any embodiment of the present invention.
[0031] In this embodiment of the invention, a passenger terminal provides a ride code to the bus terminal. After receiving the ride code, the bus terminal invokes an offline ride pass generation tool to obtain a unique ride pass generated by the tool, and then sends the ride code and the unique ride pass to the bus backend. The bus backend can then obtain the passenger's verification information based on the received ride code and unique ride pass, and feed this information back to the bus terminal. The bus terminal can then display the verification information. This bus ride verification method solves the problems of low verification efficiency and accuracy, difficulty in adapting to complex network environments, and inability to manage verification data in existing bus ride verification methods. It improves the efficiency and accuracy of bus ride verification, enhances the applicability of the bus system's verification capabilities in complex network environments, and improves its ability to manage its own verification data.
[0032] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0033] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0034] Figure 1 This is a flowchart of a bus passenger verification method provided in Embodiment 1 of the present invention;
[0035] Figure 2 This is a flowchart of a bus passenger verification method provided in Embodiment 2 of the present invention;
[0036] Figure 3 This is a schematic diagram of a bus passenger verification system provided in Embodiment 3 of the present invention;
[0037] Figure 4 This is a flowchart illustrating a bus passenger verification method provided in Embodiment 3 of the present invention;
[0038] Figure 5 This is a schematic diagram of a bus passenger verification device provided in Embodiment 4 of the present invention;
[0039] Figure 6 This is a schematic diagram of a bus passenger verification device provided in Embodiment 5 of the present invention;
[0040] Figure 7 This is a schematic diagram of the structure of an electronic device provided in Embodiment Six of the present invention. Detailed Implementation
[0041] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0042] It should be noted that the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to such process, method, product, or device.
[0043] Example 1
[0044] Figure 1 This is a flowchart of a bus passenger verification method provided in Embodiment 1 of the present invention. This embodiment is applicable to situations where offline tools are used to assist in bus data verification. The method can be executed by a bus passenger verification device, which can be implemented in software and / or hardware, and is generally integrated into an electronic device. This electronic device can be a terminal device for the bus, used in conjunction with a bus backend for providing bus backend services and a user terminal for providing a boarding code. Correspondingly, as... Figure 1 As shown, the method includes the following operations:
[0045] S110. Obtain the boarding code provided by the user's boarding terminal.
[0046] Among them, the user boarding terminal can provide users with boarding services on the user side.
[0047] Once passengers board the bus, they can generate a boarding code using their own boarding terminal. Then, the passenger displays this code to the bus terminal, which scans the code to obtain the boarding pass provided by the passenger's terminal.
[0048] S120. Call the offline fare certificate generation tool to obtain the unique fare certificate for the public transportation device generated by the offline fare certificate generation tool.
[0049] The offline bus pass generation tool can be a tool that generates bus identification credentials offline. Optionally, the offline bus pass generation tool can be an offline tool such as an offline SDK (Software Development Kit), as long as it can generate bus identification credentials without relying on the network. This embodiment of the invention does not limit the specific type of offline bus pass generation tool. A unique bus pass is a pass that can uniquely identify a bus, and it has the characteristics of uniqueness, timeliness, and non-reusability.
[0050] Optionally, the offline fare certificate generation tool can be lightweightly integrated into the bus terminal to reduce the cost and risk of upgrading the bus fare verification system. After the tool terminal obtains the fare code provided by the user's fare terminal, it can call the internally integrated offline fare certificate generation tool to generate a unique fare certificate for the bus device.
[0051] Because the offline fare certificate generation tool has local application capabilities, it can independently generate unique fare certificates for public transportation devices without an internet connection, effectively solving the problem of process interruption caused by poor network signal in the bus fare verification process. In other words, the application of the offline fare certificate generation tool can solve the problem of high network signal quality requirements for public transportation terminals in existing bus fare verification methods, thereby greatly improving the applicability of the bus fare verification system in complex environments.
[0052] In an optional embodiment of the present invention, the offline fare certificate generation tool can be used to: obtain the device association information of the bus equipment; wherein, the device association information includes the device parameter information and unique authorization identifier information of the bus equipment; and generate a unique fare certificate for the bus equipment based on the device association information of the bus equipment using a preset fare certificate generation algorithm.
[0053] The device parameter information for the public transport equipment can be hardware and / or software parameter information. Hardware parameter information may include, but is not limited to, hardware information such as the device number. Software parameter information may include, the version number of the public transport terminal, and the authorization number installed on the bus. The unique authorization identifier information can be the unique authorization identifier of the offline fare voucher generation tool. The preset fare voucher generation algorithm can be any algorithm used to generate a unique fare voucher; any algorithm capable of generating a unique fare voucher is acceptable. This embodiment of the invention does not limit the specific algorithm type and content of the preset fare voucher generation algorithm.
[0054] Specifically, the offline fare certificate generation tool can obtain equipment parameter information and unique authorization identifier information from bus equipment to generate unique fare certificates for the bus equipment. Optionally, each offline fare certificate generation tool can be configured with one unique authorization identifier to prevent data leakage and other security risks caused by reverse engineering, while also ensuring the security of the unique authorization identifier and the security of data flow during the bus boarding verification process. The offline fare certificate generation tool can use a preset certificate generation algorithm, using the equipment association information of the bus equipment as the data source for the algorithm, to generate unique fare certificates for the bus equipment.
[0055] The unique boarding pass for public transportation devices serves as a necessary parameter for subsequent interface requests, enabling the control and management of legitimate requests to the bus boarding verification system. The unique boarding pass can have an expiration date, preventing expired, counterfeit, or used passes from passing verification. To ensure the security of the unique boarding pass, the preset pass generation algorithm and associated device information are confidential data, eliminating the possibility of forgery. Furthermore, the unique boarding pass's characteristics—disposable after use, short validity period, and limited generation frequency—further enhance data security.
[0056] Optionally, the offline ride pass generation tool can also periodically count the number of calls and report the count to the relevant platform backend in an asynchronous manner to provide a basis for monitoring whether the call frequency of the offline ride pass generation tool is abnormal.
[0057] S130. Send the ride code and the unique ride credential to the bus backend, and obtain the ride verification information of the passenger from the bus backend.
[0058] The ride code and the unique ride credential are sent to the bus backend, and the ride verification information of the ride user is obtained from the bus backend.
[0059] Optionally, the boarding verification information may include information required for a passenger to board the bus. Optionally, the boarding verification information may include, but is not limited to, boarding code deduction information, passenger boarding monitoring information, and boarding reminder information.
[0060] Among them, the ride code deduction information is the fare deduction information for users who take the bus using the ride code.
[0061] The passenger monitoring information can, for example, indicate the passenger's legal right to ride the bus. For instance, if a passenger is on the whitelist maintained by the bus system, it means the passenger has no history of violations and can ride normally. If a passenger is on the blacklist maintained by the bus system, it means the passenger has committed violations, such as failure to pay fares, and cannot ride normally. Optionally, the legality of a passenger's monitoring information can be determined by the bus backend using big data analysis of passenger data, or by the bus backend collaborating with other system backends through legitimate channels based on passenger data analysis. This embodiment does not impose any limitations on this approach.
[0062] Among these, the ride reminder information refers to the information that needs to be provided to passengers. Optionally, the ride reminder information can be information fed back based on the passenger's verification result or information fed back directly according to preset rules. This feedback information can be used to ensure the passenger's safe and healthy travel, and can also provide helpful tips to passengers based on various actual situations, so that passengers can reasonably plan their travel schedule. For example, after the bus backend determines the verification time for the passenger, if the verification time is determined to be during the hottest days of summer, the temperature information inside the vehicle can be obtained. If the temperature inside the vehicle is determined to be a high temperature, such as 37°C-40°C, the probability of the passenger suffering from heatstroke inside the vehicle can be determined. At this time, the bus backend can use information on heatstroke symptoms and emergency treatment methods as the ride reminder information. It is understood that the ride reminder information may vary depending on the type of bus, and this embodiment of the invention does not limit this. For example, if an important meeting is being held at a point along the route currently being operated by the bus, the bus backend can also send a notification message indicating that the vehicle is delayed in arriving at the relevant station due to traffic control measures near the important meeting as a travel reminder, so that passengers can prepare for the delay and make subsequent plans accordingly.
[0063] Correspondingly, once the bus terminal obtains the ride code and unique ride voucher, it can send them to the bus backend. The bus backend then uses the ride code and unique ride voucher to obtain the passenger's ride verification information and sends it back to the bus frontend.
[0064] In an optional embodiment of the present invention, the bus backend can be used to: decode the ride code to obtain the ride code decoding result; and generate ride code deduction information based on the ride code decoding result.
[0065] The decoding result of the transit code can be the same as the decoding result of the transit code itself. It is understandable that the fare deduction rules for the transit code can be consistent with the fare calculation rules for single-journey bus tickets.
[0066] In this embodiment of the invention, after the bus backend obtains the ride code, it can decode the ride code to obtain the ride code decoding result, such as obtaining the user's identity information and payment account, so as to generate the corresponding deduction information for the ride user based on the ride code decoding result.
[0067] In an optional embodiment of the present invention, the bus backend can be used to: decode the ride code to obtain the user identity information of the passenger; verify the legitimacy of the unique ride credential, and if the unique ride credential passes the legitimacy verification, obtain the device parameter information of the bus equipment included in the unique ride credential; verify the bus equipment interface call permission according to the device parameter information, and if the bus equipment interface call permission passes the verification, obtain the passenger's ride monitoring information as the ride verification information according to the passenger's user identity information, and obtain matching ride reminder information as the ride verification information.
[0068] Specifically, the bus backend can decode the ride code to obtain the passenger's identity information and verify the validity of the received unique ride pass. If the unique ride pass passes the validity verification, indicating that it is valid and usable, the bus backend can further obtain the device parameter information of the bus equipment included in the unique ride pass to verify whether the current bus equipment has the authority to call the bus equipment interface. If the bus equipment interface call authority passes the verification, indicating that the current bus equipment has the authority to call the bus equipment interface, it can call the platform interface that provides ride monitoring information, query and obtain the passenger's ride monitoring information based on the passenger's identity information as the passenger's ride verification information. Optionally, if the bus backend has its own database storing ride monitoring information, it can directly query the local database based on the passenger's identity information to obtain the passenger's ride monitoring information as ride verification information. At the same time, the bus backend can also synchronously obtain matching ride reminder information as ride verification information. For example, the bus backend can obtain ride reminder information based on weather conditions and road traffic conditions as ride verification information.
[0069] Therefore, it can be seen that the bus backend can directly connect to the backend system of relevant platforms to obtain passenger monitoring information and passenger reminder information. The point-to-point data transmission is conducive to the bus passenger verification system's control over its own verification data. Compared with the existing bus passenger verification methods, it can achieve data traceability.
[0070] It should be noted that although the decoding of the ride code at the bus backend requires a network connection, the network link between the bus terminal and the bus backend is existing and optimized, thus ensuring network connectivity.
[0071] S140. Display the ride verification information.
[0072] In an optional embodiment of the present invention, displaying the ride verification information may include: displaying the ride code deduction information in text format; and playing the ride monitoring information and ride reminder information of the ride user in voice broadcast format.
[0073] Optionally, the fare deduction information can be displayed in text format, such as "Deduction successful," "Deduction of 2 yuan," or "Deduction failed." Passenger monitoring information can be broadcast via voice announcement, such as "Current passenger can proceed" or "Current passenger has poor credit and is not allowed to proceed." For example, a passenger reminder message could be, "The temperature inside the vehicle is currently high; please take precautions against heatstroke. If heatstroke symptoms occur, you can obtain heatstroke medication such as AAA from the first-aid kit in the carriage and move to a cool, ventilated area to call emergency services and wait for rescue." Alternatively, the passenger reminder message could be, "Currently, due to an international conference, traffic control is in place between sections A and B at station AAA. A delay of 10 minutes is expected upon arrival at station AAA, around 10:00 AM."
[0074] In summary, using a lightweight, integrated offline fare certificate generation tool to achieve the goal of bus fare verification reduces the overall system upgrade cost and improves the applicability of verification capabilities in complex environments. The entire bus fare verification process requires no staff intervention, effectively reducing workload and improving efficiency and accuracy. Furthermore, it addresses data traceability issues while ensuring data link security and controllability, thereby enhancing the system's ability to manage verification data.
[0075] In this embodiment of the invention, a passenger terminal provides a ride code to the bus terminal. After receiving the ride code, the bus terminal invokes an offline ride pass generation tool to obtain a unique ride pass generated by the tool, and then sends the ride code and the unique ride pass to the bus backend. The bus backend can then obtain the passenger's verification information based on the received ride code and unique ride pass, and feed this information back to the bus terminal. The bus terminal can then display the verification information. This bus ride verification method solves the problems of low verification efficiency and accuracy, difficulty in adapting to complex network environments, and inability to manage verification data in existing bus ride verification methods. It improves the efficiency and accuracy of bus ride verification, enhances the applicability of the bus system's verification capabilities in complex network environments, and improves its ability to manage its own verification data.
[0076] Example 2
[0077] Figure 2 This is a flowchart of a bus passenger verification method provided in Embodiment 2 of the present invention. This embodiment is applicable to situations where offline tools are used to assist in bus verification data. The method can be executed by a bus passenger verification device, which can be implemented in software and / or hardware, and is generally integrated into an electronic device. This electronic device can be a back-end device of the bus, used in conjunction with a bus front-end providing bus front-end services and a user terminal providing a boarding code. Correspondingly, as... Figure 2 As shown, the method includes the following operations:
[0078] S210. Obtain the ride code provided by the user's ride terminal and the unique ride credential from the bus equipment sent by the bus terminal.
[0079] S220. Obtain the passenger's passenger verification information based on the ride code and the unique ride credential.
[0080] S230. Feedback the passenger's ride verification information to the bus terminal so that the ride verification information can be displayed on the bus terminal.
[0081] In this embodiment of the invention, a passenger terminal provides a ride code to the bus terminal. After receiving the ride code, the bus terminal invokes an offline ride pass generation tool to obtain a unique ride pass generated by the tool, and then sends the ride code and the unique ride pass to the bus backend. The bus backend can then obtain the passenger's verification information based on the received ride code and unique ride pass, and feed this information back to the bus terminal. The bus terminal can then display the verification information. This bus ride verification method solves the problems of low verification efficiency and accuracy, difficulty in adapting to complex network environments, and inability to manage verification data in existing bus ride verification methods. It improves the efficiency and accuracy of bus ride verification, enhances the applicability of the bus system's verification capabilities in complex network environments, and improves its ability to manage its own verification data.
[0082] Example 3
[0083] Figure 3 This is a schematic diagram of a bus passenger verification system provided in Embodiment 3 of the present invention, as shown below. Figure 3 As shown, the structure of the bus boarding verification system includes: a user boarding terminal 310, a bus terminal 320, and a bus backend 330. The user boarding terminal 310 provides a boarding code to the bus terminal 320. The bus terminal 320 is communicatively connected to the bus backend 330 and, after obtaining the boarding code, invokes an offline boarding pass generation tool to obtain a unique boarding pass generated by the offline boarding pass generation tool, and sends the boarding code and the unique boarding pass to the bus backend 330. The bus backend 330 obtains the passenger's boarding verification information based on the boarding code and the unique boarding pass, and feeds back the passenger's boarding verification information to the bus terminal 320. The bus terminal 320 also displays the boarding verification information.
[0084] Optionally, the offline fare certificate generation tool is specifically used to: obtain the device association information of the bus equipment; wherein, the device association information includes the device parameter information and unique authorization identifier information of the bus equipment; and generate a unique fare certificate for the bus equipment based on the device association information of the bus equipment using a preset certificate generation algorithm.
[0085] Optionally, the bus backend 330 is also used to: decode the ride code to obtain the ride code decoding result; and generate ride code deduction information based on the ride code decoding result.
[0086] Optionally, the bus backend 330 is specifically used to: decode the ride code to obtain the user identity information of the passenger; verify the legitimacy of the unique ride credential, and if the unique ride credential passes the legitimacy verification, obtain the device parameter information of the bus equipment included in the unique ride credential; verify the bus equipment interface call permission based on the device parameter information, and if the bus equipment interface call permission passes the verification, obtain the passenger's ride monitoring information as the ride verification information based on the passenger's user identity information, and obtain matching ride reminder information as the ride verification information.
[0087] Optionally, the ride verification information includes ride code deduction information, ride monitoring information of the ride user, and ride reminder information; the bus terminal 320 is specifically used to: display the ride code deduction information in text display mode; and play the ride monitoring information of the ride user and the ride reminder information in voice broadcast mode.
[0088] Figure 4 This is a flowchart illustrating a bus passenger verification method provided in Embodiment 3 of the present invention. In a specific example, such as... Figure 4 As shown, the bus boarding verification process may include the following operations:
[0089] Step 1: Passengers present their boarding code through the user boarding terminal, and the bus terminal scans the boarding code to obtain the QR code information.
[0090] Step 2: The bus terminal calls the offline SDK to obtain the credential (unique boarding pass). Because the offline SDK is a local application, it does not require an internet connection, thus resolving the issue of poor network signal causing process interruptions.
[0091] Step 3: The bus terminal calls the system interface of the bus backend to decode the ride code.
[0092] Step 4: After the bus backend completes the parsing of the ride code to obtain the user's identity information, it calls the relevant data acquisition interface to access the backend of the relevant party to obtain the ride monitoring information and ride reminder information of the ride user.
[0093] The key parameters for obtaining relevant data interface inputs are the credential and user identity information. The bus backend first verifies the validity of the credential. After the credential validity verification is completed, the bus equipment interface call permissions are further verified. Once the bus equipment interface call permissions are verified, the passenger's ride monitoring information and ride reminder information can be obtained based on the user's identity information. At the same time, the obtained passenger ride monitoring information and ride reminder information can also be verified. The verified ride monitoring information and ride reminder information are returned to the bus backend. The bus backend combines other business logic to analyze and generate the final ride verification information, such as generating a standard ride verification script based on the ride monitoring information, or verifying the validity of the ride reminder information, and then returns the final processed ride verification information to the bus frontend.
[0094] Step 5: The bus terminal displays the boarding verification information returned from the bus backend.
[0095] In the above process, the offline SDK can also periodically report the number of offline SDK calls to the relevant backend to provide a basis for monitoring whether the offline SDK call frequency is abnormal.
[0096] In this embodiment of the invention, a passenger terminal provides a ride code to the bus terminal. After receiving the ride code, the bus terminal invokes an offline ride pass generation tool to obtain a unique ride pass generated by the tool, and then sends the ride code and the unique ride pass to the bus backend. The bus backend can then obtain the passenger's verification information based on the received ride code and unique ride pass, and feed this information back to the bus terminal. The bus terminal can then display the verification information. This bus ride verification method solves the problems of low verification efficiency and accuracy, difficulty in adapting to complex network environments, and inability to manage verification data in existing bus ride verification methods. It improves the efficiency and accuracy of bus ride verification, enhances the applicability of the bus system's verification capabilities in complex network environments, and improves its ability to manage its own verification data.
[0097] It should be noted that any arrangement or combination of the technical features in the above embodiments also falls within the protection scope of this invention.
[0098] In the technical solutions of this invention, the collection, storage, use, processing, transmission, provision, and disclosure of user personal information (such as user identity information, payment information, and ride monitoring information) all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0099] Example 4
[0100] Figure 5 This is a schematic diagram of a bus boarding verification device provided in Embodiment 4 of the present invention, as shown below. Figure 5 As shown, the device includes: a ride code acquisition module 410, a unique ride voucher acquisition module 420, a ride verification information acquisition module 430, and a ride verification information display module 440, wherein:
[0101] The ride code acquisition module 410 is used to acquire the ride code provided by the user's ride terminal;
[0102] The unique fare voucher acquisition module 420 is used to call the offline fare voucher generation tool to obtain the unique fare voucher for the public transportation device generated by the offline fare voucher generation tool.
[0103] The ride verification information acquisition module 430 is used to send the ride code and the unique ride voucher to the bus backend, and to acquire the ride verification information of the ride user fed back by the bus backend.
[0104] The ride verification information display module 440 is used to display the ride verification information.
[0105] In this embodiment of the invention, a passenger terminal provides a ride code to the bus terminal. After receiving the ride code, the bus terminal invokes an offline ride pass generation tool to obtain a unique ride pass generated by the tool, and then sends the ride code and the unique ride pass to the bus backend. The bus backend can then obtain the passenger's verification information based on the received ride code and unique ride pass, and feed this information back to the bus terminal. The bus terminal can then display the verification information. This bus ride verification method solves the problems of low verification efficiency and accuracy, difficulty in adapting to complex network environments, and inability to manage verification data in existing bus ride verification methods. It improves the efficiency and accuracy of bus ride verification, enhances the applicability of the bus system's verification capabilities in complex network environments, and improves its ability to manage its own verification data.
[0106] Optionally, the offline fare certificate generation tool is used to: obtain the device association information of the bus equipment; wherein, the device association information includes the device parameter information and unique authorization identifier information of the bus equipment; and generate a unique fare certificate for the bus equipment based on the device association information of the bus equipment using a preset fare certificate generation algorithm.
[0107] Optionally, the bus backend is used to: decode the ride code to obtain the ride code decoding result; and generate ride code deduction information based on the ride code decoding result.
[0108] Optionally, the bus backend is configured to: decode the ride code to obtain the user's identity information; verify the legitimacy of the unique ride credential, and if the unique ride credential passes the legitimacy verification, obtain the device parameter information of the bus equipment included in the unique ride credential; verify the bus equipment interface call permission based on the device parameter information, and if the bus equipment interface call permission passes the verification, obtain the user's ride monitoring information as the ride verification information based on the user's identity information, and obtain matching ride reminder information as the ride verification information.
[0109] Optionally, the ride verification information includes ride code deduction information, ride monitoring information of the ride user, and ride reminder information; the ride verification information display module 440 is specifically used to: display the ride code deduction information in text mode; and play the ride monitoring information of the ride user and the ride reminder information in voice broadcast mode.
[0110] The aforementioned bus passenger verification device can execute the bus passenger verification method performed by the bus terminal provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. Technical details not described in detail in this embodiment can be found in the bus passenger verification method performed by the bus terminal provided in any embodiment of the present invention.
[0111] Example 5
[0112] Figure 6 This is a schematic diagram of a bus passenger verification device provided in Embodiment 5 of the present invention, as shown below. Figure 6 As shown, the device includes: an information acquisition module 510, a backend passenger verification information acquisition module 520, and a passenger verification information feedback module 530, wherein:
[0113] Information acquisition module 510 is used to acquire the boarding code provided by the user boarding terminal and the unique boarding credential of the bus equipment sent by the bus terminal;
[0114] The backend passenger verification information acquisition module 520 is used to acquire the passenger verification information of the passenger based on the passenger code and the unique passenger credential.
[0115] The passenger verification information feedback module 530 is used to feed back the passenger verification information of the passenger to the bus terminal so that the passenger verification information can be displayed on the bus terminal.
[0116] Optionally, the bus terminal is used to obtain the ride code provided by the user's ride terminal; call the offline ride certificate generation tool to obtain the unique ride certificate of the bus device generated by the offline ride certificate generation tool; and send the ride code and the unique ride certificate to the bus backend.
[0117] Optionally, the offline fare certificate generation tool is used to: obtain the device association information of the bus equipment; wherein, the device association information includes the device parameter information and unique authorization identifier information of the bus equipment; and generate a unique fare certificate for the bus equipment based on the device association information of the bus equipment using a preset fare certificate generation algorithm.
[0118] Optionally, the bus boarding verification device may further include: a boarding code decoding result acquisition module, used to decode the boarding code to obtain the boarding code decoding result; and a boarding code fare deduction information generation module, used to generate boarding code fare deduction information based on the boarding code decoding result.
[0119] Optionally, the bus passenger verification device may further include: a passenger code decoding module, used to decode the passenger code to obtain the passenger's user identity information; a device parameter information acquisition module, used to verify the legitimacy of the unique passenger pass, and, if the unique passenger pass passes the legitimacy verification, to acquire the device parameter information of the bus equipment included in the unique passenger pass; and a passenger verification information acquisition module, used to verify the bus equipment interface call permission based on the device parameter information, and, if the bus equipment interface call permission passes the verification, to acquire the passenger's passenger monitoring information as the passenger verification information based on the passenger's user identity information, and to acquire matching passenger reminder information as the passenger verification information.
[0120] Optionally, the ride verification information includes ride code deduction information, ride monitoring information of the ride user, and ride reminder information; the bus terminal is also used to: display the ride code deduction information in text format; and play the ride monitoring information of the ride user and the ride reminder information in voice broadcast format.
[0121] In this embodiment of the invention, a passenger terminal provides a ride code to the bus terminal. After receiving the ride code, the bus terminal invokes an offline ride pass generation tool to obtain a unique ride pass generated by the tool, and then sends the ride code and the unique ride pass to the bus backend. The bus backend can then obtain the passenger's verification information based on the received ride code and unique ride pass, and feed this information back to the bus terminal. The bus terminal can then display the verification information. This bus ride verification method solves the problems of low verification efficiency and accuracy, difficulty in adapting to complex network environments, and inability to manage verification data in existing bus ride verification methods. It improves the efficiency and accuracy of bus ride verification, enhances the applicability of the bus system's verification capabilities in complex network environments, and improves its ability to manage its own verification data.
[0122] Example 6
[0123] Figure 7 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0124] like Figure 7 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0125] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0126] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as a bus boarding verification method.
[0127] In some embodiments, the bus fare verification method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the bus fare verification method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the bus fare verification method by any other suitable means (e.g., by means of firmware).
[0128] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0129] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0130] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0131] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0132] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0133] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0134] Example 7
[0135] Embodiment 7 of the present invention also provides a computer storage medium for storing a computer program. When executed by a computer processor, the computer program is used to perform any of the bus boarding verification methods described in the above embodiments of the present invention: obtaining a boarding code provided by a user's boarding terminal; calling an offline boarding pass generation tool to obtain a unique boarding pass generated by the offline boarding pass generation tool for the bus device; sending the boarding code and the unique boarding pass to the bus backend and obtaining the boarding verification information of the passenger fed back by the bus backend; and displaying the boarding verification information.
[0136] Alternatively, when executed by a computer processor, the computer program is used to perform any of the bus boarding verification methods described in the above embodiments of the present invention: obtaining a boarding code provided by the user boarding terminal and a unique boarding credential from the bus equipment sent by the bus terminal; obtaining the boarding verification information of the passenger based on the boarding code and the unique boarding credential; and feeding back the passenger's boarding verification information to the bus terminal so that the boarding verification information can be displayed through the bus terminal.
[0137] The computer storage medium of this invention can be any combination of one or more computer-readable media. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a 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 thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0138] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0139] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical fiber, radio frequency (RF), or any suitable combination thereof.
[0140] Computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as "C" or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0141] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0142] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for verifying bus passenger status, characterized in that, Applied to bus terminals, including: Obtain the boarding code provided by the user's boarding terminal; An offline fare voucher generation tool is invoked to obtain a unique fare voucher for the public transportation device generated by the tool. This unique fare voucher is characterized by its uniqueness, timeliness, and non-reusability. The offline fare voucher generation tool is used to: obtain the device association information of the public transportation device; wherein the device association information includes the device parameter information and unique authorization identifier information of the public transportation device; and generate the unique fare voucher for the public transportation device based on the device association information using a preset fare voucher generation algorithm. Send the ride code and the unique ride voucher to the bus backend and obtain the ride verification information of the ride user fed back by the bus backend; The ride verification information is displayed.
2. The method according to claim 1, characterized in that, The bus rear end is used for: The ride code is decoded to obtain the ride code decoding result; The fare deduction information is generated based on the decoding result of the ride code.
3. The method according to claim 1, characterized in that, The bus rear end is used for: The ride code is decoded to obtain the user's identity information; The unique boarding pass is validated for legality, and if the unique boarding pass passes the validity validation, the equipment parameter information of the bus equipment included in the unique boarding pass is obtained. The access permission for calling the bus equipment interface is verified based on the device parameter information. If the access permission for calling the bus equipment interface passes the verification, the passenger's ride monitoring information is obtained based on the passenger's user identity information as the ride verification information, and a matching ride reminder is obtained as the ride verification information.
4. The method according to claim 1, characterized in that, The ride verification information includes ride code deduction information, ride monitoring information of the ride user, and ride reminder information; The display of the ride verification information includes: The fare deduction information for the ride code is displayed in text format; The system uses voice broadcast to play the passenger's ride monitoring information and ride reminder information.
5. A method for verifying bus passenger status, characterized in that, Applications in the back end of buses include: The system obtains the ride code provided by the user's ride terminal and the unique ride voucher from the bus equipment, both sent by the bus terminal. This unique ride voucher is characterized by its uniqueness, timeliness, and non-reusability. The passenger's boarding verification information is obtained based on the boarding code and the unique boarding credential. The passenger's boarding verification information is fed back to the bus terminal so that the boarding verification information can be displayed on the bus terminal; The offline fare certificate generation tool is used to: obtain the device association information of the bus equipment; wherein, the device association information includes the device parameter information and unique authorization identifier information of the bus equipment; and generate a unique fare certificate for the bus equipment based on the device association information of the bus equipment using a preset certificate generation algorithm.
6. A bus passenger verification system, characterized in that, This includes user boarding terminals, bus terminals, and the bus backend, among which: The user boarding terminal is used to provide a boarding code to the bus terminal; The bus terminal is communicatively connected to the bus backend and, after obtaining the ride code, invokes an offline ride voucher generation tool to obtain a unique ride voucher for the bus device generated by the offline ride voucher generation tool. The terminal then sends the ride code and the unique ride voucher to the bus backend. The unique ride voucher is unique, time-sensitive, and non-reusable. The offline ride voucher generation tool is used to: obtain the device association information of the bus device; the device association information includes the device parameter information and unique authorization identifier information of the bus device; and generate the unique ride voucher for the bus device using a preset voucher generation algorithm based on the device association information. The bus backend is used to obtain the passenger's passenger verification information based on the ride code and the unique ride credential, and to feed back the passenger's passenger verification information to the bus terminal; The bus terminal is also used to display the boarding verification information.
7. A bus passenger verification device, characterized in that, include: The ride code acquisition module is used to acquire the ride code provided by the user's ride terminal; The unique fare voucher acquisition module is used to call an offline fare voucher generation tool to obtain a unique fare voucher for the public transportation device generated by the offline fare voucher generation tool; wherein, the unique fare voucher has the characteristics of uniqueness, timeliness, and non-reusability; the offline fare voucher generation tool is used to: obtain the device association information of the public transportation device; wherein, the device association information includes the device parameter information and unique authorization identifier information of the public transportation device; and generate the unique fare voucher for the public transportation device based on the device association information of the public transportation device using a preset fare voucher generation algorithm; The ride verification information acquisition module is used to send the ride code and the unique ride voucher to the bus backend, and to acquire the ride verification information of the ride user fed back by the bus backend. The ride verification information display module is used to display the ride verification information.
8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the bus passenger verification method according to any one of claims 1-4 or 5.
9. A computer storage medium, characterized in that, The computer storage medium stores computer instructions that are used to cause the processor to execute the bus passenger verification method according to any one of claims 1-4 or 5.
Citation Information
Patent Citations
Methods and devices of paying vehicle riding fare and equipment
CN108492101A
Riding code gate in-out real-time matching and settlement method and system for rail transit industry
CN110443603A
