CN108458778A - A kind of cheat detection method and device - Google Patents
A kind of cheat detection method and device Download PDFInfo
- Publication number
- CN108458778A CN108458778A CN201810199555.1A CN201810199555A CN108458778A CN 108458778 A CN108458778 A CN 108458778A CN 201810199555 A CN201810199555 A CN 201810199555A CN 108458778 A CN108458778 A CN 108458778A
- Authority
- CN
- China
- Prior art keywords
- user terminal
- electronic scale
- code
- tested
- verification
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01G—WEIGHING
- G01G23/00—Auxiliary devices for weighing apparatus
- G01G23/01—Testing or calibrating of weighing apparatus
- G01G23/017—Securing calibration against fraud
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
A kind of cheat detection method and device provided in an embodiment of the present invention belong to electronic scale cheating detection field.The cheat detection method is applied to electronic scale system, and this method includes:User terminal sends verification instruction to electronic scale;User terminal is obtained electronic scale and is instructed returned verification information based on verification;User terminal obtains the key code entrained by verification information, and key code is sent to server;User terminal obtains the verification result that server is returned based on key code;User terminal judges whether verification result matches;If so, user terminal obtains the high-risk Wii sequence stored in server;User terminal is based on high-risk Wii sequence and generates keystroke sequence code to be tested, and keystroke sequence code to be tested is sent to electronic scale;User terminal obtains the display data shown by weight of the electronic scale based on application;User terminal judges whether the electronic scale practises fraud based on display data;If so, sending out prompt message, and generate cheating information.
Description
Technical field
The present invention relates to electronic scale cheating detection fields, in particular to a kind of cheat detection method and device.
Background technology
Electronic scale cheating detecting system is that one kind being widely used in commerce and trade metrical instrument, is practised fraud and is detected due to electronic scale
System hardware structure is relatively simple, and the common chip with cheating program of illegal retailer replaces former chip, passes through button to reach
Cheat mode is activated, the purpose for weight of weighing is changed, the interests of user are damaged while to seek exorbitant profit for oneself, therefore,
How to solve the above problems is the technical barrier of current urgent need to resolve.
Invention content
A kind of cheat detection method and device provided by the invention, it is intended to improve the above problem.
A kind of cheat detection method provided by the invention is applied to electronic scale system, and the electronic scale system includes electronics
Scale, server and user terminal, one end of the user terminal are coupled with the electronic scale, the other end of the user terminal with
The Coupled processors, the method includes:The user terminal sends verification instruction to the electronic scale;The user terminal
It obtains the electronic scale and returned verification information is instructed based on the verification;The user terminal obtains the verification information institute
The key code of carrying, and the key code is sent to the server;The user terminal obtains the server and is based on institute
State the verification result that key code is returned;The user terminal judges whether the verification result matches;If so, the user is whole
End obtains the high-risk Wii sequence stored in the server;The user terminal is based on the high-risk Wii sequence life
It is sent to the electronic scale at keystroke sequence code to be tested, and by the keystroke sequence code to be tested, so that the electronics scale foundation
Corresponding button is pressed to apply weight in the keystroke sequence code to be tested;The user terminal obtains the electronics scale foundation
In the display data shown by the weight applied;Whether the user terminal judges the electronic scale based on the display data
Cheating;If so, sending out prompt message, and generate cheating information.
Optionally, the user terminal obtains the electronic scale based on the display number shown by the application weight
According to, including:The user terminal obtain the electronic scale based on it is described application weight shown by display data be encrypted after
The code data generated.
Optionally, described, if so, sending out prompt message, and cheating information is generated, further includes later:By the cheating
The server is sent to after information encryption to be stored.
Optionally, the user terminal is obtained the electronic scale and is instructed returned verification letter based on the verification
Breath, including:The electronic scale is based on the verification and instructs generated verification information, and carries out cryptographic calculation and generate encrypted authentication letter
Breath;The user terminal obtains the encrypted authentication information.
Optionally, the user terminal is based on the high-risk Wii sequence and generates keystroke sequence code to be tested,
And the keystroke sequence code to be tested is sent to the electronic scale, including:The user terminal is based on the high-risk Wii
Operation is encrypted in sequence, generates keystroke sequence code to be tested;The user terminal is based on the first channel and to be tested is pressed described
First ray code in key sequence code is sent to the electronic scale;The user terminal is based on second channel and to be tested is pressed described
The second sequence code in key sequence code is sent to the electronic scale;The user terminal is based on third channel and to be tested is pressed described
Third sequence code in key sequence code is sent to the electronic scale.
A kind of cheating detection device provided by the invention is applied to electronic scale system, and the electronic scale system includes electronics
Scale, server and user terminal, one end of the user terminal are connect with the electronic scale, the other end of the user terminal with
The Coupled processors, the cheating detection device include:Instruction sending unit sends verification instruction for the user terminal
To the electronic scale;First data capture unit is obtained the electronic scale for the user terminal and is instructed based on the verification
The verification information returned;Second data capture unit obtains the pass entrained by the verification information for the user terminal
Key code, and the key code is sent to the server;Third data capture unit, described in user terminal acquisition
The verification result that server is returned based on the key code;First processing units, for being tested described in user terminal judgement
Whether card result matches;First execution unit, for if so, the user terminal obtain stored in the server it is high-risk
Wii sequence;Second processing unit is based on the high-risk Wii sequence for the user terminal and generates button to be tested
Sequence code, and the keystroke sequence code to be tested is sent to the electronic scale, so that the electronic scale is based on described to be tested
Keystroke sequence code presses corresponding button to apply weight;4th data capture unit obtains institute for the user terminal
Electronic scale is stated based on the display data shown by the weight applied;Third processing unit is based on institute for the user terminal
It states display data and judges whether the electronic scale practises fraud;Second execution unit for if so, send out prompt message, and generates work
Disadvantage information.
Optionally, the 4th data capture unit is specifically used for:The user terminal obtains the electronic scale and is based on institute
It states the display data applied shown by weight and the code data generated afterwards is encrypted.
Optionally, second execution unit further includes later:Data transmission unit, for adding the cheating information
The server is sent to after close to be stored.
Optionally, first data capture unit is specifically used for:The electronic scale is based on verification instruction and is generated
Verification information, and carry out cryptographic calculation and generate encrypted authentication information;The user terminal obtains the encrypted authentication information.
Optionally, the second processing unit is specifically used for:The user terminal be based on the high-risk Wii sequence into
Row cryptographic calculation generates keystroke sequence code to be tested;The user terminal is based on the first channel by the keystroke sequence to be tested
First ray code in code is sent to the electronic scale;The user terminal is based on second channel by the keystroke sequence to be tested
The second sequence code in code is sent to the electronic scale;The user terminal is based on third channel by the keystroke sequence to be tested
Third sequence code in code is sent to the electronic scale.
A kind of cheat detection method and device that aforementioned present invention provides send verification by the user terminal first and refer to
It enables to the electronic scale;Obtain the electronic scale by the user terminal again instructs returned verification to believe based on the verification
Breath;The key code entrained by the verification information is obtained then through the user terminal, and the key code is sent to
The server;And the verification result that the server is returned based on the key code is obtained by the user terminal;
Judge whether the verification result matches by the user terminal again;If so, the user terminal obtains in the server
The high-risk Wii sequence stored;Then the high-risk Wii sequence is based on by the user terminal and generates to be tested press
Key sequence code, and the keystroke sequence code to be tested is sent to the electronic scale, so that the electronic scale is based on described to be measured
Examination keystroke sequence code presses corresponding button to apply weight;The electronic scale is obtained by the user terminal again and is based on institute
Display data shown by the weight of application;Then the electronics is being judged based on the display data by the user terminal
Whether scale practises fraud;Finally if so, sending out prompt message, and generate cheating information.To be believed by the verification for first obtaining electronic scale
Breath, judges whether the verification result corresponding to verification information matches, and is further obtaining high-risk Wii sequence from server, into
And while effectively reducing treatment effeciency, the accuracy rate of detection is improved, further provides hardware environment for cheating detection.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate
Appended attached drawing, is described in detail below.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is a kind of structure diagram of electronic scale system provided in an embodiment of the present invention;
Fig. 2 is a kind of structure diagram of user terminal provided in an embodiment of the present invention;
Fig. 3 is the flow chart for the cheat detection method that first embodiment of the invention provides;
Fig. 4 is the flow chart for the cheat detection method that second embodiment of the invention provides;
Fig. 5 is the high-level schematic functional block diagram for the cheating detection device that third embodiment of the invention provides;
Fig. 6 is the high-level schematic functional block diagram for the cheating detection device that fourth embodiment of the invention provides.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
The every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.Therefore,
The detailed description of the embodiment of the present invention to providing in the accompanying drawings is not intended to limit the model of claimed invention below
It encloses, but is merely representative of the selected embodiment of the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not having
There is the every other embodiment obtained under the premise of making creative work, shall fall within the protection scope of the present invention.
As shown in Figure 1, being a kind of structure diagram for electronic scale system that present pre-ferred embodiments provide.The electronic scale
System 10 includes electronic scale 100, server 200 and user terminal 300.The server 200 passes through network and one or more
User terminal 300 is communicatively coupled, with into row data communication or interaction.The server 200 can be network server, number
According to library server etc..The user terminal 300 can be PC (personal computer, PC), tablet computer, intelligence
Energy mobile phone, personal digital assistant (personal digital assistant, PDA) etc..
Wherein, the electronic scale 100 is measuring equipment, by radio communication module or bluetooth module and the user terminal
300 wireless communications.
As shown in Fig. 2, being a kind of structure diagram of user terminal provided in an embodiment of the present invention.The user terminal 300
Including cheating detection device, memory 302, storage control 303, processor 304 and Peripheral Interface 305.
The memory 302, storage control 303, processor 304 and 305 each element of Peripheral Interface are direct between each other
Or be electrically connected indirectly, to realize the transmission or interaction of data.For example, these elements can pass through one or more between each other
Communication bus or signal wire, which are realized, to be electrically connected.The cheating detection device include it is at least one can be with software or firmware
(firmware) form is stored in the memory 302 or is solidificated in the operating system of the electronic equipment 300
Software function module in (operating system, OS).The processor 304 is used to execute to store in memory 302
Module is can perform, such as the software function module or computer program that the cheating detection device includes.
Wherein, memory 302 may be, but not limited to, random access memory (Random Access Memory,
RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-
Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory,
EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory,
EEPROM) etc..Wherein, memory 302 is for storing program, and the processor 304 is after receiving and executing instruction, described in execution
Program, the method performed by server 100 that the stream process that aforementioned any embodiment of the embodiment of the present invention discloses defines can answer
It is realized in processor 304, or by processor 304.
Processor 304 may be a kind of IC chip, the processing capacity with signal.Above-mentioned processor 304 can
To be general processor, including central processing unit (Central ProcessingUnit, abbreviation CPU), network processing unit
(Network Processor, abbreviation NP) etc.;Can also be digital signal processor (DSP), application-specific integrated circuit (ASIC),
Ready-made programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hard
Part component.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor
Can be microprocessor or the processor can also be any conventional processor etc..
The Peripheral Interface 305 couples various input/output devices to processor 304 and memory 302.At some
In embodiment, Peripheral Interface 305, processor 304 and storage control 303 can be realized in one single chip.Other one
In a little examples, they can be realized by independent chip respectively.
Referring to Fig. 3, being the flow chart for the cheat detection method that first embodiment of the invention provides.The cheating detection side
Method is applied to electronic scale system, and the electronic scale system includes electronic scale, server and user terminal, and the one of the user terminal
End is coupled with the electronic scale, the other end of the user terminal and the Coupled processors.It below will be to shown in Fig. 3 specific
Flow is described in detail.
Step S101, the user terminal send verification instruction to the electronic scale.
As an implementation, user can be based on user terminal will be verified by mobile network's either Bluetooth signal
Instruction is sent to the electronic scale.Wherein, it by sending verification instruction to the electronic scale, is able to verify that and instructs what is returned to test
Whether card information is changed judging the electronic scale or whether has been done fraudulent means.In advance by judge hardware environment come
Increase the efficiency for judging cheating.
Wherein, the verification instruction returns to verification information for making the electronic scale be based on verification instruction, described to test
Card information includes the key code of the electronic scale, i.e., the unique mark of the described electronic scale.
Step S102, the user terminal obtain the electronic scale and instruct returned verification information based on the verification.
In the present embodiment, wireless communication module and processor are previously provided in the electronic scale, by processor come
The verification instruction is executed, and verification information is returned to the user terminal based on wireless communication module.
As an implementation, the electronic scale is based on the verification and instructs generated verification information, and is encrypted
Operation generates encrypted authentication information;The user terminal obtains the encrypted authentication information.Number is can effectively improve by encryption
According to transmission reliability, ensure data will not be intercepted and captured easily in transmission process.It is further ensured that the reliable of detection cheating
Property and accuracy.
Step S103, the user terminal obtains the key code entrained by the verification information, and the key code is sent out
It send to the server.
Wherein, the key code is the unique mark of the electronic scale, for example, it may be the product of the electronic scale is compiled
Code.
In the present embodiment, by the way that the key code is sent to the server, to inquired from server whether
Have with key code institute matched information, and then judge whether the manufacturer of the electronic scale correct, further judge
Whether there is producer to the electronic scale reequip or producer's product of the production with cheating function is prevented to be implanted to the electricity
In sub- scale.
Step S104, the user terminal obtain the verification result that the server is returned based on the key code.
Step S105, the user terminal judge whether the verification result matches.
As an implementation, the user terminal judges whether the verification result matches with presupposed information, wherein
The presupposed information refers to the flag information corresponding to the key code.
In the present embodiment, the user terminal again judges the verification result, further improves judgement
Accuracy rate.
Step S106, if so, the user terminal obtains the high-risk Wii sequence stored in the server.
Wherein, the high-risk Wii sequence is to be in advance based on《High-risk Wii algorithm》Digital self-indicating scale is carried out automatic
Change the result sequence after Black-box Testing.For example, user terminal obtains high-risk Wii sequence from server, and it is suitable according to localization
With being converted to keystroke sequence;The sequence is passed to electronic scale, the simulation pair of electronic scale control keyboard button closed procedure by user terminal
The physical button answered is pressed, then generates weight signal by the controller in electronic scale;By controller or processing after registration stabilization
Device obtains digital indication scale LCD/LED signals, and transformed numerical value is passed to user terminal does the judgement whether practised fraud.
Step S107, the user terminal are based on the high-risk Wii sequence and generate keystroke sequence code to be tested, and will
The keystroke sequence code to be tested is sent to the electronic scale.
As an implementation, operation is encrypted based on the high-risk Wii sequence in the user terminal, generates
Keystroke sequence code to be tested;The user terminal is based on the first channel by the First ray code in the keystroke sequence code to be tested
It is sent to the electronic scale;The user terminal is based on second channel by the second sequence code in the keystroke sequence code to be tested
It is sent to the electronic scale;The user terminal is based on third channel by the third sequence code in the keystroke sequence code to be tested
It is sent to the electronic scale.The different data in the keystroke sequence code to be tested, Ke Yiyou are sent by using different channels
Effect mitigates the transmission pressure of data while improving the efficiency of transmission of data, and ensures the reliability of data transmission.
In the present embodiment, by the way that the keystroke sequence code to be tested is sent to the electronic scale, so that the electronics
Scale foundation presses corresponding button to apply weight in the keystroke sequence code to be tested, and then carries out cheating test.
Step S108, the user terminal obtain the electronic scale based on the display data shown by the weight applied.
As an implementation, the user terminal obtains the electronic scale based on aobvious shown by the application weight
The code data generated afterwards is encrypted in registration evidence.
Step S109, the user terminal judge whether the electronic scale practises fraud based on the display data.
As an implementation, by judge the display data whether with the number corresponding to weight caused by reality
According to matching, to judge whether the electronic scale carries cheating equipment.
Step S110 if so, sending out prompt message, and generates cheating information.
Wherein, the prompt message can be voice messaging, can also be the word shown by the form by pop-up box
Information.
It is described to practise fraud information as the information generated based on the Wii corresponding to cheating caused by electronic scale.Its
In, the Wii refers to the electronic scale generated key set code under based on the keystroke sequence code triggering to be tested.
Referring to Fig. 4, being the flow chart for the cheat detection method that second embodiment of the invention provides.The cheating detection side
Method is applied to electronic scale system, and the electronic scale system includes electronic scale, server and user terminal, and the one of the user terminal
End is coupled with the electronic scale, the other end of the user terminal and the Coupled processors.It below will be to shown in Fig. 4 specific
Flow is described in detail.
Step S201, the user terminal send verification instruction to the electronic scale.
Step S202, the user terminal obtain the electronic scale and instruct returned verification information based on the verification.
Step S203, the user terminal obtains the key code entrained by the verification information, and the key code is sent out
It send to the server.
Step S204, the user terminal obtain the verification result that the server is returned based on the key code.
Step S205, the user terminal judge whether the verification result matches.
Step S206, if so, the user terminal obtains the high-risk Wii sequence stored in the server.
Step S207, the user terminal are based on the high-risk Wii sequence and generate keystroke sequence code to be tested, and will
The keystroke sequence code to be tested is sent to the electronic scale.
Step S208, the user terminal obtain the electronic scale based on the display data shown by the weight applied.
Step S209, the user terminal judge whether the electronic scale practises fraud based on the display data.
Step S210 if so, sending out prompt message, and generates cheating information.
The specific implementation mode of step S201 to step S210 please refers to step corresponding in first embodiment, here,
It repeats no more.
Step S211 is sent to the server after encrypting the cheating information and stores.
In the present embodiment, the encryption can be encrypted based on ASCII character, can also be added by other means
It is close, for example, this password either customizing method that rubs.Here, being not especially limited.
As an implementation, the cheating information is encrypted based on ASCII character, and by the encrypted work
Disadvantage information is sent in the database of the server and is stored.
Referring to Fig. 5, being the high-level schematic functional block diagram for the cheating detection device that third embodiment of the invention provides.The work
Disadvantage detection device 400 is applied to electronic scale system, and the electronic scale system includes electronic scale, server and user terminal, described
One end of user terminal is connect with the electronic scale, the other end of the user terminal and the Coupled processors, the cheating
Detection device 400 includes:Instruction sending unit 410, the first data capture unit 420, the second data capture unit 430, third
Data capture unit 440, first processing units 450, the first execution unit 460, second processing unit 470, the 4th data acquisition
Unit 480, third processing unit 490 and the second execution unit 491.
Instruction sending unit 410 sends verification instruction to the electronic scale for the user terminal.
First data capture unit 420 obtains the electronic scale for the user terminal and is based on verification instruction institute
The verification information of return.
As an implementation, first data capture unit 420 is specifically used for:The electronic scale is based on described test
Card instructs generated verification information, and carries out cryptographic calculation and generate encrypted authentication information;The user terminal obtains the encryption
Verification information.
Second data capture unit 430 obtains the key code entrained by the verification information for the user terminal, and
The key code is sent to the server.
Third data capture unit 440 is obtained the server for the user terminal and is returned based on the key code
The verification result returned.
First processing units 450 judge whether the verification result matches for the user terminal.
First execution unit 460, for if so, the user terminal obtains the high-risk cheating stored in the server
Code sequence.
Second processing unit 470 is based on the high-risk Wii sequence for the user terminal and generates button to be tested
Sequence code, and the keystroke sequence code to be tested is sent to the electronic scale, so that the electronic scale is based on described to be tested
Keystroke sequence code presses corresponding button to apply weight.
As an implementation, the second processing unit 470 is specifically used for:The user terminal is based on described high-risk
Operation is encrypted in Wii sequence, generates keystroke sequence code to be tested;The user terminal is waited for based on the first channel by described
First ray code in test keystroke sequence code is sent to the electronic scale;The user terminal is waited for based on second channel by described
The second sequence code in test keystroke sequence code is sent to the electronic scale;The user terminal is waited for based on third channel by described
Third sequence code in test keystroke sequence code is sent to the electronic scale.
4th data capture unit 480 obtains the electronic scale based on the weight institute applied for the user terminal
The display data of display.
As an implementation, the 4th data capture unit 480 is specifically used for:Described in the user terminal obtains
The code data generated afterwards is encrypted based on the display data shown by the application weight in electronic scale.
Third processing unit 490 judges whether the electronic scale is made for the user terminal based on the display data
Disadvantage.
Second execution unit 491 for if so, send out prompt message, and generates cheating information.
Referring to Fig. 6, being the high-level schematic functional block diagram for the cheating detection device that fourth embodiment of the invention provides.The work
Disadvantage detection device 500 is applied to electronic scale system, and the electronic scale system includes electronic scale, server and user terminal, described
One end of user terminal is connect with the electronic scale, the other end of the user terminal and the Coupled processors, the cheating
Detection device 500 includes:Instruction sending unit 510, the first data capture unit 520, the second data capture unit 530, third
Data capture unit 540, first processing units 550, the first execution unit 560, second processing unit 570, the 4th data acquisition
Unit 580, third processing unit 590, the second execution unit 591 and data transmission unit 592.
Instruction sending unit 510 sends verification instruction to the electronic scale for the user terminal.
First data capture unit 520 obtains the electronic scale for the user terminal and is based on verification instruction institute
The verification information of return.
As an implementation, first data capture unit 520 is specifically used for:The electronic scale is based on described test
Card instructs generated verification information, and carries out cryptographic calculation and generate encrypted authentication information;The user terminal obtains the encryption
Verification information.
Second data capture unit 530 obtains the key code entrained by the verification information for the user terminal, and
The key code is sent to the server.
Third data capture unit 540 is obtained the server for the user terminal and is returned based on the key code
The verification result returned.
First processing units 550 judge whether the verification result matches for the user terminal.
First execution unit 560, for if so, the user terminal obtains the high-risk cheating stored in the server
Code sequence.
Second processing unit 570 is based on the high-risk Wii sequence for the user terminal and generates button to be tested
Sequence code, and the keystroke sequence code to be tested is sent to the electronic scale, so that the electronic scale is based on described to be tested
Keystroke sequence code presses corresponding button to apply weight.
As an implementation, the second processing unit 570 is specifically used for:The user terminal is based on described high-risk
Operation is encrypted in Wii sequence, generates keystroke sequence code to be tested;The user terminal is waited for based on the first channel by described
First ray code in test keystroke sequence code is sent to the electronic scale;The user terminal is waited for based on second channel by described
The second sequence code in test keystroke sequence code is sent to the electronic scale;The user terminal is waited for based on third channel by described
Third sequence code in test keystroke sequence code is sent to the electronic scale.
4th data capture unit 580 obtains the electronic scale based on the weight institute applied for the user terminal
The display data of display.
As an implementation, the 4th data capture unit 580 is specifically used for:Described in the user terminal obtains
The code data generated afterwards is encrypted based on the display data shown by the application weight in electronic scale.
Third processing unit 590 judges whether the electronic scale is made for the user terminal based on the display data
Disadvantage.
Second execution unit 591 for if so, send out prompt message, and generates cheating information.
Data transmission unit 592 is stored for being sent to the server after encrypting the cheating information.
In conclusion a kind of cheat detection method provided by the invention and device, are sent by the user terminal first
Verification is instructed to the electronic scale;Obtain what the electronic scale was returned based on the verification instruction by the user terminal again
Verification information;The key code entrained by the verification information is obtained then through the user terminal, and by the key code
It is sent to the server;And the verification that the server is returned based on the key code is obtained by the user terminal
As a result;Judge whether the verification result matches by the user terminal again;If so, the user terminal obtains the service
The high-risk Wii sequence stored in device;Then it is to be measured the high-risk Wii sequence generation to be based on by the user terminal
Keystroke sequence code is tried, and the keystroke sequence code to be tested is sent to the electronic scale, so that the electronic scale is based on described
Keystroke sequence code to be tested presses corresponding button to apply weight;The electronics scale foundation is obtained by the user terminal again
In the display data shown by the weight applied;Then it is based on described in display data judgement by the user terminal
Whether electronic scale practises fraud;Finally if so, sending out prompt message, and generate cheating information.To by first obtaining testing for electronic scale
Information is demonstrate,proved, judges whether the verification result corresponding to verification information matches, is further obtaining high-risk Wii sequence from server
While arranging, and then effectively reduce treatment effeciency, the accuracy rate of detection is improved, further provides hardware for cheating detection
Environment.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through
Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, the flow chart in attached drawing and block diagram
Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product,
Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code
Part, a part for the module, section or code, which includes that one or more is for implementing the specified logical function, to be held
Row instruction.It should also be noted that at some as in the realization method replaced, the function of being marked in box can also be to be different from
The sequence marked in attached drawing occurs.For example, two continuous boxes can essentially be basically executed in parallel, they are sometimes
It can execute in the opposite order, this is depended on the functions involved.It is also noted that every in block diagram and or flow chart
The combination of box in a box and block diagram and or flow chart can use function or the dedicated base of action as defined in executing
It realizes, or can be realized using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each function module in each embodiment of the present invention can integrate to form an independent portion
Point, can also be modules individualism, can also two or more modules be integrated to form an independent part.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, RandomAccessMemory), magnetic disc or CD.It needs
It is bright, herein, relational terms such as first and second and the like be used merely to by an entity or operation with it is another
One entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this reality
Relationship or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability
Contain, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes
Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device.
In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element
Process, method, article or equipment in there is also other identical elements.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should be noted that:Similar label and letter exist
Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing
It is further defined and is explained.
Claims (10)
1. a kind of cheat detection method, which is characterized in that be applied to electronic scale system, the electronic scale system include electronic scale,
Server and user terminal, one end of the user terminal are coupled with the electronic scale, the other end of the user terminal and institute
Coupled processors are stated, the method includes:
The user terminal sends verification instruction to the electronic scale;
The user terminal obtains the electronic scale and instructs returned verification information based on the verification;
The user terminal obtains the key code entrained by the verification information, and the key code is sent to the service
Device;
The user terminal obtains the verification result that the server is returned based on the key code;
The user terminal judges whether the verification result matches;
If so, the user terminal obtains the high-risk Wii sequence stored in the server;
The user terminal is based on the high-risk Wii sequence and generates keystroke sequence code to be tested, and by the button to be tested
Sequence code is sent to the electronic scale, so that the electronic scale presses corresponding button based on the keystroke sequence code to be tested
To apply weight;
The user terminal obtains the electronic scale based on the display data shown by the weight applied;
The user terminal judges whether the electronic scale practises fraud based on the display data;
If so, sending out prompt message, and generate cheating information.
2. according to the method described in claim 1, it is characterized in that, the user terminal acquisition electronic scale is based on
Display data shown by the application weight, including:
The user terminal is obtained after the electronic scale is encrypted based on the display data shown by the application weight and is given birth to
At code data.
3. according to the method described in claim 1, it is characterized in that, described, if so, sending out prompt message, and cheating is generated
Information further includes later:
The server is sent to after the cheating information is encrypted to store.
4. according to the method described in claim 1, it is characterized in that, the user terminal acquisition electronic scale is based on
The verification instructs returned verification information, including:
The electronic scale is based on the verification and instructs generated verification information, and carries out cryptographic calculation and generate encrypted authentication information;
The user terminal obtains the encrypted authentication information.
5. according to the method described in claim 1, it is characterized in that, the user terminal is based on the high-risk Wii
Sequence generates keystroke sequence code to be tested, and the keystroke sequence code to be tested is sent to the electronic scale, including:
Operation is encrypted based on the high-risk Wii sequence in the user terminal, generates keystroke sequence code to be tested;
First ray code in the keystroke sequence code to be tested is sent to the electricity by the user terminal based on the first channel
Sub- scale;
The second sequence code in the keystroke sequence code to be tested is sent to the electricity by the user terminal based on second channel
Sub- scale;
Third sequence code in the keystroke sequence code to be tested is sent to the electricity by the user terminal based on third channel
Sub- scale.
6. a kind of cheating detection device, which is characterized in that be applied to electronic scale system, the electronic scale system include electronic scale,
Server and user terminal, one end of the user terminal are connect with the electronic scale, the other end of the user terminal and institute
Coupled processors are stated, the cheating detection device includes:
Instruction sending unit sends verification instruction to the electronic scale for the user terminal;
First data capture unit is obtained the electronic scale for the user terminal and is tested based on what the verification instruction was returned
Demonstrate,prove information;
Second data capture unit obtains the key code entrained by the verification information for the user terminal, and will be described
Key code is sent to the server;
Third data capture unit obtains the verification that the server is returned based on the key code for the user terminal
As a result;
First processing units judge whether the verification result matches for the user terminal;
First execution unit, for if so, the user terminal obtains the high-risk Wii sequence stored in the server;
Second processing unit is based on the high-risk Wii sequence for the user terminal and generates keystroke sequence code to be tested,
And the keystroke sequence code to be tested is sent to the electronic scale, so that the electronic scale is based on the keystroke sequence to be tested
Code presses corresponding button to apply weight;
4th data capture unit obtains the electronic scale based on aobvious shown by the weight applied for the user terminal
Registration evidence;
Third processing unit judges whether the electronic scale practises fraud for the user terminal based on the display data;
Second execution unit for if so, send out prompt message, and generates cheating information.
7. device according to claim 6, which is characterized in that the 4th data capture unit is specifically used for:
The user terminal is obtained after the electronic scale is encrypted based on the display data shown by the application weight and is given birth to
At code data.
8. device according to claim 6, which is characterized in that second execution unit further includes later:
Data transmission unit is stored for being sent to the server after encrypting the cheating information.
9. device according to claim 6, which is characterized in that first data capture unit is specifically used for:
The electronic scale is based on the verification and instructs generated verification information, and carries out cryptographic calculation and generate encrypted authentication information;
The user terminal obtains the encrypted authentication information.
10. device according to claim 6, which is characterized in that the second processing unit is specifically used for:
Operation is encrypted based on the high-risk Wii sequence in the user terminal, generates keystroke sequence code to be tested;
First ray code in the keystroke sequence code to be tested is sent to the electricity by the user terminal based on the first channel
Sub- scale;
The second sequence code in the keystroke sequence code to be tested is sent to the electricity by the user terminal based on second channel
Sub- scale;
Third sequence code in the keystroke sequence code to be tested is sent to the electricity by the user terminal based on third channel
Sub- scale.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810199555.1A CN108458778A (en) | 2018-03-09 | 2018-03-09 | A kind of cheat detection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810199555.1A CN108458778A (en) | 2018-03-09 | 2018-03-09 | A kind of cheat detection method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108458778A true CN108458778A (en) | 2018-08-28 |
Family
ID=63217193
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810199555.1A Pending CN108458778A (en) | 2018-03-09 | 2018-03-09 | A kind of cheat detection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108458778A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111220255A (en) * | 2020-03-05 | 2020-06-02 | 无锡市计量测试院 | Electronic scale cheating detection system and working method thereof |
CN113091871A (en) * | 2019-12-23 | 2021-07-09 | 广州市中兴电子衡器厂 | Electronic scale management control method |
CN117782290A (en) * | 2024-02-28 | 2024-03-29 | 大连金马衡器有限公司 | Anti-cheating system of electronic scale |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101799316A (en) * | 2010-03-11 | 2010-08-11 | 东华大学 | Detection system and method for electronic scale chip software cheating |
CN101968377A (en) * | 2010-09-15 | 2011-02-09 | 福州科迪电子技术有限公司 | Anti-cheating method of electronic scale |
CN202853732U (en) * | 2012-10-23 | 2013-04-03 | 苏州苏灵仪表有限公司 | Anti-cheating supervising detection system of hand-held electronic price computing scale |
CN104501935A (en) * | 2014-12-12 | 2015-04-08 | 福建省计量科学研究院 | Anti-cheating supervision method and system for electronic scale |
CN105588633A (en) * | 2016-02-18 | 2016-05-18 | 广东省计量科学研究院 | Electronic scale cheating detection system and detection method thereof |
-
2018
- 2018-03-09 CN CN201810199555.1A patent/CN108458778A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101799316A (en) * | 2010-03-11 | 2010-08-11 | 东华大学 | Detection system and method for electronic scale chip software cheating |
CN101968377A (en) * | 2010-09-15 | 2011-02-09 | 福州科迪电子技术有限公司 | Anti-cheating method of electronic scale |
CN202853732U (en) * | 2012-10-23 | 2013-04-03 | 苏州苏灵仪表有限公司 | Anti-cheating supervising detection system of hand-held electronic price computing scale |
CN104501935A (en) * | 2014-12-12 | 2015-04-08 | 福建省计量科学研究院 | Anti-cheating supervision method and system for electronic scale |
CN105588633A (en) * | 2016-02-18 | 2016-05-18 | 广东省计量科学研究院 | Electronic scale cheating detection system and detection method thereof |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113091871A (en) * | 2019-12-23 | 2021-07-09 | 广州市中兴电子衡器厂 | Electronic scale management control method |
CN111220255A (en) * | 2020-03-05 | 2020-06-02 | 无锡市计量测试院 | Electronic scale cheating detection system and working method thereof |
CN117782290A (en) * | 2024-02-28 | 2024-03-29 | 大连金马衡器有限公司 | Anti-cheating system of electronic scale |
CN117782290B (en) * | 2024-02-28 | 2024-04-26 | 大连金马衡器有限公司 | Anti-cheating system of electronic scale |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106294105B (en) | Brushing amount tool detection method and device | |
US10733291B1 (en) | Bi-directional communication protocol based device security | |
JP5445861B2 (en) | Apparatus, program, and method for detecting human presence | |
CN108183924A (en) | A kind of login validation method and terminal device | |
CN108458778A (en) | A kind of cheat detection method and device | |
CN103440456B (en) | The method and device that a kind of application security is assessed | |
Markantonakis et al. | Errata to: Secure smart embedded devices, platforms and applications | |
CN101968377B (en) | Anti-cheating method of electronic scale | |
CN106534572A (en) | Information display method and device and terminal | |
CN108140297A (en) | A suspect's detecting system and a suspect's detection method | |
KR100966073B1 (en) | Apparatus and method for managing terminal users | |
CN104065633B (en) | A kind of proof diagram that utilizes carries out method, the Apparatus and system verified | |
US9876645B1 (en) | Tamper detection for hardware devices | |
CN102016867A (en) | System and method of authorizing execution of software code based on at least one installed profile | |
CN106604362B (en) | A kind of Wireless Fidelity Wi-Fi scan method and mobile terminal | |
CN105431857A (en) | Passive security of applications | |
CN105653947A (en) | Method and device for assessing application data security risk | |
CN109033885A (en) | A kind of data response method, terminal device and server | |
CN106713618A (en) | Processing method of identifying code and mobile terminal | |
CN109257366A (en) | The method and apparatus that authentication is carried out to user | |
CN104243474A (en) | Electronic device authenticity verification method and device | |
CN109547426A (en) | Service response method and server | |
Hurley-Smith et al. | Certifiably biased: An in-depth analysis of a common criteria EAL4+ certified TRNG | |
CN110839003A (en) | Method and device for identifying number stealing behavior, computer equipment and storage medium | |
CN103493430A (en) | Information processing device and information processing method |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180828 |