CN112235015B - CPC card pre-reading mechanism test method and device - Google Patents

CPC card pre-reading mechanism test method and device Download PDF

Info

Publication number
CN112235015B
CN112235015B CN202010912256.5A CN202010912256A CN112235015B CN 112235015 B CN112235015 B CN 112235015B CN 202010912256 A CN202010912256 A CN 202010912256A CN 112235015 B CN112235015 B CN 112235015B
Authority
CN
China
Prior art keywords
information
card
read
cpc
antenna
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
CN202010912256.5A
Other languages
Chinese (zh)
Other versions
CN112235015A (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.)
Beijing Sutong Technology Co ltd
Beijing Yiluxing Technology Co ltd
Original Assignee
Beijing Sutong Technology Co ltd
Beijing Yiluxing Technology 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 Beijing Sutong Technology Co ltd, Beijing Yiluxing Technology Co ltd filed Critical Beijing Sutong Technology Co ltd
Priority to CN202010912256.5A priority Critical patent/CN112235015B/en
Publication of CN112235015A publication Critical patent/CN112235015A/en
Application granted granted Critical
Publication of CN112235015B publication Critical patent/CN112235015B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/77Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for interrogation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/0008General problems related to the reading of electronic memory record carriers, independent of its reading method, e.g. power transfer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/0095Testing the sensing arrangement, e.g. testing if a magnetic card reader, bar code reader, RFID interrogator or smart card reader functions properly
    • 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/06Arrangements for road pricing or congestion charging of vehicles or vehicle users, e.g. automatic toll systems
    • G07B15/063Arrangements for road pricing or congestion charging of vehicles or vehicle users, e.g. automatic toll systems using wireless information transmission between the vehicle and a fixed station
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Electromagnetism (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Devices For Checking Fares Or Tickets At Control Points (AREA)

Abstract

The invention provides a test method and a device for a pre-reading mechanism of a CPC card, which adopt an integrated test device comprising a 13.56MHz card reader, a 5.8GHz antenna and a main control module to carry out detection, wherein the 13.56MHz card reader and the 5.8GHz antenna are controlled by the main control module to simulate an actual application scene, transaction information is updated and read as a reference through the 13.56MHz card reader, then the transaction information stored in the CPC card is pre-read through the 5.8GHz antenna, and the first read information and the pre-read information are compared to test the pre-reading mechanism of the CPC card. The CPC card pre-reading mechanism testing method and device adopt integrated detection equipment, simulate the use state in the actual operation process by simulating the signal frequency band, the information flow direction and the storage position of the CPC card in the process of the highway transaction flow, effectively test the functions of the CPC card, improve the testing speed and save the testing time.

Description

CPC card pre-reading mechanism test method and device
Technical Field
The invention relates to the technical field of highway electronic tag communication, in particular to a test method and a test device for a CPC card pre-reading mechanism.
Background
With the advance of canceling the work of provincial toll stations on expressways, in order to improve the passing speed of the expressways and optimize the toll collection efficiency of the expressways, on the premise that national ETC (electronic toll collection system) vehicle-mounted labels are not completely popularized, a CPC (composite toll collection card) replaces paper passes to become an important component of national expressway pass card media, the passing requirement of non-installed ETC vehicles is met, and the vehicle passing and charging functions are realized.
In the process of charging through the CPC card, transaction information needs to be written and stored in the pre-read card of the exit lane, and then the expense is further calculated and the transaction is carried out. However, with the large-scale operation of the CPC card, the situation that the card has a read-ahead obstacle occurs, which causes abnormal transactions and brings inconvenience to an operator and a user. Therefore, a testing method is needed to perform function detection on the CPC card to ensure that the transaction is normally performed.
Disclosure of Invention
In view of this, the embodiment of the present invention provides a method and an apparatus for testing a CPC card pre-reading mechanism, so as to efficiently detect the pre-reading function of the CPC card, remove a faulty card, and ensure normal highway transactions.
The technical scheme of the invention is as follows:
on one hand, the invention provides a test method for a CPC card pre-reading mechanism, which adopts integrated test equipment comprising a 13.56MHz card reader, a 5.8GHz antenna and a main control module to carry out detection, wherein the 13.56MHz card reader and the 5.8GHz antenna are controlled by the main control module to read and write the CPC card, and the method comprises the following steps:
receiving a test instruction sent by an upper computer, and sending an update instruction to the 13.56MHz card reader according to the test instruction, so that the 13.56MHz card reader writes first simulation entry information into a first structure file used for storing entry information in a CPC card and writes first simulation path information into a second structure file used for storing path information;
sending a card reading instruction to the 13.56MHz card reader, receiving second simulation entry information read from the first structure file in the CPC card and returned by the 13.56MHz card reader, reading second simulation path information from the second structure file, and recording;
sending a closing instruction to the 13.56MHz card reader;
sending a pre-reading instruction to the 5.8GHz antenna, receiving and recording third simulation entry information read from the first structure file in the CPC card and third simulation path information read from the second structure file returned by the 5.8GHz antenna;
sending a closing instruction to the 5.8GHz antenna;
and comparing the second simulation entrance information with the third simulation entrance information, and the second simulation path information with the third simulation path information, and generating a pre-reading test result.
In some embodiments, after sending the reading instruction to the 13.56MHz reader, the method further includes:
receiving and recording first issuer information, first version information, first ID information and first validity period information which are returned by the 13.56MHz card reader and read and generated from a third structure file in the CPC card;
after sending the pre-reading instruction to the 5.8GHz antenna, the method further comprises the following steps:
receiving and recording second issuer information, second version information, second ID information and second validity information which are returned by the 5.8GHz antenna and read and generated from the third structural file in the CPC card;
and comparing the first issuer information with the second issuer information, the first version information with the second version information, the first ID information with the second ID information, and the first validity information with the second validity information, and generating a pre-read test result.
In some embodiments, before sending the read-ahead instruction to the 5.8GHz antenna, the method further includes:
sending a security verification instruction to a 5.8GHz antenna, and receiving security password information read from the CPC card returned by the 5.8GHz antenna;
sending the security password information to a PSAM module for verification, and if the security password information passes the verification, sending a pre-reading instruction to a 5.8GHz antenna; and stopping the test if the verification is not passed.
In some embodiments, generating the read-ahead test results includes:
if the second simulation entrance information is consistent with the third simulation entrance information and the second simulation path information is consistent with the third simulation path information, judging that the test is passed;
and if the second simulation entrance information is inconsistent with the third simulation entrance information or the second simulation path information is inconsistent with the third simulation path information, generating an error log.
In some embodiments, before generating the pre-read test result, the method further comprises:
and carrying out a plurality of tests and summarizing to form the pre-reading test result.
In some embodiments, the pre-read test result does not pass when the same error occurs continuously or intermittently beyond a set ratio.
In some embodiments, after generating the pre-read test result, further comprising:
and sending the pre-reading test result to a display module for displaying.
In some embodiments, the method further comprises:
and sending the pre-reading test result to the upper computer for displaying and recording.
On the other hand, the invention also provides a test device for the read-ahead mechanism of the CPC card, which comprises:
the 13.56MHz card reader is used for simulating the operation of writing the entrance information into the CPC card;
the 5.8GHz antenna is used for simulating the pre-reading operation of the CPC card;
the PSAM security module is used for performing security certification on the CPC card in the test process;
and the main control module is used for connecting and controlling the 13.56MHz card reader, the 5.8GHz antenna and the PSAM security module and executing the steps of the method.
In some embodiments, the apparatus further comprises:
and the communication module is connected with the main control module and is one or more of a Wi-fi module, a zigbee module, a Bluetooth module or a data network communication module.
In another aspect, the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the method are implemented.
In another aspect, the present invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above method.
The invention has the beneficial effects that:
the CPC card pre-reading mechanism testing method and device adopt integrated detection equipment, simulate the use state in the actual operation process by simulating the signal frequency band, the information flow direction and the storage position of the CPC card in the process of the highway transaction flow, effectively test the functions of the CPC card, improve the testing speed and save the testing time.
Additional advantages, objects, and features of the invention will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
It will be appreciated by those skilled in the art that the objects and advantages that can be achieved with the present invention are not limited to the specific details set forth above, and that these and other objects that can be achieved with the present invention will be more clearly understood from the detailed description that follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention. The components in the figures are not necessarily to scale, emphasis instead being placed upon illustrating the principles of the invention. In the drawings:
fig. 1 is a schematic flow chart illustrating a testing method for a CPC card read-ahead mechanism according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a connection structure of equipment used in a CPC card read-ahead mechanism test method according to another embodiment of the present invention;
fig. 3 is a block diagram of a testing apparatus for a CPC card read-ahead mechanism according to an embodiment of the present invention;
FIG. 4 is a block diagram of a CPC card pre-reading mechanism testing apparatus according to another embodiment of the present invention;
fig. 5 is a block diagram illustrating a structure of a communication module in a CPC card read-ahead mechanism testing apparatus according to an embodiment of the present invention.
In the figure:
110: an upper computer; 120: an integrated test device; 121: a main control module;
122: a 13.56MHz card reader; 123: a 5.8GHz antenna; 124: a PSAM security module;
125: a communication module; 1251: a Wi-fi module; 1252: a zigbee module;
1253: a Bluetooth module; 1254: a data network communication module; 130: CPC card.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the following embodiments and accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
It should be noted that, in order to avoid obscuring the present invention with unnecessary details, only the structures and/or processing steps closely related to the scheme according to the present invention are shown in the drawings, and other details not so relevant to the present invention are omitted.
It should be emphasized that the term "comprises/comprising" when used herein, is taken to specify the presence of stated features, elements, steps or components, but does not preclude the presence or addition of one or more other features, elements, steps or components.
It is also noted herein that the term "coupled," if not specifically stated, may refer herein to not only a direct connection, but also an indirect connection in which an intermediate is present.
ETC is vigorously carried out in the current-stage highway passing, the highway toll collection process is simplified, and the highway passing speed is improved. The ETC users are divided into double-card users and single-card users, wherein the double-card users refer to vehicle users who are provided with vehicle-mounted labels (OBUs) and loaded with ETC user cards; whereas a single-card user refers to a user who does not have a car tag installed. In the traditional operation process, vehicles without ETC and ETC single-card users need to record the journey by means of paper passes and charge. After the project of canceling the holy-clean toll station on the expressway, which is developed by the transportation department, is started, a CPC card is gradually adopted as a pass card medium used by the expressway, and the CPC card has the functions of traditional passes and transaction with a portal antenna. Composite pass card, CPC card: the vehicle communication system integrates the communication functions of 5.8GHz and 13.56MHz, has the read-write functions of vehicle simulation entrance information, simulation path information, charging information and the like, and is a reusable passing medium which is distributed to the vehicle in an entrance lane of a toll station and recovered in an exit lane.
In the transaction process of the exit lane of the highway, the CPC card needs to pre-read transaction information recorded in the card through a transaction antenna of the exit lane, such as entrance lane information, vehicle model information, simulated path information and the like, so as to provide a basis for charging. However, with the large-scale operation and use of the CPC card, the pre-reading obstacles and faults occur on part of the CPC cards. In order to guarantee smooth highway traffic, the pre-reading function of the CPC card needs to be tested, and a method for quickly and effectively detecting the pre-reading function of the CPC card does not exist in the prior art.
Therefore, the invention provides a test method for a pre-reading mechanism of a CPC card, which is used for detecting whether the pre-reading function of the CPC card is normal or not and ensuring the completeness of the CPC function so as to prevent transaction failure.
The CPC card is mainly used for recording highway entrance lane information, simulated vehicle information and simulated path information and for charging at a highway exit. Specifically, at the entrance of the highway, a worker distributes a CPC card and writes corresponding simulated vehicle information and entrance lane information into the CPC card through a card reader, and when the CPC card passes through a portal antenna in the driving process of the vehicle, the portal antenna writes simulated path information; when the CPC card is returned from the exit lane of the expressway, the transaction information in the card is quickly read by the transaction antenna, and the transaction fee amount is calculated for charging.
In order to simulate a real use scene of the CPC card and meet the requirement for quick and simple detection, as shown in fig. 2, the test method in this embodiment adopts an integrated test device 120 including a 13.56MHz card reader, a 5.8GHz antenna and a main control module to perform detection, the integrated test device 120 is connected to an upper computer 110, and the 13.56MHz card reader and the 5.8GHz antenna are controlled by the main control module to read and write the CPC card 130, as shown in fig. 1, the method includes steps S101 to S106.
It should be noted that, in this embodiment, the description of steps S101 to S106 does not limit the order of the steps, and it should be understood that, in a specific usage scenario, some steps may be parallel or the order may be changed. In this embodiment, the main control module is used as a main body, and the main control module may be a single chip, a computer, or other electronic devices capable of storing and running programs. The steps include:
step S101: receiving a test instruction sent by an upper computer, and sending an update instruction to a 13.56MHz card reader according to the test instruction, so that the 13.56MHz card reader writes first simulation entry information into a first structure file used for storing entry information in a CPC card and writes first simulation path information into a second structure file used for storing path information.
Step S102: and sending a card reading instruction to the 13.56MHz card reader, receiving second simulation entry information read from the first structure file in the CPC card and returned by the 13.56MHz card reader, reading second simulation path information from the second structure file, and recording.
Step S103: and sending a closing instruction to the 13.56MHz card reader.
Step S104: and sending a pre-reading instruction to the 5.8GHz antenna, receiving and recording third simulation inlet information read from the first structure file in the CPC card and third simulation path information read from the second structure file returned by the 5.8GHz antenna.
Step S105: and sending a closing instruction to the 5.8GHz antenna.
Step S106: and comparing the second simulation entrance information with the third simulation entrance information and the second simulation path information with the third simulation path information, and generating a pre-reading test result.
In step S101, the upper computer may adopt a single chip, a computer, or other electronic devices capable of storing and running programs, and the upper computer may interact with the tester, receive the control of the tester, and perform start-stop control on the test. And the upper computer is loaded with a corresponding control program to generate a start-stop instruction. And after receiving the detection instruction of the upper computer, the main control module starts to carry out test operation and sends an updating instruction to the 13.56MHz card reader. The information writing operation at the entrance of the expressway is simulated by a 13.56MHz card reader. In this embodiment, the card reader with 13.56MHz frequency is used to refer to the current CPC card writing method to restore the real usage scenario. Specifically, a CPC card to be tested is placed on the integrated detection equipment, a worker controls the upper computer to send a test instruction to the main control module, and the main control module generates and sends an update instruction to the 13.56MHz card reader to instruct the CPC card to write information into the CPC card. Further, in order to ensure that normal communication between devices can be realized, the CPC card stores information by adopting a specific file structure, and a specific storage path is appointed to store information of a specified type. Therefore, the entrance lane information and the route information can be written with reference to the stored route of the information in the actual operation process to completely simulate the real use scene. A memory path dedicated to testing may also be provided for detecting a read-ahead function.
The updated entrance lane information and the updated route information may be contents generated according to an expression rule in an actual operation process, or may be random codes in a corresponding format as simulated entrance lane information and simulated route information. Illustratively, 17 th to 18 th bytes of the A folder are used for storing entrance lane information, and in the actual operation process, 11008433 represents the entrance of the southwest expressway at the Beijing Bihua intersection, so that 11008433 can be directly written into the 17 th to 18 th bytes of the A folder of the CPC card for testing. In other embodiments, the 8-bit data written into bytes 17-18 of the A folder may be randomly generated for testing.
In some embodiments, referring to a file structure of an OBE-SAM, the first structure file is a DF01-EF01 file in a CPC card file structure, the storage path is a first ordinal byte to a second ordinal byte of the DF01-EF01 file, and may specifically be 15-25 bytes of the DF01-EF01 file, where 15-16 bytes are used for storing an entrance road network number, 17-18 bytes are used for storing an entrance toll station number, 19 bytes are used for storing an entrance toll lane number, 20-23 bytes are used for storing an entrance time, 24 bytes are used for recording a byte for 5.8GHz antenna read-write control, and 25 bytes are used for recording an entrance lane type. In other embodiments, 1-14 bytes of the DF01-EF01 file are also read, wherein the 1 st byte records the vehicle type, the 2-13 bytes record the license plate number, and the 14 th byte records the license plate color.
The second structure file is a DF01-EF02 file in the CPC card structure file, and the specific storage path is 1 to third ordinal bytes of the DF01-EF02 file, and may be 1 to 101 bytes of the DF01-EF02 file, where the 1 st byte records the number of transit provinces, the 2 nd byte records the number of provinces gantries, the 3 rd to 5 th bytes record the cumulative amount of the provinces, the 6 th to 8 th bytes record the mileage charged by the provinces, the 9 th to 15 th bytes record the information of the province entry ETC gantries, the 16 th to 28 th records the information of the written latest gantries, the 28 th byte records the number of the written gantries, and the 29 th to 101 th bytes are used for sequentially writing the latest gantry codes.
The file storage in the CPC card has a specific structure, and a specific storage path is used to store specific content according to a corresponding communication protocol, and therefore, in this embodiment, the first structure file and the second structure file are associated with a path in which entry lane information and path information are stored in an actual usage scene. The DF01-EF01 in the CPC file structure is used for recording contents such as entrance lane information, and the two information can be changed in an actual application scenario. DF01-EF02 is used to record path information, and may be segmented by specific fields to mark multiple portals or provincial lanes traversed.
In step S102, the embodiment is a test of the read-ahead function of the CPC card, and mainly compares the information stored in the CPC card with the read-ahead generated information. In the writing process of step S101, data loss or confusion may occur, and therefore, before detecting the read-ahead function, the content stored in the card needs to be re-confirmed for comparison with the information obtained by the subsequent read-ahead. Specifically, the second analog entry information and the second analog path information related to the entry and the travel path are read by the 13.56MHz card reader according to the written path in step S101. The second simulation entry information and the second simulation path information may be recorded in the integrated test apparatus.
In step S103, in order to simulate the state of the vehicle leaving the field and leaving the signal coverage range of the read-write device in the real usage environment, the main control module sends a closing instruction to the 13.56MHz card reader to block the continuous interference of the read-write signal, and simulate the state of the CPC card during the driving process of the vehicle.
In step S104, the main control module sends a pre-read instruction to the 5.8GHz antenna, pre-reads the information written in the CPC card, and extracts information for transaction. The extracted path is consistent with the storage path, namely the structure file consistency fields of the corresponding information are written and read in, and third simulation entrance information and third simulation path information related to the entrance, the vehicle identity and the driving path are obtained.
In step S105, the main control module sends a close command to the 5.8GHz antenna to simulate an action of stopping pre-reading.
In step S106, the consistency between the pre-read information and the information in the CPC card is determined by comparing the second simulation entry information and the third simulation entry information, and the second simulation path information and the third simulation path information, so as to verify whether the pre-read function of the CPC card is normal, and generate a corresponding pre-read test result based on the result.
In some embodiments, after sending the card reading instruction to the 13.56MHz card reader in step S102, the method further includes:
and receiving and recording the first issuer information, the first version information, the first ID information and the first validity period information which are read and generated from the third structure file in the CPC card and returned by the 13.56MHz card reader.
Correspondingly, after the step S105, sending the pre-read command to the 5.8GHz antenna, the method further includes:
and receiving and recording second issuer information, second version information, second ID information and second validity information which are read and generated from a third structure file in the CPC card and returned by the 5.8GHz antenna.
And comparing the first issuer information with the second issuer information, the first version information with the second version information, the first ID information with the second ID information, and the first validity information with the second validity information, and generating a pre-reading test result.
In this embodiment, in the process of highway toll transaction, in addition to reading and collecting information related to an entrance lane, a vehicle identity and a driving path, pre-reading equipment information of the CPC card itself is required to confirm card tag validity. For example, some CPC cards may have an outstanding itinerary due to non-regular use, and for such cards, the ID information may be verified to determine validity. And partial CPC cards can not be traded due to exceeding the validity period, and can be judged by verifying the validity period information. Therefore, the embodiment simultaneously verifies and tests the pre-reading effect on the information of the issuer, the version, the card ID and the validity period in the pre-reading test so as to completely simulate the real use scene. In some embodiments, referring to a file structure of an on-highway electronic toll collection (OBE-SAM), a third structure file is an MF-EF01 file in a file structure of a CPC card, and card label information recorded by an MF-EF01 file cannot be rewritten in a use process of the CPC card, wherein 1-8 bytes are used for recording an identifier of a publisher of the CPC card, 9-16 bytes are used for recording an ID of the CPC card, a 17 th byte is used for recording a version number, 18-21 bytes are used for recording a contract signing date, and 22-25 bytes are used for recording a contract expiration date.
In some embodiments, before sending the read-ahead instruction to the 5.8GHz antenna in step S105, S1051 to S1052 are further included:
s1051: and sending a security verification instruction to the 5.8GHz antenna, and receiving security password information read from the CPC card returned by the 5.8GHz antenna.
S1052: sending the security password information to a PSAM (terminal security control module) module for verification, and if the verification is passed, sending a pre-reading instruction to a 5.8GHz antenna; and stopping the test if the verification is not passed.
In order to guarantee the security of read-write transaction, the CPC card is verified through the PSAM security module. In this embodiment, the security password is verified, and other security access methods or permission granting methods may also be used. The pre-reading of the CPC card involves a large amount of key information related to transactions, and the security verification is an important ring in a pre-reading mechanism, so that the security of the pre-reading of the CPC card is judged by simulating the verification step of the PSAM security module in the embodiment. Further, the security is the basis of a pre-reading mechanism, so that once the security password information is not verified, the security is defective, and the CPC card pre-reading function has a security fault, subsequent testing is stopped.
In some embodiments, in step S106, the pre-read test result is generated, including S1061 to S1062:
s1061: and if the second simulation entrance information is consistent with the third simulation entrance information and the second simulation path information is consistent with the third simulation path information, judging that the test is passed.
S1062: and if the second simulation entrance information is inconsistent with the third simulation entrance information or the second simulation path information is inconsistent with the third simulation path information, generating an error log.
The test of the pre-reading mechanism is actually a test of the pre-reading accuracy, and the standard set in this embodiment is that the test can be determined to pass only when the information stored in the CPC card is completely consistent with the information obtained by pre-reading. If only one of the three corresponding sets of information is inconsistent, the test fails, and an error log is generated. The content of the error log record includes test time, ID information of the CPC card, error content, possible reasons for error occurrence, and corresponding handling method.
In some embodiments, before generating the pre-read test result in step S106, the method further includes:
and carrying out a plurality of tests and summarizing to form a pre-reading test result.
Due to communication, the data writing error of the equipment can be caused, and accidental faults can be caused. Therefore, in this embodiment, the results of the multiple tests are integrated, and the pre-read test results are generated in a summary manner. In some embodiments, the error reporting is performed only when the same error occurs continuously or intermittently over a set ratio.
In some embodiments, before generating the pre-read test result in step S106, the method further includes:
and testing and summarizing for many times, and adding the identity information of the CPC card into a grey list when the same error occurrence frequency is smaller than a set proportion. The CPC card in the grey list can be used for operation, but the failure rate of the CPC card should be monitored in an important mode.
In some embodiments, in step S106, after generating the pre-read test result, the method further includes:
and sending the pre-reading test result to a display module for displaying.
In the embodiment, the pre-read test result is displayed through a display, and is sufficiently applied to some application scenarios in which the result needs to be fed back in time. For example, when a CPC card is issued at the entrance of a highway, each card may be tested in real time to check its validity. The display module can be used for displaying to a tester and can also be used for displaying to a user at the entrance of the lane. The display module can adopt the LED screen, can show CPC card function normal when the test passes, can show CPC card when the test does not pass and read unusually.
In some embodiments, the method further comprises:
and sending the pre-reading test result to an upper computer for displaying and recording.
On the other hand, the present invention further provides a CPC card pre-reading mechanism testing apparatus, as shown in fig. 3, including:
a 13.56MHz card reader 122 for simulating the operation of writing entry information to the CPC card;
the 5.8GHz antenna 123 is used for simulating the pre-reading operation of the CPC card;
the PSAM security module 124 is used for performing security certification on the CPC card in the test process;
the main control module 121 is configured to connect and control the 13.56MHz card reader 122, the 5.8GHz antenna 123 and the PSAM security module 124, and execute the steps of the above method.
In this embodiment, the main control module 121 may be an electronic device capable of storing executable computer instructions, such as a single chip, a computer processor, a field programmable gate array, and the like. The main control module 121 may be configured to receive and execute a control instruction of the upper computer 110, perform start-stop operation on the 13.56MHz card reader 124 and the 5.8GHz antenna 125, and perform a test based on the contents described in the above steps S101 to S106.
In some embodiments, as shown in fig. 5, the apparatus further comprises:
the communication module 125 is used for connecting the main control module 121, and the communication module 125 is one or more of a Wi-fi module 1251, a zigbee module 1252, a bluetooth module 1253, or a data network communication module 1254.
The communication module 125 may include a wireless communication module and/or a wired communication module, which is a device connecting the main control module 121 and the upper computer 110, and in some embodiments, the communication module 125 is one or more of a Wi-fi module 1251, a zigbee (zigbee) module 1252, a bluetooth module 1253, or a data network communication module 1254, where the data network communication module may adopt a 3G \4G \5G communication module; in some embodiments, the communication module 125 is a serial communication module, and is a wired communication module capable of realizing bidirectional communication.
In another aspect, the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the method are implemented.
In another aspect, the present invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above method.
In some embodiments, the test apparatus comprises: PC equipment and integral type test machine equipment (mainly contain 13.56MHz card reader, 5.8GHz antenna and host system) as the host computer. The upper computer is provided with pre-reading test software.
The embodiment simulates the actual use scene of the CPC card of the highway and is used for testing the pre-reading mechanism of the CPC card. The specific test method comprises the following steps: and after the card writing of the lane entrance is finished, whether the MF-EF01, DF01-EF01 and DF01-EF02 files of the pre-read CPC card are consistent with the written content of the entrance or not is judged.
The MF-EF01 file is a system information file of the CPC card and is used for recording information such as an issuer, a version, an ID (identity), a validity period and the like of the CPC card, and the information cannot be changed when the card is written at an entrance; the DF01-EF01 file is an entrance and exit information file and is used for recording contents such as entrance and exit lane information, vehicle information and the like, and an entrance lane needs to be changed; the DF01-EF02 file is a path information file for recording the path information of the vehicle, and the entrance lane needs to initialize the path information.
In this embodiment, the pre-reading test upper computer integrates all processing logics, that is, the upper computer software controls the test flow.
The pre-reading test upper computer updates the CPC DF01-EF01 file and the DF01-EF02 file by controlling the 13.56MHz card reader. Furthermore, the written contents in the MF-EF01, DF01-EF01 and DF01-EF02 files are read and stored, and the storage position can be in the pre-read file structure of the CPC card. The CPC card reader is used for simulating reading and writing of CPC cards in an entrance lane.
And (3) closing the field intensity of the 13.56MHz card reader by the pre-reading test upper computer, and simulating CPC card field-leaving operation.
The pre-reading test upper computer controls a 5.8GHz antenna, sends an instruction to pre-read files of MF-EF01, DF01-EF01 and DF01-EF02 of the CPC card and stores the files, and the storage position can be in a pre-read file structure of the CPC card. The CPC card pre-reading device is used for simulating the ETC portal system.
And the pre-reading test upper computer compares the pre-reading content with the content of the first-time card reading and judges whether the pre-reading is correct or not. And if the pre-reading content is inconsistent with the first-time card reading content, recording errors in an upper computer interface and a log, continuing to test, and summarizing test results after the preset test times are finished.
In some embodiments, the testing step of the method comprises:
1) the 13.56MHz reader field strength is turned on.
2) The 13.56MHz card reader is controlled to read 1-30 bytes (information such as an issuer, a version, an ID and an expiration date) of an MF-EF01 file in a CPC card file structure, update 1-43 bytes (contents such as entrance and exit lane information and vehicle information) of the DF01-EF01 file, 1-512 bytes (path information) of the DF01-EF02 file and 1-512 bytes (provincial section charging information) of the DF01-EF04 file, and read and store 1-43 bytes of the MF-EF01 file of the CPC card, 1-26 bytes of the DF01-EF01 file and 1-10 bytes of the DF01-EF02 file as reference information for the first time.
3) The field intensity of the 13.56MHz card reader is closed, and the CPC card field-off operation is simulated.
4) And controlling a 5.8GHz antenna, and sending an instruction to pre-read 1-43 bytes of an MF-EF01 file of the CPC card, 1-26 bytes of a DF01-EF01 file and 1-10 bytes of a DF01-EF02 file.
5) Controls and instructs the 5.8GHz antenna to turn off.
6) And comparing the pre-reading content with the first card reading content to judge consistency, judging that the pre-reading function is normal if the pre-reading content is completely consistent with the first card reading content, and judging that the pre-reading function is failed if the pre-reading content is inconsistent with the first card reading content.
In summary, the CPC card pre-reading mechanism testing method and device provided by the invention adopt the integrated detection device, simulate the use state in the actual operation process by simulating the signal frequency band, the information flow direction and the storage position of the CPC card in the highway transaction process, and effectively test the functions of the CPC card, thereby improving the testing speed and saving the testing time.
Those of ordinary skill in the art will appreciate that the various illustrative components, systems, and methods described in connection with the embodiments disclosed herein may be implemented as hardware, software, or combinations of both. Whether this is done in hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments mentioned in this patent describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
Features that are described and/or illustrated with respect to one embodiment may be used in the same way or in a similar way in one or more other embodiments and/or in combination with or instead of the features of the other embodiments in the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes may be made to the embodiment of the present invention by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A CPC card pre-reading mechanism test method is characterized in that integrated test equipment comprising a 13.56MHz card reader, a 5.8GHz antenna and a main control module is adopted for detection, the 13.56MHz card reader and the 5.8GHz antenna are controlled by the main control module to read and write the CPC card, and the method comprises the following steps:
receiving a test instruction sent by an upper computer, and sending an update instruction to the 13.56MHz card reader according to the test instruction, so that the 13.56MHz card reader writes first simulation entry information into a first structure file used for storing entry information in a CPC card and writes first simulation path information into a second structure file used for storing path information;
sending a card reading instruction to the 13.56MHz card reader, receiving second simulation entry information read from the first structure file in the CPC card and returned by the 13.56MHz card reader, reading second simulation path information from the second structure file, and recording;
sending a closing instruction to the 13.56MHz card reader;
sending a pre-reading instruction to the 5.8GHz antenna, receiving and recording third simulation entry information read from the first structure file in the CPC card and third simulation path information read from the second structure file returned by the 5.8GHz antenna;
sending a closing instruction to the 5.8GHz antenna;
and comparing the second simulation entrance information with the third simulation entrance information, and the second simulation path information with the third simulation path information, and generating a pre-reading test result.
2. The CPC card read-ahead mechanism test method according to claim 1, further comprising, after sending a card reading instruction to the 13.56MHz card reader:
receiving and recording first issuer information, first version information, first ID information and first validity period information which are returned by the 13.56MHz card reader and read and generated from a third structure file in the CPC card;
after sending the pre-reading instruction to the 5.8GHz antenna, the method further comprises the following steps:
receiving and recording second issuer information, second version information, second ID information and second validity information which are returned by the 5.8GHz antenna and read and generated from the third structural file in the CPC card;
and comparing the first issuer information with the second issuer information, the first version information with the second version information, the first ID information with the second ID information, and the first validity information with the second validity information, and generating a pre-read test result.
3. The CPC card read-ahead mechanism test method of claim 1, wherein before sending the read-ahead command to the 5.8GHz antenna, the method further comprises:
sending a security verification instruction to a 5.8GHz antenna, and receiving security password information read from the CPC card returned by the 5.8GHz antenna;
sending the security password information to a PSAM module for verification, and if the security password information passes the verification, sending a pre-reading instruction to a 5.8GHz antenna; and stopping the test if the verification is not passed.
4. The CPC card read-ahead mechanism test method of claim 1, wherein generating a read-ahead test result comprises:
if the second simulation entrance information is consistent with the third simulation entrance information and the second simulation path information is consistent with the third simulation path information, judging that the test is passed;
and if the second simulation entrance information is inconsistent with the third simulation entrance information or the second simulation path information is inconsistent with the third simulation path information, generating an error log.
5. The CPC card read-ahead mechanism test method of claim 1, wherein before generating the read-ahead test result, further comprising:
and carrying out a plurality of tests and summarizing, and generating the pre-reading test result according to the summarizing result.
6. The CPC card pre-reading mechanism testing method of claim 5, wherein the pre-reading test result does not pass when the same error occurs continuously or intermittently more than a set ratio.
7. The CPC card read-ahead mechanism test method of claim 1, further comprising, after generating the read-ahead test result:
and sending the pre-reading test result to a display module for displaying.
8. A CPC card pre-reading mechanism testing device is characterized by comprising:
the 13.56MHz card reader is used for simulating the operation of writing the entrance information into the CPC card;
the 5.8GHz antenna is used for simulating the pre-reading operation of the CPC card;
the PSAM security module is used for performing security certification on the CPC card in the test process;
a main control module for connecting and controlling the 13.56MHz card reader, the 5.8GHz antenna and the PSAM security module, and performing the steps of the method according to any one of claims 1 to 7.
9. The CPC card read-ahead mechanism testing device of claim 8, wherein the apparatus further comprises:
and the communication module is connected with the main control module and is one or more of a Wi-fi module, a zigbee module, a Bluetooth module or a data network communication module.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202010912256.5A 2020-09-02 2020-09-02 CPC card pre-reading mechanism test method and device Active CN112235015B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010912256.5A CN112235015B (en) 2020-09-02 2020-09-02 CPC card pre-reading mechanism test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010912256.5A CN112235015B (en) 2020-09-02 2020-09-02 CPC card pre-reading mechanism test method and device

Publications (2)

Publication Number Publication Date
CN112235015A CN112235015A (en) 2021-01-15
CN112235015B true CN112235015B (en) 2021-04-27

Family

ID=74117173

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010912256.5A Active CN112235015B (en) 2020-09-02 2020-09-02 CPC card pre-reading mechanism test method and device

Country Status (1)

Country Link
CN (1) CN112235015B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114783207A (en) * 2022-06-22 2022-07-22 车位管家(深圳)科技有限公司 Internet intelligent parking lot management system based on Internet of things

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104569653B (en) * 2014-12-04 2018-07-06 深圳市金溢科技股份有限公司 A kind of password card Auto-Test System
CN204390314U (en) * 2015-02-06 2015-06-10 深圳市金溢科技股份有限公司 5.8GHz Path Recognition compound visa card
CN108614282A (en) * 2016-12-12 2018-10-02 北京握奇智能科技有限公司 A kind of board units and system with dynamic route identification function based on Big Dipper compatible positioning
CN207557995U (en) * 2017-09-05 2018-06-29 北京聚利科技股份有限公司 Compound password card
CN209640859U (en) * 2018-12-29 2019-11-15 北京聚利科技股份有限公司 Compound password card test device

Also Published As

Publication number Publication date
CN112235015A (en) 2021-01-15

Similar Documents

Publication Publication Date Title
CN112152673B (en) CPC card transaction testing method and device under antenna interference
CN112150649B (en) Expressway portal system charging method and device
CN107016741A (en) ETC system and ETC service authentication methods
CN109189405A (en) A kind of method and system of proving program Flash data consistency
CN112152674B (en) Method and device for testing CPC card pre-reading mechanism under antenna interference
CN112069888A (en) Vehicle checking method and system, roadside equipment, vehicle-mounted equipment and handheld terminal
CN110782539A (en) Gas station charging system and charging method based on ETC technology
CN112235015B (en) CPC card pre-reading mechanism test method and device
CN113313849B (en) Electronic transaction method, device, computer equipment and storage medium
CN103530141A (en) Vehicle data updating method and vehicle data updating system
CN105631952A (en) ETC vehicle-mounted terminal self-activation method and device
CN105791042B (en) Communication quality testing method in ETC system
CN103630375A (en) Fault diagnosis method and system of on-board unit and on-board unit
CN107833296A (en) A kind of activation OBU method and OBU
CN108230468B (en) Electronic toll collection lane software testing method and system
CN110827429B (en) Truck ETC lane PSAM card blacklist checking method and device
CN107590869A (en) A kind of highway online charging method and system
CN112991561B (en) ETC antenna-based vehicle-mounted unit information changing method and device
JP2001067504A (en) Toll collection system, portable terminal, and method for maintenance test of toll collection system
JP3567087B2 (en) Vehicle information control device
CN113011870B (en) Method and device for carrying out user card loading through ETC antenna
CN113313848B (en) ETC-V2X-based hybrid transaction method and device and road side equipment
CN114862517A (en) Automobile leasing method and device based on block chain
CN212909522U (en) CPC card transaction test equipment
CN212909523U (en) CPC card pre-reading mechanism testing device

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