CN112184926B - Method and device for preventing counter cheating based on dynamic change encryption data packet - Google Patents

Method and device for preventing counter cheating based on dynamic change encryption data packet Download PDF

Info

Publication number
CN112184926B
CN112184926B CN202010960239.9A CN202010960239A CN112184926B CN 112184926 B CN112184926 B CN 112184926B CN 202010960239 A CN202010960239 A CN 202010960239A CN 112184926 B CN112184926 B CN 112184926B
Authority
CN
China
Prior art keywords
encrypted
taximeter
matching code
automobile sensor
cheating
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
CN202010960239.9A
Other languages
Chinese (zh)
Other versions
CN112184926A (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.)
Nanjing General Electronics Co ltd
Original Assignee
Nanjing General Electronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing General Electronics Co ltd filed Critical Nanjing General Electronics Co ltd
Priority to CN202010960239.9A priority Critical patent/CN112184926B/en
Publication of CN112184926A publication Critical patent/CN112184926A/en
Application granted granted Critical
Publication of CN112184926B publication Critical patent/CN112184926B/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
    • G07B13/00Taximeters
    • G07B13/02Details; Accessories
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07BTICKET-ISSUING APPARATUS; FARE-REGISTERING APPARATUS; FRANKING APPARATUS
    • G07B13/00Taximeters
    • G07B13/02Details; Accessories
    • G07B13/08Tariff-changing arrangements
    • G07B13/10Tariff-changing arrangements automatically actuated
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B25/00Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems
    • G08B25/01Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems characterised by the transmission medium
    • G08B25/08Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems characterised by the transmission medium using communication transmission lines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

The invention discloses a method and a device for preventing a taximeter from cheating based on a dynamically-changed encrypted data packet. The automobile sensor generates an encrypted pulse data packet according to the first encrypted matching code, and the taximeter judges whether the encrypted pulse data packet is legal and continuous according to the second encrypted matching code to acquire suspected cheating behaviors of the automobile sensor. The data terminal uploads the suspected cheating alarm signal to the monitoring center through the networking module. The method and the device for preventing the taximeter from cheating based on the dynamically-changed encrypted data packet greatly increase the difficulty of cheating and cracking the taxi driver mileage, effectively reduce the operation difficulty of a taxi company and improve the frontal image of the taxi company.

Description

Method and device for preventing counter cheating based on dynamic change encryption data packet
Technical Field
The invention relates to a method and a device for preventing taximeters from cheating based on dynamically-changed encrypted data packets, and belongs to the technical field of taximeters.
Background
At present, taximeters are metering instruments for trade settlement of taxi operators and passengers, are closely related to people's life, and therefore are widely concerned.
The taximeter is required to be mounted on a taxi under current metering regulations, a separate sensor matched with the taximeter must be used, and signals provided by the vehicle cannot be directly used. The current taximeter is mainly characterized in that a sensor is arranged on a transmission or a driving wheel of a taxi and is converted into a signal which can be identified by the taximeter.
According to the nature of the signal converted by the sensor, there are non-encrypted sensors and static encrypted sensors in the current technologies used on the market. The collected rotation signals of the transmission or the driving wheel are directly converted into pulse signals without an encryption sensor, so that pulse cheating is easily added.
After the static encryption sensor captures the speed pulse signal, the static encryption sensor is mutually authenticated with the meter, encrypts the data packet and sends the data packet to the meter. The data packets sent by static encryption are the same, or the data packets are the same in a period of time by using some improved static encryption technology, so that the data packets are easy to copy and cheat.
Disclosure of Invention
The purpose is as follows: the taxi driver cheating prevention method aims at solving the problems that in the prior art, a taxi driver is easy to cheat by adding pulses or copying data packets to increase mileage, and economic losses are brought to passengers. The invention provides a method and a device for preventing a counter from cheating based on a dynamically-changed encrypted data packet.
The technical scheme is as follows: in order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a method for preventing a counter from cheating based on dynamically-changed encrypted data packets comprises the following steps:
and in the handshake stage of the taximeter and the automobile sensor, the automobile sensor and the taximeter respectively generate a first encryption matching code and a second encryption matching code.
The automobile sensor generates an encrypted pulse data packet according to the first encrypted matching code, and the valuator judges whether the encrypted pulse data packet is legal and continuous according to the second encrypted matching code to acquire the suspected cheating behavior of the automobile sensor.
The data terminal uploads the suspected cheating alarm signal to the monitoring center through the networking module.
A device for preventing counter cheating based on dynamically-changed encrypted data packets comprises the following modules:
a matching code generation module: the method is used for the handshake stage of the taximeter and the automobile sensor, and the automobile sensor and the taximeter respectively generate a first encryption matching code and a second encryption matching code.
A cheating judgment module: the automobile sensor encryption matching code is used for generating an encryption pulse data packet according to the first encryption matching code, and the taximeter judges whether the encryption pulse data packet is legal and continuous according to the second encryption matching code to obtain suspected cheating behaviors of the automobile sensor.
An alarm module: the data terminal uploads the suspected cheating alarm signal to the monitoring center through the networking module.
As a preferred scheme, the first encrypted matching code and the second encrypted matching code are generated specifically as follows:
the meter sends the encrypted and changed secret key to the automobile sensor;
the automobile sensor re-encrypts the secret key according to the random number to generate a first encryption matching code;
the automobile sensor sends the specially changed secret key and the random number to the taximeter together;
the meter re-encrypts the specially changed secret key according to the random number to generate a second encryption matching code.
As a preferred scheme, the method for judging whether the encrypted pulse data packets are legal and continuous comprises the following specific steps:
the automobile sensor detects a rotation signal, the pulse serial number of the rotation signal is encrypted according to the first encryption matching code and the random number change to obtain an encrypted pulse data packet, and the encrypted pulse data packet is sent to the taximeter;
the taximeter determines whether the continuous sensor encrypted pulse data packets received before and after are the same, and if so, discards the data packets without distance counting;
and the taximeter decrypts the encrypted pulse data packet according to the second encrypted matching code and the random number, determines whether the serial number is legal and continuous, and judges that the automobile sensor has suspected cheating behavior if the serial number is illegal or discontinuous.
Preferably, the method further comprises the following steps:
if the sequence number is discontinuous in less than 5 data packets, entering a packet loss processing flow and repairing the mileage data;
if the behavior is judged to be the suspected cheating behavior, the taximeter suspends the taxi metering or suspends the display.
Has the advantages that: the invention provides a method and a device for preventing a taximeter from cheating based on dynamically-changed encrypted data packets. And the secret key and the data packet are dynamically changed, so that the decryption is prevented. The taxi mileage cheating and cracking difficulty of taxi drivers is greatly increased, the operation difficulty of taxi companies is effectively reduced, and the positive image of the taxi companies is improved.
The invention avoids packet loss by using the sequence number of the ciphertext data packet, thereby avoiding counting less mileage and effectively reducing driver loss. Even if the data terminal is not installed, the taximeter and the sensor can finish cheating prevention and cracking prevention, and the taxi anti-cheating system is suitable for taxies without the data terminal.
Drawings
FIG. 1 is a schematic flow diagram of the process of the present invention;
FIG. 2 is a schematic diagram of the system of the present invention.
Detailed Description
The present invention will be further described with reference to the following examples.
As shown in fig. 1, a method for preventing fraud by a meter based on dynamically changing encrypted data packets includes the following steps:
step 1: and (3) handshake phase of the taximeter and the automobile sensor and generation of a multi-stage dynamic secret key. The method comprises the following specific steps:
1.1, the taximeter sends the secret key after encryption change to an automobile sensor;
1.2 the automobile sensor re-encrypts the secret key according to the random number to generate a first encryption matching code;
1.3 the automobile sensor sends the specially changed secret key and the random number to the taximeter together;
and 1.4, the taximeter re-encrypts the specially changed secret key according to the random number to generate a second encryption matching code.
Step 2: the taximeter process judges whether the taximeter is cheated or not, and comprises the following specific steps:
2.1 the automobile sensor detects a rotation signal, the pulse serial number of the rotation signal is encrypted according to the first encryption matching code and the random number change to obtain an encrypted pulse data packet, and the encrypted pulse data packet is sent to the taximeter;
2.2 the taximeter determines whether the data packets of the continuous sensor encryption pulses received before and after are the same, if so, the taximeter discards the data packets without counting, thereby avoiding the cheating behavior of copying the pulse mode.
And 2.3, the taximeter decrypts the encrypted pulse data packet according to the second encrypted matching code and the random number, determines whether the serial number is legal and continuous, and judges that the sensor equipment is abnormal or suspected to cheat if the serial number is illegal or discontinuous. The data in the encrypted pulse data packet contains a certain number, and whether the data is legal or not is judged through the continuity of the number.
If the sequence number is discontinuous in less than 5 data packets, entering a packet loss processing flow and needing to repair the mileage data.
If the data packets are repeated for a plurality of times continuously or the serial numbers are illegal and discontinuous, the situation that the data packets are suspected to be cheated is judged, and the taximeter needs to pause the metering or display for processing so as to avoid more economic losses of passengers.
And step 3: when the data terminal is suspected to cheat, the data terminal uploads the information to the monitoring center through the networking module so that the center can further process the information. This step is optional in order to save equipment costs for cities that do not require data terminals.
Example 1:
as shown in fig. 2, a system for preventing fare register cheating based on dynamically changing encrypted data packets includes a sensor, a processor, a memory, a transmission or drive wheel rotation detection module, a module for communicating with a fare register, and a stored executable program.
The meter includes a processor, a memory, a module for communicating with the sensor, a module for communicating with the data terminal, a display module, and a stored executable program.
The data terminal comprises a processor, a memory, a network module, a module for communicating with the meter, and a storage executable program.
The above description is only of the preferred embodiments of the present invention, and it should be noted that: it will be apparent to those skilled in the art that various modifications and adaptations can be made without departing from the principles of the invention and these are intended to be within the scope of the invention.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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 application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. 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.

Claims (6)

1. A method for preventing counter cheating based on dynamically changing encrypted data packet is characterized in that: the method comprises the following steps:
in the handshake stage of the taximeter and the automobile sensor, the automobile sensor and the taximeter respectively generate a first encryption matching code and a second encryption matching code;
the automobile sensor generates an encrypted pulse data packet according to the first encrypted matching code, and the taximeter judges whether the encrypted pulse data packet is legal and continuous according to the second encrypted matching code to acquire suspected cheating behaviors of the automobile sensor;
the data terminal uploads the suspected cheating alarm signal to a monitoring center through a networking module;
the first encrypted matching code and the second encrypted matching code are generated specifically by the following steps:
the meter sends the secret key after encryption change to the automobile sensor;
the automobile sensor re-encrypts the secret key according to the random number to generate a first encryption matching code;
the automobile sensor sends the specially changed secret key and the random number to the taximeter together;
the meter re-encrypts the specially changed secret key according to the random number to generate a second encryption matching code.
2. The method for preventing meter cheating based on dynamically changing encrypted data packets according to claim 1, wherein: the method for judging whether the encrypted pulse data packets are legal and continuous comprises the following specific steps:
the automobile sensor detects a rotation signal, the pulse serial number of the rotation signal is encrypted according to the first encryption matching code and the random number change to obtain an encrypted pulse data packet, and the encrypted pulse data packet is sent to the taximeter;
the taximeter determines whether the continuous sensor encrypted pulse data packets received before and after are the same, and if so, discards the data packets without distance counting;
and the taximeter decrypts the encrypted pulse data packet according to the second encrypted matching code and the random number, determines whether the serial number is legal and continuous, and judges that the automobile sensor has suspected cheating behavior if the serial number is illegal or discontinuous.
3. The method for preventing meter cheating based on dynamically changing encrypted data packets according to claim 2, wherein: further comprising:
if the sequence number is discontinuous in less than 5 data packets, entering a packet loss processing flow and repairing the mileage data;
if the behavior is judged to be the suspected cheating behavior, the taximeter suspends the taxi metering or suspends the display.
4. A device for preventing counter cheating based on dynamically changing encrypted data packets is characterized in that: the system comprises the following modules:
a matching code generation module: the method is used for a handshake stage of a taximeter and an automobile sensor, wherein the automobile sensor and the taximeter respectively generate a first encryption matching code and a second encryption matching code;
a cheating judgment module: the automobile sensor generates an encrypted pulse data packet according to the first encrypted matching code, and the taximeter judges whether the encrypted pulse data packet is legal and continuous according to the second encrypted matching code to acquire suspected cheating behaviors of the automobile sensor;
an alarm module: the system is used for sending a suspected cheating alarm signal to the data terminal by the taximeter, and the data terminal uploads the suspected cheating alarm signal to the monitoring center through the networking module;
the first encrypted matching code and the second encrypted matching code are generated specifically by the following steps:
the meter sends the encrypted and changed secret key to the automobile sensor;
the automobile sensor re-encrypts the secret key according to the random number to generate a first encryption matching code;
the automobile sensor sends the specially changed secret key and the random number to the taximeter together;
the meter re-encrypts the specially changed secret key according to the random number to generate a second encryption matching code.
5. The apparatus for preventing fraud in a meter based on dynamically changing encrypted packets as claimed in claim 4, wherein: the method for judging whether the encrypted pulse data packets are legal and continuous comprises the following specific steps:
the automobile sensor detects a rotation signal, the pulse serial number of the rotation signal is encrypted according to the first encryption matching code and the random number change to obtain an encrypted pulse data packet, and the encrypted pulse data packet is sent to the taximeter;
the taximeter determines whether the continuous sensor encrypted pulse data packets received before and after are the same, and if so, discards the data packets without distance counting;
and the taximeter decrypts the encrypted pulse data packet according to the second encrypted matching code and the random number, determines whether the serial number is legal and continuous, and judges that the automobile sensor has suspected cheating behavior if the serial number is illegal or discontinuous.
6. The apparatus for preventing fraud in a meter based on dynamically changing encrypted packets as claimed in claim 5, wherein: further comprising:
if the sequence number is discontinuous in less than 5 data packets, entering a packet loss processing flow and repairing the mileage data;
if the suspicious cheating behavior is judged, the taximeter suspends the taximeter or suspends the display.
CN202010960239.9A 2020-09-14 2020-09-14 Method and device for preventing counter cheating based on dynamic change encryption data packet Active CN112184926B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010960239.9A CN112184926B (en) 2020-09-14 2020-09-14 Method and device for preventing counter cheating based on dynamic change encryption data packet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010960239.9A CN112184926B (en) 2020-09-14 2020-09-14 Method and device for preventing counter cheating based on dynamic change encryption data packet

Publications (2)

Publication Number Publication Date
CN112184926A CN112184926A (en) 2021-01-05
CN112184926B true CN112184926B (en) 2022-11-04

Family

ID=73920878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010960239.9A Active CN112184926B (en) 2020-09-14 2020-09-14 Method and device for preventing counter cheating based on dynamic change encryption data packet

Country Status (1)

Country Link
CN (1) CN112184926B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3319881A1 (en) * 1983-06-01 1984-12-06 Lutz Frommherz Circuit arrangement for detecting the distance covered by a motor vehicle as a function of predetermined grouping criteria
DE202004016344U1 (en) * 2004-09-03 2005-01-05 Mega-Tel Ag/Sa Electronic ticket transaction system, e.g. for traffic services, has central station, mobile terminal, arrangement in central station for generating ticket/sending to mobile terminal with arrangement for receiving/displaying encoded part
CN101674485A (en) * 2009-10-13 2010-03-17 中兴通讯股份有限公司 Selected output device of packaging multiplexing code stream and method thereof
CN104599490A (en) * 2014-12-25 2015-05-06 广州万客达电子科技有限公司 Multifunction integrated system and waiting system thereof
CN104778104A (en) * 2015-04-20 2015-07-15 北京全路通信信号研究设计院有限公司 Error check method of serial data communication bus and serial data communication bus
CN107590864A (en) * 2016-07-10 2018-01-16 郭洪 SCM Based multi-functional taxi fee register
CN108833380A (en) * 2018-05-31 2018-11-16 安徽四创电子股份有限公司 The method of data exchange between a kind of system the superior and the subordinate platform

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383703B (en) * 2008-09-12 2011-04-27 华南理工大学 Dynamic ciphering method based on broad sense information field
US10348704B2 (en) * 2015-07-30 2019-07-09 Helder Silvestre Paiva Figueira Method for a dynamic perpetual encryption cryptosystem
CN106559217B (en) * 2015-09-29 2019-09-20 腾讯科技(深圳)有限公司 A kind of dynamic encrypting method, terminal, server

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3319881A1 (en) * 1983-06-01 1984-12-06 Lutz Frommherz Circuit arrangement for detecting the distance covered by a motor vehicle as a function of predetermined grouping criteria
DE202004016344U1 (en) * 2004-09-03 2005-01-05 Mega-Tel Ag/Sa Electronic ticket transaction system, e.g. for traffic services, has central station, mobile terminal, arrangement in central station for generating ticket/sending to mobile terminal with arrangement for receiving/displaying encoded part
CN101674485A (en) * 2009-10-13 2010-03-17 中兴通讯股份有限公司 Selected output device of packaging multiplexing code stream and method thereof
CN104599490A (en) * 2014-12-25 2015-05-06 广州万客达电子科技有限公司 Multifunction integrated system and waiting system thereof
CN104778104A (en) * 2015-04-20 2015-07-15 北京全路通信信号研究设计院有限公司 Error check method of serial data communication bus and serial data communication bus
CN107590864A (en) * 2016-07-10 2018-01-16 郭洪 SCM Based multi-functional taxi fee register
CN108833380A (en) * 2018-05-31 2018-11-16 安徽四创电子股份有限公司 The method of data exchange between a kind of system the superior and the subordinate platform

Also Published As

Publication number Publication date
CN112184926A (en) 2021-01-05

Similar Documents

Publication Publication Date Title
JP7045288B2 (en) Data analysis device, data analysis method and program
Wolf et al. State of the art: Embedding security in vehicles
JP3156562B2 (en) Vehicle communication device and traveling vehicle monitoring system
Hoppe et al. Applying intrusion detection to automotive it-early insights and remaining challenges
CN109190362B (en) Secure communication method and related equipment
US20200014757A1 (en) Tamper evident system for modification and distribution of secured vehicle operating parameters
JP7045286B2 (en) Data analysis device, data analysis method and program
Narayanan et al. Security in smart cyber-physical systems: a case study on smart grids and smart cars
US20090217031A1 (en) Electrical System of a Motor Vehicle With a Master Security Module
CN106792681B (en) Intrusion detection method, device and equipment for Internet of vehicles
CN112651035A (en) Data processing method, device, electronic equipment and medium
CN107967605B (en) Rail transit automatic fare collection two-dimensional code credit payment encryption method
CN108830953B (en) Intelligent parking charging management system
CN110325410B (en) Data analysis device and storage medium
Fenzl et al. Continuous fields: Enhanced in-vehicle anomaly detection using machine learning models
CN112184926B (en) Method and device for preventing counter cheating based on dynamic change encryption data packet
US20070266250A1 (en) Mobile Data Transmission Method and System
JP2003087234A (en) Vehicle history information management system, history information storage device and history information management device
CN112383577A (en) Authorization method, device, system, equipment and storage medium
CN111475865A (en) Automobile data verification method and verification device
CN2837934Y (en) Encrypt and decipher the automobile travel recorder of SAM key module and management
JP2019129528A (en) Data analysis device and program
de Andrade et al. Security architecture for automotive communication networks with CAN FD
CN112652080B (en) Anti-dismounting method and device for vehicle-mounted electronic label equipment and electronic equipment
Buscemi et al. Poster: A methodology for semi-automated CAN bus reverse engineering

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