CN113538712B - Traffic card identification method, device, equipment and storage medium - Google Patents

Traffic card identification method, device, equipment and storage medium Download PDF

Info

Publication number
CN113538712B
CN113538712B CN202111090454.9A CN202111090454A CN113538712B CN 113538712 B CN113538712 B CN 113538712B CN 202111090454 A CN202111090454 A CN 202111090454A CN 113538712 B CN113538712 B CN 113538712B
Authority
CN
China
Prior art keywords
card
traffic card
unlocking
traffic
blacklist
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111090454.9A
Other languages
Chinese (zh)
Other versions
CN113538712A (en
Inventor
乙从庆
彭海丰
甄永峰
余浩
王芳彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Shenzhentong Co ltd
Original Assignee
Shenzhen Shenzhentong Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Shenzhentong Co ltd filed Critical Shenzhen Shenzhentong Co ltd
Priority to CN202111090454.9A priority Critical patent/CN113538712B/en
Publication of CN113538712A publication Critical patent/CN113538712A/en
Application granted granted Critical
Publication of CN113538712B publication Critical patent/CN113538712B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07BTICKET-ISSUING APPARATUS; FARE-REGISTERING APPARATUS; FRANKING APPARATUS
    • G07B15/00Arrangements or apparatus for collecting fares, tolls or entrance fees at one or more control points
    • G07B15/02Arrangements or apparatus for collecting fares, tolls or entrance fees at one or more control points taking into account a variable factor such as distance or time, e.g. for passenger transport, parking systems or car rental systems

Landscapes

  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for identifying a traffic card, wherein the method comprises the following steps: when detecting that the traffic card is swiped for consumption, acquiring the identity information of the traffic card, and judging whether the identity information exists in a traffic card blacklist or not; when the identity information exists in the traffic card blacklist, reading unlocking information in an independent storage area of the traffic card; and when the unlocking information meets the preset standard, allowing the transportation card to be swiped for consumption. When the traffic card swiping consumption is detected, whether the identity information of the traffic card exists in the traffic card blacklist or not is judged, when the traffic card swiping consumption exists in the traffic card blacklist, the unlocking information of the traffic card independent storage area is read, and when the unlocking information meets the preset standard, the traffic card swiping consumption is allowed, so that the technical problem that when the traffic card is used for taking a car after unlocking in the prior art, the card is locked again due to the fact that the traffic card blacklist is not updated timely is solved, and the traffic card identification accuracy and the user experience are improved.

Description

Traffic card identification method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of contactless integrated circuit cards, in particular to a traffic card identification method, a traffic card identification device, traffic card identification equipment and a storage medium.
Background
The traffic cards (such as student cards and old man cards) which are registered in real names generally support loss report, a one-card system can generate a blacklist file and send the blacklist file to a public transportation operation enterprise after loss report, and the public transportation operation enterprise sends the blacklist file to terminal equipment. Under the limitation of network conditions and the requirement of quick response of card swiping in riding, the current vehicle-mounted terminal is offline processing when processing card swiping transactions, and whether a traffic card is reported to be lost can only be judged by checking whether the traffic card is in a blacklist file. Meanwhile, the blacklist file in the terminal equipment is often not updated in time due to the influence of network conditions, public transport operator systems, equipment terminal technologies and a large number of terminals.
At present, if a card holder finds a traffic card after losing the traffic card, the card holder needs to go to the one-card company for carrying out an unlocking operation, or the card holder finds the traffic card and then goes to take public transportation, and the card is locked in a blacklist, so the card holder needs to go to the one-card company for carrying out an unlocking operation. After the hang release unlocking, the one-card company removes the traffic card from the blacklist when generating the blacklist file next time. However, it takes a certain time to remove the blacklist of the traffic card and update the blacklist into the terminal vehicle-mounted device. At this time, if the card is taken by the transportation card, the card number is still in the blacklist and further the card is locked again, so that the card cannot be used, and the card needs to go to the one-card company again for processing, which seriously affects the user experience.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a traffic card identification method, a traffic card identification device, traffic card identification equipment and a traffic card storage medium, and aims to solve the technical problem that in the prior art, after a traffic card is unlocked, the traffic card is locked again when a vehicle is taken by using the traffic card.
In order to achieve the above object, the present invention provides a traffic card identification method, comprising the steps of:
when detecting that the traffic card is swiped for consumption, acquiring the identity information of the traffic card, and judging whether the identity information exists in a traffic card blacklist or not;
when the identity information exists in a traffic card blacklist, reading unlocking information in an independent storage area of the traffic card;
and when the unlocking information meets a preset standard, allowing the transportation card to be swiped for consumption.
Optionally, the step of acquiring the identity information of the transportation card and determining whether the identity information exists in a transportation card blacklist when detecting that the transportation card is swiped for consumption includes:
when detecting that the traffic card is swiped for consumption, acquiring the identity information of the traffic card;
reading the card number of the traffic card from the identity information, and searching the card number in the traffic card blacklist;
and when the card number is found in the traffic card blacklist, judging that the identity information exists in the traffic card blacklist.
Optionally, the step of reading the unlocking information in the independent storage area of the transportation card when the identity information exists in the transportation card blacklist includes:
when the identity information exists in a traffic card blacklist, identifying a preset independent storage area in the traffic card;
and reading the unlocking information of the traffic card from the independent storage area.
Optionally, the step of allowing the transportation card to be swiped for consumption when the unlocking information meets a preset standard includes:
when the unlocking information is effective unlocking information, reading an unlocking mark from the unlocking information, and judging whether the unlocking mark is an unlocked mark or not;
when the unlocking mark is an unlocked mark, reading unlocking time from the unlocking information, and reading locking time of the traffic card from the traffic card blacklist;
when the unlocking time is after the locking time, allowing the transportation card to be swiped for consumption.
Optionally, before the step of acquiring the identity information of the transportation card and determining whether the identity information exists in a transportation card blacklist when the transportation card swiping consumption is detected, the method further includes:
when detecting that the traffic card is swiped for consumption, reading the state information of the traffic card, and judging whether the state of the traffic card is a normal state or not according to the state information;
and when the traffic card is in an abnormal state, forbidding the traffic card to be swiped for consumption.
Optionally, after the steps of reading the unlocking time from the unlocking information and reading the locking time of the transportation card from the transportation card blacklist when the unlocking mark is the unlocked mark, the method further includes:
and when the unlocking time is before the locking time, forbidding the transportation card swiping consumption and locking the transportation card.
Optionally, after the steps of acquiring the identity information of the transportation card and determining whether the identity information exists in a transportation card blacklist when the transportation card swiping consumption is detected, the method further includes:
when the identity information is not in the traffic card blacklist, judging whether unlocking information exists in an independent storage area of the traffic card or not;
when unlocking information exists in the independent storage area of the traffic card, acquiring the creation time of the traffic card blacklist;
reading unlocking time from the unlocking information, and comparing the unlocking time with the creating time;
clearing the unlocking information existing in the independent storage area of the traffic card when the unlocking time is before the creation time.
In addition, in order to achieve the above object, the present invention also provides an identification apparatus for a traffic card, the apparatus comprising:
the judging module is used for acquiring the identity information of the traffic card when the traffic card swiping consumption is detected, and judging whether the identity information exists in a traffic card blacklist or not;
the reading module is used for reading the unlocking information in the independent storage area of the traffic card when the identity information exists in the traffic card blacklist;
and the allowing module is used for allowing the transportation card to be swiped for consumption when the unlocking information meets a preset standard.
In addition, in order to achieve the above object, the present invention also provides an identification apparatus for a traffic card, the apparatus comprising: a memory, a processor and an identification program of a traffic card stored on the memory and executable on the processor, the identification program of the traffic card being configured to implement the steps of the identification method of a traffic card as described above.
In addition, in order to achieve the above object, the present invention further provides a storage medium, which stores thereon an identification program of a traffic card, the identification program of the traffic card implementing the steps of the identification method of the traffic card as described above when executed by a processor.
When detecting that the traffic card is swiped for consumption, acquiring the identity information of the traffic card, and judging whether the identity information exists in a traffic card blacklist or not; when the identity information exists in a traffic card blacklist, reading unlocking information in an independent storage area of the traffic card; and when the unlocking information meets a preset standard, allowing the transportation card to be swiped for consumption. When the traffic card swiping consumption is detected, whether the identity information of the traffic card exists in the traffic card blacklist or not is judged, when the traffic card swiping consumption exists in the traffic card blacklist, the unlocking information in the traffic card independent storage area is read, and when the unlocking information meets the preset standard, the traffic card swiping consumption is allowed, so that the technical problem that when the traffic card is used for taking a car after unlocking in the prior art, the card is locked again due to the fact that the traffic card blacklist is not updated timely is solved, and the traffic card identification accuracy and the user experience are improved.
Drawings
Fig. 1 is a schematic structural diagram of an identification device of a traffic card in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a traffic card identification method according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of the method for identifying a transportation card according to the present invention;
FIG. 4 is a flowchart illustrating a traffic card identification method according to a third embodiment of the present invention;
fig. 5 is a block diagram of the first embodiment of the identification device of the transportation card of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an identification device of a traffic card in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the identification device of the transportation card may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the identification device of the traffic card and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and an identification program of a traffic card.
In the identification device of the transportation card shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 of the identification device of the traffic card of the present invention may be provided in the identification device of the traffic card, and the identification device of the traffic card calls the identification program of the traffic card stored in the memory 1005 through the processor 1001 and executes the identification method of the traffic card provided by the embodiment of the present invention.
An embodiment of the present invention provides a method for identifying a traffic card, and referring to fig. 2, fig. 2 is a schematic flow diagram of a first embodiment of the method for identifying a traffic card according to the present invention.
In this embodiment, the method for identifying a traffic card includes the following steps:
step S10: when detecting that the traffic card is swiped for consumption, acquiring the identity information of the traffic card, and judging whether the identity information exists in a traffic card blacklist.
It should be noted that the execution subject of the present embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, or an electronic device, a card swiping terminal device, etc. capable of implementing the above functions, and the present embodiment and each of the following embodiments are described below by taking the card swiping terminal device as an example.
It should be understood that the traffic card may be a subway card, a bus card, a light rail card, or a one-card, which is not limited in this embodiment, and the one-card is taken as an example in the embodiment for illustration.
It can be understood that the identity information includes information such as a card number of the one-card, a name of a card holder, an identity card number of the card holder, and the like, and when the card holder uses the one-card swiping mode for card consumption, the card swiping terminal device can acquire the identity information of the one-card.
It should be understood that the determining whether the identity information exists in the traffic card blacklist is determining whether at least one of the identity information exists in the traffic card blacklist, and the traffic card blacklist is a traffic card blacklist for which card swiping consumption is prohibited, and the identity information of the traffic card is added to the traffic card blacklist after the traffic card is lost, returned or scrapped.
In the specific implementation, when the card swiping terminal device detects that the traffic card swipes the consumption of the traffic card, the identity information of the traffic card is acquired, and whether the acquired identity information exists in a traffic card blacklist is judged.
Step S20: and when the identity information exists in a traffic card blacklist, reading unlocking information in an independent storage area of the traffic card.
It can be understood that when the cardholder goes to the one-card service transaction process to handle the hang or unlock service, the service system will register and store the information of hang or unlock into the independent storage area of the one-card.
It should be understood that the independent storage area is an independent storage area defined in the storage area of the transportation card when the card is planned, and the area is only used for storing the unlocking information of the transportation card, and other information of the transportation card is not allowed to be stored in the area, and the other information includes, but is not limited to, consumption information, recharging information and the like.
The traffic card is found and the traffic card is not used for taking a car if a cardholder loses the traffic card, the traffic card is not locked at the moment, the cardholder only needs to understand hanging operation to the one-card service transaction process without transacting the unlocking service, the stored unlocking information registered and stored in the independent storage area of the one-card is the hanging sign information at the moment, and the hanging sign information comprises the hanging sign time corresponding to the hanging sign and the hanging sign; if the card holder reports that the traffic card is lost, the traffic card is locked when being swiped, the card holder permits to handle the unlocking service to the one-card service handling process, the unlocking information stored in the grade of the one-card independent storage area is unlocking mark information, and the unlocking mark information comprises unlocking marks and unlocking mark time corresponding to the unlocking marks; the unlocking information described in this embodiment is explained by taking the unlocking flag information as an example, and the unlocking flag information may refer to an embodiment of the unlocking flag information, which is not limited herein.
Step S30: and when the unlocking information meets a preset standard, allowing the transportation card to be swiped for consumption.
It should be understood that the preset criterion may be set in advance, for example, the preset criterion may be set as: the unlocking information comprises an unlocking mark; unlocking the marked time in the unlocking information; the unlocking information comprises an unlocking mark and unlocking mark time; the unlocking information includes an unlocking mark and unlocking mark time, and the unlocking mark time is after the loss reporting time of the traffic card, which is not limited in this embodiment.
In the specific implementation, when the card swiping terminal device detects that the transportation card swipes the consumption, the identity information of the transportation card is obtained, when the identity information exists in a blacklist of the transportation card, the unlocking information is read from an independent storage area of the transportation card, and when the unlocking information meets a preset standard, the transportation card can be judged to be unlocked, and the transportation card is allowed to swipe the consumption.
Further, in order to improve the accuracy of determining whether the traffic card identity information exists in the traffic card blacklist, the step S10 includes: when detecting that the traffic card is swiped for consumption, acquiring the identity information of the traffic card; reading the card number of the traffic card from the identity information, and searching the card number in the traffic card blacklist; and when the card number is found in the traffic card blacklist, judging that the identity information exists in the traffic card blacklist.
It should be understood that when the card swiping terminal device detects that the traffic card swipes the consumption of the traffic card, the identity information of the traffic card is acquired, and after the traffic card identity information is acquired, the card swiping terminal device reads the card number of the traffic card from the identity information and searches the card number in the traffic card blacklist.
It can be understood that the traffic card blacklist includes the card number of the traffic card added into the blacklist, and the card holder name and the card holder identification number corresponding to the card number, and when the traffic card number of the card swiping is found in the traffic card blacklist, the traffic card blacklist represents that the identification information of the traffic card exists in the traffic card blacklist, that is, the traffic card is in the traffic card blacklist.
In the specific implementation, when the card swiping terminal device detects that the traffic card swipes the card and consumes electricity, the identity information of the traffic card is obtained, the card number of the traffic card is read from the identity information, the card number is searched in a traffic card blacklist, and if the card number is searched, the identity information is determined to be in the traffic card blacklist, namely the traffic card corresponding to the identity information is in the traffic card blacklist.
Further, in order to improve the efficiency of information reading, the step S20 includes: when the identity information exists in a traffic card blacklist, identifying a preset independent storage area in the traffic card; and reading the unlocking information of the traffic card from the independent storage area.
It should be understood that the independent storage area is an area which is preset during card planning and is specially used for storing unlocking information, and when the independent storage area is preset, the independent storage area can be marked by marking information, and the marking information can be letters, numbers or other characters.
It can be understood that when the independent storage area is identified, the mark information of the storage area can be directly acquired, and when the mark information is the mark information of the independent storage area, the unlocking information of the traffic card is read from the storage area.
Further, in a practical application scenario, there may be a situation that the transportation card is swiped for consumption by using a discarded transportation card and a returned transportation card, and in order to improve the card identification efficiency, before the step S10, the method further includes: when detecting that the traffic card is swiped for consumption, reading the state information of the traffic card, and judging whether the state of the traffic card is a normal state or not according to the state information; and when the traffic card is in an abnormal state, forbidding the traffic card to be swiped for consumption.
It should be understood that the status information includes a normal status and an abnormal status, the status that the card can be normally swiped for consumption is a normal status, the status that the card cannot be normally swiped for consumption after being returned or discarded is an abnormal status, and the normal status and the abnormal status can be represented by specific characters, for example, "1" represents the normal status, and "0" represents the abnormal status; the normal state is represented by "a", the abnormal state is represented by "B", or other characters are used, which is not limited in this embodiment.
It can be understood that when the transportation card is in an abnormal state, the transportation card is prohibited from card swiping consumption, subsequent operation is not needed, and the card identification efficiency can be improved.
In a specific implementation, for example, "1" represents a normal state, and "0" represents an abnormal state, when the card swiping terminal device detects the card swiping consumption of the traffic card, the card swiping terminal device reads the state information of the traffic card, and if the read state information is "0", the card swiping terminal device indicates that the state of the traffic card is the abnormal state, and the card swiping terminal device performs the card swiping consumption of the traffic card.
When detecting that the traffic card is swiped for consumption, the embodiment acquires the identity information of the traffic card and judges whether the identity information exists in a traffic card blacklist; when the identity information exists in a traffic card blacklist, reading unlocking information in an independent storage area of the traffic card; and when the unlocking information meets a preset standard, allowing the transportation card to be swiped for consumption. According to the traffic card identification method and the traffic card identification device, whether the identity information of the traffic card exists in the traffic card blacklist or not is judged when the traffic card swiping consumption is detected, the unlocking information in the traffic card independent storage area is read when the traffic card swiping consumption exists in the traffic card blacklist, the traffic card swiping consumption is allowed when the unlocking information meets the preset standard, the technical problem that when the traffic card is used for riding in the prior art after unlocking, the traffic card is locked again due to the fact that the traffic card blacklist is not updated timely is solved, and traffic card identification accuracy and user experience are improved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of the method for identifying a transportation card according to the present invention.
Based on the first embodiment described above, in the present embodiment, the step S30 includes:
step S301: and when the unlocking information is effective unlocking information, reading an unlocking mark from the unlocking information, and judging whether the unlocking mark is an unlocked mark.
It should be understood that the card swiping terminal device reads the unlocking information from the independent storage area of the traffic card, and may read the unlocking information, and the unlocking information is valid unlocking information at this time; if the read unlocking information is empty, the unlocking information is invalid.
It is understood that the unlocking information includes an unlocking flag and an unlocking flag time, when the unlocking information is valid unlocking information, the unlocking flag is read from the unlocking information, and whether the unlocking flag is an unlocked flag is determined, the unlocking flag includes an unlocked flag and an un-unlocked flag, and may be represented by a character, for example, the unlocked flag is represented by "1", and the un-unlocked flag is represented by "0".
Step S302: and when the unlocking mark is an unlocked mark, reading unlocking time from the unlocking information, and reading locking time of the traffic card from the traffic card blacklist.
It should be understood that when the unlocking mark is not an unlocking mark, the lost transportation card is indicated not to handle the unlocking service, and then the transportation card is prohibited from consuming; and when the unlocking mark is the unlocked mark, the traffic card is indicated to be transacted with unlocking service.
It can be understood that the unlocking time is the time for transacting the unlocking service, and the unlocking time is recorded simultaneously when transacting the unlocking service for the lost transportation card; when a loss report service is transacted for the traffic card, the loss report time of the traffic card is recorded, the loss report time is the locking time of the traffic card, and when the lost traffic card is added to a traffic card blacklist, the locking time of the traffic card is added to the blacklist at the same time.
It should be understood that the card swiping terminal device reads the locking time of the transportation card from the blacklist while reading the unlocking time of the transportation card.
Step S303: when the unlocking time is after the locking time, allowing the transportation card to be swiped for consumption.
It can be understood that, in practical applications, multiple loss reports and multiple unlocking situations may exist in the same traffic card, the unlocking time read by the card swiping terminal device may be historical unlocking time of the traffic card, and after the traffic card is locked by the loss report last time, no unlocking service is transacted, so as to avoid economic loss of a real card holding user caused by allowing traffic card consumption when the historical unlocking time is read, improve card identification accuracy, compare the read traffic card unlocking time with the locking time of the traffic card, if the unlocking time is after the locking time, it is indicated that after the traffic card is locked by the loss report last time, the unlocking service is transacted, and at this time, the card swiping terminal device allows the traffic card to consume by swiping.
In the specific implementation, when the read unlocking information is valid unlocking information, the card swiping terminal device reads an unlocking mark from the unlocking information, when the unlocking mark is the unlocked mark, the unlocking mark time is read from the unlocking information, the unlocking mark time is compared with the locking time of the traffic card read from the traffic card blacklist, when the unlocking time is after the locking time, it is indicated that the unlocking service is transacted after the locking is reported last time, and the card swiping terminal device allows the traffic card to swipe the card for consumption.
Further, after the step S302, in order to improve the accuracy of the traffic card identification, the method further includes: and when the unlocking time is before the locking time, forbidding the transportation card swiping consumption and locking the transportation card.
It should be understood that when the unlocking time is before the locking time, which indicates that no unlocking service is transacted for the transportation card after the locking is last reported, the transportation card is prohibited from being consumed by swiping the card.
In this embodiment, when the unlocking information is valid unlocking information, an unlocking mark is read from the unlocking information, and whether the unlocking mark is an unlocked mark is judged; when the unlocking mark is an unlocked mark, reading unlocking time from the unlocking information, and reading locking time of the traffic card from the traffic card blacklist; when the unlocking time is after the locking time, allowing the transportation card to be swiped for consumption. According to the traffic card identification method and device, when the unlocking mark in the unlocking information is the unlocked mark, the unlocking time of the traffic card in the unlocking information is compared with the locking time of the traffic card in the traffic card blacklist, when the unlocking time is after the locking time, the traffic card is allowed to be consumed by swiping the card, the fact that when historical unlocking information is read, the fact that the traffic card is allowed to be consumed by swiping the card according to the historical unlocking information to cause real card holder economic loss is avoided, and the traffic card identification accuracy and user experience are improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating a traffic card identification method according to a third embodiment of the present invention.
Based on the foregoing embodiments, in this embodiment, after the step S10, the method further includes:
step S101: and when the identity information is not in the traffic card blacklist, judging whether unlocking information exists in the independent storage area of the traffic card.
It should be understood that when the identity information of the traffic card is not in the traffic card blacklist, it indicates that the traffic card can be consumed by swiping the card normally, and in order to release the storage space of the traffic card independent storage area and simultaneously avoid that the identification efficiency and the identification accuracy of the traffic card are reduced due to reading of historical unlocking information in the subsequent identification of the traffic card, the card swiping terminal device judges whether the unlocking information exists in the traffic card independent storage area.
Step S102: and when the unlocking information exists in the independent storage area of the traffic card, acquiring the creation time of the traffic card blacklist.
It can be understood that, when the unlocking information exists in the independent storage area of the traffic card, the card swiping terminal device obtains the creation time of the traffic card blacklist, where the creation time of the traffic card blacklist may be the creation time of the traffic card blacklist or the update time of the traffic card blacklist, which is not limited in this embodiment.
Step S103: and reading the unlocking time from the unlocking information and comparing the unlocking time with the creating time.
It should be understood that the unlocking information includes unlocking time, the unlocking time is the time for the traffic card to transact the unlocking service, and the unlocking time of the traffic card is compared with the creation time of the traffic card blacklist.
Step S104: clearing the unlocking information existing in the independent storage area of the traffic card when the unlocking time is before the creation time.
It can be understood that when the unlocking time is before the creation time, the identification information of the traffic card is indicated to be removed from the traffic card blacklist, the unlocking information is calibrated to be historical unlocking information of the traffic card, the traffic card can be consumed by swiping the card normally, the situation that the unlocked traffic card is locked again due to untimely updating of the traffic card blacklist is avoided, and meanwhile, in order to eliminate the subsequent influence of the historical unlocking information on the traffic card identification efficiency and the identification accuracy, the historical unlocking information is cleared from the independent storage area of the traffic card.
In this embodiment, when the identity information is not in the traffic card blacklist, whether unlocking information exists in the independent storage area of the traffic card is judged; when unlocking information exists in the independent storage area of the traffic card, acquiring the creation time of the traffic card blacklist; reading unlocking time from the unlocking information, and comparing the unlocking time with the creating time; clearing the unlocking information existing in the independent storage area of the traffic card when the unlocking time is before the creation time. According to the traffic card identification method and device, whether the unlocking information exists in the independent storage area of the traffic card is judged when the identity information of the traffic card is not in the traffic card blacklist, if yes, the unlocking time in the unlocking information is compared with the creation time of the traffic card blacklist, and when the unlocking time is before the creation time, the unlocking information in the independent storage area is cleared, so that the situation that the economy of a card holder is damaged due to the fact that the traffic card is allowed to be swiped for consumption when historical unlocking information in the independent storage area is read subsequently is avoided, the identification efficiency and the identification accuracy of the traffic card are improved, and user experience is improved.
In addition, an embodiment of the present invention further provides a storage medium, where an identification program of a traffic card is stored on the storage medium, and the identification program of the traffic card is executed by a processor to implement the steps of the identification method of the traffic card as described above.
Referring to fig. 5, fig. 5 is a block diagram of the first embodiment of the identification device of the transportation card of the present invention.
As shown in fig. 5, the identification apparatus for a transportation card according to an embodiment of the present invention includes: the judging module 10 and the reading module 20 allow the module 30.
The judging module 10 is configured to, when detecting that a traffic card is swiped for consumption, acquire identity information of the traffic card, and judge whether the identity information exists in a traffic card blacklist;
the reading module 20 is configured to read the unlocking information in the independent storage area of the traffic card when the identity information exists in the traffic card blacklist;
the allowing module 30 is configured to allow the transportation card to be consumed by swiping the card when the unlocking information meets a preset standard.
When detecting that a traffic card is swiped for consumption, the determining module 10 of this embodiment acquires identity information of the traffic card, and determines whether the identity information exists in a traffic card blacklist; the reading module 20 reads the unlocking information in the independent storage area of the traffic card when the identity information exists in the traffic card blacklist; the allowing module 30 allows the transportation card to be swiped for consumption when the unlocking information meets a preset standard. According to the embodiment, when the traffic card swiping consumption is detected, whether the identity information of the traffic card exists in the traffic card blacklist or not is judged, when the identity information of the traffic card exists in the traffic card blacklist, the unlocking information in the traffic card independent storage area is read, and when the unlocking information meets the preset standard, the traffic card swiping consumption is allowed, so that the technical problem that when the traffic card is used for riding in the unlocked mode in the prior art, the traffic card blacklist is not updated in time, the card is locked again is solved, and the user experience is improved.
Based on the first embodiment of the traffic card identification device, the second embodiment of the traffic card identification device is provided.
In this embodiment, the determining module 10 is further configured to obtain the identity information of the transportation card when detecting that the transportation card is swiped for consumption; reading the card number of the traffic card from the identity information, and searching the card number in the traffic card blacklist; and when the card number is found in the traffic card blacklist, judging that the identity information exists in the traffic card blacklist.
The reading module 20 identifies a preset independent storage area in the traffic card when the identity information exists in a traffic card blacklist; and reading the unlocking information of the traffic card from the independent storage area.
The judging module 10 is further configured to read the state information of the traffic card when detecting that the traffic card is swiped for consumption, and judge whether the state of the traffic card is a normal state according to the state information; and when the traffic card is in an abnormal state, forbidding the traffic card to be swiped for consumption.
The allowing module 30 is further configured to read an unlocking mark from the unlocking information when the unlocking information is valid unlocking information, and determine whether the unlocking mark is an unlocked mark; when the unlocking mark is an unlocked mark, reading unlocking time from the unlocking information, and reading locking time of the traffic card from the traffic card blacklist; when the unlocking time is after the locking time, allowing the transportation card to be swiped for consumption.
The allowing module 30 is further configured to prohibit the transportation card from being consumed by swiping the transportation card and lock the transportation card when the unlocking time is before the locking time.
The judging module 10 is further configured to judge whether the unlocking information exists in the independent storage area of the traffic card when the identity information is not in the traffic card blacklist; when unlocking information exists in the independent storage area of the traffic card, acquiring the creation time of the traffic card blacklist; reading unlocking time from the unlocking information, and comparing the unlocking time with the creating time; clearing the unlocking information existing in the independent storage area of the traffic card when the unlocking time is before the creation time.
Other embodiments or specific implementation manners of the identification device of the traffic card of the present invention may refer to the above method embodiments, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., a rom/ram, a magnetic disk, an optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A method for identifying a traffic card, the method comprising:
when detecting that the traffic card is swiped and consumed, the identification equipment of the traffic card acquires the identity information of the traffic card and judges whether the identity information exists in a traffic card blacklist or not;
when the identity information exists in a traffic card blacklist, reading unlocking information in an independent storage area of the traffic card;
when the unlocking information meets a preset standard, allowing the transportation card to be consumed by swiping the card;
when the unlocking information meets a preset standard, allowing the transportation card to be swiped for consumption, wherein the method comprises the following steps:
when the unlocking information is effective unlocking information, reading an unlocking mark from the unlocking information, and judging whether the unlocking mark is an unlocked mark or not; and when the unlocking mark is an unlocked mark, reading unlocking time from the unlocking information and reading locking time of the traffic card from the traffic card blacklist, and when the unlocking time is behind the locking time, allowing the traffic card to be swiped for consumption.
2. The method of claim 1, wherein the step of obtaining identity information of the transportation card and determining whether the identity information exists in a transportation card blacklist when the transportation card swiping consumption is detected comprises:
when detecting that the traffic card is swiped for consumption, acquiring the identity information of the traffic card;
reading the card number of the traffic card from the identity information, and searching the card number in the traffic card blacklist;
and when the card number is found in the traffic card blacklist, judging that the identity information exists in the traffic card blacklist.
3. The method of claim 1, wherein the step of reading the unlock information in the separate storage area of the transportation card when the identity information exists on a transportation card blacklist comprises:
when the identity information exists in a traffic card blacklist, identifying a preset independent storage area in the traffic card;
and reading the unlocking information of the traffic card from the independent storage area.
4. The method of claim 1, wherein prior to the steps of obtaining identity information of the transportation card and determining whether the identity information exists on a transportation card blacklist upon detecting a card swiping consumption of the transportation card, the method further comprises:
when detecting that the traffic card is swiped for consumption, reading the state information of the traffic card, and judging whether the state of the traffic card is a normal state or not according to the state information;
and when the traffic card is in an abnormal state, forbidding the traffic card to be swiped for consumption.
5. The method of claim 1, wherein after the steps of reading an unlock time from the unlock information and a lock time of the transit card from the transit card blacklist when the unlock flag is an unlocked flag, the method further comprises:
and when the unlocking time is before the locking time, forbidding the transportation card swiping consumption and locking the transportation card.
6. The method of any one of claims 1 to 5, wherein after the steps of obtaining identity information of the transportation card and determining whether the identity information exists in a transportation card blacklist when the transportation card swiping consumption is detected, the method further comprises:
when the identity information is not in the traffic card blacklist, judging whether unlocking information exists in an independent storage area of the traffic card or not;
when unlocking information exists in the independent storage area of the traffic card, acquiring the creation time of the traffic card blacklist;
reading unlocking time from the unlocking information, and comparing the unlocking time with the creating time;
clearing the unlocking information existing in the independent storage area of the traffic card when the unlocking time is before the creation time.
7. An identification device for a traffic card, the device comprising:
the judging module is used for acquiring the identity information of the traffic card when the traffic card swiping consumption is detected, and judging whether the identity information exists in a traffic card blacklist or not;
the reading module is used for reading the unlocking information in the independent storage area of the traffic card when the identity information exists in the traffic card blacklist;
the allowing module is used for allowing the transportation card to be swiped for consumption when the unlocking information meets a preset standard;
the allowing module is further used for reading an unlocking mark from the unlocking information and judging whether the unlocking mark is an unlocked mark or not when the unlocking information is valid unlocking information; and when the unlocking mark is an unlocked mark, reading unlocking time from the unlocking information and reading locking time of the traffic card from the traffic card blacklist, and when the unlocking time is behind the locking time, allowing the traffic card to be swiped for consumption.
8. An identification device for a traffic card, the device comprising: memory, processor and identification program of a traffic card stored on the memory and executable on the processor, the identification program of a traffic card being configured to implement the steps of the identification method of a traffic card according to any one of claims 1 to 6.
9. A storage medium, characterized in that the storage medium stores thereon an identification program of a traffic card, which when executed by a processor implements the steps of the identification method of a traffic card according to any one of claims 1 to 6.
CN202111090454.9A 2021-09-17 2021-09-17 Traffic card identification method, device, equipment and storage medium Active CN113538712B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111090454.9A CN113538712B (en) 2021-09-17 2021-09-17 Traffic card identification method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111090454.9A CN113538712B (en) 2021-09-17 2021-09-17 Traffic card identification method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113538712A CN113538712A (en) 2021-10-22
CN113538712B true CN113538712B (en) 2021-12-21

Family

ID=78092860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111090454.9A Active CN113538712B (en) 2021-09-17 2021-09-17 Traffic card identification method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113538712B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2794270A1 (en) * 1999-05-28 2000-12-01 Schlumberger Systems & Service DEVICE FOR THE PROTECTION AGAINST THE THEFT OF A PAYING PARK ELECTRONIC TICKET
CN108681813A (en) * 2018-05-09 2018-10-19 平安普惠企业管理有限公司 A kind of blacklist processing method and terminal device
CN108932618A (en) * 2017-05-25 2018-12-04 深圳智轩科技有限公司 City ONE cartoon system based on RFID technology of Internet of things
CN110322888A (en) * 2019-05-21 2019-10-11 平安科技(深圳)有限公司 Credit card unlocking method, device, equipment and computer readable storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE249647T1 (en) * 1997-03-21 2003-09-15 Jay R Martin HOTEL REGISTRATION SYSTEM WITH WIRELESS COMMUNICATION
JP2004355127A (en) * 2003-05-27 2004-12-16 Nippon Signal Co Ltd:The Cashbox system for station service equipment
CN101393665B (en) * 2007-09-17 2010-12-08 联想(北京)有限公司 Credit card unlocking method and device
US9760704B2 (en) * 2014-05-23 2017-09-12 Blackberry Limited Security apparatus session sharing
CN106682905B (en) * 2015-11-09 2020-04-17 北京速通科技有限公司 Application unlocking method
CN106297065A (en) * 2016-07-21 2017-01-04 大连梅泰诺信息技术有限公司 A kind of public transport account loss report system based on mobile phone A PP
CN106504144A (en) * 2016-10-19 2017-03-15 中国矿业大学 A kind of campus service system based on cloud computing and mobile phone terminal
CN106600847A (en) * 2016-12-14 2017-04-26 新开普电子股份有限公司 Citizen card management platform and method thereof
CN110457965B (en) * 2018-05-07 2024-04-26 华为技术有限公司 Radio frequency card function calling method and device
CN110275994A (en) * 2019-05-01 2019-09-24 上海明我信息技术有限公司 A kind of meal card management system
CN112102092A (en) * 2020-11-12 2020-12-18 深圳市深圳通有限公司 Transaction clearing method, transaction clearing device and readable storage medium of traffic card

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2794270A1 (en) * 1999-05-28 2000-12-01 Schlumberger Systems & Service DEVICE FOR THE PROTECTION AGAINST THE THEFT OF A PAYING PARK ELECTRONIC TICKET
CN108932618A (en) * 2017-05-25 2018-12-04 深圳智轩科技有限公司 City ONE cartoon system based on RFID technology of Internet of things
CN108681813A (en) * 2018-05-09 2018-10-19 平安普惠企业管理有限公司 A kind of blacklist processing method and terminal device
CN110322888A (en) * 2019-05-21 2019-10-11 平安科技(深圳)有限公司 Credit card unlocking method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN113538712A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN102376111B (en) Entry/exit controlling system and method
WO2012061309A1 (en) System and method for tracking customer personal information in a warehouse management system
WO2012061326A1 (en) System and method for removing customer personal information from an electronic device
US20200126069A1 (en) Data processing method, apparatus and device
CN108269177A (en) Oiling service information pushing method and gas station's service system
US20200027183A1 (en) Network computer system to determine suitabilities of vehicles using blockchain records
CN113538712B (en) Traffic card identification method, device, equipment and storage medium
JP2010191800A (en) Security management system
CN113780963A (en) Transportation management method, system, storage medium and equipment for commodity vehicle
KR101582530B1 (en) Integrated management method for used automobile parts
CN113706138A (en) Payment method, device, equipment and storage medium based on digital currency hard wallet
JP2004168468A (en) Delivery history information acquisition system
CN103927877A (en) Motor vehicle image information storage reading method and system
CN114169547A (en) Control method and system for vehicle service
CN115499499A (en) Management information pushing method, server and storage medium
CN113221888A (en) License plate number management system testing method and device, electronic equipment and storage medium
JP2003072526A (en) Vehicle information management seal, vehicle information management system, vehicle information management method, and vehicle information management program
CN109635959A (en) Automobile maintenance management system
CN112767593B (en) Traffic card owner identification method, device, equipment and storage medium
JP6178662B2 (en) Entrance / exit management system and method
CN111612564B (en) Ticket processing method and device and computer readable storage medium
JP2006103885A (en) On-vehicle device, and center device
JP2006227708A (en) Ic card management system and ic card management method
CN110866982B (en) Blacklist vehicle inspection method and system in truck ETC lane system
EP4083882A1 (en) Luggage management system, luggage management method, luggage management device, and computer-readable recording medium

Legal Events

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