CN103592016B - Electronic price computing scale software cheating detection device and method - Google Patents

Electronic price computing scale software cheating detection device and method Download PDF

Info

Publication number
CN103592016B
CN103592016B CN201310585004.6A CN201310585004A CN103592016B CN 103592016 B CN103592016 B CN 103592016B CN 201310585004 A CN201310585004 A CN 201310585004A CN 103592016 B CN103592016 B CN 103592016B
Authority
CN
China
Prior art keywords
electronic price
computing scale
price computing
analogue means
software
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.)
Expired - Fee Related
Application number
CN201310585004.6A
Other languages
Chinese (zh)
Other versions
CN103592016A (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.)
Zhejiang Province Institute of Metrology
Original Assignee
Zhejiang Province Institute of Metrology
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 Zhejiang Province Institute of Metrology filed Critical Zhejiang Province Institute of Metrology
Priority to CN201310585004.6A priority Critical patent/CN103592016B/en
Publication of CN103592016A publication Critical patent/CN103592016A/en
Application granted granted Critical
Publication of CN103592016B publication Critical patent/CN103592016B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention relates to a kind of electronic price computing scale software cheating detection device and method.Button analogue means in apparatus of the present invention, uses the multicircuit relay of PLC technology to realize keypress function;Weigh analogue means, use prover simulation LOAD CELLS function;Charactron output capture, uses NI Vision Builder for Automated Inspection capture charactron output.Described NI Vision Builder for Automated Inspection, including hardware interface, software character recognition algorithm.Above-mentioned analogue means and output acquisition equipment, be connected with host computer with ethernet port by serial ports, it is achieved mutual with host computer analogue system so that the various functions of electronic price computing scale is moved on host computer;Host computer analogue system automatically generates random test use-case and tests software cheating function, and preserves test result.The present invention can realize the software cheating Function detection commonly using electronic price computing scale in the market, and whole test process is completed by calculating level analogue system, and automaticity is high, and detection efficiency is high, and the detection time is short.

Description

Electronic price computing scale software cheating detection device and method
Technical field
The invention belongs to embedded measurement instrument Software Simulation Test field, relate to electronic price computing scale software cheating detection dress Put and method.
Background technology
On market, some evil minds businessman utilizes electronic price computing scale to practise fraud, and makes the goods of sale give short weight.About electrometer The complaint of valency scale cheating also gets more and more.Showing according to State General Administration for Quality Supervision's data of 2012, the sampling of electronic price computing scale quality is closed Lattice rate is only 63.3%.Cheating on electronic scale hardware is easier to discover, and the cheating on software is hidden and is more deeply difficult to send out Existing, mostly electronic price computing scale cheating the most in the market is to revise software cheating.
For strengthening the supervision and management of electronic price computing scale, national departments concerned has formulated measurement instrument software test and appraisal guide (People's Republic of China's national measurement technical specification JJF1182-2007), especially the software assessment method to electronic price computing scale Propose new demand.Current existing correlation technique, cheating supervisory detection method and system as anti-in handheld electronic balance, will inspection The software characteristics information of the software inhouse information extracted during survey mark front with examination & approval is compared, and detects the cheating of measurement instrument Function.But the software identification of electronic price computing scale relates to production firm's life, the method operation has certain difficulty.
Summary of the invention
For solving a software cheating detection difficult problem for electronic price computing scale, the present invention provides a kind of electronic price computing scale software cheating inspection Survey device and method, with the outside interactive device of computer simulation system simulation, need when solving electronic price computing scale software test to borrow Help the inconvenience of external equipment, improve testing efficiency.
The present invention solves the technical scheme that technical problem taked:
A kind of electronic price computing scale software cheating detection device, including electronic price computing scale, electronic price computing scale button analogue means, NI Vision Builder for Automated Inspection, electronic price computing scale LOAD CELLS analogue means.
Electronic price computing scale contains mainboard chip, and this mainboard chip has three external-connected ports, is for Key pad port respectively, weighs Port and charactron output port.
Described electronic price computing scale button analogue means uses the multicircuit relay of PLC technology, multicircuit relay defeated Go out end to be connected with described Key pad port signal;Realize button by control relay on-off and press function.
Described electronic price computing scale LOAD CELLS analogue means, uses fluke-5720 model prover to make source of stable pressure Using, the output of prover is connected with described port signal of weighing.
Described NI Vision Builder for Automated Inspection includes camera, tripod and illuminating lamp, and camera is erected at adjustable triangle On frame, camera positive logarithmic code pipe is arranged, and described charactron is connected with charactron output port signal, at described charactron Being arranged above illuminating lamp, the output of camera is connected with the input end signal of image collecting device.
The output of the input of described multicircuit relay, the input of prover and image collecting device is all with upper Machine signal connects.
Described electronic price computing scale, electronic price computing scale button analogue means, NI Vision Builder for Automated Inspection, electronic price computing scale are weighed biography Sensor analogue means is both placed in closed container.
The detection method utilizing said apparatus to carry out electronic price computing scale software cheating comprises the following steps:
1st step: first to system initialization, arranges the serial ports of prover, the serial ports of multicircuit relay and image collector The ethernet port parameter put and test case number.
2nd step: to electronic price computing scale button, weighing carries out individual event test, described key testing is at given object weight During amount, test software keys function is the most correct;Described test of weighing is in the case of unit price is constant, and test software is weighed merit Can be the most correct.
3rd step: host computer automatically generates random test use-case, use-case includes expecting unit price, weight and total price;According to generation Expect unit price, weight and total price, by multicircuit relay and prover, to electronic price computing scale mainboard chip input weight of object and Unit price information.
4th step: the weight of input, unit price information, shows on charactron, image collecting device capture charactron information; Expectation unit price and weight information are compared by host computer with current capturing information, it is judged that whether both results are consistent.
5th step: judge whether current use-case number reaches initial setting, if meeting, terminating and generating test result; Otherwise, returning to the 3rd step, until cycle-index reaches initial setting, test terminates and generates test result.
Beneficial effects of the present invention:
1, can realize the software cheating Function detection commonly using electronic price computing scale in the market, whole test process by Calculating level analogue system to complete, automaticity is high, and detection efficiency is high, and the detection time is short.
2, can be respectively to electronic price computing scale button, function of weighing is tested, and meets national measurement technical specification JJF1182-2007(measurement instrument software test and appraisal guide) required about electronic price computing scale button and function of weighing test;Also Other embedded measurement instrument on market can be detected, there is certain versatility.
3, use the capture charactron output of relay analogue-key, NI Vision Builder for Automated Inspection, make the software of electronic price computing scale imitate True test result reliability improves, and good stability is susceptible to external environmental interference.
4, this device is mutual with host computer analogue system, automatically generates random test use-case, can detect that hiding deeper Software cheating;Avoid owing to test case number is not enough, and cause some software cheating behavior missing inspection.
Accompanying drawing explanation
Fig. 1 is the front view of apparatus of the present invention.
Fig. 2 is apparatus of the present invention workflow diagram.
In Fig. 1,1, prover, 2, prover serial ports, 3, host computer, 4, ethernet port, 5, image collecting device, 6, torr Dish, 7, electronic price computing scale charactron, 8, illuminating lamp, 9, universal bearing, 10, common camera, 11, closed container, 12, antidetonation casting Iron platform, 13, rotary switch, 14, power supply, 15, A-frame, 16, electronic price computing scale, 17, the multichannel relay of PLC technology Device, 18, relay serial ports, 19, electronic price computing scale mainboard chip, 20, hexagon socket head cap screw nut.
Detailed description of the invention
As it is shown in figure 1, the present embodiment includes that prover 1, prover serial ports 2, host computer 3, ethernet port 4, image are adopted Acquisition means 5, pallet 6, electronic price computing scale charactron 7, illuminating lamp 8, universal bearing 9, common camera 10, closed container 11, anti- Shake cast iron platform 12, rotary switch 13, power supply 14, A-frame 15, electronic price computing scale 16, the multicircuit relay of PLC technology 17, relay serial ports 18, electronic price computing scale mainboard chip 19, hexagon socket head cap screw nut 20.Relay simulation electronic balance is pressed Key function: multicircuit relay 17 is numbered, and corresponding with the button of electronic price computing scale.Multicircuit relay 17 and host computer After 3 connect, by serial communication protocol, send instruction and control relay on-off, it is achieved all buttons on electronic price computing scale panel Function.As on electronic price computing scale panel, key number is 44, Ze Yong No. 16 relays can realize;Unnecessary for key number The electronic price computing scale of 16, then can be extended relay realizing all buttons on panel.
With source of stable pressure simulation electronic balance function of weighing, catch the output of electronic price computing scale charactron with NI Vision Builder for Automated Inspection Information.The direct-connected line of RS232 serial ports is passed through in relay one end, connects electronic price computing scale mainboard chip Key pad port, and other end is even Connect host computer.The direct-connected line of serial ports is passed through in source of stable pressure one end, connects the load cell signal input of electronic price computing scale mainboard chip Port, other end connects host computer serial ports;Image collecting device is connected with host computer by Ethernet.Claim in host computer input Weight body weight, according to weight of object and voltage relationship, host computer issues instructions to source of stable pressure.Source of stable pressure exports corresponding voltage Signal, then deserve to be called the gravimetric value of display input, complete simulation of weighing at electronic price computing scale.
Use Black-box Testing method, it is achieved electronic price computing scale software cheating detection function, need to electronic price computing scale each Function carries out batch testing.Owing to real software test is difficult to, the emulator of software-driven is used to replace transporting really Row environment, the various functions of simulation real running environment.Batch testing need substantial amounts of test case, host computer automatically call with Machine function generates test case, and automatically analyzes test result, processes generation testing journal sheet.
Electronic price computing scale mainboard chip input port, mainly has key-press input port, load cell signal input port. Button and weigh analogue means and method, meet People's Republic of China's national measurement technical specification JJF1365-2012(numeral Instruction claims software reliability assessment method).Host computer analogue system is mutual with analogue means, sends control to analogue means and refers to Order, it is achieved software cheating detects automatically.
Following example are given in conjunction with Fig. 1 and Fig. 2
Embodiment
The software cheating function of overlord's electronic price computing scale is detected by the present embodiment, as it is shown in figure 1, main body of the present invention, Electronic price computing scale software cheating detection device includes: electronic price computing scale 16 to be detected is placed in closed container 11, airtight appearance Device 11 is connected with each other by hexagon socket head cap screw nut 20 with cast iron platform 12, can eliminate environmental factors and be caused detection device Interference;Illuminating lamp 8 is to the light source needed for NI Vision Builder for Automated Inspection offer, thus ensures charactron character recognition accuracy;Power supply 14 is this covering device power supply.
Before test, relay 17 one end is connected the keystroke interface of electronic price computing scale mainboard chip 19, in other end access Position machine 3;Prover 1 one end is connected the sensor signal input port of electronic price computing scale mainboard chip 19, in other end access Position machine 3;Image collecting device 5 one end connects common camera 10, and the other end is connected to host computer 3 by ethernet port 4.General Logical camera 10 is fixed on A-frame 15, presses the flexible height of the adjustable A-frame of rotary switch 13 15, rotates ten thousand To the direction, the visual field of the adjustable camera of bearing 9 10, adjust camera 10 and make whole electronic price computing scale charactron 7 shoot model at it Within enclosing, auxiliary adjusts camera 10 focal length, makes the charactron unit price of shooting, weight, total price character high-visible.
Electronic price computing scale software cheating detection method, as shown in Figure 2:
1st step: first to system initialization, arranges prover serial ports, relay serial ports and ethernet port parameter and survey Example number on probation.
2nd step: select functional test module, electronic price computing scale button, function of weighing module are carried out individual event test.Individual event Test includes, key testing and test of weighing.(key testing, i.e. when given weight of object, whether test software keys function Correctly;Weighing test, i.e. in the case of unit price is constant, test software function of weighing is the most correct.)
3rd step: host computer automatically generates random test use-case, use-case includes expecting unit price, weight and total price.According to generation Expect unit price, weight and total price, input analogue means by standard, to electronic price computing scale mainboard chip input weight of object and list Valency information.
4th step: the weight of input, unit price information, shows on electronic price computing scale charactron, NI Vision Builder for Automated Inspection captures Charactron information.Expectation unit price and weight information are compared by host computer with current capturing information, it is judged that whether both results It is consistent.
5th step: judge whether current use-case number reaches initial setting, if meeting, circulation terminates and generates test knot Really;Otherwise, returning to random test use-case module, cycle-index is until reaching initial setting, and test terminates and generates test Result.
I.e. can determine whether according to test result whether electronic price computing scale software exists cheating, and analyze the position that cheating occurs. This example is using overlord's electronic price computing scale as embodiment, but is not limited to overlord's electronic price computing, uses this device and method to it Its electronic price computing scale software cheating detection, belongs to protect category.

Claims (1)

1. an electronic price computing scale software cheating detection device, including electronic price computing scale, electronic price computing scale button analogue means, machine Device vision system, electronic price computing scale LOAD CELLS analogue means, it is characterised in that:
Electronic price computing scale contains mainboard chip, and this mainboard chip has three external-connected ports, is for Key pad port, port of weighing respectively With charactron output port;
Described electronic price computing scale button analogue means uses the multicircuit relay of PLC technology, the output of multicircuit relay It is connected with described Key pad port signal;Realize button by control relay on-off and press function;
Described electronic price computing scale LOAD CELLS analogue means uses fluke-5720 model prover to make source of stable pressure and uses, school The output of quasi-instrument is connected with described port signal of weighing;
Described NI Vision Builder for Automated Inspection includes camera, tripod and illuminating lamp, and camera is erected on adjustable tripod, Camera positive logarithmic code pipe is arranged, and described charactron is connected with charactron output port signal, above described charactron Being provided with illuminating lamp, the output of camera is connected with the input end signal of image collecting device;
The output of the input of described multicircuit relay, the input of prover and image collecting device is all believed with host computer Number connect;
Described electronic price computing scale, electronic price computing scale button analogue means, NI Vision Builder for Automated Inspection, electronic price computing scale LOAD CELLS Analogue means is both placed in closed container.
CN201310585004.6A 2013-11-19 2013-11-19 Electronic price computing scale software cheating detection device and method Expired - Fee Related CN103592016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310585004.6A CN103592016B (en) 2013-11-19 2013-11-19 Electronic price computing scale software cheating detection device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310585004.6A CN103592016B (en) 2013-11-19 2013-11-19 Electronic price computing scale software cheating detection device and method

Publications (2)

Publication Number Publication Date
CN103592016A CN103592016A (en) 2014-02-19
CN103592016B true CN103592016B (en) 2016-08-17

Family

ID=50082247

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310585004.6A Expired - Fee Related CN103592016B (en) 2013-11-19 2013-11-19 Electronic price computing scale software cheating detection device and method

Country Status (1)

Country Link
CN (1) CN103592016B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SG10201914026XA (en) 2015-08-03 2020-03-30 Angel Playing Cards Co Ltd Fraud detection system in casino
CN105588633A (en) * 2016-02-18 2016-05-18 广东省计量科学研究院 Electronic scale cheating detection system and detection method thereof
CN106500819B (en) * 2016-09-28 2019-03-12 中山市易恩自动化科技有限公司 Electronic scale production line
JP6856220B2 (en) * 2017-08-09 2021-04-07 株式会社DSi Weighing systems, electronic scales and markers for electronic scales
CN109190901A (en) * 2018-08-03 2019-01-11 中国船舶工业综合技术经济研究院 The credible evaluation method of reliability assessment result based on multi objective measurement
CN109253792A (en) * 2018-09-29 2019-01-22 厦门顶尖电子有限公司 A kind of long-range verification system of electronic scale and method
CN110132390B (en) * 2019-05-22 2021-08-06 简刚 Electronic scale capable of reducing cheating force
CN111220255A (en) * 2020-03-05 2020-06-02 无锡市计量测试院 Electronic scale cheating detection system and working method thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5640334A (en) * 1994-02-23 1997-06-17 Pitney Bowes Inc. Method of recalibrating electronic scales
CN101799316A (en) * 2010-03-11 2010-08-11 东华大学 Detection system and method for electronic scale chip software cheating

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5571114B2 (en) * 2012-03-21 2014-08-13 Jfeアドバンテック株式会社 Load calibration device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5640334A (en) * 1994-02-23 1997-06-17 Pitney Bowes Inc. Method of recalibrating electronic scales
CN101799316A (en) * 2010-03-11 2010-08-11 东华大学 Detection system and method for electronic scale chip software cheating

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
电子计价秤软件测试关键技术研究;孙宁等;《软件》;20121231;第33卷(第7期);全文 *
电子计价秤软件自动测试系统;崔伟群;《现代测量与实验室管理》;20111231(第2期);第1小节,第3小节-第7小节以及图10 *
电子计价秤软件自动测试系统的设计与实现;张志凯等;《自动化与仪表》;20130916;第28卷(第8期);全文 *

Also Published As

Publication number Publication date
CN103592016A (en) 2014-02-19

Similar Documents

Publication Publication Date Title
CN103592016B (en) Electronic price computing scale software cheating detection device and method
CN103200051A (en) Intelligent substation message simulation testing and association message analysis system and method
CN103293510B (en) Device and method for quickly measuring errors of electric energy meter
CN206321757U (en) A kind of device of automatic test chip
CN206894813U (en) A kind of camera testing system
CN205067714U (en) Single -phase electric energy meter calibrating installation and single -phase electric energy meter credible test platform that resets
CN102507650A (en) Method and system for testing parameters of gas-sensitive element
CN103105411A (en) Self-calibration sterilizing gas concentration detection equipment based on wireless data transmission technology
CN210833274U (en) Electronic trigger fuse test system
CN211374965U (en) PCBA general test platform based on raspberry group
CN107765202A (en) The on-line calibration system and method for AC measurment unit in integrated circuit test system
CN207764328U (en) A kind of charging pile charging simulated testing system
CN103312561A (en) Detection method for intelligent concentrator
CN206804135U (en) A kind of portable multi-function synthesis constitution analyzer and system
CN202421107U (en) Parameter testing system for gas sensitive element
CN205898306U (en) Host system of infrared radiation thermometer
CN201965485U (en) Automatic verifying device for adjustor parameters
CN203350930U (en) Device for detecting and correcting financial appliance before leaving factory or after leaving factory
CN201181317Y (en) Resistor test device of charge roller
CN103500521B (en) The stake resistance visual simulation test method of electrical equipment
CN210377147U (en) Production test tool for solar street lamp controller
CN208026706U (en) Support the gas sensor device structure of realization self-checking function
CN104502767B (en) A kind of fixture system for ac analog test
CN219143075U (en) Multifunctional electric energy meter verification training device for metering room
CN202815208U (en) Wireless communication type field calibrator

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160817

Termination date: 20171119

CF01 Termination of patent right due to non-payment of annual fee