CN110910521B - Communication method and device for ETC lane controller end and storage medium - Google Patents

Communication method and device for ETC lane controller end and storage medium Download PDF

Info

Publication number
CN110910521B
CN110910521B CN201911176735.9A CN201911176735A CN110910521B CN 110910521 B CN110910521 B CN 110910521B CN 201911176735 A CN201911176735 A CN 201911176735A CN 110910521 B CN110910521 B CN 110910521B
Authority
CN
China
Prior art keywords
frame
road side
side unit
vehicle
transaction
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
CN201911176735.9A
Other languages
Chinese (zh)
Other versions
CN110910521A (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.)
Road Network Monitoring and Emergency Response Center of Ministry of Transport
Original Assignee
Road Network Monitoring and Emergency Response Center of Ministry of Transport
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 Road Network Monitoring and Emergency Response Center of Ministry of Transport filed Critical Road Network Monitoring and Emergency Response Center of Ministry of Transport
Priority to CN201911176735.9A priority Critical patent/CN110910521B/en
Publication of CN110910521A publication Critical patent/CN110910521A/en
Application granted granted Critical
Publication of CN110910521B publication Critical patent/CN110910521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07BTICKET-ISSUING APPARATUS; FARE-REGISTERING APPARATUS; FRANKING APPARATUS
    • G07B15/00Arrangements or apparatus for collecting fares, tolls or entrance fees at one or more control points
    • G07B15/06Arrangements for road pricing or congestion charging of vehicles or vehicle users, e.g. automatic toll systems
    • 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

Landscapes

  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Devices For Checking Fares Or Tickets At Control Points (AREA)
  • Traffic Control Systems (AREA)

Abstract

The invention provides a communication method, a device and a storage medium for an ETC lane controller end, which actively configure a service type and a lane working type by adjusting and configuring hardware parameters and parameters of information frames in a data transmission process in a communication process with a road side unit, coordinate communication time and transaction cost, eliminate communication barriers of equipment among different provinces and different types of ETC equipment, and can coordinate service settlement of vehicles loaded with the ETC equipment among the provinces.

Description

Communication method and device for ETC lane controller end and storage medium
Technical Field
The invention belongs to the technical field of ETC, and particularly relates to a communication method and device for an ETC lane controller terminal and a storage medium.
Background
An expressway ETC system (Electronic Toll Collection) is the most advanced road and bridge Toll Collection mode in the world at present. Through the special short-range communication of microwave between the vehicle-mounted electronic tag installed on the vehicle windshield and the microwave antenna on the ETC lane of the toll station, the computer networking technology and the bank are utilized to carry out background settlement processing, so that the aim of paying the road and bridge fees of the vehicle through the road and bridge toll station without parking is fulfilled.
ETC systems and devices adopted by provinces in the whole country at the present stage have obstacles to communication, and business settlement contents and modes of different provinces are different. In practical application, in the running process of each province, the vehicle provided with the ETC equipment often has the problems that the communication of the ETC system and the equipment of each province is not smooth, the data transmission is slow, the data is blocked, and even the service cannot be settled.
Under the condition that ETC equipment is used in a large amount, in order to realize an effective unified settlement process, one scheme is to replace each province of ETC equipment and unify a business settlement mode, but the method can consume a large amount of manpower and material resource costs, is poor in practicability and is not beneficial to implementation. Therefore, a communication method and a device are needed to standardize a communication process under the condition that the existing ETC systems in China are not uniform, so that vehicles provided with ETC devices can smoothly settle accounts in the driving process of each province.
Disclosure of Invention
The invention aims to provide a communication method, a lane controller device and a computer storage medium for an ETC lane controller end, so as to improve the communication fluency of ETC systems in various provinces and realize the unified toll collection of national expressways through ETC.
The technical scheme for solving the problems is as follows:
in one aspect, a communication method for an ETC lane controller end is provided, including:
sending an initialization instruction to a road side unit to identify the service type and the lane working type of the road side unit and establish connection with the road side unit;
receiving an on-board unit information frame sent by the road side unit when the on-board unit is detected;
under the condition that the on-board unit information frame contains an on-board unit physical address, sending a first transaction continuing instruction to the road side unit, so that the road side unit obtains vehicle ETC information according to the on-board unit physical address and generates a vehicle information frame according to the vehicle ETC information;
receiving a vehicle information frame sent by the road side unit, and judging whether the vehicle information frame contains the vehicle ETC information;
sending a first transaction stopping instruction to the road side unit under the condition that the vehicle information frame does not contain valid vehicle ETC information; under the condition that the vehicle information frame contains the vehicle ETC information, sending a second transaction continuing instruction to the road side unit so that the road side unit acquires IC card information according to the vehicle-mounted unit physical address and generates an IC card information frame;
receiving an IC card information frame sent by the road side unit, and judging whether the IC card information frame contains the IC card information;
under the condition that the IC card information frame does not contain valid IC card information, sending a second transaction stopping instruction to the road side unit; under the condition that the IC card information frame contains effective IC card information, sending a consumption transaction instruction to the road side unit so as to enable the road side unit to perform transaction with the vehicle-mounted unit;
receiving a transaction information frame containing transaction result information sent by the road side unit;
storing and confirming the transaction result information of the transaction information frame, and sending the information of confirming the completion of the transaction to the road side unit;
wherein the data frames of the initialization instruction, the on-board unit information frame, the first continue transaction instruction, the vehicle information frame, the first stop transaction instruction, the second continue transaction instruction, the second stop transaction instruction, the consumption transaction instruction, and the transaction information frame include: a frame start flag field, a communication protocol version number field, a frame sequence number field, a frame data length field, a frame data content field, and a check value field.
In some embodiments, prior to receiving the on board unit information frame sent by the roadside unit upon detection of an on board unit, the method further comprises:
receiving a device state information frame returned by the road side unit to confirm whether the initialization of the road side unit is completed or not; and when the initialization of the road side unit fails, retransmitting the initialization instruction.
In some embodiments, after receiving the device status information frame returned by the rsu, the method further comprises:
receiving the vehicle-mounted unit information frame without data sent by the road side unit once every set time interval so as to confirm that the working state of the road side unit and the connection state of the lane control machine and the road side unit are normal; and when the connection with the road side unit is interrupted, retransmitting the initialization command to the road side unit.
In some embodiments, the first stop transaction instruction is to cause the roadside unit to re-search for an on-board unit or to re-transmit a vehicle information frame.
In some embodiments, the second stop transaction instruction is for causing the road side unit to re-search for an on-board unit or to re-transmit an IC card information frame.
In some embodiments, further comprising:
after receiving the vehicle-mounted unit information frame sent by the road side unit, the lane controller compares the frame data length field value in the vehicle-mounted unit information frame with the length of the frame data content in the vehicle-mounted unit information frame to judge the integrity of the frame data content in the vehicle-mounted unit information frame; and/or
After receiving the vehicle information frame sent by the road side unit, the lane controller compares the frame data length field value in the vehicle information frame with the length of the frame data content in the vehicle information frame to judge the integrity of the frame data content in the vehicle information frame; and/or
After receiving the IC card information frame sent by the road side unit, the lane controller compares the frame data length field value in the IC card information frame with the length of the frame data content in the IC card information frame to judge the integrity of the frame data content in the IC card information frame; and/or
And after receiving the transaction information frame sent by the road side unit, the lane controller compares the frame data length field value in the transaction information frame with the length of the frame data content in the transaction information frame so as to judge the integrity of the frame data content in the transaction information frame.
In some embodiments, the frame data content field of the initialization instruction includes an 8-bit digital binary field for marking a service type.
In some embodiments, the frame data content field of the initialization command includes a field for marking a lane work type including a closed ETC entry, a closed ETC exit, an ETC open, a sign station, and a provincial junction building station.
In another aspect, the present invention also provides an ETC lane controller apparatus, including:
a memory, a processor and a signal transceiving device, respectively connected to the processor, and a computer program stored on said memory and executable on the processor, which computer program when executed by the processor implements the method steps as described above.
In another aspect, the present invention also provides a computer storage medium having a computer program stored therein, which when executed performs the above-described method steps.
The communication method, the lane controller device and the computer storage medium for the ETC lane controller terminal coordinate the business settlement process of ETC vehicles in passing of each province through unifying data frame formats and marking business types and lane working types in an initialization instruction; and coordinating the communication time and transaction cost of equipment among different provinces by marking the communication protocol version number of the received and transmitted information frame.
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 flowchart illustrating a communication method according to an embodiment of the invention;
fig. 2 is a flow chart illustrating a communication method according to another embodiment of the present 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.
Since ETC system devices adopted by provinces in the whole country are inconsistent at the present stage, and independent device systems and service settlement modes are adopted by most of the provinces, the problems that the ETC systems of the provinces are not smooth in communication, data transmission is slow, data is blocked, and even services cannot be settled occur in the driving process of the provinces of vehicles provided with the ETC devices.
The inventor finds out through comparative research that the lane control machines and the roadside units in the high-speed ETC lanes of each province are not uniform in data frame format, for example, RS232 serial ports are adopted between part of province lane controllers and the roadside units, RS415 serial ports are adopted between part of province lane controllers and the roadside units, and therefore data communication between the high-speed ETC lanes of different provinces is obstructed, communication time is too long, or transaction cost is too high. Furthermore, due to the difference of the service types related to the high-speed ETC lanes in each province, the coordination of the service types cannot be effectively and timely carried out, so that the ETC vehicles cannot carry out service settlement among partial provinces. The existing high-speed ETC lane control machine does not comprise steps for coordinating communication protocol versions and marking and identifying service types in the communication process of road side units, and is not beneficial to the nationwide passing and settlement of ETC vehicles.
In the technical solution provided by the present invention, on one hand, a communication method for an ETC lane controller end is provided, in which an initialization instruction, a vehicle-mounted unit information frame, a first continuous transaction instruction, a vehicle information frame, a first transaction stopping instruction, a second continuous transaction instruction, a second transaction stopping instruction, a consumption transaction instruction, and a transaction information frame used in a communication process all adopt a uniform data frame format, and the communication method includes: a frame start flag field, a communication protocol version number field, a frame sequence number field, a frame data length field, a frame data content field, and a check value field.
Wherein the frame start flag field (STX) is used to flag the start of the frame. In some particular communication environments, the number of bytes may be increased or decreased, and other value patterns may be defined.
The communication protocol version number field (VER) is used for marking the communication protocol version number, so that the phenomenon that the signal transmission is influenced and the transaction cannot be controlled due to the change of the communication protocol version is avoided; specifically, in this embodiment, the optimal communication protocol version may be further selected by testing the communication time and the transaction cost of the communication protocols of different versions.
The frame sequence number field (SEQ) is used to mark the frame sequence number of the information frame sent by the lane control machine, and in some embodiments, the frame sequence number of the information frame sent by the lane control machine can be CXH, where X is 0, 1, 2, 3 … …
The frame data length field (LEN) is used to label the length of the frame data content.
The frame DATA content field (DATA) is used to store specific DATA content.
The check value field (CRC) is used to store a CRC16 (16-bit cyclic redundancy check code) check value for all bytes from the communication protocol version number field to the frame data content field for determining the integrity of the entire data frame.
As shown in fig. 1, the communication method includes the following steps 101 to 107:
the following steps 101 to 107 may be executed by a lane control machine, or may be executed by a computer storage medium capable of storing a computer program.
Step 101: sending an initialization instruction to a road side unit to identify the service type and the lane working type of the road side unit and establish connection with the road side unit;
in order to combine the actual configuration requirements of ETC of each province, the lane control machine configures the key parameters of the roadside unit by sending an initialization command, such as: power, lane mode, path information processing mode, etc.
In this embodiment, in order to coordinate ETC service settlement between provinces, a field for identifying a service type and a lane operation type is set in a frame data content field of an initialization instruction. Specifically, a number or a serial number for marking a service type and a lane work type may be added to a frame data content field of the initialization instruction, after the roadside unit receives the initialization instruction, the number or the serial number is read and compared with a number or a serial number corresponding to a stored service type and a stored lane work type, so as to obtain a service type and a lane work type which need to be configured, and when the roadside unit searches for the on-board unit, the roadside unit performs corresponding writing or/and reading on the on-board unit.
In some embodiments, a lane operation type parameter of 1 byte is set in a frame data content field of the initialization command, wherein 3 is labeled as a closed ETC inlet, 4 is labeled as a closed ETC outlet, 6 is labeled as an open ETC, 7 is labeled as an identification station, and 8 is labeled as a provincial junction building station.
Specifically, the closed ETC inlet and the closed ETC outlet represent inlet road side units and outlet road side units arranged at two ends of an expressway section; the open ETC represents a roadside unit of an expressway section without an entrance; the identification station is a road side unit which is arranged on a highway driving section and used for writing path information, and is used for writing an EF04 file used for identifying the path information and writing the path information into the vehicle-mounted unit when the vehicle-mounted unit passes by, and simultaneously writing an 0008 file and an 0009 file used for marking the path information into an IC card loaded on the vehicle-mounted unit and writing the path information; the provincial junction co-building station represents a road side unit at the junction of two provinces.
In some embodiments, the EF04 file may be preset and existing in the in-vehicle unit, and the 0008 file and the 0009 file may be preset and existing in the IC card.
In some embodiments, the frame data content field of the initialization instruction is provided with an 8-bit digital binary field for marking service types, wherein each bit is used for identifying one service content, 1 indicates existence, and 0 indicates nonexistence, and the method can mark 8 service types.
In another embodiment, an 8-bit binary field for marking the service type is set in the frame data content field of the initialization instruction, and the 8-bit binary field can be used for marking 255 service combinations. Specifically, the labeling can be performed according to the actual service types and numbers, for example, for 34 provinces, autonomous regions, direct prefectures, and special administrative regions in china, binary 00000001 to 00100010 can be adopted to correspond to 1 to 34 in the decimal system, and the service combination types can be respectively labeled.
Further, in some embodiments, the first bit of the 8-bit binary field may also be used to identify whether there is an application of the identification station, 1 indicates yes, and 0 indicates no; the second bit to the sixth bit of the 8-bit binary field are used as 31 types of service combinations of the binary coding identifier; or each bit from the second bit to the sixth bit in the 8-bit binary field is adopted to identify a service content, and when the value of the corresponding bit is 1, the service content is present, and when the value of the corresponding bit is 0, the service content is absent; the seventh bit of the 8-bit digital binary field is used to select a path identification file, specifically, two different path identification files are identified with 1 or 0, 1 represents an EF04 file written to the on-board unit and 0008 file written to the IC card at the same time, and 0 represents an EF04 file written to the on-board unit and 0009 file written to the IC card at the same time; the eighth bit of the 8-bit binary field is used to indicate whether the banner station contents are cleared, 1 indicates clear, and 0 indicates no clear.
The identification station is used for executing a task of writing the traveling path information into the vehicle-mounted unit and can be loaded on various road side units.
Illustratively, when the on-board unit is detected to pass through the signal range of the identification station, and the first bit in the 8-bit binary field is 1, the identification station applies to write the travel path information according to the labeled content of the seventh bit in the 8-bit binary field; when the first bit in the 8-bit binary field is 0, the writing of the traveling path information is not executed; when the eighth bit of the 8-bit digital binary field is 1, the content in the identifier station is cleared, and when 0, the content is not cleared.
Further, a field for identifying the length of a specific service data file may be set in a frame data content field of the initialization instruction, so as to compare and determine whether the corresponding service data file is complete. The service data file may be a file for recording save path information or other information.
Illustratively, an EF04 length field is provided in the frame data content field of the initialization command for marking the length of the file written in the on-board unit EF 04.
Specifically, the lane controller and the road side unit may be connected through an ethernet, or may be wirelessly connected through a bluetooth module, a ZigBee (ZigBee) module, or another method; in some embodiments, a wired connection may also be used.
Step 102: receiving an on-board unit information frame sent by the road side unit when the on-board unit is detected;
and after the initialization setting is completed, the road side unit searches whether the vehicle-mounted unit exists in the communication area, and when the vehicle-mounted unit is searched, the physical address of the vehicle-mounted unit is collected and a vehicle-mounted unit information frame is generated. The lane control machine receives the on-board unit information frame for marking the on-board unit in the following communication process.
In some embodiments, other identifying information of the vehicle-mounted unit, such as IP information used in wireless communication, or other identification information, may also be collected. Furthermore, when the road side unit searches the vehicle-mounted unit, identity identification information can be written in, and the identity identification information only takes effect in the single transaction communication process.
Step 103: under the condition that the on-board unit information frame contains an on-board unit physical address, sending a first transaction continuing instruction to the road side unit, so that the road side unit obtains vehicle ETC information according to the on-board unit physical address and generates a vehicle information frame according to the vehicle ETC information;
in this embodiment, when receiving the on-board unit information frame and confirming that the on-board unit information frame includes the physical address of the on-board unit, the lane controller sends a first transaction continuation instruction to the roadside unit in order to reply the confirmation and prompt the continuation of the transaction.
In some embodiments, the first continue transaction instruction may include a collection requirement for specific vehicle ETC information; or only reply information confirming the receipt of the on-board unit information frame may be included, and when the roadside unit receives only the reply information, vehicle ETC information is collected according to a preset program and the vehicle information frame is generated.
Step 104: and receiving a vehicle information frame sent by the road side unit, and judging whether the vehicle information frame contains the vehicle ETC information.
Sending a first transaction stopping instruction to the road side unit under the condition that the vehicle information frame does not contain valid vehicle ETC information; and under the condition that the vehicle information frame contains the vehicle ETC information, sending a second transaction continuing instruction to the road side unit so as to enable the road side unit to acquire IC card information according to the vehicle-mounted unit physical address and generate an IC card information frame.
The valid vehicle ETC information may include ETC user ID information, user type information, vehicle travel path information, and/or other information for determining billing criteria and calculating fees.
In this embodiment, when the vehicle information frame does not include valid vehicle ETC information, a first transaction stop instruction is sent to terminate the transaction, and the vehicle loaded with the corresponding on-board unit passes through the station in a manual processing manner.
Specifically, in some embodiments, the first stop transaction instruction includes two types, one is for the road side unit to re-search for the on-board unit, and the other is for the road side unit to re-transmit the vehicle information frame. When the vehicle information frame does not contain any vehicle ETC information, the roadside unit is indicated to be incapable of collecting the vehicle-mounted unit information, and the lane control machine sends a first transaction stopping instruction containing an instruction of searching the vehicle-mounted unit again; when the vehicle information frame contains vehicle ETC information in an incomplete state, the lane control machine sends a first transaction stopping instruction containing an instruction of resending the vehicle information frame.
It should be understood that the vehicle ETC information in the incomplete state is the case of data transmission loss, partial information acquisition failure or other situations that information content can be recovered through a re-acquisition or transmission mode; further, when effective vehicle ETC information cannot be obtained even when the vehicle information is retransmitted for the set number of times, the lane control machine transmits a first transaction stop instruction including an instruction to re-search the on-board unit.
Further, the second transaction continuation instruction may include an instruction for requesting to collect the IC card information, or may include only reply information for confirming receipt of the vehicle information frame, and when the roadside unit receives the reply information, collect the IC card information according to a preset step, where the IC card information includes at least account number information usable for fee deduction, and generates an IC card information frame.
Specifically, the roadside unit generates an IC card information frame and returns it to the lane controller regardless of whether valid IC card information is extracted.
Step 105: receiving an IC card information frame sent by the road side unit, and judging whether the IC card information frame contains the IC card information;
under the condition that the IC card information frame does not contain valid IC card information, sending a second transaction stopping instruction to the road side unit; and sending a consumption transaction instruction to the road side unit to enable the road side unit to perform transaction with the vehicle-mounted unit under the condition that the IC card information frame contains effective IC card information.
The valid IC card information may include bank account information for charging or other third party account information capable of completing charging transaction. In some embodiments, the valid IC card information is considered to be contained only when the balance in the bank account or the third party account for deduction contained in the IC card information frame is higher than the upper limit of the single transaction amount. Alternatively, in some embodiments, for an overdrawable bank account or a third party account, valid IC card information is considered to be included only when the overdrawable bank account or third party account included in the IC card information frame is higher than the upper limit of the single transaction amount.
In order to further carry out fee deduction transaction, the lane control machine needs to extract effective IC card information, and under the condition that an IC card information frame does not contain the effective IC card information, a second transaction stopping instruction is sent to stop the transaction, and a vehicle loaded with a corresponding vehicle-mounted unit passes the station in a manual processing mode.
Specifically, in some embodiments, the second transaction stop instruction includes two types, one is for causing the roadside unit to search for the on-board unit again, and the other is for causing the roadside unit to retransmit the IC card information frame; when the IC card information frame does not contain the IC card information, the lane control machine sends a second transaction stopping instruction containing an instruction of searching the vehicle-mounted unit again if the IC card information frame cannot be collected; and when the IC card information frame contains incomplete IC card information, the lane control machine sends a second transaction stopping instruction containing an instruction of resending the IC card information frame.
It should be understood that the IC card information in the incomplete state is a case where data transmission is lost, part of information acquisition fails, or other information content can be recovered by re-acquisition or transmission; further, when the IC card information frame is retransmitted for a set number of times and valid IC card information cannot be obtained, the lane control machine transmits a second transaction stop instruction including an instruction to search for the vehicle-mounted unit again.
Further, the consumption transaction instruction may include an instruction for requesting to collect transaction information, or may include only reply information for confirming receipt of the IC card information frame, and when the roadside unit receives the reply information, collects the transaction information according to a preset step, and generates the transaction information frame.
Step 106: receiving a transaction information frame containing transaction result information sent by the road side unit;
step 107: storing and confirming the transaction result information of the transaction information frame, and sending the information of confirming the completion of the transaction to the road side unit;
in this embodiment, the information for confirming the completion of the transaction may further include an instruction to re-search the vehicle-mounted unit, or may only include a response for confirming the receipt of the transaction information frame.
In some embodiments, the lane control machine receives the on-board unit information frame sent by the roadside unit when the on-board unit is detected, and the method further comprises:
the lane control machine receives the equipment state information frame returned by the road side unit to confirm whether the initialization of the road side unit is completed or not; and when the initialization of the road side unit fails, retransmitting the initialization instruction.
Specifically, in this embodiment, the roadside unit monitors the communication channel after starting, establishes a TCP (Transmission Control Protocol) connection after receiving an initialization instruction sent by the lane controller, and sends an equipment state information frame for feeding back the initialization state of the roadside unit; and when the initialization fails and effective connection is not established, prompting the lane control machine to resend the initialization instruction.
In some embodiments, after the lane control machine receives the equipment state information frame returned by the roadside unit, the method further comprises:
the lane control machine receives a vehicle-mounted unit information frame without data sent by the road side unit once at intervals of set time length so as to confirm that the working state of the road side unit and the connection state of the lane control machine and the road side unit are normal; and when the connection with the road side unit is interrupted, retransmitting the initialization command to the road side unit.
In this embodiment, even if the roadside unit cannot search for the on-board unit in its communication area, the on-board unit information frame is periodically sent to the lane control machine, and used as heartbeat information to indicate that the roadside unit is in a normal operating state and to indicate that the connection state is normal.
Illustratively, an execution state code field is set in the vehicle-mounted unit information frame, and is set to be 80H when the road-side unit cannot search the vehicle-mounted unit in the communication area of the road-side unit, which indicates that no subsequent data exists and is used as heartbeat information; when the roadside unit searches for the on-board unit in its communication area, the execution status code field is set to 00, indicating that there is subsequent data.
Further, when the lane control machine does not receive the heartbeat information sent by the road side unit after exceeding the set time length, the initialization instruction is sent again.
In some embodiments, further comprising: when receiving the vehicle-mounted unit information frame sent by the road side unit, the lane controller compares the frame data length field value in the vehicle-mounted unit information frame with the length of the frame data content in the vehicle-mounted unit information frame so as to judge the integrity of the frame data content in the vehicle-mounted unit information frame;
specifically, after receiving the vehicle-mounted unit information frame sent by the road side unit, the lane controller reads a frame data length field in the data frame, for example, the content marked by the frame data length field is 35 bytes; judging whether the length of frame data content in the received vehicle-mounted unit information frame is 35 bytes or not, if so, indicating that the frame data content of the vehicle-mounted unit information frame is complete, otherwise, indicating that the frame data content of the vehicle-mounted unit information frame is lost; when the frame data content is lost, the lane controller may request the retransmission of the current frame data.
When receiving the vehicle information frame sent by the road side unit, the lane controller compares the frame data length field value in the vehicle information frame with the length of the frame data content in the vehicle information frame to judge the integrity of the frame data content in the vehicle information frame;
specifically, after receiving the vehicle information frame sent by the roadside unit, the lane controller reads a frame data length field in the data frame, for example, the content marked by the frame data length field is 65 bytes; judging whether the length of the frame data content in the received vehicle information frame is 65 bytes or not, if so, indicating that the frame data content of the vehicle information frame is complete, otherwise, indicating that the frame data content of the vehicle information frame is lost; when the frame data content is lost, the lane controller may request the retransmission of the current frame data.
When receiving the IC card information frame sent by the road side unit, the lane controller compares the frame data length field value in the IC card information frame with the length of the frame data content in the IC card information frame so as to judge the integrity of the frame data content in the IC card information frame;
specifically, after receiving an IC card information frame sent by the roadside unit, the lane controller reads a frame data length field in the data frame, for example, the content marked by the frame data length field is 200 bytes; judging whether the length of the frame data content in the received IC card information frame is 200 bytes or not, if so, indicating that the frame data content of the IC card information frame is complete, otherwise, indicating that the frame data content of the IC card information frame is lost; when the frame data content is lost, the lane controller may request the retransmission of the current frame data.
And when receiving the transaction information frame sent by the road side unit, the lane control machine compares the frame data length field value in the transaction information frame with the length of the frame data content in the transaction information frame so as to judge the integrity of the frame data content in the transaction information frame.
Specifically, after receiving the transaction information frame sent by the roadside unit, the lane controller reads a frame data length field in the data frame, for example, the content marked by the frame data length field is 34 bytes; judging whether the length of the frame data content in the received transaction information frame is 34 bytes or not, if so, indicating that the frame data content of the transaction information frame is complete, otherwise, indicating that the frame data content of the transaction information frame is lost; when the frame data content is lost, the lane controller may request the retransmission of the current frame data.
In this embodiment, the lane controller compares the frame data length field values in the received on-board unit information frame, the vehicle information frame, the IC card information frame, and the transaction information frame with the length of the content of the received frame data, and indicates that the content of the frame data is complete when the length of the content of the frame data is equal to the frame data length field value; when the length of the frame data content is smaller than the frame data length field value, it indicates that the frame data content is incomplete, and further, the lane controller may request to retransmit the current frame data.
The steps of the communication method in one embodiment as shown in fig. 2 include:
the lane control machine sends an initialization command C0H to the road side unit, the field value of the lane work type is marked as 8 in the frame data content field of the initialization command C0H, the field value of the service type is marked as 10101010, the time for the road side unit to send heartbeat information is marked as 20ms, and the power level number, the signal channel and the like of the road side unit.
The road side unit configures system parameters according to the initialization instruction C0H, sets the lane working type as a provincial junction building station according to the field value '8' of the working type, and sets the service types corresponding to the first bit, the third bit, the fifth bit and the seventh bit in the field value '10101010' of the service type as available. And the road side unit power stage and the signal channel configuration related parameters are marked according to the initialization command C0H.
The road test unit collects information such as road side unit main state parameters, the number of PSAM (terminal safety control module) cards, the number of PSAM card terminals and the like, generates an equipment state information frame B0H, and returns the equipment state information frame B0H to the lane controller. When the lane control machine does not receive the equipment state information frame B0H or the equipment state information frame B0H shows that the initialization fails, the lane control machine retransmits the initialization command C0H; further, after the initialization of the road side unit is completed, the lane controller receives the vehicle-mounted unit information frame B2H without data transmitted from the road side unit every 20ms, and confirms the connection state of the road side unit and the lane controller as heartbeat information.
When the road side unit detects that the vehicle-mounted unit exists in the signal range, acquiring information such as physical address information, issuer codes, contract versions and vehicle-mounted unit states of the vehicle-mounted unit and generating a vehicle-mounted unit information frame B2H; the lane control machine receives the vehicle-mounted unit information frame B2H returned by the road side unit and sends a first continuous transaction command as a response, in the example, the first continuous transaction command adopts a continuous transaction command C1H, and the continuous transaction command C1H only contains the physical address information and the response information of the vehicle-mounted unit.
And after confirming that the first transaction continuing instruction is received, the road side unit collects the vehicle ETC information of the vehicle loading unit corresponding to the physical address and generates a vehicle information frame B3H. The vehicle ETC information includes: the vehicle-mounted unit records information such as license plate number, vehicle color, vehicle type, user type, vehicle size, wheel number, axle number, vehicle engine number and the like.
The lane controller receives the vehicle information frame B3H sent by the road side unit, checks the integrity of the content part of the frame data according to the numerical value marked by the frame data length field of the vehicle information frame B3H, and if the integrity is not complete, replies a first transaction stopping instruction containing a command of resending the current instruction frame; when the current command frame is sent again and is still incomplete for 3 times, the lane control machine sends a first transaction stopping command frame containing a command of searching the vehicle-mounted unit again; the lane control machine determines whether the vehicle information frame B3H contains valid vehicle ETC information, specifically, ETC user ID information, user type information, vehicle travel path information, and/or other information for determining a billing standard and calculating a fee. When the vehicle information frame B3H does not contain valid vehicle ETC information, replying a first transaction stopping instruction containing a re-searching vehicle-mounted unit instruction; when the vehicle information frame B3H contains valid vehicle ETC information, sending a second transaction continuing instruction to the road side unit; the specific first transaction stopping instruction adopts a transaction stopping instruction C2H, and the transaction stopping instruction C2H only contains the physical address information of the vehicle-mounted unit and the stopping type information for marking to search the vehicle-mounted unit again or resend the current frame; the second continue transaction instruction employs continue transaction instruction C1H.
After confirming that the second continuous transaction instruction is received, the road side unit collects the IC card information of the vehicle-mounted unit under the corresponding physical address and generates an IC card information frame B4H; the IC card information includes: transaction type, bank account information, account balance, last-time station-crossing information, etc.
The lane controller receives the IC card information frame B4H sent by the road side unit, verifies the integrity of the content part of the frame data according to the numerical value marked by the frame data length field of the IC card information frame B4H, and replies a second transaction stopping instruction containing a command of resending the current instruction frame if the integrity of the content part of the frame data is not complete; when the current command frame is sent again and is still incomplete for 3 times, the lane control machine sends a second transaction stopping command frame containing a command of searching the vehicle-mounted unit again; the lane control machine judges whether the IC card information frame B4H contains effective IC card information, specifically judges whether bank account information with sufficient balance for deduction or other third party account information capable of completing deduction transaction is contained, and sends a second transaction stopping instruction containing a vehicle-mounted unit re-searching instruction to the roadside unit when the IC card information frame B4H does not contain effective IC card information; specifically, the second stop transaction instruction is stop transaction instruction C2H. When the IC card information frame B4H contains valid IC card information, sending a consumption transaction instruction C6H to the road side unit; the consumption transaction instruction C6H contains the physical address information of the vehicle-mounted unit and is used for sending an instruction to the specified vehicle-mounted unit; the transaction record information is used for recording transaction content deduction information and the like, and specifically may be a file containing a deduction transaction record, for example, a file with a setting name of "0019" is used for recording deduction transaction information; deduction amount information for marking deduction cost; and the station-crossing information is used for writing the information of the passed path.
After receiving the consumption transaction instruction, the road side unit writes transaction information into the vehicle-mounted unit and generates a transaction information frame B5H. The transaction information frame B5H includes: the system comprises vehicle-mounted unit physical address information, PSAM card terminal machine number, transaction time, transaction type, transaction authentication code, IC card off-line transaction serial number, PSAM card terminal machine transaction serial number and balance after transaction.
And the lane control machine receives the transaction information frame B5H sent by the road side unit and sends information for confirming the completion of the transaction, and specifically, the information for confirming the completion of the transaction adopts C1H.
In another aspect, the present invention also provides an ETC lane controller apparatus, including:
a memory, a processor and a signal transceiving device, as well as a computer program stored on the memory and executable on the processor, the memory and the signal transceiving device being respectively connected to the processor, the computer program realizing the steps of the method as described above when being executed by the processor.
In another aspect, the present invention also provides a computer storage medium having a computer program stored therein, which when executed performs the steps of the above-described method.
In summary, in the embodiment of the present invention, the communication method, the lane controller apparatus, and the computer storage medium for the ETC lane controller can coordinate the communication time and the transaction cost by setting a uniform data frame format and marking a communication protocol version number; by adding fields for marking the business type and the lane working type, business settlement between ETCs of provinces can be coordinated.
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.

Claims (9)

1. A communication method for an ETC lane controller end, comprising:
sending an initialization instruction to a road side unit to identify the service type and the lane working type of the road side unit and establish connection with the road side unit;
receiving an on-board unit information frame sent by the road side unit when the on-board unit is detected;
under the condition that the on-board unit information frame contains an on-board unit physical address, sending a first transaction continuing instruction to the road side unit, so that the road side unit obtains vehicle ETC information according to the on-board unit physical address and generates a vehicle information frame according to the vehicle ETC information;
receiving a vehicle information frame sent by the road side unit, and judging whether the vehicle information frame contains the vehicle ETC information;
sending a first transaction stopping instruction to the road side unit under the condition that the vehicle information frame does not contain valid vehicle ETC information; under the condition that the vehicle information frame contains the vehicle ETC information, sending a second transaction continuing instruction to the road side unit so that the road side unit acquires IC card information according to the vehicle-mounted unit physical address and generates an IC card information frame;
receiving an IC card information frame sent by the road side unit, and judging whether the IC card information frame contains the IC card information;
under the condition that the IC card information frame does not contain valid IC card information, sending a second transaction stopping instruction to the road side unit; under the condition that the IC card information frame contains effective IC card information, sending a consumption transaction instruction to the road side unit so as to enable the road side unit to perform transaction with the vehicle-mounted unit;
receiving a transaction information frame containing transaction result information sent by the road side unit;
storing and confirming the transaction result information of the transaction information frame, and sending the information of confirming the completion of the transaction to the road side unit;
wherein the data frames of the initialization instruction, the on-board unit information frame, the first continue transaction instruction, the vehicle information frame, the first stop transaction instruction, the second continue transaction instruction, the second stop transaction instruction, the consumption transaction instruction, and the transaction information frame include: a frame start mark field, a communication protocol version number field, a frame sequence number field, a frame data length field, a frame data content field and a check value field; the frame content field of the initialization instruction adopts an 8-bit binary field to mark a service combination, the first bit of the 8-bit binary field is used for identifying whether an identification station is applied, 1 represents the presence, and 0 represents the absence; the second bit to the sixth bit of the 8-bit binary field are used as binary codes to identify various types of services, or each bit from the second bit to the sixth bit in the 8-bit binary field is used to identify one service content, and when the corresponding bit value is 1, the existence is indicated, and the absence is indicated by 0; the seventh bit of the 8-bit digital binary field is used for selecting a path identification file, and specifically, 1 or 0 is used for identifying two different path identification files; the eighth bit of the 8-bit binary field is used to indicate whether the banner station contents are cleared, 1 indicates clear, and 0 indicates no clear.
2. The communication method for the ETC lane controller end according to claim 1, wherein before receiving the on-board unit information frame transmitted by the roadside unit upon detection of the on-board unit, the method further comprises:
receiving a device state information frame returned by the road side unit to confirm whether the initialization of the road side unit is completed or not; and when the initialization of the road side unit fails, retransmitting the initialization instruction.
3. The communication method for the ETC lane controller end according to claim 2, wherein after receiving the equipment state information frame returned by the road side unit, the method further comprises:
receiving the vehicle-mounted unit information frame without data sent by the road side unit once every set time interval so as to confirm that the working state of the road side unit and the connection state of the lane control machine and the road side unit are normal; and when the connection with the road side unit is interrupted, retransmitting the initialization command to the road side unit.
4. The communication method for the ETC lane controller end according to claim 1, wherein the first stop transaction instruction is used to cause the road side unit to re-search for an on-board unit or re-transmit a vehicle information frame.
5. The communication method for the ETC lane controller end according to claim 1, wherein the second stop transaction instruction is used to cause the road side unit to re-search for an on-board unit or re-transmit an IC card information frame.
6. The communication method for the ETC lane controller end according to claim 1, further comprising:
after receiving the vehicle-mounted unit information frame sent by the road side unit, the lane controller compares the frame data length field value in the vehicle-mounted unit information frame with the length of the frame data content in the vehicle-mounted unit information frame to judge the integrity of the frame data content in the vehicle-mounted unit information frame; and/or
After receiving the vehicle information frame sent by the road side unit, the lane controller compares the frame data length field value in the vehicle information frame with the length of the frame data content in the vehicle information frame to judge the integrity of the frame data content in the vehicle information frame; and/or
After receiving the IC card information frame sent by the road side unit, the lane controller compares the frame data length field value in the IC card information frame with the length of the frame data content in the IC card information frame to judge the integrity of the frame data content in the IC card information frame; and/or
And after receiving the transaction information frame sent by the road side unit, the lane controller compares the frame data length field value in the transaction information frame with the length of the frame data content in the transaction information frame so as to judge the integrity of the frame data content in the transaction information frame.
7. The communication method according to claim 1, wherein the frame data content field of the initialization command includes a field for marking a lane working type, the lane working type including a closed ETC entrance, a closed ETC exit, an ETC open, a sign station, and a provincial junction building station.
8. An ETC lane controller apparatus, comprising:
memory, a processor and a signal transmission and reception device, respectively, being connected to the processor, and a computer program stored on the memory and being executable on the processor, which computer program, when being executed by the processor, carries out the method steps of any of the claims 1 to 7.
9. A computer storage medium having a computer program stored therein, which when executed performs the method steps of any of claims 1-7.
CN201911176735.9A 2019-11-26 2019-11-26 Communication method and device for ETC lane controller end and storage medium Active CN110910521B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911176735.9A CN110910521B (en) 2019-11-26 2019-11-26 Communication method and device for ETC lane controller end and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911176735.9A CN110910521B (en) 2019-11-26 2019-11-26 Communication method and device for ETC lane controller end and storage medium

Publications (2)

Publication Number Publication Date
CN110910521A CN110910521A (en) 2020-03-24
CN110910521B true CN110910521B (en) 2022-02-22

Family

ID=69819874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911176735.9A Active CN110910521B (en) 2019-11-26 2019-11-26 Communication method and device for ETC lane controller end and storage medium

Country Status (1)

Country Link
CN (1) CN110910521B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102324114A (en) * 2011-09-20 2012-01-18 广州新软计算机技术有限公司 The method and apparatus of the electric non-stop toll of compatible multiple ETC standard
CN103778671A (en) * 2013-04-15 2014-05-07 深圳市金溢科技有限公司 ETC device and information interaction method
CN105654565A (en) * 2016-02-01 2016-06-08 天津中兴智联科技有限公司 Method for improving ETC (Electronic Toll Collection) transaction efficiency
CN109474917A (en) * 2017-09-08 2019-03-15 睿鑫科技(天津)有限公司 A kind of roadside device RSU and its ' In System Reconfiguration Method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11182982B2 (en) * 2017-08-16 2021-11-23 Fangsong WANG Systems and methods for electronic toll collection via mobile communication devices
US10586403B2 (en) * 2017-10-27 2020-03-10 Gentex Corporation Communication module and occupancy counter

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102324114A (en) * 2011-09-20 2012-01-18 广州新软计算机技术有限公司 The method and apparatus of the electric non-stop toll of compatible multiple ETC standard
CN103778671A (en) * 2013-04-15 2014-05-07 深圳市金溢科技有限公司 ETC device and information interaction method
CN105654565A (en) * 2016-02-01 2016-06-08 天津中兴智联科技有限公司 Method for improving ETC (Electronic Toll Collection) transaction efficiency
CN109474917A (en) * 2017-09-08 2019-03-15 睿鑫科技(天津)有限公司 A kind of roadside device RSU and its ' In System Reconfiguration Method

Also Published As

Publication number Publication date
CN110910521A (en) 2020-03-24

Similar Documents

Publication Publication Date Title
US6061614A (en) Electronic tag including RF modem for monitoring motor vehicle performance
US6107917A (en) Electronic tag including RF modem for monitoring motor vehicle performance with filtering
CN107170059A (en) A kind of roadside device, driveway controller, path identifying system and method
CN102280032A (en) Vehicle traffic management system, method and device
CN102479432A (en) Vehicle traffic management method
US20130144687A1 (en) Method and on-board unit for signaling toll transactions in a road toll system
CN105654563A (en) Highway toll method, highway toll system, card reader and composite password card
CN105184875A (en) Rate calculating and splitting system and method at complex path
CN113313849A (en) Electronic transaction method, device, computer equipment and storage medium
CN1086826C (en) Method and apparatus system for data transfer
CN205375592U (en) Crossing does not have card charging system based on wireless electronics license plate
CN110910521B (en) Communication method and device for ETC lane controller end and storage medium
CN106898052A (en) A kind of vehicle toll method and system
CN110853168B (en) Communication method and device for ETC road side unit end and storage medium
CN110689634B (en) Communication method suitable for truck ETC lane system and lane system
CN111667595B (en) ETC-based data processing method and ETC-based data processing system
JP5463820B2 (en) Billing apparatus, billing method, and program
CN113011870B (en) Method and device for carrying out user card loading through ETC antenna
CN113129460B (en) Method for determining driving direction of vehicle in intelligent traffic system and vehicle-mounted unit
WO2020014346A1 (en) Toll settlement system and method
CN112991561B (en) ETC antenna-based vehicle-mounted unit information changing method and device
EP1043693A2 (en) Authorization system and authorization method
CN114708672B (en) Resource data processing method, device and server
JPH11185073A (en) Charge collecting system at toll road
CN110895836A (en) Information processing method and system, identification device and vehicle-mounted 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