Low power cpc card screening method, device, computer equipment and storage medium
Patent Information
- Application Number
- CN202410915812.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2026-09-18
- Estimated Expiration
- 2044-07-09
AI Technical Summary
[0003]然而,在高速公路入口处发放给车辆用户的CPC卡有时会出现没电的情况,导致无法进行路径标识,这种情况在车辆出口时会影响实际行驶路径的收费结算,可能导致经济损失,并不利于维护高速公路的秩序
[0016] The beneficial effects of this invention compared to existing technologies are as follows: This invention determines the validity of the power information of CPC cards by obtaining the EF02 file of the CPC card to be screened, and then obtains the power information through a 13.56MHz or 5.8G communication link to determine whether it is a low-power CPC card. If so, it refuses to issue the card, thus realizing power screening of the card and ensuring that only cards with sufficient power are issued to users. This avoids route identification failures caused by cards with no power or low power, ensures the accuracy of highway toll collection, improves toll collection efficiency, and saves users' time.
Smart Images

Figure CN118733848B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to CPC card screening methods, and more specifically to low-battery CPC card screening methods, apparatus, computer equipment, and storage media. Background Technology
[0002] CPC cards (Compound Pass Cards) play a crucial role in highway toll collection. Equipped with 5.8GHz and 13.56MHz communication capabilities, CPC cards can read and write entry and route information. These cards are issued to vehicles at the entrance of toll booths on closed toll roads and collected at the exit lanes; they are reusable and are therefore also known as ambiguous route identification cards. CPC cards not only record vehicle entry and exit information at toll booths but also accurately record the actual travel routes of vehicles through route identification systems installed at highway interchanges. This provides essential data for the calculation and settlement of inter-provincial tolls.
[0003] However, the CPC cards issued to vehicle users at highway entrances sometimes run out of power, making route marking impossible. This can affect toll settlement of the actual driving route when the vehicle exits, potentially leading to economic losses and hindering the maintenance of highway order.
[0004] Therefore, it is necessary to design a new method to screen the battery level of cards, ensuring that only cards with sufficient power are issued to users; to avoid route identification failures caused by cards with no or low power, thus ensuring the accuracy of highway toll collection, improving toll collection efficiency, and saving users' time. Summary of the Invention
[0005] The purpose of this invention is to overcome the shortcomings of the prior art and provide a method, apparatus, computer equipment and storage medium for screening low-power CPC cards.
[0006] To achieve the above objectives, the present invention adopts the following technical solution: a low-battery CPC card screening method, comprising: Obtain the EF02 file corresponding to the CPC card to be screened; The EF02 file is rewritten, and the power byte corresponding to the EF02 file of the CPC card to be screened is obtained again using a 13.56MHz communication link to obtain the rewritten result; The validity of the power information corresponding to the CPC card to be screened is determined based on the rewriting results. If the power information is valid, the power byte corresponding to the EF02 file of the CPC card to be screened, which is obtained again using a 13.56MHz communication link, will be determined as the first power information. Based on the first power information, determine whether the CPC card to be screened is a low power CPC card, so as to obtain a determination result; If the determination result is that the CPC card to be screened is a low-battery CPC card, then the CPC card to be screened will not be issued. If the battery information is invalid, the information responded by VST is obtained through the 5.8G communication link to obtain the second battery information; Based on the bytes in the second power information, determine whether the CPC card to be screened is a low power CPC card, obtain a determination result, and execute the step of refusing to issue the CPC card to be screened if the determination result is that the CPC card to be screened is a low power CPC card.
[0007] The further technical solution is as follows: the step of determining whether the power information corresponding to the CPC card to be screened is valid based on the rewriting result includes: Determine whether the rewritten result is equal to the value of the battery byte in the EF02 file before rewriting; If the rewriting result is not equal to the value corresponding to the battery byte in the EF02 file before rewriting, then the battery information is determined to be invalid. If the rewriting result is equal to the value corresponding to the power byte in the EF02 file before rewriting, then the power information is determined to be valid.
[0008] Its further technical solution is as follows: The process of rewriting the EF02 file and then using a 13.56MHz communication link to re-acquire the power bytes corresponding to the EF02 file of the CPC card to be screened, in order to obtain the rewritten result, includes: The battery level byte in the EF02 file is changed to a preset value that is not read for the first time. After modifying the battery level byte, the CPC card to be screened is closed and then reopened. The battery level byte in the EF02 file corresponding to the CPC card to be screened is obtained again using the 13.56MHz communication link. If the value of the battery level byte in the EF02 file corresponding to the CPC card to be screened is the same as the value of the battery level byte in the EF02 file before the modification, then the modification result is determined to be equal to the value of the battery level byte in the EF02 file before the modification. If the value of the battery level byte in the EF02 file corresponding to the CPC card to be screened is not the same as the value of the battery level byte in the EF02 file before the modification, then the modification result is determined to be equal to the value of the battery level byte in the EF02 file before the modification.
[0009] The further technical solution is as follows: The method of obtaining the power byte corresponding to the EF02 file of the CPC card to be screened using a 13.56MHz communication link includes: The CPC card to be screened is opened at the entrance of the CPC card by the lane card reader, and a specific TimeCos command is sent to read the power byte stored in the CPC basic information file to obtain the EF02 file. The content corresponding to the first byte in the EF02 file is determined to be the power byte corresponding to the EF02 file.
[0010] The further technical solution is as follows: obtaining the information responded to by VST through the 5.8G communication link to obtain the second power information includes: An ETC communication link is established between a 5.8G device and the CPC card to be screened. Information is exchanged through BST and VST protocol frames, and the second power information is determined based on the information responded by VST.
[0011] The further technical solution is as follows: determining whether the CPC card to be screened is a low-battery CPC card based on the bytes in the power information to obtain a determination result includes: The most significant bit of the battery information byte is used to determine whether the CPC card to be screened is a low-battery CPC card, thus obtaining a determination result.
[0012] The further technical solution is as follows: determining whether the CPC card to be screened is a low-battery CPC card based on the most significant bit of the battery information byte to obtain a determination result includes: When the highest bit of the battery information byte is 1, the CPC card to be screened is determined to be a low battery CPC card, thus obtaining the determination result.
[0013] The present invention also provides a low-battery CPC card screening device, comprising: The information acquisition unit is used to acquire the EF02 file corresponding to the CPC card to be screened; The rewriting unit is used to rewrite the EF02 file and use a 13.56MHz communication link to obtain the power byte corresponding to the EF02 file of the CPC card to be screened again to obtain the rewriting result. The judgment unit is used to determine whether the power information corresponding to the CPC card to be screened is valid based on the rewriting result; The first acquisition unit is used to determine the battery byte corresponding to the EF02 file of the CPC card to be screened, which is acquired again using a 13.56MHz communication link, as the first battery information if the battery information is valid. The first determining unit is used to determine whether the CPC card to be screened is a low-battery CPC card based on the first power information, so as to obtain a determination result; The processing unit is configured to refuse to issue the CPC card to be screened if the determination result is that the CPC card to be screened is a low-battery CPC card. The second acquisition unit is used to obtain the information responded by VST through a 5.8G communication link if the power information is invalid, so as to obtain the second power information. The second determining unit is used to determine whether the CPC card to be screened is a low-power CPC card based on the bytes in the second power information, so as to obtain a determination result, and to execute the step of refusing to issue the CPC card to be screened if the determination result is that the CPC card to be screened is a low-power CPC card.
[0014] The present invention also provides a computer device, the computer device including a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the above-described method.
[0015] The present invention also provides a storage medium storing a computer program that, when executed by a processor, implements the above-described method.
[0016] The beneficial effects of this invention compared to existing technologies are as follows: This invention determines the validity of the power information of CPC cards by obtaining the EF02 file of the CPC card to be screened, and then obtains the power information through a 13.56MHz or 5.8G communication link to determine whether it is a low-power CPC card. If so, it refuses to issue the card, thus realizing power screening of the card and ensuring that only cards with sufficient power are issued to users. This avoids route identification failures caused by cards with no power or low power, ensures the accuracy of highway toll collection, improves toll collection efficiency, and saves users' time.
[0017] The present invention will be further described below with reference to the accompanying drawings and specific embodiments. Attached Figure Description
[0018] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a schematic diagram illustrating an application scenario of the low-battery CPC card screening method provided in an embodiment of the present invention. Figure 2A flowchart illustrating the low-battery CPC card screening method provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of a sub-process of the low-battery CPC card screening method provided in an embodiment of the present invention; Figure 4 A schematic block diagram of a low-battery CPC card screening device provided in an embodiment of the present invention; Figure 5 A schematic block diagram of the judgment unit of the low-battery CPC card screening device provided in an embodiment of the present invention; Figure 6 A schematic block diagram of a computer device provided for an embodiment of the present invention. Detailed Implementation
[0020] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0021] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0022] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0023] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0024] Please see Figure 1 and Figure 2 , Figure 1 This is a schematic diagram illustrating an application scenario of the low-battery CPC card screening method provided in an embodiment of the present invention. Figure 2This is a schematic flowchart illustrating the low-battery CPC card screening method provided in this embodiment of the invention. This low-battery CPC card screening method is applied to a system with a lane card reader and a 5.8G device. The lane card reader is an electronic device used in highway toll lanes to read and write the card chip module in the CPC card. The lane card reader uses a 13.56MHz radio frequency to wake up the card chip module and read relevant information from the CPC card. The CPC card includes the card chip module, an MCU, and a 5.8G device. The card chip module is used for reading and writing path information and is equivalent to a CPU card. It can be operated through a 13.56MHz interface or a 7816 interface, but not simultaneously. The MCU coordinates and controls the operation between the various modules that make up the CPC card. The 5.8G is the communication frequency used on highways for data interaction with the antenna and is used for path identification. This module only starts working after passing through the toll station entrance. The EF02 file is the basic information file of the CPC card, storing CPC battery information.
[0025] Figure 2 This is a schematic flowchart of the low-battery CPC card screening method provided in an embodiment of the present invention. Figure 2 As shown, the method includes the following steps S110 to S180.
[0026] S110. Obtain the EF02 file corresponding to the CPC card to be screened.
[0027] In this embodiment, the lane card reader first selects the CPC card whose power information needs to be checked, that is, the CPC card to be screened, and establishes a connection with the CPC card to be screened through a 13.56MHz communication link for subsequent modification of the EF02 file to ensure the validity of the power information corresponding to the CPC card to be screened.
[0028] S120. The EF02 file is rewritten, and the power byte corresponding to the EF02 file of the CPC card to be screened is obtained again using a 13.56MHz communication link to obtain the rewritten result.
[0029] In this embodiment, the battery byte in the EF02 file is changed to a preset value that is not read for the first time. After modifying the battery byte, the CPC card to be screened is closed and then reopened. The battery byte corresponding to the EF02 file of the CPC card to be screened is obtained again using a 13.56MHz communication link. If the value of the battery byte in the EF02 file of the CPC card to be screened is the same as the value of the battery byte in the EF02 file of the CPC card to be screened before the modification, then the modification result is determined to be equal to the value of the battery byte in the EF02 file before the modification. If the value of the battery byte in the EF02 file of the CPC card to be screened is not the same as the value of the battery byte in the EF02 file of the CPC card to be screened before the modification, then the modification result is determined to be equal to the value of the battery byte in the EF02 file before the modification.
[0030] In addition, the CPC card to be screened is opened at the entrance of the CPC card by the lane card reader, and a specific TimeCos command is sent to read the power byte stored in the CPC basic information file to obtain the EF02 file. The content corresponding to the first byte in the EF02 file is determined to be the power byte corresponding to the EF02 file.
[0031] Before reading the CPC card's battery information, it's necessary to confirm whether the battery information in the EF02 file is actively maintained and valid by the CPC card's MCU main control software. External devices can only be used for querying, not for modifying. If an attempt is made to modify the battery information bytes in the EF02 file using an external device and the result is successfully changed to a fixed value, it indicates that the CPC card's MCU has not actively maintained the battery information, meaning the information is invalid and requires screening using a 5.8G communication link. Conversely, if the read battery information is inconsistent with the modified fixed value, it indicates that the CPC card's MCU has effectively maintained the battery information, and low-battery CPC cards can be identified based on this.
[0032] Specifically, the battery information is actually acquired twice. First, before rewriting, the battery information is acquired for the first time. After rewriting the battery information, the battery information is acquired for the second time. If the battery information acquired for the second time is not equal to the rewritten value, then the battery information is valid and can be used as the first battery information. If the battery information acquired for the second time is equal to the rewritten value, then the battery information is invalid and can only be acquired using the 5.8G communication link.
[0033] Specifically, the lane card reader first uses a 13.56MHz frequency to open the CPC card to be screened and sends a TimeCos command (a specific command to read file information from the EF02 file) to request battery information. After reading the battery information bytes from the EF02 file as shown in Table 1, to avoid misjudgment due to the CPC card's internal control software not updating the battery bytes, the lane card reader sends another TimeCos command to write the EF02 file information, rewriting the battery bytes to a preset value, which cannot be the same as the battery bytes read initially. Then, the CPC card is closed using 13.56MHz, and the card is reopened after at least 2 seconds to prevent abnormal file operations that may result from frequent operations. The TimeCos command to read the EF02 file information is resent. If the battery bytes have been rewritten, it indicates that the CPC's internal control software has not maintained the battery information in the file, and the battery information in the battery bytes is invalid. Conversely, if the battery bytes have not been rewritten, it indicates that the battery information in the CPC's EF02 file is valid. Based on the remaining battery percentage, it can be determined whether CPC is at risk of low battery.
[0034] Table 1. Battery byte composition of EF02 file
[0035] S130. Determine whether the power information corresponding to the CPC card to be screened is valid based on the rewriting result; In one embodiment, please refer to Figure 3 The above-mentioned step S120 may include steps S121 to S124.
[0036] S121. Determine whether the rewriting result is equal to the value corresponding to the power byte in the EF02 file before rewriting; S122. If the rewriting result is not equal to the value corresponding to the power byte in the EF02 file before rewriting, then the power information is determined to be invalid. S123. If the rewriting result is equal to the value corresponding to the power byte in the EF02 file before rewriting, then the power information is determined to be valid.
[0037] S140. If the power information is valid, the power byte corresponding to the EF02 file of the CPC card to be screened, which is obtained again using a 13.56MHz communication link, is determined as the first power information.
[0038] The CPC card to be screened is opened at the CPC card entrance by a lane card reader, and a specific TimeCos command is sent to read the battery level bytes stored in the CPC basic information file. This step ensures accurate battery level information is read from the CPC card, providing the basis for subsequent judgment.
[0039] Specifically, the lane card reader establishes a 13.56MHz communication connection with the CPC card; sends a specific TimeCos command; reads the battery byte from the CPC card's basic information file (EF02); and checks for any abnormalities during the reading process to ensure data integrity.
[0040] This ensures that the battery information read is accurate, providing reliable data for subsequent judgments; it also allows for the early identification and handling of abnormal situations, improving system robustness.
[0041] Analyze the read battery data bytes; parse the first byte into battery information to ensure the correctness and validity of the battery information and avoid parsing errors; provide a standardized data processing flow to facilitate subsequent operations.
[0042] S150. Determine whether the CPC card to be screened is a low-battery CPC card based on the first power information to obtain a determination result.
[0043] In this embodiment, a low battery threshold (e.g., 20%) is set; the remaining battery percentage is compared with the set threshold to determine whether it is a low battery state; the determination result is recorded for subsequent operations.
[0044] This step provides clear standards for determining battery level, improving the accuracy of the assessment; it automates battery status assessment, reducing manual intervention and increasing efficiency.
[0045] S160. If the determination result is that the CPC card to be screened is a low-battery CPC card, then the CPC card to be screened shall be rejected.
[0046] In this embodiment, when the result is determined to be low battery, the rejection mechanism is triggered; relevant personnel or systems are notified to take further measures (e.g., replace the CPC card); and the rejection operation is logged for future reference.
[0047] This ensures that the issued CPC cards have sufficient power to guarantee normal user operation; prevents service interruptions due to low power, improving user satisfaction; and provides operation records for easy management and troubleshooting.
[0048] S170. If the power information is invalid, the information responded by VST is obtained through the 5.8G communication link to obtain the second power information. S180. Determine whether the CPC card to be screened is a low-battery CPC card based on the bytes in the power information to obtain a determination result, and then execute step S160.
[0049] In this embodiment, the MCU of the CPC card to be screened can directly obtain battery voltage information. By setting a low battery threshold, the MCU main control software compares and judges the collected battery voltage to determine the power status (normal or low) of the CPC card to be screened. During the ETC process with the 5.8G device, the CPC card to be screened establishes a communication link with the device through the 5.8G signal. The ETC device sends a BST request, and the CPC card to be screened replies with a VST data frame to provide power status information.
[0050] Specifically, the MCU of the CPC card to be screened directly collects battery voltage information and sets a low-battery threshold. The main control software compares the collected voltage with the preset threshold to determine whether the current CPC's battery status is normal or low. In the ETC system, the CPC card to be screened exchanges data with the 5.8G device via a 5.8G communication link. The 5.8G device sends a BST (Broadcast Service Table) request to the CPC card to be screened, waking it up. After receiving the BST request, the CPC card to be screened replies with a VST (Vehicle Service Table) data frame. The VST data frame contains the CPC's battery status flag, where the highest bit of the battery byte indicates the battery status: 0 indicates normal battery, and 1 indicates low battery. After receiving the VST reply from the CPC card to be screened (as shown in Table 2), the 5.8G device extracts the highest bit of the battery byte. If the highest bit is "1", the 5.8G device determines that the CPC card to be screened is a low-battery card; if it is "0", the battery is normal. Based on the battery level byte value, the 5.8G device can directly report the battery status to the operator or system user. This battery detection and feedback mechanism based on the 5.8G communication link ensures that low-battery cards are screened and processed during the ETC process.
[0051] Table 2. VST Protocol Frame Battery Byte Description
[0052] Through the above process, the ETC system can monitor and determine the power status of CPC cards in real time, ensuring that only cards with sufficient power can be used normally, thereby improving the reliability of the system and the user experience.
[0053] For example: Suppose the CPC card to be screened is at the entrance of the lane card reader. The lane card reader sends a specific TimeCos command to the CPC card via a 13.56MHz communication link to read the battery level byte stored in the CPC basic information file. After receiving the TimeCos command, the CPC card executes the command and transmits the battery level information stored in the EF02 file to the lane card reader via the 13.56MHz communication link. The lane card reader extracts the battery level byte from the received data. For example, suppose the battery level information is stored in the first byte of the EF02 file. If the value of this byte is 0x3C (decimal 60), it indicates that the battery level is 60%. According to business rules, it may be set that when the battery level is below a certain threshold (e.g., 20%), it is considered a low-battery CPC card. Specifically, the TimeCos command sent is: 80 31 00 00 0A; the received EF02 file content is: 3C (assuming 3C here represents a battery level of 60%); the battery level is determined: 60% > 20%, therefore the CPC card to be screened is not a low-battery CPC card.
[0054] When the aforementioned battery information is invalid, an ETC communication link is established between the CPC card to be screened and the 5.8G device, and BST and VST protocol frames are exchanged. Specifically, a communication link is established between the 5.8G device and the CPC card, and information exchange begins. The 5.8G device sends BST and VST frames, requesting the CPC card to respond and provide the battery information from the EF02 file. After receiving the request, the CPC card responds according to the VST protocol frame, including the battery information from the EF02 file. The battery byte is extracted from the VST protocol frame; similarly, it is assumed that the battery information is in the first byte of the response. According to the business rules, a corresponding battery threshold is set to determine whether it is a low-battery CPC card. Specifically, BST and VST frames are sent, and a VST response is received: EF 02 01 3C (assuming that 3C here represents a battery level of 60%). The battery level is determined: 60% > 20%, therefore the CPC card to be screened is not a low-battery CPC card.
[0055] In this embodiment, the CPC card's power acquisition is completed before card issuance at the entry point. Utilizing a 13.56MHz card reader interface to obtain CPC card power information and determine low battery status is technically feasible. This solution is simple, easy to implement, fast, and provides accurate and reliable results. Furthermore, it provides detailed and accurate remaining battery percentage information without interfering with or disrupting existing CPC card maintenance and usage procedures. This can be achieved by upgrading the existing card reader software, but the CPC card manufacturer needs to write the actual power information into the EF02 file. The verification results, based on a 5.8G communication link, demonstrate that the CPC card's power is sufficient to support application requirements and are highly convincing.
[0056] The aforementioned method filters out CPC cards with no or low battery power at the entrance, avoiding economic losses caused by vehicles being unable to settle accounts upon exit. This approach ensures accurate tolling based on the actual travel route, reducing highway operating costs and increasing economic efficiency. Immediately filtering out cards with no battery power and centrally processing and maintaining them not only avoids disrupting existing card issuance and retrieval processes but also saves on maintenance costs. This independent operation provides higher efficiency and economy for highway management; it effectively avoids toll calculation errors caused by CPC cards failing to accurately record the actual route. As a result, users can better trust and rely on the accuracy of the highway toll system, improving overall service quality. Timely filtering out CPC cards with no battery power avoids the inconvenience and time waste caused by manual settlement upon exit. This convenient, simple, and efficient highway service significantly enhances users' happiness and satisfaction during highway travel.
[0057] In conclusion, early screening of CPC cards with no or low battery power not only benefits highway management and operating costs but also significantly improves service quality and enhances user experience, making it an important measure for optimizing modern highway toll collection systems.
[0058] The aforementioned low-battery CPC card screening method determines the validity of the battery information by obtaining the EF02 file of the CPC card to be screened. It then acquires the battery information via a 13.56MHz or 5.8G communication link to confirm whether the card is a low-battery CPC card. If so, the card is rejected. This battery screening ensures that only cards with sufficient power are issued to users, avoiding route identification failures due to cards with no or low battery, ensuring the accuracy of highway toll collection, improving toll collection efficiency, and saving users time.
[0059] Figure 4 This is a schematic block diagram of a low-battery CPC card screening device 300 provided in an embodiment of the present invention. Figure 4 As shown, corresponding to the above-described low-battery CPC card screening method, the present invention also provides a low-battery CPC card screening device 300. This low-battery CPC card screening device 300 includes a unit for performing the above-described low-battery CPC card screening method, and the device can be configured in a lane card reader and a 5.8G device. Specifically, please refer to... Figure 4 The low-battery CPC card screening device 300 includes an information acquisition unit 301, a rewriting unit 302, a judgment unit 303, a first acquisition unit 304, a first determination unit 305, a processing unit 306, a second acquisition unit 307, and a second determination unit 308.
[0060] Information acquisition unit 301 is used to acquire the EF02 file corresponding to the CPC card to be screened; rewriting unit 302 is used to rewrite the EF02 file and acquire the power byte corresponding to the EF02 file corresponding to the CPC card to be screened again using a 13.56MHz communication link to obtain the rewriting result; judgment unit 303 is used to determine whether the power information corresponding to the CPC card to be screened is valid based on the rewriting result; first acquisition unit 304 is used to determine the power byte corresponding to the EF02 file corresponding to the CPC card to be screened, which is acquired again using a 13.56MHz communication link, as the first power information if the power information is valid; first determination unit 305 is used to determine the power information based on the first power information. The first unit determines whether the CPC card to be screened is a low-power CPC card based on the power information, to obtain a determination result; the second unit 306 is used to refuse to issue the CPC card to be screened if the determination result is that the CPC card to be screened is a low-power CPC card; the third unit 307 is used to obtain the information responded by VST through the 5.8G communication link if the power information is invalid, to obtain second power information; the fourth unit 308 is used to determine whether the CPC card to be screened is a low-power CPC card based on the bytes in the second power information, to obtain a determination result, and executes the step of refusing to issue the CPC card to be screened if the determination result is that the CPC card to be screened is a low-power CPC card.
[0061] In one embodiment, such as Figure 5 As shown, the judgment unit 303 includes a result judgment subunit 3031, an invalid determination subunit 3033, and a valid determination subunit 3034.
[0062] Result determination subunit 3032 is used to determine whether the rewriting result is equal to the value corresponding to the power byte in the EF02 file before rewriting; invalid determination subunit 3033 is used to determine that the power information is invalid if the rewriting result is not equal to the value corresponding to the power byte in the EF02 file before rewriting; valid determination subunit 3034 is used to determine that the power information is valid if the rewriting result is equal to the value corresponding to the power byte in the EF02 file before rewriting.
[0063] In one embodiment, the rewriting unit 302 described above is used to change the power byte in the EF02 file to a preset value that is not read for the first time. After modifying the power byte, the CPC card to be screened is closed, and then reopened. The power byte corresponding to the EF02 file of the CPC card to be screened is obtained again using the 13.56MHz communication link. If the value of the power byte corresponding to the EF02 file of the CPC card to be screened is the same as the value of the power byte in the EF02 file of the CPC card to be screened before the rewriting, then the rewriting result is determined to be equal to the value of the power byte in the EF02 file before the rewriting. If the value of the power byte corresponding to the EF02 file of the CPC card to be screened is not the same as the value of the power byte in the EF02 file of the CPC card to be screened before the rewriting, then the result is determined to be not equal to the value of the power byte in the EF02 file before the rewriting. Specifically, the CPC card to be screened is opened at the entrance of the CPC card by the lane card reader, and a specific TimeCos command is sent to read the power byte stored in the CPC basic information file to obtain the EF02 file. The content corresponding to the first byte in the EF02 file is determined to be the power byte corresponding to the EF02 file.
[0064] In one embodiment, the second acquisition unit 307 is used to establish an ETC communication link with the CPC card to be screened using a 5.8G device, exchange information through BST and VST protocol frames, and determine the second power information based on the information responded by VST.
[0065] In one embodiment, the second determining unit 308 is used to determine whether the CPC card to be screened is a low-battery CPC card based on the most significant bit of the second power information byte, so as to obtain a determination result.
[0066] In one embodiment, the second determining unit 308 is used to determine that the CPC card to be screened is a low-battery CPC card when the highest bit of the second power information byte is 1, so as to obtain a determination result.
[0067] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the low-power CPC card screening device 300 and each unit can be referred to the corresponding description in the foregoing method embodiments. For the sake of convenience and brevity, it will not be repeated here.
[0068] The aforementioned low-battery CPC card screening device 300 can be implemented as a computer program, which can, for example... Figure 6 It runs on the computer device shown.
[0069] Please see Figure 6 , Figure 6 This is a schematic block diagram of a computer device provided in an embodiment of this application. The computer device 500 may be a device with card reading and 5.8G functionality.
[0070] See Figure 6 The computer device 500 includes a processor 502, a memory, and a network interface 505 connected via a system bus 501. The memory may include a non-volatile storage medium 503 and internal memory 504.
[0071] The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions that, when executed, cause the processor 502 to perform a low-power CPC card screening method.
[0072] The processor 502 provides computing and control capabilities to support the operation of the entire computer device 500.
[0073] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can perform a low-power CPC card screening method.
[0074] This network interface 505 is used for network communication with other devices. Those skilled in the art will understand that... Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device 500 to which the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0075] The processor 502 is used to run a computer program 5032 stored in the memory to perform the following steps: Obtain the EF02 file corresponding to the CPC card to be screened; rewrite the EF02 file, and use a 13.56MHz communication link to obtain the power byte corresponding to the EF02 file of the CPC card to be screened again to obtain the rewritten result; determine whether the power information corresponding to the CPC card to be screened is valid based on the rewritten result; if the power information is valid, determine the power byte corresponding to the EF02 file of the CPC card to be screened obtained again using the 13.56MHz communication link as the first power information; determine the CPC card to be screened based on the first power information. The system determines whether the CPC card is a low-power CPC card; if the determination result is that the CPC card to be screened is a low-power CPC card, then the CPC card to be screened is rejected; if the power information is invalid, the system obtains the information responded by the VST through the 5.8G communication link to obtain second power information; the system determines whether the CPC card to be screened is a low-power CPC card based on the bytes in the second power information to obtain a determination result, and executes the step of rejecting the issuance of the CPC card to be screened if the determination result is that the CPC card to be screened is a low-power CPC card.
[0076] In one embodiment, when the processor 502 implements the step of determining whether the power information corresponding to the CPC card to be screened is valid based on the rewriting result, the processor 502 specifically implements the following steps: Determine whether the rewriting result is equal to the value corresponding to the power byte in the EF02 file before rewriting; if the rewriting result is not equal to the value corresponding to the power byte in the EF02 file before rewriting, then determine that the power information is invalid; if the rewriting result is equal to the value corresponding to the power byte in the EF02 file before rewriting, then determine that the power information is valid.
[0077] In one embodiment, when the processor 502 rewrites the EF02 file and uses a 13.56MHz communication link to re-acquire the battery bytes corresponding to the EF02 file of the CPC card to be screened in order to obtain the rewrite result, the processor 502 specifically implements the following steps: The battery level byte in the EF02 file is changed to a preset value that is not read for the first time. After modifying the battery level byte, the CPC card to be screened is closed and then reopened. The battery level byte in the EF02 file corresponding to the CPC card to be screened is obtained again using the 13.56MHz communication link. If the value of the battery level byte in the EF02 file corresponding to the CPC card to be screened is the same as the value of the battery level byte in the EF02 file before the modification, then the modification result is determined to be equal to the value of the battery level byte in the EF02 file before the modification. If the value of the battery level byte in the EF02 file corresponding to the CPC card to be screened is not the same as the value of the battery level byte in the EF02 file before the modification, then the modification result is determined to be equal to the value of the battery level byte in the EF02 file before the modification.
[0078] In one embodiment, when the processor 502 implements the step of obtaining the battery byte corresponding to the EF02 file of the CPC card to be screened using a 13.56MHz communication link, it specifically implements the following steps: The CPC card to be screened is opened at the entrance of the CPC card by the lane card reader, and a specific TimeCos command is sent to read the power byte stored in the CPC basic information file to obtain the EF02 file. The content corresponding to the first byte in the EF02 file is determined to be the power byte corresponding to the EF02 file.
[0079] In one embodiment, when the processor 502 implements the step of obtaining the information responded by the VST through the 5.8G communication link to obtain the second power information, it specifically implements the following steps: An ETC communication link is established between a 5.8G device and the CPC card to be screened. Information is exchanged through BST and VST protocol frames, and the second power information is determined based on the information responded by VST.
[0080] In one embodiment, when the processor 502 implements the step of determining whether the CPC card to be screened is a low-battery CPC card based on the bytes in the second power information to obtain a determination result, the processor 502 specifically implements the following steps: The most significant bit of the second battery information byte is used to determine whether the CPC card to be screened is a low battery CPC card, so as to obtain a determination result.
[0081] In one embodiment, when the processor 502 determines whether the CPC card to be screened is a low-battery CPC card based on the most significant bit of the byte of the second battery information to obtain a determination result, the processor 502 specifically implements the following steps: When the highest bit of the second battery information byte is 1, the CPC card to be screened is determined to be a low battery CPC card, thus obtaining the determination result.
[0082] It should be understood that in the embodiments of this application, the processor 502 may be a central processing unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0083] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program includes program instructions and can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.
[0084] Therefore, the present invention also provides a storage medium. This storage medium can be a computer-readable storage medium. The storage medium stores a computer program, wherein when executed by a processor, the computer program causes the processor to perform the following steps: Obtain the EF02 file corresponding to the CPC card to be screened; rewrite the EF02 file, and use a 13.56MHz communication link to obtain the power byte corresponding to the EF02 file of the CPC card to be screened again to obtain the rewritten result; determine whether the power information corresponding to the CPC card to be screened is valid based on the rewritten result; if the power information is valid, determine the power byte corresponding to the EF02 file of the CPC card to be screened obtained again using the 13.56MHz communication link as the first power information; determine the CPC card to be screened based on the first power information. The system determines whether the CPC card is a low-power CPC card; if the determination result is that the CPC card to be screened is a low-power CPC card, then the CPC card to be screened is rejected; if the power information is invalid, the system obtains the information responded by the VST through the 5.8G communication link to obtain second power information; the system determines whether the CPC card to be screened is a low-power CPC card based on the bytes in the second power information to obtain a determination result, and executes the step of rejecting the issuance of the CPC card to be screened if the determination result is that the CPC card to be screened is a low-power CPC card.
[0085] In one embodiment, when the processor executes the computer program to implement the step of determining whether the battery information corresponding to the CPC card to be screened is valid based on the rewriting result, it specifically implements the following steps: Determine whether the rewriting result is equal to the value corresponding to the power byte in the EF02 file before rewriting; if the rewriting result is not equal to the value corresponding to the power byte in the EF02 file before rewriting, then determine that the power information is invalid; if the rewriting result is equal to the value corresponding to the power byte in the EF02 file before rewriting, then determine that the power information is valid.
[0086] In one embodiment, when the processor executes the computer program to rewrite the EF02 file and uses a 13.56MHz communication link to re-acquire the battery bytes corresponding to the EF02 file of the CPC card to be screened, in order to obtain the rewrite result, the processor specifically implements the following steps: The battery level byte in the EF02 file is changed to a preset value that is not read for the first time. After modifying the battery level byte, the CPC card to be screened is closed and then reopened. The battery level byte in the EF02 file corresponding to the CPC card to be screened is obtained again using the 13.56MHz communication link. If the value of the battery level byte in the EF02 file corresponding to the CPC card to be screened is the same as the value of the battery level byte in the EF02 file before the modification, then the modification result is determined to be equal to the value of the battery level byte in the EF02 file before the modification. If the value of the battery level byte in the EF02 file corresponding to the CPC card to be screened is not the same as the value of the battery level byte in the EF02 file before the modification, then the modification result is determined to be equal to the value of the battery level byte in the EF02 file before the modification.
[0087] In one embodiment, when the processor executes the computer program to implement the step of obtaining the battery byte corresponding to the EF02 file of the CPC card to be screened using a 13.56MHz communication link, the specific implementation steps are as follows: The CPC card to be screened is opened at the entrance of the CPC card by the lane card reader, and a specific TimeCos command is sent to read the power byte stored in the CPC basic information file to obtain the EF02 file. The content corresponding to the first byte in the EF02 file is determined to be the power byte corresponding to the EF02 file.
[0088] In one embodiment, when the processor executes the computer program to implement the step of obtaining the information responded by the VST via the 5.8G communication link to obtain the second power information, it specifically implements the following steps: An ETC communication link is established between a 5.8G device and the CPC card to be screened. Information is exchanged through BST and VST protocol frames, and the second power information is determined based on the information responded by VST.
[0089] In one embodiment, when the processor executes the computer program to implement the step of determining whether the CPC card to be screened is a low-battery CPC card based on the bytes in the battery information to obtain a determination result, the processor specifically implements the following steps: The most significant bit of the second battery information byte is used to determine whether the CPC card to be screened is a low battery CPC card, so as to obtain a determination result.
[0090] In one embodiment, when the processor executes the computer program to determine whether the CPC card to be screened is a low-battery CPC card based on the most significant bit of the second battery information byte, and obtains a determination result, the processor specifically implements the following steps: When the highest bit of the second battery information byte is 1, the CPC card to be screened is determined to be a low battery CPC card, thus obtaining the determination result.
[0091] The storage medium can be any computer-readable storage medium capable of storing program code, such as a USB flash drive, portable hard drive, read-only memory (ROM), magnetic disk, or optical disk.
[0092] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0093] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.
[0094] The steps in the method of this invention can be adjusted, merged, or reduced in order according to actual needs. The units in the device of this invention can be merged, divided, or reduced according to actual needs. Furthermore, the functional units in the various embodiments of this invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0095] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0096] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for screening low-battery CPC cards, characterized in that, include: Obtain the EF02 file corresponding to the CPC card to be screened; The EF02 file is rewritten, and the power byte corresponding to the EF02 file of the CPC card to be screened is obtained again using a 13.56MHz communication link to obtain the rewritten result; The validity of the power information corresponding to the CPC card to be screened is determined based on the rewriting results. If the power information is valid, the power byte corresponding to the EF02 file of the CPC card to be screened, which is obtained again using a 13.56MHz communication link, will be determined as the first power information. Based on the first power information, determine whether the CPC card to be screened is a low power CPC card, so as to obtain a determination result; If the determination result is that the CPC card to be screened is a low-battery CPC card, then the CPC card to be screened will not be issued. If the battery information is invalid, the information responded by VST is obtained through the 5.8G communication link to obtain the second battery information; Based on the bytes in the second power information, determine whether the CPC card to be screened is a low power CPC card, obtain a determination result, and execute the step of refusing to issue the CPC card to be screened if the determination result is that the CPC card to be screened is a low power CPC card.
2. The low-battery CPC card screening method according to claim 1, characterized in that, The step of determining whether the power information corresponding to the CPC card to be screened is valid based on the rewriting result includes: Determine whether the rewritten result is equal to the value of the battery byte in the EF02 file before rewriting; If the rewriting result is not equal to the value corresponding to the battery byte in the EF02 file before rewriting, then the battery information is determined to be invalid. If the rewriting result is equal to the value corresponding to the power byte in the EF02 file before rewriting, then the power information is determined to be valid.
3. The low-battery CPC card screening method according to claim 2, characterized in that, The process of rewriting the EF02 file and then using a 13.56MHz communication link to re-acquire the power bytes corresponding to the EF02 file of the CPC card to be screened, in order to obtain the rewritten result, includes: The battery level byte in the EF02 file is changed to a preset value that is not read for the first time. After modifying the battery level byte, the CPC card to be screened is closed and then reopened. The battery level byte in the EF02 file corresponding to the CPC card to be screened is obtained again using the 13.56MHz communication link. If the value of the battery level byte in the EF02 file corresponding to the CPC card to be screened is the same as the value of the battery level byte in the EF02 file before the modification, then the modification result is determined to be equal to the value of the battery level byte in the EF02 file before the modification. If the value of the battery level byte in the EF02 file corresponding to the CPC card to be screened is not the same as the value of the battery level byte in the EF02 file before the modification, then the modification result is determined to be equal to the value of the battery level byte in the EF02 file before the modification.
4. The low-battery CPC card screening method according to claim 1, characterized in that, The step of using a 13.56MHz communication link to obtain the power byte corresponding to the EF02 file of the CPC card to be screened includes: The CPC card to be screened is opened at the entrance of the CPC card by the lane card reader, and a specific TimeCos command is sent to read the power byte stored in the CPC basic information file to obtain the EF02 file. The content corresponding to the first byte in the EF02 file is determined to be the power byte corresponding to the EF02 file.
5. The low-battery CPC card screening method according to claim 1, characterized in that, The step of obtaining the information responded to by VST via the 5.8G communication link to obtain the second power information includes: An ETC communication link is established between the 5.8G device and the CPC card to be screened. Information is exchanged through BST and VST protocol frames, and the second power information is determined based on the information responded by VST.
6. The low-battery CPC card screening method according to claim 1, characterized in that, The step of determining whether the CPC card to be screened is a low-battery CPC card based on the bytes in the second power information to obtain a determination result includes: The most significant bit of the battery information byte is used to determine whether the CPC card to be screened is a low-battery CPC card, thus obtaining a determination result.
7. The low-battery CPC card screening method according to claim 6, characterized in that, The step of determining whether the CPC card to be screened is a low-battery CPC card based on the most significant bit of the battery information byte to obtain a determination result includes: When the highest bit of the second battery information byte is 1, the CPC card to be screened is determined to be a low battery CPC card, thus obtaining the determination result.
8. A low-battery CPC card screening device, characterized in that, include: The information acquisition unit is used to acquire the EF02 file corresponding to the CPC card to be screened; The rewriting unit is used to rewrite the EF02 file and use a 13.56MHz communication link to obtain the power byte corresponding to the EF02 file of the CPC card to be screened again to obtain the rewriting result. The judgment unit is used to determine whether the power information corresponding to the CPC card to be screened is valid based on the rewriting result; The first acquisition unit is used to determine the battery byte corresponding to the EF02 file of the CPC card to be screened, which is acquired again using a 13.56MHz communication link, as the first battery information if the battery information is valid. The first determining unit is used to determine whether the CPC card to be screened is a low-battery CPC card based on the first power information, so as to obtain a determination result; The processing unit is configured to refuse to issue the CPC card to be screened if the determination result is that the CPC card to be screened is a low-battery CPC card. The second acquisition unit is used to obtain the information responded by VST through a 5.8G communication link if the power information is invalid, so as to obtain the second power information. The second determining unit is used to determine whether the CPC card to be screened is a low-power CPC card based on the bytes in the second power information, so as to obtain a determination result, and to execute the step of refusing to issue the CPC card to be screened if the determination result is that the CPC card to be screened is a low-power CPC card.
9. A computer device, characterized in that, The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the method as described in any one of claims 1 to 7.
10. A storage medium, characterized in that, The storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
ETC card top-up method
CN106548575A
Low-electric-quantity highway CPC card detection method, device, equipment and medium
CN116933829A