CN103592016A - Device and method for testing software cheating of electronic price computing scale - Google Patents

Device and method for testing software cheating of electronic price computing scale Download PDF

Info

Publication number
CN103592016A
CN103592016A CN201310585004.6A CN201310585004A CN103592016A CN 103592016 A CN103592016 A CN 103592016A CN 201310585004 A CN201310585004 A CN 201310585004A CN 103592016 A CN103592016 A CN 103592016A
Authority
CN
China
Prior art keywords
electronic price
computing scale
price computing
test
charactron
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.)
Granted
Application number
CN201310585004.6A
Other languages
Chinese (zh)
Other versions
CN103592016B (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

Images

Landscapes

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

Abstract

The invention relates to a device and method for testing software cheating of an electronic price computing scale. A programmable-control multi-circuit relay is used in a key simulator in the device for achieving the key function; a calibrator is used in a weighing simulator for simulating the weighing sensor function; the output of a nixie tube is captured, wherein a machine vision system is used for capturing the output of the nixie tube. The machine vision system comprises a hardware interface and a software character recognition algorithm. The simulators and an output capturing device are connected with an Ethernet port and an upper computer through serial ports so as to achieve interaction with an upper computer simulation system, and therefore all the functions of the electronic price computing scale are transferred onto the upper computer. The upper computer simulation system automatically generates a random test case to test the software cheating function and stores a test result. The device and method for testing software cheating of the electronic price computing scale can test the software cheating function of common electronic price computing scales in the current market, the whole test process is finished by the computer simulation system, the automation degree is high, the test efficiency is high, and the test time is short.

Description

Electronic price computing scale software cheating pick-up unit and method
Technical field
The invention belongs to embedded measurement instrument software emulation field tests, relate to electronic price computing scale software cheating pick-up unit and method.
Background technology
On market, some evil mind businessman utilize electronic price computing scale cheating, and the goods of selling is given short weight.Complaint about electronic price computing scale cheating is also more and more.According to State General Administration for Quality Supervision's data of 2012, show, electronic price computing scale quality up to grade ratio of selective samples is only 63.3%.Cheating ratio on electronic scales hardware is easier to discover, and cheating on software is hidden dark being difficult for and found, therefore electronic price computing scale cheating in the market mostly is modification software cheating.
For strengthening the supervision and management of electronic price computing scale, national departments concerned has been formulated measurement instrument software test and appraisal guide (the metering technology normalized JJF1182-2007 of country of the People's Republic of China (PRC)), especially the software assessment method of electronic price computing scale has been proposed to new demand.Current existing correlation technique, cheating supervision detection method as anti-in handheld electronic balance and system, the software inhouse information of extracting during by detection is compared with the software features information of examining front sign, detects the cheating function of measurement instrument.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 the software cheating of electronic price computing scale, detect a difficult problem, the invention provides a kind of electronic price computing scale software cheating pick-up unit and method, with computer simulation system, simulate outside interactive device, while solving electronic price computing scale software test, need to, by the inconvenience of external unit, improve testing efficiency.
The technical scheme that technical solution problem of the present invention is taked is:
A software cheating pick-up unit, comprises electronic price computing scale, electronic price computing scale button analogue means, 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 to be respectively button port, weigh port and charactron output port.
Described electronic price computing scale button analogue means adopts the multicircuit relay of control able to programme, and the output terminal of multicircuit relay is connected with described button port signal; By pilot relay break-make, realize button and press function.
Described electronic price computing scale LOAD CELLS analogue means, adopts fluke-5720 model prover to make source of stable pressure and uses, and the output terminal of prover is connected with the described port signal of weighing.
Described Vision Builder for Automated Inspection comprises camera, tripod and illuminating lamp, camera is erected on adjustable tripod, camera is over against charactron setting, described charactron is connected with charactron output port signal, above described charactron, illuminating lamp is installed, the output terminal of camera is connected with the input end signal of image collecting device.
The output terminal of the input end of described multicircuit relay, the input end of prover and image collecting device is all connected with host computer signal.
Described electronic price computing scale, electronic price computing scale button analogue means, Vision Builder for Automated Inspection, electronic price computing scale LOAD CELLS analogue means are all placed in closed container.
The detection method of utilizing said apparatus to carry out electronic price computing scale software cheating comprises the following steps:
The 1st step: first to system initialization, ethernet port parameter and the test case number of the serial ports of prover, the serial ports of multicircuit relay and image collecting device is set.
The 2nd step: to electronic price computing scale button, weigh and carry out individual event test, whether described key testing is correct at given weight of object Shi, testing software keypress function; Whether the described test of weighing is correct at the constant situation Xia, of unit price testing software function of weighing.
The 3rd step: host computer generates random test use-case automatically, use-case comprises expectation unit price, weight and total price; According to generating expectation 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.
The 4th step: the weight of input, unit price information, on charactron, show, image collecting device is caught charactron information; Host computer is compared expectation unit price and weight information and current capturing information, judges whether both results conform to.
The 5th step: judge whether current use-case number reaches initial setting up value, finish if meet and to generate test result; Otherwise, turn back to the 3rd step, until cycle index reaches initial setting up value, test finishes and generates test result.
Beneficial effect of the present invention:
1, can realize commonly using in the market the software cheating Function detection of electronic price computing scale, whole test process completes by calculation stage analogue system, and automaticity is high, and detection efficiency is high, and detection time is short.
2, can be respectively to electronic price computing scale button, function of weighing is tested, and meets national metering technology normalized JJF1182-2007(measurement instrument software test and appraisal guide) about electronic price computing scale button and function of weighing, test all requirements; Also can detect other embedded measurement instrument on market, there is certain versatility.
3, adopt relay analogue-key, Vision Builder for Automated Inspection to catch charactron output, the software emulation test result reliability of electronic price computing scale is improved, and good stability is not subject to external environmental interference.
4, this device is mutual with host computer analogue system, automatically generates random test use-case, can detect and hide darker software cheating; Avoid because test case number is not enough, and cause some software cheating behavior undetected.
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, pallet, 7, electronic price computing scale charactron, 8, illuminating lamp, 9, universal bearing, 10, common camera, 11, closed container, 12, antidetonation cast iron platform, 13, rotary switch, 14, power supply, 15, A-frame, 16, electronic price computing scale, 17, the multicircuit relay of control able to programme, 18, relay serial ports, 19, electronic price computing scale mainboard chip, 20, hexagon socket head cap screw nut.
Embodiment
As shown in Figure 1, the present embodiment comprises multicircuit relay 17, relay serial ports 18, electronic price computing scale mainboard chip 19, the hexagon socket head cap screw nut 20 of prover 1, prover serial ports 2, host computer 3, ethernet port 4, image collecting device 5, pallet 6, electronic price computing scale charactron 7, illuminating lamp 8, universal bearing 9, common camera 10, closed container 11, antidetonation cast iron platform 12, rotary switch 13, power supply 14, A-frame 15, electronic price computing scale 16, control able to programme.Relay simulation electronic balance keypress function: multicircuit relay 17 is numbered, and corresponding with the button of electronic price computing scale.After multicircuit relay 17 is connected with host computer 3, by serial communication protocol, send instruction pilot relay break-make, realize all keypress functions on electronic price computing scale panel.If key number on electronic price computing scale panel is 4
Figure 2013105850046100002DEST_PATH_IMAGE002
4, Ze Yong No. 16 relays can be realized; For the electronic price computing scale of unnecessary 16 of key number, can expand to realize all buttons on panel to relay.
With source of stable pressure simulation electronic balance function of weighing, by Vision Builder for Automated Inspection, catch electronic price computing scale charactron output information.The direct-connected line of RS232 serial ports is passed through in relay one end, connecting electronic balance mainboard chip button port, and one end connects host computer in addition.The direct-connected line of serial ports is passed through in source of stable pressure one end, the load cell signal input port of connecting electronic balance mainboard chip, and one end connects host computer serial ports in addition; Image collecting device is connected with host computer by Ethernet.In host computer input weighting objects weight, according to weight of object and voltage relationship, host computer issues instructions to source of stable pressure.Source of stable pressure is exported corresponding voltage signal, at electronic price computing scale, deserves to be called the gravimetric value that shows input, completes the simulation of weighing.
Adopt Black-box Testing method, realize electronic price computing scale software cheating measuring ability, need to carry out batch testing to every function of electronic price computing scale.Because real software test is difficult to realize, adopt the emulator of software-driven to replace real running environment, the various functions of Reality simulation running environment.Batch testing needs a large amount of test cases, host computer Automatically invoked random function generating test use case, and test result automatic analysis, processing are generated to testing journal sheet.
Electronic price computing scale mainboard chip input port, mainly contains key-press input port, load cell signal input port.Button and weigh analogue means and method, meet the indication of the metering technology normalized JJF1365-2012(of country of People's Republic of China (PRC) numeral and claim software reliability assessment method).Host computer analogue system and analogue means are mutual, to analogue means, send steering order, realize software cheating and automatically detect.
In conjunction with Fig. 1 and Fig. 2, provide following examples
Embodiment
The present embodiment detects the software cheating function of overlord's electronic price computing scale, as shown in Figure 1, main body of the present invention, electronic price computing scale software cheating pick-up unit comprises: electronic price computing scale 16 to be detected is placed in closed container 11, closed container 11 interconnects by hexagon socket head cap screw nut 20 with cast iron platform 12, can eliminate the interference that environmental factors causes pick-up unit; Illuminating lamp 8 provides required light source to Vision Builder for Automated Inspection, thereby guarantees charactron character recognition accuracy; Power supply 14 is this covering device power supply.
Before test, by the keystroke interface of relay 17 one end connecting electronic balance mainboard chips 19, other end access host computer 3; By the sensor signal input port of prover 1 one end connecting electronic balance mainboard chip 19, other end access host computer 3; Image collecting device 5 one end connect common camera 10, and the other end is connected to host computer 3 by ethernet port 4.Common camera 10 is fixed on A-frame 15, press the flexible height of the adjustable A-frame 15 of rotary switch 13, rotate the visual field direction of the adjustable camera 10 of universal bearing 9, adjusting camera 10 makes whole electronic price computing scale charactron 7 within its coverage, auxiliary camera 10 focal lengths of adjusting, make charactron unit price, weight, the total price character of shooting high-visible.
Electronic price computing scale software cheating detection method, as shown in Figure 2:
The 1st step: first to system initialization, prover serial ports, relay serial ports and ethernet port parameter and test case number are set.
The 2nd step: selection function test module, carries out individual event test to electronic price computing scale button, function of weighing module.Individual event test comprises, key testing and the test of weighing.(key testing, whether correct at given weight of object Shi, testing software keypress function; Whether the test of weighing is correct at the constant situation Xia, of unit price testing software function of weighing.)
The 3rd step: host computer generates random test use-case automatically, use-case comprises expectation unit price, weight and total price.According to generating expectation unit price, weight and total price, by standard input analogue means, to electronic price computing scale mainboard chip input weight of object and unit price information.
The 4th step: the weight of input, unit price information, on electronic price computing scale charactron, show, Vision Builder for Automated Inspection is caught charactron information.Host computer is compared expectation unit price and weight information and current capturing information, judges whether both results conform to.
The 5th step: judge whether current use-case number reaches initial setting up value, finish and generate test result if meet circulation; Otherwise, turning back to random test use-case module, cycle index is until reach initial setting up value, and test finishes and generates test result.
According to test result, can judge whether electronic price computing scale software exists cheating, and analyze the position that occurs cheating.This example is usingd overlord's electronic price computing scale as embodiment, but is not limited to overlord's electronic price computing, uses this device and method to detect other electronic price computing scale software cheating, all belongs to protection category.

Claims (2)

1. an electronic price computing scale software cheating pick-up unit, comprises electronic price computing scale, electronic price computing scale button analogue means, Vision Builder for Automated Inspection, electronic price computing scale LOAD CELLS analogue means, it is characterized in that:
Electronic price computing scale contains mainboard chip, and this mainboard chip has three external-connected ports, is to be respectively button port, weigh port and charactron output port;
Described electronic price computing scale button analogue means adopts the multicircuit relay of control able to programme, and the output terminal of multicircuit relay is connected with described button port signal; By pilot relay break-make, realize button and press function;
Described electronic price computing scale LOAD CELLS analogue means adopts fluke-5720 model prover to make source of stable pressure and uses, and the output terminal of prover is connected with the described port signal of weighing;
Described Vision Builder for Automated Inspection comprises camera, tripod and illuminating lamp, camera is erected on adjustable tripod, camera is over against charactron setting, described charactron is connected with charactron output port signal, above described charactron, illuminating lamp is installed, the output terminal of camera is connected with the input end signal of image collecting device;
The output terminal of the input end of described multicircuit relay, the input end of prover and image collecting device is all connected with host computer signal;
Described electronic price computing scale, electronic price computing scale button analogue means, Vision Builder for Automated Inspection, electronic price computing scale LOAD CELLS analogue means are all placed in closed container.
2. an electronic price computing scale software cheating detection method, is characterized in that the method comprises the following steps:
The 1st step: first to system initialization, ethernet port parameter and the test case number of the serial ports of prover, the serial ports of multicircuit relay and image collecting device is set;
The 2nd step: to electronic price computing scale button, weigh and carry out individual event test, whether described key testing is correct at given weight of object Shi, testing software keypress function; Whether the described test of weighing is correct at the constant situation Xia, of unit price testing software function of weighing;
The 3rd step: host computer generates random test use-case automatically, use-case comprises expectation unit price, weight and total price; According to generating expectation 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;
The 4th step: the weight of input, unit price information, on charactron, show, image collecting device is caught charactron information; Host computer is compared expectation unit price and weight information and current capturing information, judges whether both results conform to;
The 5th step: judge whether current use-case number reaches initial setting up value, finish if meet and to generate test result; Otherwise, turn back to the 3rd step, until cycle index reaches initial setting up value, test finishes and generates test result.
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 true CN103592016A (en) 2014-02-19
CN103592016B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105588633A (en) * 2016-02-18 2016-05-18 广东省计量科学研究院 Electronic scale cheating detection system and detection method thereof
CN106500819A (en) * 2016-09-28 2017-03-15 中山市易恩自动化科技有限公司 Electronic scale production line
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
CN109887191A (en) * 2015-08-03 2019-06-14 天使游戏纸牌股份有限公司 The cheating detection system of amusement park
CN110132390A (en) * 2019-05-22 2019-08-16 查常财 The electronic scale of cheating dynamics can be reduced
CN111094912A (en) * 2017-08-09 2020-05-01 株式会社DSi Weighing system, electronic scale, and marker for electronic scale
CN111220255A (en) * 2020-03-05 2020-06-02 无锡市计量测试院 Electronic scale cheating detection system and working method thereof

Citations (3)

* 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
JP2013195286A (en) * 2012-03-21 2013-09-30 Jfe Advantech Co Ltd Load calibration device

Patent Citations (3)

* 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
JP2013195286A (en) * 2012-03-21 2013-09-30 Jfe Advantech Co Ltd Load calibration device

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
孙宁等: "电子计价秤软件测试关键技术研究", 《软件》, vol. 33, no. 7, 31 December 2012 (2012-12-31) *
崔伟群: "电子计价秤软件自动测试***", 《现代测量与实验室管理》, no. 2, 31 December 2011 (2011-12-31) *
张志凯等: "电子计价秤软件自动测试***的设计与实现", 《自动化与仪表》, vol. 28, no. 8, 16 September 2013 (2013-09-16) *
张志凯等: "电子计价秤软件自动测试***的设计与实现", 《计算机应用》, no. 8, 31 August 2013 (2013-08-31) *

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11527131B2 (en) 2015-08-03 2022-12-13 Angel Group Co., Ltd. Fraud detection system in a casino
US11393286B2 (en) 2015-08-03 2022-07-19 Angel Group Co., Ltd. Fraud detection system in a casino
US11380161B2 (en) 2015-08-03 2022-07-05 Angel Group Co., Ltd. Fraud detection system in a casino
US11657674B2 (en) 2015-08-03 2023-05-23 Angel Group Go., Ltd. Fraud detection system in casino
US11393284B2 (en) 2015-08-03 2022-07-19 Angel Group Co., Ltd. Fraud detection system in a casino
CN109887191A (en) * 2015-08-03 2019-06-14 天使游戏纸牌股份有限公司 The cheating detection system of amusement park
US11386748B2 (en) 2015-08-03 2022-07-12 Angel Playing Cards Co., Ltd. Fraud detection system in a casino
US11620872B2 (en) 2015-08-03 2023-04-04 Angel Group Co., Ltd. Fraud detection system in a casino
US11587398B2 (en) 2015-08-03 2023-02-21 Angel Group Co., Ltd. Fraud detection system in a casino
US11386749B2 (en) 2015-08-03 2022-07-12 Angel Group Co., Ltd. Fraud detection system in a casino
US11741780B2 (en) 2015-08-03 2023-08-29 Angel Group Co., Ltd. Fraud detection system in a casino
US11657673B2 (en) 2015-08-03 2023-05-23 Angel Group Co., Ltd. Fraud detection system in a casino
US11393285B2 (en) 2015-08-03 2022-07-19 Angel Group Co., Ltd. Fraud detection system in a casino
US11527130B2 (en) 2015-08-03 2022-12-13 Angel Group Co., Ltd. Fraud detection system in a 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
CN106500819A (en) * 2016-09-28 2017-03-15 中山市易恩自动化科技有限公司 Electronic scale production line
US11460340B2 (en) 2017-08-09 2022-10-04 Dsi Corporation Weighing system, electronic scale, and electronic scale marker for performing inventory management
CN111094912A (en) * 2017-08-09 2020-05-01 株式会社DSi Weighing system, electronic scale, and marker for electronic scale
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
CN110132390A (en) * 2019-05-22 2019-08-16 查常财 The electronic scale of cheating dynamics can be reduced
CN111220255A (en) * 2020-03-05 2020-06-02 无锡市计量测试院 Electronic scale cheating detection system and working method thereof

Also Published As

Publication number Publication date
CN103592016B (en) 2016-08-17

Similar Documents

Publication Publication Date Title
CN103592016A (en) Device and method for testing software cheating of electronic price computing scale
CN106059582B (en) A kind of Testing of mixed signal chipset system and method
CN201886095U (en) Test device of merging unit
CN105738854A (en) Simulation memory test board system for intelligent ammeter embedded application and test method
CN207851236U (en) A kind of chip testing plate and chip test system
CN101980417B (en) Digital substation testing simulation method
CN204789908U (en) Circuit board automatic test system based on labVIEW
CN103019940A (en) Electric energy meter embedded software semi-simulation test device
CN103293510B (en) Device and method for quickly measuring errors of electric energy meter
CN206321757U (en) A kind of device of automatic test chip
CN103699017A (en) Simulation test system and simulation test method for interface equipment of simulator in nuclear power station
CN205067714U (en) Single -phase electric energy meter calibrating installation and single -phase electric energy meter credible test platform that resets
CN103544084B (en) A kind of realization touches the product method and system of test automatically
CN103257277A (en) Multifunctional virtual instrument based on constant flow source and control method
CN105045712B (en) A kind of test system for resolution chart processing module
CN102879732B (en) Method and system for testing board card
CN111521223A (en) Automatic detection system and method
CN207764328U (en) A kind of charging pile charging simulated testing system
CN107765202A (en) The on-line calibration system and method for AC measurment unit in integrated circuit test system
CN210833274U (en) Electronic trigger fuse test system
CN110320897A (en) A kind of solar street lamp controller production test tooling and test method
CN108507617A (en) Temperature-humidity detecting device and its detection method
CN105974221A (en) Universal adapter for multi-channel bus interface module testing
CN204789978U (en) Smart electric meter trouble snatchs test equipment
CN112557880A (en) Wearable equipment mainboard test fixture

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160817

Termination date: 20171119