Automatic plug-pull card testing method and system for ETC user card

文档序号:1709153 发布日期:2019-12-13 浏览:15次 中文

阅读说明:本技术 Etc用户卡的自动插拔卡测试方法及系统 (Automatic plug-pull card testing method and system for ETC user card ) 是由 高文宝 周悦 鲁程 安铁兵 李勇 张北海 李全发 邓晓慧 宋淼 解振 于 2019-08-12 设计创作,主要内容包括:本发明提供了一种ETC用户卡的自动插拔卡测试方法及系统,其中,该方法包括:输出插拔卡控制信号至插拔卡设备,以使用户卡自动插入车载单元并保持设定的插卡后停留时间;接收用户卡插入车载单元的插卡到位信号;根据插卡到位信号输出交易控制信号至路侧单元,以使路侧单元从用户卡读取卡内信息,并根据读取的卡内信息向用户卡写入交易信息以完成交易;从路侧单元获取交易结果和读取的卡内信息;通过比较读取的卡内信息和预先录入至用户卡的卡信息判断卡内信息读取是否正常;根据卡内信息读取是否正常的判断结果和获取的交易结果判断车载单元的插拔卡是否成功。通过上述方案能够实现测试插拔卡后车载单元读写卡模块的稳定性。(the invention provides an automatic plug-in and pull-out card testing method and system for an ETC user card, wherein the method comprises the following steps: outputting a card plugging control signal to card plugging equipment so that a user card is automatically inserted into the vehicle-mounted unit and the set retention time after the card is inserted is kept; receiving a card-inserting in-place signal of a user card inserted into the vehicle-mounted unit; outputting a transaction control signal to the road side unit according to the card insertion in-place signal so that the road side unit reads the card information from the user card and writes the transaction information into the user card according to the read card information to complete the transaction; acquiring a transaction result and read in-card information from the road side unit; judging whether the reading of the information in the card is normal or not by comparing the read information in the card with the card information which is pre-input to the user card; and judging whether the card plugging of the vehicle-mounted unit is successful according to the judgment result of whether the card information reading is normal and the acquired transaction result. By the scheme, the stability of the card reading and writing module of the vehicle-mounted unit after the card is inserted and pulled can be tested.)

1. the utility model provides an ETC user card's automatic plug-in card test method which characterized in that includes:

Outputting a card plugging control signal to card plugging equipment so that a user card is automatically inserted into the vehicle-mounted unit and the set retention time after the card is inserted is kept;

Receiving a card-inserting in-place signal of the user card inserted into the vehicle-mounted unit;

Outputting a transaction control signal to a road side unit according to the card insertion in-place signal so that the road side unit reads card information from the user card and writes transaction information into the user card according to the read card information to complete transaction;

Acquiring a transaction result and read in-card information from the road side unit;

judging whether the reading of the in-card information is normal or not by comparing the read in-card information with the card information which is previously input to the user card;

And judging whether the card plugging of the vehicle-mounted unit is successful according to the judgment result of whether the card information reading is normal and the acquired transaction result.

2. The method according to claim 1, wherein before outputting the card plugging control signal to the card plugging device, the method further comprises:

receiving an input plug-pull card control parameter; the card plugging and unplugging control parameters comprise card plugging speed, card plugging force and retention time after card plugging; the plug card control signal comprises the plug card control parameter.

3. the method according to claim 1, before outputting the card plugging control signal to the card plugging device, further comprising:

Receiving and storing input card information, and inputting the input card information into the user card.

4. The ETC user card automatic plug-in and pull-out test method according to claim 1,

Outputting a transaction control signal to a road side unit according to the card insertion in-place signal so that the road side unit reads card information from the user card and writes transaction information into the user card according to the read card information to complete a transaction, the method further comprises:

Outputting an antenna carrier open control signal to the road side unit;

Outputting a transaction control signal to a road side unit according to the card insertion in-place signal so that the road side unit reads card information from the user card and writes transaction information into the user card according to the read card information to complete a transaction, and the method further comprises the following steps:

And outputting an antenna carrier wave closing control signal to the road side unit.

5. The ETC user card automatic plug-in and pull-out test method according to claim 1, wherein the read card information includes a card issuance basic data file, a composite consumption dedicated file, and a pre-transaction electronic wallet file; the written transaction information includes the modified composite consumption specific file.

6. The method for automatically plugging and unplugging an ETC user card according to claim 1, further comprising:

After the user card exits the vehicle-mounted unit after the retention time of the user card after the set card insertion is kept, outputting a card insertion and extraction control signal to the card insertion and extraction equipment again so that the user card is automatically inserted into the vehicle-mounted unit again and the retention time of the user card after the card insertion is kept again;

re-receiving a card-inserting-in-place signal of the user card inserted into the vehicle-mounted unit;

Outputting a transaction control signal to the road side unit again according to the re-received card insertion in-place signal so that the road side unit reads the card information from the user card again and writes the transaction information into the user card again according to the read card information to complete the transaction again;

acquiring a result of the re-transaction and the re-read in-card information from the road side unit;

judging whether the reading of the information in the card is normal again by comparing the information in the card which is read again with the transaction information which is written into the user card at the previous time;

And judging whether the card plugging of the vehicle-mounted unit is successful again according to the judgment result of whether the obtained card information reading is normal and the result of the re-transaction.

7. the ETC user card automatic plug-in and pull-out test method according to claim 6, further comprising:

And obtaining the successful card plugging and unplugging proportion of the vehicle-mounted unit according to all results of judging whether the card plugging and unplugging of the vehicle-mounted unit is successful so as to judge the read-write stability of the vehicle-mounted unit after the card plugging and unplugging.

8. The utility model provides an ETC user card's automation is inserted and is pulled out card testing arrangement which characterized in that includes:

The plug-in card control unit is used for outputting a plug-in card control signal to the plug-in card equipment so as to enable the user card to be automatically inserted into the vehicle-mounted unit and keep the set retention time after the card is inserted;

The card-inserting in-place detection unit is used for receiving a card-inserting in-place signal of the user card inserted into the vehicle-mounted unit;

The transaction control unit is used for outputting a transaction control signal to the road side unit according to the card insertion in-place signal so as to enable the road side unit to read the card information from the user card and write the transaction information into the user card according to the read card information to complete the transaction;

The information acquisition unit is used for acquiring a transaction result and the read in-card information from the road side unit;

A reading normality judgment unit for judging whether card information reading is normal or not by comparing the read card information with card information previously entered to the user card;

And the test result acquisition unit is used for judging whether the card plugging of the vehicle-mounted unit is successful according to the judgment result of whether the card information reading is normal and the acquired transaction result.

9. The utility model provides an ETC user card's automation is inserted and is pulled out card test system which characterized in that includes:

the plug-in card controller is used for outputting a plug-in card control signal;

the card plugging device is used for automatically plugging a user card into the vehicle-mounted unit according to the card plugging control signal, sending a card plugging in-place signal after the user card is plugged into the vehicle-mounted unit in place, and enabling the user card to exit from the vehicle-mounted unit after the user card keeps the set retention time after the user card is plugged;

The card plugging and unplugging controller is also used for outputting a transaction control signal according to the card plugging in-place signal;

The road side unit is used for reading card information from the user card according to the transaction control signal and writing transaction information into the user card according to the read card information so as to complete transaction;

The card plugging and unplugging controller is also used for acquiring a transaction result and read card information, judging whether the card information reading is normal or not by comparing the read card information with the card information which is pre-input to the user card, and judging whether the card plugging and unplugging of the vehicle-mounted unit is successful or not according to the judgment result whether the card information reading is normal or not and the acquired transaction result.

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.

Technical Field

The invention relates to the technical field of Electronic Toll Collection (ETC), in particular to an automatic plug-in and pull-out card testing method and system for an ETC user card.

Background

The ETC system realizes charging transaction by a Road Side Unit (RSU) and an On-Board Unit (OBU) of the ETC in a wireless communication mode. The vehicle-mounted unit reads and writes the user card according to the instruction of the road side unit in the transaction process, and the card fee deduction operation is completed, so that the driving fee deduction of the user is realized.

The existing ETC user card is mainly a non-contact card, and the front and back of the inserted card surface do not influence the read-write card of the vehicle-mounted unit. Under normal conditions, plug-in user card when ETC vehicle-mounted unit installs, need not pull out again and insert user card in the use. And only when the MTC lane is moved after recharging, in-card information query and ETC transaction failure, the card needs to be pulled out for reading and writing. In the using process, due to vehicle jolt, random card inserting and pulling operation and other reasons, the card contact is poor, the card inserting is not in place and other reasons can be caused, the card reading and writing operation of the vehicle-mounted unit is unstable, and even the card reading and writing failure is caused.

In order to ensure the product quality of the ETC user card, the quality inspection needs to be carried out before the ETC user card leaves a factory or is delivered to a user, a manual card reading and writing operation inspection mode is generally adopted, and the efficiency is low.

disclosure of Invention

In view of this, the present invention provides an automatic card plugging and unplugging test method and system for an ETC user card, so as to achieve the stability of the card reading and writing module of the vehicle-mounted unit after the card is tested.

In order to achieve the purpose, the invention is realized by adopting the following scheme:

According to an aspect of the embodiments of the present invention, there is provided an automatic plug-in and pull-out card testing method for an ETC user card, including:

Outputting a card plugging control signal to card plugging equipment so that a user card is automatically inserted into the vehicle-mounted unit and the set retention time after the card is inserted is kept;

receiving a card-inserting in-place signal of the user card inserted into the vehicle-mounted unit;

outputting a transaction control signal to a road side unit according to the card insertion in-place signal so that the road side unit reads card information from the user card and writes transaction information into the user card according to the read card information to complete transaction;

acquiring a transaction result and read in-card information from the road side unit;

Judging whether the reading of the in-card information is normal or not by comparing the read in-card information with the card information which is previously input to the user card;

and judging whether the card plugging of the vehicle-mounted unit is successful according to the judgment result of whether the card information reading is normal and the acquired transaction result.

according to another aspect of the embodiments of the present invention, there is provided an automatic pluggable card testing apparatus for an ETC user card, including:

the plug-in card control unit is used for outputting a plug-in card control signal to the plug-in card equipment so as to enable the user card to be automatically inserted into the vehicle-mounted unit and keep the set retention time after the card is inserted;

the card-inserting in-place detection unit is used for receiving a card-inserting in-place signal of the user card inserted into the vehicle-mounted unit;

The transaction control unit is used for outputting a transaction control signal to the road side unit according to the card insertion in-place signal so as to enable the road side unit to read the card information from the user card and write the transaction information into the user card according to the read card information to complete the transaction;

the information acquisition unit is used for acquiring a transaction result and the read in-card information from the road side unit;

A reading normality judgment unit for judging whether card information reading is normal or not by comparing the read card information with card information previously entered to the user card;

And the test result acquisition unit is used for judging whether the card plugging of the vehicle-mounted unit is successful according to the judgment result of whether the card information reading is normal and the acquired transaction result.

According to another aspect of the embodiments of the present invention, there is provided an automatic pluggable card testing system for an ETC user card, including:

The plug-in card controller is used for outputting a plug-in card control signal;

The card plugging device is used for automatically plugging a user card into the vehicle-mounted unit according to the card plugging control signal, sending a card plugging in-place signal after the user card is plugged into the vehicle-mounted unit in place, and enabling the user card to exit from the vehicle-mounted unit after the user card keeps the set retention time after the user card is plugged;

The card plugging and unplugging controller is also used for outputting a transaction control signal according to the card plugging in-place signal;

the road side unit is used for reading card information from the user card according to the transaction control signal and writing transaction information into the user card according to the read card information so as to complete transaction;

The card plugging and unplugging controller is also used for acquiring a transaction result and read card information, judging whether the card information reading is normal or not by comparing the read card information with the card information which is pre-input to the user card, and judging whether the card plugging and unplugging of the vehicle-mounted unit is successful or not according to the judgment result whether the card information reading is normal or not and the acquired transaction result.

According to a further aspect of embodiments of the present invention, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of the above-described embodiments.

The automatic plug-in and plug-out test method of the ETC user card, the automatic plug-in and plug-out test device of the ETC user card, the automatic plug-in and plug-out test system of the ETC user card and the computer readable storage medium can test the stability and reliability of the read-write card module of the vehicle-mounted unit after the card is plugged and unplugged.

Drawings

in order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:

fig. 1 is a schematic flow chart illustrating an automatic plug-in/pull-out card testing method for an ETC user card according to an embodiment of the present invention;

fig. 2 is a schematic flow chart illustrating an automatic plug-in/pull-out card testing method for an ETC user card according to another embodiment of the present invention;

Fig. 3 is a schematic workflow diagram of an automatic plug-in/pull-out card testing method for an ETC user card according to an embodiment of the present invention;

fig. 4 is a schematic diagram illustrating a workflow of an automatic plug-in/pull-out card testing method for an ETC user card according to an embodiment of the present invention;

FIG. 5 is a diagram illustrating a file structure in a user card according to an embodiment of the invention;

fig. 6 is a schematic structural diagram of an automatic plug-in/pull-out card testing device for an ETC user card according to an embodiment of the invention;

fig. 7 is a schematic structural diagram of an automatic plug-in and plug-out card testing system for an ETC user card according to an embodiment of the invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the 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.

The ETC road side unit and the vehicle-mounted unit realize charging transaction in a wireless Communication mode, wherein a Communication protocol can adopt a Dedicated Short Range Communication (DSRC) protocol. The treatment process comprises the following steps: an ETC Vehicle-mounted Unit (Road Side Unit, RSU) periodically transmits downlink Beacon Service Table (BST) signals, and when a Vehicle provided with the On-Board Unit (OBU) drives into an ETC charging area, the Vehicle receives the BST signals and returns the VST signals. The VST signal contains the Media Access Control (MAC) address of the on-board unit, which is its primary identifier for communication with the RSU antenna, a serial number, and other information. After receiving the uplink DSRC signal data frame, the RSU antenna distinguishes different vehicle-mounted units by the MAC address of the RSU antenna; the downlink signal data frames sent to different vehicle-mounted units by the RSU antenna all use the MAC address of the target vehicle-mounted unit as the special link identification of the downlink frame. The vehicle-mounted unit only receives the downlink data frame with the exclusive link identification being the same as the MAC address of the vehicle-mounted unit. After receiving the VST signal, the RSU antenna firstly carries out safety authentication with the vehicle-mounted unit, and after the vehicle is confirmed to be a legal vehicle after the authentication is passed, ETC charging transaction is carried out with the vehicle-mounted unit. After ETC transaction communication is finished, the RSU antenna transmits an end instruction, then continues to transmit periodic downlink BST signals, and waits for the driving of subsequent vehicles.

one of the basic functions of the on-board unit is to operate the user card, and the operations of reading the card information of the user card, writing the information in the ETC system into the user card, charging the user card and the like can be completed through the card reading and writing module of the on-board unit. According to long-term operation experience of the ETC system, the stability of the work of the read-write card module of the vehicle-mounted unit directly influences the normal operation of the system and the non-stop traffic of a large number of users. Due to the reasons of the production manufacturing process, the device selection, the software design and the like of the vehicle-mounted unit, faults such as unstable operation of the read-write card and even failure of the read-write card occur with a certain probability after the vehicle-mounted unit is plugged and unplugged for many times, and therefore how to detect the stability and the reliability of the function of the read-write card after the vehicle-mounted unit is plugged and unplugged is a problem which needs to be solved urgently in an ETC system.

In order to solve the above problems, the present invention provides an automatic card plugging and unplugging test method for an ETC user card, as shown in fig. 1, the automatic card plugging and unplugging test method for an ETC user card according to some embodiments may include the following steps S110 to S160.

The method can be realized by utilizing a controller, and the controller can be equipment such as an industrial personal computer, a server, a personal computer, a tablet personal computer, a mobile phone or a single chip microcomputer. The person skilled in the art knows that the order of execution of the steps of the method can be adjusted where possible, so that the order of execution of the steps is not limited by the present invention unless otherwise specified.

step S110: and outputting a card plugging control signal to the card plugging equipment so that the user card is automatically inserted into the vehicle-mounted unit and exits from the vehicle-mounted unit after the set retention time of the inserted card is kept.

The card plugging and unplugging equipment can comprise a mechanical arm, a card inserting groove, a vehicle-mounted unit fixing piece and the like. The plug card control signal can be specifically transmitted to a mechanical arm in the plug card device, and the mechanical arm can push all or part of the user card outside the card slot into the card slot according to the plug card control signal. When the user card enters the card inserting operation, the user card can be electrically connected with a vehicle-mounted unit (electronic tag) fixed by a vehicle-mounted unit fixing part, which is equivalent to that a user inserts the user card into the vehicle-mounted electronic tag. Wherein, the user card can be a stored value card, a billing card and the like, and can be charged; the vehicle-mounted electronic tag or the vehicle-mounted unit can perform information interaction with a road side unit of the ETC system.

the plug-in card control signal may carry plug-in card control parameters, wherein the plug-in card control parameters may include one or more of a card insertion speed, a card insertion force, and a retention time after card insertion. The retention time after the card is inserted can refer to the time for keeping the card-inserting state after the user card is inserted into the card-inserting and extracting device and the card is inserted in place, and can be determined by referring to the time spent in the execution of one or more subsequent steps so as to ensure that the vehicle-mounted unit and the road side unit complete the transaction. In some embodiments, the post-insertion dwell time may refer to the time from the time of insertion of the card to the time of turning off the antenna; the card can be pulled out manually or automatically after the antenna is closed. After the retention time after the card insertion is continuously finished, the user card can be ejected from the card inserting and extracting device (the ejection mechanism or the mechanical arm can be used for assisting the ejection of the user card). Different card inserting habits of users can be simulated by using different card inserting speeds and/or card inserting forces, so that the test result can be more accurate. In other embodiments, the card plugging control signal may not carry card plugging control parameters, and the mechanical arm of the card plugging device receives the card plugging control signal and inserts the card according to the inherent force or speed.

The card plugging device, particularly the control circuit of the mechanical arm thereof, and the controller of the method can be in communication connection in various modes, such as a serial port, a control interface, a bus and the like, so as to transmit a card plugging control signal to the card plugging device.

optionally, before the step S110, the method shown in fig. 1 may further include the steps of: s170, receiving the input card plugging control parameters. The plug-in card control parameters comprise one or more of card insertion speed, card insertion force and retention time after card insertion, and the plug-in card control signals comprise the plug-in card control parameters. The plug card control parameters can be manually input to the execution device of the method through various input devices (such as a keyboard, a mouse, a touch screen and the like). After receiving the card plugging control parameter, the execution device of the method may add the card plugging control parameter to the card plugging control signal for outputting together if the card plugging control signal needs to be output, where the outputting together mainly refers to outputting simultaneously and is not limited to transmitting in the same transmission channel or communication line. The step S170 may be a part of the preparation work, and after the execution device of the method receives the card plugging control parameter, the execution device may execute an action of starting the test, and then start to execute the step S110.

the same or different plug-in card control parameters can be adopted in different plug-in card testing processes; or, the input card plugging control parameters can be received only at the beginning, but the card plugging control parameters can be adjusted according to the set rule when the next test is carried out, so that the method can automatically simulate various user card inserting behaviors.

Optionally, before the step S110, the method shown in fig. 1 may further include the steps of: and S180, receiving and storing the input card information, and inputting the input card information into the user card. The card information may include one or more types of information involved in transactions or interactions between the roadside unit and the on-board unit, such as a 0015 file, a 0019 file, a 0002 file (a file in technical requirements for toll road networking electronic toll collection (No. 13 bulletin 2011) according to ETC-related industry specifications), and the like. The 0015 file is a card issuing basic data file and is information written in the process of secondary issuing of a user card, and the rewriting can be omitted in the process of transaction between the road side unit and the vehicle-mounted unit; 0019 the file is a file special for consumption, and every transaction can be modified according to the time, site and other information of the transaction; the 0002 file is an electronic wallet file, the balance of the wallet of the user card is recorded, and after the fee deduction of each transaction is successful, the 0002 file can reduce the corresponding fee deduction amount. The card information generally needs to conform to the format of the corresponding file, and the specific content can be randomly written.

The card information can be copied from other storage equipment to the execution equipment of the method manually, and the execution equipment of the method can store the obtained card information into one copy and input the card information into the user card. The user card can be connected with the execution device of the method through the card plugging device or other devices (such as a card reader) in a communication mode so as to enter card information into the user card. The step S180 may be a part of the preparation work, and after the execution device of the method receives and stores the input card information, and inputs the card information into the user card, an action of starting the test may be performed, and then the step S110 is performed.

Step S120: and receiving a card-inserting in-place signal of the user card inserted into the vehicle-mounted unit.

The card plugging and unplugging device can comprise a card insertion in-place detection device, the card insertion in-place detection device can be an infrared detection element, a pressure detection element and the like, and the setting position can be determined according to the position where the user card can be electrically connected with the vehicle-mounted unit. When the user card is inserted in place, the in-place card insertion detection device of the card plugging and unplugging device can detect that the user card is inserted in place and send an in-place card insertion signal to the execution device of the method.

In other embodiments, the card plugging and unplugging device may further include a card complete unplugging detection device, and similarly, the card complete unplugging detection device may be an infrared detection device, a pressure detection device, or the like, may determine a setting position according to a position of a slot of the card insertion device, and may be different from the card in-place detection device in the setting position. In other words, in these embodiments, the method shown in fig. 1 may further include the steps of: and receiving a card complete pulling-out signal that the user card pulls out the vehicle-mounted unit. The card complete plug-out signal may be executed after the transaction between the on-board unit and the roadside unit is completed, for example, after the subsequent step S130, which may indicate that one card plugging-out operation is completed, and may further facilitate the next card plugging-out test.

illustratively, the card-in-place detection device and/or the card complete-extraction detection device may be communicatively connected with the execution device of the method in various ways, for example, through an I/O interface, in which case, if the card-in-place detection device detects that the user card is in place, 1 may be output, otherwise 0 may be output to the execution device of the method; if the card complete extraction detection device detects that the user card is completely extracted, 1 can be output, otherwise, 0 can be output to the execution equipment of the method. Under the condition that the card plugging and unplugging device is provided with a card plugging in-place detection device and a card completely unplugging detection device, the detection result of the card plugging position can be represented by a two-digit binary number, for example, 00 represents that the card plugging is not in place and the card unplugging is not in place, namely, the card plugging and unplugging device can represent that the card is in the process of plugging or unplugging or is in the state that the card is in virtual connection with a vehicle-mounted unit; the situation that the card is inserted in place but not pulled out in place is represented by 01, namely the situation that the card is inserted in place can be represented; the card is pulled out to the right position and inserted to the right position by 10, namely, the state of pulling out the card to the right position can be shown.

step S130: and outputting a transaction control signal to a road side unit according to the card insertion in-place signal so that the road side unit reads the card information from the user card and writes the transaction information into the user card according to the read card information to complete the transaction.

for example, the read in-card information may include one or more of a card issuance base data file (0015 file), a composite consumption-specific file (0019 file), and a pre-transaction electronic wallet file (0002 file); the written transaction information may include a modified composite consumption specific file (0019 file). By reading the card issuance basic data file in the user card, basic information of the user card, such as a MAC address of the user card, a serial number, and the like, can be obtained, where the MAC address can be used to find the user card, and the serial number can facilitate finding the user card in the ETC system. Of course, the method is only used for testing, and the card issuing basic data file may not necessarily play a practical role, and may only be used for checking whether the reading result is correct. The information related to the previous transaction of the user card, such as the previous transaction time, the site and the like, can be known through the composite consumption special file.

When information needs to be written in, transaction information is written in the user card according to the read information in the card so as to complete a transaction, specifically, for example, the composite consumption special file can be modified according to the current transaction time and site, and the modified composite consumption special file is written in the user card, meanwhile, the road side unit can transmit the transaction amount obtained according to the information recorded by the ETC system or transmitted to the road side unit to the user card, and the electronic wallet file on the user card is controlled to subtract the amount, so that the transaction amount is changed into the electronic wallet file after the transaction. The sum can be transmitted to the user card through the composite consumption special file, and then the electronic wallet file is modified by the user card, or the electronic wallet file is directly modified, and then the modified electronic wallet file is transmitted to the user card.

The purpose of writing the transaction information is to complete the transaction, if the transaction is actually completed, the transaction is successful, if the transaction cannot be completed due to insufficient balance or failure in reading and writing the card, the transaction fails, after the transaction operation is performed, the vehicle-mounted unit can feed back the result of the transaction to the road side unit, and then the execution device of the method can acquire the transaction result through a communication connection line (for example, a serial port, a network port, a bus connection and the like) between the execution device and the road side unit.

optionally, before the step S130, the method shown in fig. 1 may further include the steps of: and S190, outputting an antenna carrier wave opening control signal to the road side unit. In general, the antenna of the road side unit may continuously and periodically transmit the downlink BST signal, and wait for the on-board unit to receive the downlink BST signal. However, when the plug-in and pull-out card test is performed, it is desirable that the BST signal is received when the BST signal needs to be received so that information interaction between the RSU antenna and the vehicle-mounted unit can be performed. Therefore, an antenna carrier control switch may be disposed in the road side unit, and when a transaction needs to be performed (for example, step S130 needs to be performed), the RSU antenna is turned on in advance to transmit a carrier signal, so as to perform a transaction with the vehicle-mounted unit. Therefore, interference caused by unnecessary signals transmitted by the RSU antenna to the plug-in card test process can be prevented.

Optionally, after the step S130, the method shown in fig. 1 may further include the steps of: s1200, outputting an antenna carrier wave closing control signal to the road side unit. After the transaction is completed, when the information interaction between the vehicle-mounted unit and the RSU antenna is not required in the subsequent processing process of the card plugging and unplugging test, the antenna carrier is closed, and unnecessary signals are prevented from being transmitted by the antenna. After the antenna carrier is closed, the RSU antenna may still be in a powered-on state, and only the BST signal is not transmitted, so that when the antenna is required to continuously transmit the BST signal, the antenna may be quickly controlled to transmit the carrier signal for the next transaction.

Step S140: and acquiring a transaction result and the read in-card information from the road side unit.

After the road side unit detects the vehicle-mounted unit, the information in the card is read from the user card inserted into the vehicle-mounted unit, at this moment, the fee deduction transaction is not carried out, and at this moment, the road side unit can transmit the read information in the card to the execution equipment of the method. After the road side unit knows the charge amount to be deducted of the user card according to the read information in the card, the information needing transaction can be written into the user card through the vehicle-mounted unit, so that the charge is deducted, the charge deduction transaction is possible to succeed or fail, the transaction result can be returned to the road side unit through the vehicle-mounted unit, and at the moment, the road side unit can transmit the transaction result to the execution equipment of the method. Thus, the transaction result and the read in-card information can be acquired from the roadside unit. Of course, in other embodiments, it may be possible to obtain the required information from other means, for example, obtaining the transaction results and/or the read in-card information from the on-board unit.

step S150: and judging whether the reading of the information in the card is normal or not by comparing the read information in the card with the card information which is pre-input to the user card.

under the condition that the card information of the user card before the card plugging test is not changed relative to the card information pre-entered into the user card, whether the card information reading is normal or not can be judged by comparing the read card information with the card information pre-entered into the user card, specifically, if the card information is consistent, the card information reading is normal, otherwise, the card information reading is abnormal. Under the condition that the card information of the user card before the card plugging and unplugging test changes relative to the card information which is pre-input to the user card, the information after the test change of the previous time can be obtained according to the change information (such as deduction amount) and the information read before the previous time of change, and then whether the read information is normal or not is judged by comparing the consistency of the information after the previous time of change and the information in the card read at this time.

for example, the read in-card information may include a card issuance base data file, a composite consumption dedicated file, and an electronic wallet file, and the card information previously entered into the user card may include a card issuance base data file, a composite consumption dedicated file, and an electronic wallet file. In this case, when the card insertion and extraction test is performed for the first time, it is possible to compare whether the read card issuance basic data file is identical to the card issuance basic data file that has been previously entered, whether the read composite consumption dedicated file is identical to the composite consumption dedicated file that has been previously entered, and whether the read electronic wallet file is identical to the electronic wallet file that has been previously entered. If the card is not plugged and unplugged for the first time, the pre-recorded composite consumption special file may be updated to the composite consumption special file which is modified and written in the latest card plugging and unplugging test, and under the condition, whether the composite consumption special file read in the test is consistent with the composite consumption special file modified for the previous time or not can be compared; of course, since the card issuance base data file is not generally changed, the consistency between the read card issuance base data file and the card issuance base data file previously entered into the user card can be compared regardless of the card insertion/removal test.

Step S160: and judging whether the card plugging of the vehicle-mounted unit is successful according to the judgment result of whether the card information reading is normal and the acquired transaction result.

For example, by comparing the read card information with the card information previously entered into the user card, it is determined that the card information reading is normal and the transaction result is also normal, and it may be considered that the card insertion and removal of the vehicle-mounted unit is successful this time, that is, the vehicle-mounted unit is stable in reading and writing. If the reading of the information in the card fails or the transaction fails, the card plugging and unplugging of the vehicle-mounted unit can be considered to be failed.

in the embodiments, a card plugging control signal is output to the card plugging device, so that the user card is automatically inserted into the vehicle-mounted unit, a card insertion in-place signal of the user card inserted into the vehicle-mounted unit is received, a transaction control signal is output to the roadside unit according to the card insertion in-place signal, the roadside unit reads card information from the user card, transaction information is written into the user card according to the read card information to complete a transaction, then the card plugging device extracts the user card, a transaction result and the read card information are obtained from the roadside unit, whether card information reading is normal or not is judged by comparing the read card information with card information pre-entered into the user card, and whether card plugging of the vehicle-mounted unit is successful or not is judged according to a judgment result whether card information reading is normal or not and the obtained transaction result, so that the influence of the plugging card on the card reading and writing card mode stability of the vehicle-mounted unit can.

fig. 2 is a schematic flow chart of an automatic plug-in and pull-out card testing method for an ETC user card according to another embodiment of the invention. Referring to fig. 2, in other embodiments, the automatic plug-in and plug-out card testing method for the ETC user card shown in fig. 1 may further include the following steps S210 to S260. After the card plugging and unplugging test of the on-board unit is completed once through the steps S110 to S160, the next card plugging and unplugging test of the on-board unit can be performed through the steps S210 to S260.

step S210: and after the user card exits the vehicle-mounted unit, outputting a card plugging control signal to the card plugging device again so as to ensure that the user card is automatically plugged into the vehicle-mounted unit again and the retention time after the card is plugged is maintained again.

For example, in step S110, the card plugging device inserts the user card into the vehicle-mounted unit according to the card plugging control signal, and allows the user card to maintain the card plugging state for a certain time, during which the transaction process between the road side unit and the vehicle-mounted unit can be completed, and the user card can be withdrawn from the vehicle-mounted unit after the card reading and writing operation is performed. Therefore, the ejection of the user card from the in-vehicle unit in step S210 may refer to the ejection of the user card from the in-vehicle unit in this example. The specific implementation of step S210 may be similar to step S110 described above.

The plug-in card control signal can carry plug-in card control parameters, which can include card-inserting speed, card-inserting force, retention time after card-inserting, and the like. In addition, the card plugging control parameter may include a card plugging frequency, and according to the set card plugging frequency, the steps S210 to S260 may be performed in a loop until the requirement of the test frequency is met. The step S210 may be the same or similar in the process of testing the pluggable card for different times.

step S220: re-receiving a card-inserting-in-place signal of the user card inserted into the vehicle-mounted unit;

According to the obtained card plugging control signal, the card plugging device can enable the user card to be plugged into the vehicle-mounted unit again. When the card is inserted in place, a corresponding card in-place signal can be obtained. The specific implementation of this step is similar to step S120 described above.

Step S230: and outputting a transaction control signal to the road side unit again according to the re-received card insertion in-place signal so that the road side unit reads the card information from the user card again and writes the transaction information into the user card again according to the read card information to complete the transaction again.

The detailed implementation of this step may be similar to step S130 described above. The specific content may be different for the read in-card information when the previous test is modified. For example, the card issuance basic data file read this time may be identical to the card issuance basic data file read in the previous test; the contents of the composite consumption special file read at this time and the composite consumption special file read before the previous transaction can be different, because the time, the site and the like of the previous transaction can be modified in the composite consumption special file read at this time; the contents of the electronic wallet file read this time and the contents of the electronic wallet file read before the previous transaction may be different, and the balance in the electronic wallet file is different because a certain amount of money is deducted from the electronic wallet file after the previous transaction.

Optionally, before the step S230, the method shown in fig. 2 may further include the steps of: and S290, repeatedly outputting an antenna carrier wave opening control signal to the road side unit. Optionally, after the step S230, the method shown in fig. 2 may further include the steps of: s2200, repeatedly outputting an antenna carrier turn-off control signal to the rsu. The embodiment and effect of step S290 are similar to those of step S190, and the embodiment and effect of step S2200 are similar to those of step S1200.

Step S240: and acquiring the result of the re-transaction and the re-read in-card information from the road side unit.

the detailed implementation of this step may be similar to step S240 described above. The difference is mainly that the result of the re-transaction may be different from the transaction result in the previous test, and the card internal information (information read before the current transaction) read again may be different from the card internal information read before the previous transaction.

Step S250: and judging whether the reading of the information in the card is normal again by comparing the information in the card which is read again with the transaction information which is written into the user card at the previous time.

the difference between this step and the above step S250 is mainly that the re-read card information is compared with the transaction information written into the user card during the previous card insertion and extraction test, for example, if the modified composite consumption dedicated file was written during the previous transaction, and the modified electronic wallet file was written during the previous transaction, the composite consumption dedicated file read before this transaction can be compared with the composite consumption dedicated file written into the user card at the previous time, and the electronic wallet file read before this transaction can be compared with the modified electronic wallet file written into the user card at the previous time. The transaction information written in the previous time can be obtained by combining the information read before the previous transaction with the change information which needs to be modified before the roadside unit, for example, the electronic wallet file after the transaction is obtained by subtracting the amount of money to be deducted by the roadside unit in the previous test from the balance in the electronic wallet file read before the previous transaction. In other embodiments, the information to be written to the user card or the information processed in the user card may be transmitted to the execution entity of the method for storage.

Step S260: and judging whether the card plugging of the vehicle-mounted unit is successful again according to the judgment result of whether the obtained card information reading is normal and the result of the re-transaction.

The specific implementation of this step is similar to step S160 described above. For example, if the re-read card information is normal and the re-transaction result is successful, the test may be considered to be successful.

in some embodiments, referring to fig. 2 again, the method for automatically plugging and unplugging an ETC user card according to the foregoing embodiments may further include:

Step S270: and obtaining the successful card plugging and unplugging proportion of the vehicle-mounted unit according to all results of judging whether the card plugging and unplugging of the vehicle-mounted unit is successful so as to judge the read-write stability of the vehicle-mounted unit after the card plugging and unplugging.

For example, the card plugging test may be performed once through the steps S110 to S160, and the card plugging test may be performed multiple times by circularly performing the steps S210 to S260. Each test may yield a successful or failed result. Whether the read-write function of the vehicle-mounted unit is stable after the card is plugged can be judged by counting the ratio of successful tests in all tests.

when it is necessary to evaluate the stability of the same on-board unit, the above steps S110 to S260 may be always performed by one on-board unit. When the next vehicle-mounted unit needs to be tested, the vehicle-mounted unit can be replaced, and the test is started from the beginning again to count the stability of the vehicle-mounted unit.

In order that those skilled in the art will better understand the present invention, embodiments of the present invention will be described below with reference to specific examples.

The embodiment provides a method for testing the plugging and unplugging of the card of the vehicle-mounted unit, which can test the stability and reliability of the card reading and writing module of the vehicle-mounted unit, thereby solving the technical problems of error operation of the card reading and writing module of the vehicle-mounted unit and the like. The existing equipment plug test tool cannot test the plug card of the ETC vehicle-mounted unit, and particularly cannot automatically detect the working effect of the ETC vehicle-mounted unit after the plug card is inserted. To implement the method of the present embodiment, the hardware may include: plug-in card equipment, an ETC special RSU, a plug-in card controller and the like.

wherein, in the aspect of system constitution: the ETC electronic tag pluggable card testing system mainly comprises pluggable card equipment, an ETC special RSU, a pluggable card controller, pluggable card testing software and the like. The card plugging and unplugging equipment can be realized by adding a software control interface and a card plugging in-place detection function to the mechanical card plugging and unplugging equipment; the special RSU for the ETC can adopt the existing ETC product, and preferably can be matched with a plug-in card to automatically control and increase the function of controlling the antenna switch; the card plugging controller can control the card plugging device to automatically work.

in terms of system functionality:

(1) card plugging and unplugging device

The existing mature card plugging and unplugging equipment can be selected, and preferably, the functions of controlling the card plugging and unplugging force, the card plugging and unplugging speed, the time of pause after card plugging, in-place card plugging detection and the like can be increased. Therefore, the card inserting condition under different force and speed conditions can be simulated, and the pause time after the card is inserted can be controlled to ensure that the electronic tag finishes processing the card.

(2) special RSU for ETC

The existing RSU of the ETC system can be selected for trading with the electronic tag and the card reading effect of the electronic tag after card insertion is verified, but the function of controlling the switch of the RSU by software needs to be added.

(3) Plug card controller

The plug card controller can be responsible for overall work of the whole system, coordinate plug card equipment to insert and pull out the card according to different speeds and forces, and can detect whether the insert card is in place, control the RSU automatic switch, read the card, accomplish ETC transaction and the like, and the plug card controller can be replaced by the industrial personal computer.

(4) Plug-in card test software

The plug-in card test software can run on an industrial personal computer, and can have the functions of setting test times, card inserting force, plug-in card speed, residence time after card inserting and the like, automatically detects the function of the in-place plug-in card, controls the RSU to read information in the card, write transaction information, complete ETC transaction and the like, and simultaneously can automatically compare, write and read card information consistency or self consistency so as to judge whether the card writing is successful and count the success rate of the OBU after the card inserting.

referring to fig. 3, the card plugging device can be controlled by an industrial personal computer, the number of times of card plugging test, the force and speed of the card plugging and unplugging, and the time for the card testing to stay in the electronic tag each time can be set, all parameters of the card plugging device are configured by the industrial personal computer, the card plugging device is controlled and started by test software used on the industrial personal computer, if the industrial personal computer correctly configures the parameters of the card plugging device, a special RSU for ETC is started, the work of reading the information in the electronic tag card is completed, and if the industrial personal computer fails to correctly configure the parameters of the card plugging device, the reconfiguration and self-checking process is carried out until the parameters of the.

referring to fig. 4, the workflow of the system may include the steps of:

(1) opening the ETC special antenna and the card inserter to enable the ETC special antenna and the card inserter to be in a working state;

(2) carrying out initial setting of a card plugging test, setting the card plugging test times, the card plugging force, the card plugging speed and the retention time after card plugging/card plugging by using test software, and inputting the information of common files of the cards (including 0015 files, 0019 files and 0002 files of the cards) in advance;

(3) The test software controls the start of the test, the test software inserts the card according to the set card inserting speed and force through the card plugging controller, after the card is inserted into the electronic tag, the card is fed back to the test software through the card plugging controller, and the card is inserted in place;

(4) After the card inserting in-place switch detects that the card is in place, the card inserting equipment stays for corresponding time according to the initial setting;

(5) meanwhile, the test software sends a control instruction, opens the special RSU for the ETC, controls the RSU to interact with the electronic tag, reads the information in the card (including the 0015 file, the 0019 file and the 0002 file of the card) through the electronic tag, randomly writes the 0019 file, completes the transaction, and records whether the transaction result is normal or not;

(6) The test software sends an instruction to close the special RSU for the ETC;

(7) after the time reaches the retention time, the test software controls the card plugging and unplugging equipment to plug the card through the controller;

(8) automatically comparing whether the card information read through the transaction is consistent with the card information input in advance or not by the test software, and if so, marking as normal, otherwise, marking as abnormal;

(9) the test software records whether the card is inserted and pulled successfully or not, if the transaction is normal and the comparison of the information in the card is normal, the card is recorded as successful, otherwise, the card is recorded as failed;

(10) After the card is completely pulled out, the card pulling in-place switch detects that the card is pulled out in place, and the card pulling equipment stays for corresponding time according to the initial set retention time (the electronic tag is ensured to finish the subsequent processing work after the transaction and power is off);

(11) And (4) executing the step (3) from the new entering of the new cycle, and comparing the card 0019 file information from the second cycle according to the random writing of the last transaction. 0002, calculating difference comparison according to the deduction amount each time, wherein the file is a wallet file in the card;

(12) and after the cycle reaches the test times, the system automatically calculates the success rate of inserting and pulling the card.

Wherein, the test software automatically compares the information in the card. According to the related industry standard of ETC, "toll road networking electronic toll collection technical requirement" (number 13 in 2011 of the department of transportation), the file structure in the ETC user card is as shown in fig. 5, and the common files mainly include three in the process of ETC transaction: 0015 file, 0019 file, and 0002 file. The 0015 file is a card issuing basic data file and is written when the card is issued for the second time, and the transaction process cannot be rewritten; 0019 the file is a file special for consumption, and every transaction is modified according to the time, site and other information of the transaction; the 0002 file is an electronic wallet file, the balance of the wallet of the card is recorded, and after each successful fee deduction, the 0002 file can reduce the corresponding fee deduction amount.

after each transaction is finished, the test software can automatically compare three common files of the card, and the comparison rule can be as follows:

(1)0015 document: the content read before the transaction is consistent with the content of the 0015 file read in the previous transaction;

(2)0019 document: the 0019 file content read before the transaction is consistent with the 0019 file content written in the transaction at the last time;

(3)0002 document: the wallet balance read before the transaction is equal to the wallet balance read before the last transaction-the last transaction amount.

And comparing three file information in the card, which is recorded in advance by a file source according to the test software before transaction, during the first transaction.

RSU switch antenna functional requirements may include: the software switch antenna function can be realized by adding a software switch antenna instruction to the special RSU for ETC, and the specific functional requirements are as follows: the function is a soft switch, and the antenna hardware is not turned off, namely after receiving an antenna closing instruction, the antenna hardware is still in a power-on standby working state, and does not send 5.8GHz data and closes a carrier; if an antenna opening instruction is received, the carrier function can be quickly opened within a short time (500ms), and the transaction can be carried out with the electronic tag. The specific switch antenna command definition is shown in table 1.

position of Number of bytes Data element Data content
0 1 RSCTL Serial frame serial number
1 1 CMDType instruction code, here valued '0 xC 4'
2 1 ControlType 1-switch antenna, 0-switch antenna
3 1 BCC XOR correctionValue testing

TABLE 1 switched antenna Command definition

The existing card plugging and unplugging equipment can only repeatedly complete simple card plugging and unplugging functions, the card plugging and unplugging equipment with a slightly strong function can set the force and the speed of plugging and unplugging the card on the local machine, and the embodiment can require to increase the force for setting the card plugging and unplugging speed of software on the basis of the existing mature card plugging and unplugging equipment.

adding a card-inserting in-place detection device and a card complete-pulling-out detection device on the card plugging and pulling equipment, connecting the devices with an I/O interface of a single chip microcomputer, detecting the state of the I/O interface in real time, wherein the I/O state of the card is 1 once the card-inserting in-place detection device detects that the card is in place, and otherwise, the I/O state is 0; similarly, the card insertion I/O status is 1 once the card complete removal detection means detects that the card has been completely removed, and 0 otherwise; the card plugging in-place detection has three states, a card plugging in-place state bit is defined as 1 byte, a low byte represents a card plugging in-place state, and a high byte represents a card plugging out state, as shown in fig. 5, the card plugging in-place detection includes three states of 00, 01, and 10 according to actual conditions, as shown in table 2, and the specific states are explained as follows. The card-inserting in-place detection device can adopt various solutions, and the method for detecting the card position state information comprises the following steps: (1) two in-place switches are used, if the card is inserted or pulled in place, the detection is realized by closing the switches, and a level signal is output; (2) two infrared probes were used. If the card is inserted or pulled in place, whether the tail end or the head end of the card is exposed or not is detected through infrared rays, and if the tail end or the head end of the card is exposed, the card is inserted or pulled in place; (3) or the device consists of a card-to-card switch and an infrared probe, and the combination is used according to specific scenes.

Status bit of plug-in card Card puller Card connector Actual conditions
00 is not in place Is not in place In the process of inserting or pulling out cards, the cards are virtual
01 is not in place in place Card insertion in place
10 In place Is not in place pulling the card in place

TABLE 2 plug-in card status

in addition, in order to realize the comparison of the information in the card after the card is inserted and the transaction and the card is pulled out, the retention time can be set through software after the card is inserted and the card is pulled out.

in other embodiments, the present invention relates to a device for detecting whether a card is inserted in place or not and detecting whether the card is pulled out, wherein the device for detecting whether the card is inserted in place or not can detect the state of the card in an electronic tag accurately. In the embodiment, the in-place switch or the infrared probe forms the card position state judgment device, the state information of the card position state judgment device is known by the real-time state of one or more I/O ports on the MCU of the device, the card position information is sent to the industrial personal computer according to a preset rule, and the industrial personal computer finishes subsequent ETC test after acquiring the state information of the card position. When any card in-place detection device is used in the card plugging and unplugging equipment, the states of the detection device obtained by the MCU are three states, and the specific states are shown in the following table 2. The plug-in card state bit is calculated by the state of one or more I/O on the MCU according to the level state judgment algorithm of the position.

In still other embodiments, the test software on the industrial personal computer is different from the traditional ETC test software process, the special RSU for the ETC needs to have the function of switching on and off an antenna to control the card retention time of the card plugging and unplugging device, so that the corresponding function is added, the special RSU for the ETC can be controlled by the test software through an instruction, and meanwhile, the card retention time of the card plugging and unplugging device is set after the test process is finished. In the ETC test flow, because the card position state information is uncertain, the traditional test method can only detect the on-card electricity and on-card state and cannot meet the requirement of the card plugging and unplugging test, so the embodiment reads and compares the three files 0015, 0019 and 0002 in the card in the ETC test flow. The 0015 file is a card issuing basic data file and is written when the card is issued for the second time, and the transaction process cannot be rewritten; 0019 the file is a file special for consumption, and every transaction is modified according to the time, site and other information of the transaction; the 0002 file is an electronic wallet file, the balance of the wallet of the card is recorded, and after each successful fee deduction, the 0002 file can reduce the corresponding fee deduction amount. Before each test, original values of 0015, 0019 and 0002 files can be loaded on test software of an industrial personal computer, according to characteristics of three file transaction processes, the 0015 file cannot be changed, so whether the 0015 file is consistent with the original values or not is judged firstly, when the 0019 file is transacted each time, the 0019 file can be changed according to time and sites, and then the file is judged to be changed; 0002 the file is a wallet file, and if the balance before the transaction is equal to the wallet balance read before the last transaction minus the last transaction amount, the transaction passes.

According to the embodiments, the card plugging and unplugging test can be performed on the ETC vehicle-mounted unit, and the card plugging and unplugging test device is different from the existing other device plugging and unplugging test devices, so that the card reading and writing effect of the vehicle-mounted unit can be automatically verified after the card is plugged; the automatic plug-in card test of the ETC user card can be continuously carried out, and the state of the equipment after multiple plug-ins is verified; the card plugging and unplugging test can be carried out by using different forces and speeds according to the plugging and unplugging habits of different simulated users. The automatic card plugging and unplugging test case solution applicable to the ETC vehicle-mounted unit can verify whether the vehicle-mounted unit read-write card module has problems or not.

Based on the same inventive concept as the method for automatically plugging and unplugging the ETC user card shown in fig. 1, the embodiment of the present invention further provides an automatic plugging and unplugging card testing apparatus for the ETC user card, as described in the following embodiments. Because the principle of solving the problems of the automatic card plugging and unplugging testing device of the ETC user card is similar to the automatic card plugging and unplugging testing method of the ETC user card, the implementation of the automatic card plugging and unplugging testing device of the ETC user card can refer to the implementation of the automatic card plugging and unplugging testing method of the ETC user card, and repeated parts are not repeated.

fig. 6 is a schematic structural diagram of an automatic plug-in/pull-out card testing device for an ETC user card according to an embodiment of the invention. The automatic card plugging and unplugging testing device for the ETC user card of the embodiments can be realized based on a controller, an industrial personal computer and the like. As shown in fig. 6, the automatic card plugging and unplugging test apparatus for the ETC user card according to some embodiments may include:

A card plugging control unit 310, configured to output a card plugging control signal to the card plugging device, so that the user card is automatically inserted into the vehicle-mounted unit and the set retention time after the card is inserted is maintained;

A card-in-place detection unit 320 for receiving a card-in-place signal of the user card inserted into the vehicle-mounted unit;

The transaction control unit 330 is configured to output a transaction control signal to the roadside unit according to the card insertion in-place signal, so that the roadside unit reads card information from the user card and writes transaction information into the user card according to the read card information to complete a transaction;

an information obtaining unit 340 for obtaining the transaction result and the read card information from the road side unit;

A reading normality judgment unit 350 for judging whether card information reading is normal by comparing the read card information with card information previously entered to the user card;

And the test result acquisition unit 360 is used for judging whether the card plugging of the vehicle-mounted unit is successful according to the judgment result of whether the card information reading is normal and the acquired transaction result.

In some embodiments, the automatic plug-in and plug-out card testing apparatus for the ETC user card may further include: the parameter setting unit may be connected to the plug card control unit 310.

the parameter setting unit is used for receiving input plug-in card control parameters; the card plugging and unplugging control parameters comprise card plugging speed, card plugging force and retention time after card plugging; the plug card control signal comprises the plug card control parameter.

In some embodiments, the automatic plug-in and plug-out card testing apparatus for the ETC user card may further include: the card information recording unit may be connected to the card plugging control unit 310.

And the card information input unit is used for receiving and storing the input card information and inputting the input card information into the user card.

In some embodiments, the automatic plug-in and plug-out card testing apparatus for the ETC user card may further include: the antenna card punching control unit can be connected between the card insertion in-place detection unit 320 and the transaction control unit 330. And the antenna card punching control unit is used for outputting an antenna carrier wave opening control signal to the road side unit.

in some embodiments, the automatic plug-in and plug-out card testing apparatus for the ETC user card may further include: the antenna-off control unit may be connected between the transaction control unit 330 and the information acquisition unit 340. And the antenna closing control unit is used for outputting an antenna carrier closing control signal to the road side unit.

In some embodiments, the read in-card information includes a card issuance base data file, a composite consumption specific file, and a pre-transaction electronic wallet file; the written transaction information includes the modified composite consumption specific file.

In some embodiments, the automatic plug-in and plug-out card testing apparatus for the ETC user card may further include: and the circular execution unit is connected with the test result acquisition unit 360.

a loop execution unit to: after the user card exits the vehicle-mounted unit, outputting a card plugging control signal to the card plugging device again so that the user card is automatically plugged into the vehicle-mounted unit again and stays for a time after the user card is plugged into the vehicle-mounted unit again; re-receiving a card-inserting-in-place signal of the user card inserted into the vehicle-mounted unit; outputting a transaction control signal to the road side unit again according to the re-received card insertion in-place signal so that the road side unit reads the card information from the user card again and writes the transaction information into the user card again according to the read card information to complete the transaction again; acquiring a result of the re-transaction and the re-read in-card information from the road side unit; judging whether the reading of the information in the card is normal again by comparing the information in the card which is read again with the transaction information which is written into the user card at the previous time; and judging whether the card plugging of the vehicle-mounted unit is successful again according to the judgment result of whether the obtained card information reading is normal and the result of the re-transaction.

In some embodiments, the automatic plug-in and plug-out card testing apparatus for the ETC user card may further include: and the statistic judging unit can be connected with the cycle execution unit.

And the statistical judgment unit is used for obtaining the card plugging success ratio of the vehicle-mounted unit according to all the results of judging whether the card plugging of the vehicle-mounted unit is successful or not so as to judge the read-write stability of the vehicle-mounted unit after the card plugging.

Fig. 7 is a schematic structural diagram of an automatic card plugging and unplugging test system for an ETC user card according to an embodiment of the present invention, and as shown in fig. 7, the automatic card plugging and unplugging test system for an ETC user card according to an embodiment may include: a plug card controller 410, a plug card device 420, and a roadside unit 430.

a card plug controller 410 for outputting a card plug control signal;

a card plugging device 420 for automatically inserting a user card into the on-board unit according to the card plugging control signal, transmitting a card insertion in-place signal after the user card is inserted into the on-board unit in place, and withdrawing the user card from the on-board unit after the user card keeps a set card insertion residence time;

The card plugging controller 410 is further configured to output a transaction control signal according to the card plugging in-place signal;

The road side unit 430 is used for reading card information from the user card according to the transaction control signal and writing transaction information into the user card according to the read card information to complete transaction;

The card plugging controller 410 is further configured to obtain a transaction result and read card information, determine whether card information reading is normal by comparing the read card information with card information pre-entered into the user card, and determine whether card plugging of the vehicle-mounted unit is successful according to a determination result whether card information reading is normal and the obtained transaction result.

the card plugging controller 410 may be implemented based on a microcontroller, an industrial personal computer, or the like. The card plugging device 420 may be obtained by performing some modifications to the existing card plugging device, such as adding a control interface, adding a card insertion in-place detection function, and the like. The roadside unit 430 may be implemented based on the RSU of the existing ETC system, and preferably, may increase the switching control function of the antenna carrier.

Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method described in the above embodiments.

to sum up, the automatic card-plugging testing method, the automatic card-plugging testing device, the automatic card-plugging testing system and the computer-readable storage medium for the ETC user card according to the embodiments of the present invention can test the stability and reliability of the read/write card module of the vehicle-mounted unit, thereby being helpful to solve the technical problems of errors in the read/write card operation of the vehicle-mounted unit.

in the description herein, reference to the description of the terms "one embodiment," "a particular embodiment," "some embodiments," "for example," "an example," "a particular example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. The sequence of steps involved in the various embodiments is provided to schematically illustrate the practice of the invention, and the sequence of steps is not limited and can be suitably adjusted as desired.

As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

the present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

24页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种带有温度补偿功能的磁头及其温度补偿方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!