CN103994810B - A kind of anti-cheated electronic weighing scale and anti-cheating method - Google Patents

A kind of anti-cheated electronic weighing scale and anti-cheating method Download PDF

Info

Publication number
CN103994810B
CN103994810B CN201410235735.2A CN201410235735A CN103994810B CN 103994810 B CN103994810 B CN 103994810B CN 201410235735 A CN201410235735 A CN 201410235735A CN 103994810 B CN103994810 B CN 103994810B
Authority
CN
China
Prior art keywords
electronic scale
machine code
chip
electronic
trigger switch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410235735.2A
Other languages
Chinese (zh)
Other versions
CN103994810A (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.)
Guangzhou Zhong Xing Electronic Scale Factory
Original Assignee
Guangzhou Zhong Xing Electronic Scale Factory
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 Guangzhou Zhong Xing Electronic Scale Factory filed Critical Guangzhou Zhong Xing Electronic Scale Factory
Priority to CN201410235735.2A priority Critical patent/CN103994810B/en
Publication of CN103994810A publication Critical patent/CN103994810A/en
Application granted granted Critical
Publication of CN103994810B publication Critical patent/CN103994810B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Pinball Game Machines (AREA)
  • Storage Device Security (AREA)

Abstract

The present invention relates to weight metering technical field, particularly relate to a kind of anti-cheated electronic weighing scale, can rewrite the machine code of electronic scale chip Work machine code by setting up and rewrite module on electronic scale chip, machine code is rewritten module and is started by the trigger switch being electrically connected on described PCB substrate, trigger switch is by triggering part immediately and closing, when electronic weigher casing by people for after taking apart, described triggering part leaves and starts described trigger switch, machine code is rewritten module and can be started and automatically rewrite electronic scale chip Work machine code, cause electronic scale chip normally not weigh and piecework, therefore can effectively prevent that lawless people is by taking electronic scale apart and distort inner hardware or machine code being implemented cheating to electronic scale, can effectively prevent that electronic scale is counterfeiting, prevent that the normal electronic scale of lawbreaker's handle from repacking cheating product into, guarantee the sincerity of market trade environment, fair.

Description

A kind of anti-cheated electronic weighing scale and anti-cheating method
Technical field
The present invention relates to weight metering technical field, particularly relate to a kind of anti-cheated electronic weighing scale and anti-cheating method.
Background technology
Along with the use of electronic scale is universal, some illegal technical staff and businessman, for individual interest, personation, repacking electricitySub-scale becomes the electronic scale that can practise fraud. Upset whole market order. Quality supervision department is to electronic scale producerTechnical requirement has been proposed. Check on technically, identify, prevent electronic scale cheating, counterfeiting. At present, common cheat method masterIf what time following:
One, the amplification coefficient that changes prime operational amplifier, as shown in Figure 1, toggle switch SW, just receives different resistanceIn. Figure changes varying signal amplifier amplification quantity; Fig. 2 changes sensor signal amount; All reach and change weight indicating value object.
Two, switch SW above can also replace with remote control module, becomes distance type. This way, must take scale apartBody, installs cheating annex additional. As long as just can find with original-pack scale contrast. Some place that can utilize people to be not too careful is attached practising fraudPart stashes. Such as: 1, ensconce wiring board after; 2, battery is emptied and is arranged on the inside; 3, be contained in terminal box etc.But as long as carefully contrast master circuit; Whether whether hollow sensation, lead-out wire be many to knock battery; Sensor cable stage casing hasNoly connect not clear device. Just can find.
These two kinds of methods are used many years ago, rare in recent years.
Three, software coordinates with hardware. As Fig. 3, change the chip (MCU) of primary electron scale, remote control switch is received to chip(MCU) on I/O mouth, the varying level state of switch is reflected on the I/O mouth of MCU, and matching program changes operational parameter, changesWeight indicating value. Tear open after machine, with original-assemblied machine comparison, can see and have more some elements, can be penetrated.
Four, pure software cheating. Change the chip (MCU) of primary electron scale. By compared with complex operations method, call different fortuneCalculate parameter change weight indicating value. By shirtsleeve operation, recovery normal operation parameter, make scale recover normal.
For example, after the internal processes by change electronic scale chip, press the function key of electronic scale, input password, thanAs 12.345, electronic scale enters cheating state, then presses " M1 " key of electronic scale, and weight indicating value is original 110%, or presses" M2 " key, weight indicating value is original 120% etc., presses " M6 " key and exits cheating function, it is normal that electronic scale recovers. This type of cheatingMethod of operating vary, crypticity is extremely strong.
Five, electromagnetic interference. For the electronic scale of type in certain, use certain frequency range high reject signal generator, interfering signalIn the sensor signal that is added to, to change semaphore, reach and change weight indicating value object. But be difficult to control the amount of disturbing, Er QielingIndicated value instability, easily under a cloud, discovery.
Six, some little tricks. Make electronic scale tilt; Haul the scale pan frame application of force with " stealth " thread; One platform balance enters, a platform balanceGo out; Destroy sealing, again demarcate electronic scale etc.
Summary of the invention
In view of this, the present invention discloses a kind of anti-cheated electronic weighing scale, can prevent that electronic scale is counterfeiting, prevents lawbreaker's handleNormal electronic scale repacks cheating product into, guarantees sincerity, the justice of market trade environment.
It should be noted that, the groundwork of electronic scale is all completed by a chip (MCU) of inside. Chip (MCU)All " actions " all determined by the machine code of enrolling wherein. As shown in Figure 4, each machine code storage of corresponding chip one by oneDevice address, if reduced, increase machine code, will make the corresponding relation variation of original memory address and machine code, if onlyAmendment machine code (do not increase or reduce), will destroy original program so that cannot normally work.
Based on above-mentioned know-why, the technical solution used in the present invention is: a kind of anti-cheated electronic weighing scale, comprises housing, the endSeat, be located at PCB substrate on described base, be located on PCB substrate and deposit the electronic scale chip of Work machine code, work as electronicsWhen scale is normally worked, described electronic scale chip can read described Work machine code, thereby electronic scale can be carried out normallyWeigh and the work such as accounting price. In addition, also comprise trigger switch and trigger part, on described electronic scale chip, being also provided with machineCode is rewritten module, and machine code is rewritten in module and comprised one section from rewriting program, and described machine code is rewritten after module starts and can be changedWrite the Work machine code of described electronic scale chip, described trigger switch is electrically connected on described PCB substrate and can triggers startupDescribed machine code is rewritten module, is installed under the state of base at housing, and described trigger switch does not trigger startup, described triggering partBe located between described housing and trigger switch, trigger part and can trigger described trigger switch with taking apart of housing. Install at electronic scaleAfter completing, its inner trigger switch can not trigger startup, allows trigger switch can not start described machine code and rewrites module, electronicsScale thereby the work of can weighing normally. But, when the moment that electronic weigher casing is separated, described in be positioned at housing and triggeringTriggering part between switch will be separated This move as induction taking housing, and then impels the contact of described trigger switch to produceTrigger action, makes trigger switch give electronic scale chip a triggering signal, and starts the machine code in electronic scale chipRewrite module, machine code is rewritten module just can rewrite the Work machine code in electronic scale chip automatically, and Work machine code is repaiiedThe work of can not weighing normally again of electronic scale chip after changing, stops lawless people to continue to utilize split mistake timely and effectivelyElectronic scale carry out cheating. Therefore, the present invention can effectively prevent that electronic scale is counterfeiting, prevents that lawbreaker is normalElectronic scale repacks cheating product into, guarantees sincerity, the justice of market trade environment.
Preferably, described triggering part is elastic component, and described elastic component one end is tightly pushed away by described housing, and the other end presses and closesClose described trigger switch, described trigger switch can reset and trigger startup with separating of described housing. Tightly pushing of housing, instituteState elastic component and can press trigger switch, make trigger switch in closed condition, when housing by people for taking apart, housing is to elastic componentActive force disappear, thereby elastic component disappears to the active force of trigger switch, makes trigger switch can reset and trigger and openMoving, produce triggering signal. Need to press described trigger switch owing to triggering part, if it is long or excessive to trigger the size of part, justCan directly increase the pressure to trigger switch, thereby easily damage the contact of trigger switch, therefore, described triggering part is elastic componentCan allow and trigger the pressure energy flexible adjustment between part and trigger switch, make trigger switch be not easy to damage.
But, although above-mentioned triggering electronic scale chip utilizes machine code to rewrite the mode of the automatic modification machine code of moduleBe conducive to prevent that electronic scale is by malicious modification, but can in the production assembling process of electronic scale, cause great inconvenience, reason isElectronic scale dispatch from the factory and formally come into operation go to toward need to be first through assembling and debug phase, in the time of assembling, must ensure instituteState machine code rewriting module and can not be activated, could effectively complete assembling, in the time of the debug phase, often have the electronic scale of partNeed to take housing apart and readjust the deviation of weighing, if therefore start trigger switch, and the code that starts the machine is rewritten module, coreSheet Work machine code will seriously be hindered the debugging work of electronic scale after rewriting. For fear of the generation of above-mentioned situation, described inOn electronic scale chip, also programming has one section of initial test routine, and described initial test routine is not subject to the described editor from the program of rewritingRewrite, electronic scale chip is by reading the work of weighing of described initial test routine, by pre-to the input of electronic scale function keyThe order of first setting makes electronic scale chip exit described initial test routine. Therefore, at electronic scale during in the debug phase, electronicsScale chip only can read and move the initial test routine of programming on electronic scale chip, because described initial test routine is not subject toThe described editor from the program of rewriting rewrites, even thereby the housing of electronic scale be disassembled, the electronic scale work of still weighing,The debugging work that has ensured electronic scale can be carried out smoothly. After described assembling and debug phase complete, technical staff can pass throughThe specific order of function key input of electronic scale impels electronic scale chip to exit described initial test routine, and electronic scale chip entersTo normal use state, under normal use state, described in reading in the course of the work, electronic scale chip contains from changingThe original program (comprise Work machine code and certainly rewrite program) of writing module, electronic scale can start because of being opened of housing at any timeTrigger switch.
Further, the storage area length of described electronic scale chip is greater than the length of actual required write-in program, i.e. instituteState Work machine code and add that the remaining space of electronic scale chip fills up the mixed and disorderly machine that can not move from the length of the program of rewritingCode. It should be noted that, the described mixed and disorderly machine code that can not move refers in the work of electronic scale and cuts little iceMachine code, this part machine code is only filled up for the remaining space electronic scale chip, in addition, described mixed and disorderly machineCode can select to be programmed into beginning, centre, the optional position, end of electronic scale chip original program, the residue sky of electronic scale chipBetween fill up after, can Prevent cheating person continue chip be added to cheating program, use tricks, avoided electronic scale to be looked intoXun Shishi producer program, forwards again the situation that cheating program is gone to when operation.
Preferably, described electronic scale chip is encapsulated in described PCB substrate in the lump with the peripheral cell being located on PCB substrateUpper, after preventing that electronic scale chip and various peripheral electron element from being split out easily, allow cribber to chip program and PCB substrateCircuit plagiarize, increased the difficulty of flight.
Preferably, on described PCB substrate, be coated with radome, can effectively prevent that interference unit from doing from electronic scale outsideFraud.
An electronic scale anti-cheating method based on such scheme, comprises the following steps: S1: in the former journey of electronic scale chipIn order, insert the polling routine of one section of inquiry chip self machine code, and look into described in starting by the function key of control electronic scaleInquiry program; In the time that electronic scale need to be verified the true and false, can start described inquiry journey by electronic scale function key input related commandOrder, to inquire about the machine code in electronic scale chip.
S2: the machine code to electronic scale chip is put on record, generates the data of putting on record; This step can be at electronic scale product exportBefore carry out, the data of putting on record can be with paper document as preservation, or is kept in computer etc.
S3: in the time that electronic scale need to be verified, recall the machine code of electronic scale chip by starting polling routine, and with describedThe data of putting on record are compared. When the data of putting on record before the machine code being transferred out and electronic scale dispatch from the factory are inconsistent, just prove electronicsThe internal machine code of scale chip was by people for distorting, and just can judge this electronic scale being verified is cheating product.
The anti-cheating method of above-mentioned electronic scale has utilized the machine code in chip to carry out false proof inspection work fully, electricityMachine code in sub-scale chip is as " security code ", without for inspection work, adapter being installed on electronic scale extralyPart, also, without the false proof inspection machine of ad hoc researching and developing for electronic scale, therefore the method for inspection is simply effective, technical staff, inspectionThe personnel that look into, by comparing with the data of putting on record, just can verify electronic scale easily, and user also can be easilyCarry out real-time machine code inquiry comparison work by phone or alternate manner and manufacturer, thereby inspection work can be convenientEffectively realize, effectively guarantee sincerity, the justice of market trade environment.
In addition, in the anti-cheated electronic weighing scale scheme of one of the present invention, described electronic weigher casing is opened, and machine code is rewritten mouldAfter piece is activated, technical staff can allow selectively the machine code in electronic scale chip do variation a little in design processOr local variation, but can not form impact to the work of weighing of electronic scale, when recall the machine of chip by described polling routineWhen device code, can obviously find the machine code that is transferred out with described in the data transformation of putting on record consistent, just can judge electronic scale quiltRevised, this mode can allow lawbreaker in involuntary situation, leave the clue of crime, be conducive to law enfrocement official withThis clue is foundation, puts to the proof on evidence lawbreaker's cheating, stops illegal cheating, the public affairs of Maintenance Market tradeFlat sincere.
In addition, in the anti-cheated electronic weighing scale scheme of one of the present invention, described in be filled in the mixed and disorderly machine code of electronic scale chipCan with chip in real work program (comprise Work machine code and certainly rewrite program) in the lump as the data of putting on record, therefore existWhen inquiring about the machine code of electronic scale chip and comparing with the data of putting on record, described mixed and disorderly machine code also participates in wherein in the lump,Increased the content of comparison, as long as the machine code being transferred out slightly changes and changes, can judge electronic scale inside byDistort, make inspection work more effective, also increased cribber's the difficulty of distorting simultaneously.
Further, in checkout procedure, machine code tends to directly be recalled to display device, for example, be presented atOn the display screen that electronic scale itself carries, or be to be presented at computer demonstration after machine code is transferred out and is sent to host computerOn device, so will allow the personnel that do not possess inspection qualification have an opportunity directly the to plagiarize program machine code of chip, in order not revealProgram, in described step S3, is sent on display device after the machine code after recalling is encrypted again.
Alternatively, in described step S3, described in the electronic scale chip machine code that is transferred out be presented at the electronics of electronic scaleOn display screen, and compare with the data of putting on record. The reviewer that this mode can be convenient to have authority at the scene in inspection in real timeWhether electronic scale is tampered.
Alternatively, in described step S3, described electronic scale is connected with a reading code device signal, described in the electronics that is transferred outScale chip machine code is sent on reading code equipment, and cumulative summation on described reading code equipment, the accumulated value drawing and described inThe accumulated value of the data of putting on record is compared. Described reading code equipment can be special code reader, can be also other forThe electronic scale of read machine code, by the connection of port, the electronic scale being verified the machine code of self be sent to forOn the electronic scale of read machine code. The reviewer that this mode can be convenient to have authority at the scene in real-time inspection electronic scale whether haveBe tampered.
Alternatively, in described step S3, described in the electronic scale chip machine code that is transferred out be sent on computer, and withThe backup data of putting on record are on computers compared. This mode can be carried out comprehensive degree of depth inspection to electronic scale, can be moreThe accurately each machine code in checking electronic scale chip.
The invention has the beneficial effects as follows: can rewrite electronic scale chip Work machine code by setting up on electronic scale chipMachine code is rewritten module, and machine code is rewritten module and started by the trigger switch being electrically connected on described PCB substrate, trigger switchBy triggering part immediately and close, when electronic weigher casing by people for after taking apart, described triggering part leaves and starts described trigger switch,Machine code is rewritten module and can be started and automatically rewrite electronic scale chip Work machine code, causes electronic scale chip normally not enterRow is weighed and piecework, therefore can effectively prevent that lawless people from distorting inner hardware or machine by taking electronic scale apartCode is implemented cheating to electronic scale, can effectively prevent that electronic scale is counterfeiting, prevents that lawbreaker from changing normal electronic scaleDress up cheating product, guarantee sincerity, the justice of market trade environment.
Brief description of the drawings
Fig. 1 is the cheating control schematic diagram of prior art.
Fig. 2 is the cheating control schematic diagram of prior art.
Fig. 3 is the cheating control schematic diagram of prior art.
Fig. 4 is the machine code schematic diagram of electronic scale chip inside.
Fig. 5 is the overall structure schematic diagram of the embodiment of the present invention one
Fig. 6 is the schematic diagram of selecting electronic scale chip storage area length in the embodiment of the present invention one.
Fig. 7 is the schematic diagram of the embodiment of the present invention one display device code.
Fig. 8 is the record sheet that in the embodiment of the present invention one, polling routine recalls electronic scale chip internal machine code at every turn.
Fig. 9 is the schematic diagram in the embodiment of the present invention one, code distortion being shown.
Figure 10 is the connection diagram of the embodiment of the present invention two.
Figure 11 is the schematic diagram that the embodiment of the present invention two lieutenant colonels test electronic scale display device code accumulated value.
Figure 12 is the schematic diagram in computer comparison machine code in the embodiment of the present invention three.
Detailed description of the invention
Below in conjunction with detailed description of the invention, the present invention is further illustrated. Wherein, accompanying drawing is only for exemplary illustration,What represent is only schematic diagram, but not pictorial diagram can not be interpreted as the restriction to this patent; For reality of the present invention is described betterExecute example, some parts of accompanying drawing have omission, zoom in or out, and do not represent the size of actual product; To those skilled in the art, in accompanying drawing, may to omit be understandable for some known features and explanation thereof.
Embodiment mono-: as shown in Figure 5, a kind of anti-cheated electronic weighing scale, comprises housing 1, base 11, is fixedly connected on the described endPCB substrate 12 on seat 11 is provided with electronic scale chip 4 on PCB substrate 12, and electronic scale chip 4 is deposited the work of electronic scaleMake machine code, in the time that electronic scale is normally worked, described electronic scale chip 4 can read described Work machine code, thereby makes electricitySub-scale can be weighed and the work such as accounting price normally, in addition, has also enrolled machine code and rewrite mould on electronic scale chip 4Piece, machine code is rewritten in module and has been comprised one section from rewriting program, rewrites after module starts and can rewrite described electronics when machine codeThe Work machine code of scale chip 4, and then cause electronic scale chip 4 normally not work again. In addition, also comprise trigger switch3 and trigger part, in the present embodiment, described triggering part is elastic component 2, trigger switch 3 is electrically connected on described PCB substrate 12And can start described machine code rewriting module, and elastic component 2 is arranged between housing 1 and trigger switch 3, and elastic component 2 upper ends are subject to shellBody 1 tightly pushes away downwards, thereby makes the lower end of elastic component 2 press and close trigger switch 3, when housing 1 by people for taking apart, housing 1 is rightThe active force of elastic component 2 disappears, thereby elastic component 2 disappears to the active force of trigger switch 3, and trigger switch 3 can be resettedAnd trigger and start, electronic scale chip 4 is produced to triggering signal, rewrite module so that electronic scale chip 4 starts described machine code.
That is to say, after electronic scale installation, its inner elastic component 2 is immediately on trigger switch 3, allows tactileSend out switch 3 can not start the machine code rewrite module, electronic scale thereby the work of can weighing normally. But, work as electronic scaleThe moment that housing 1 is opened, elastic component 2 will leave trigger switch 3 with electronic weigher casing 1, and trigger switch 3 changes former with regard to momentThe state coming, and start the machine code rewriting module in electronic scale chip 4, machine code is rewritten module just can rewrite electronics automaticallyWork machine code in scale chip 4, the work of can not weighing normally again of the electronic scale chip 4 after Work machine code is modifiedDo, stop timely and effectively lawless people to continue to utilize the electronic scale of split mistake to carry out cheating. Therefore, the present invention can haveEffect prevents that electronic scale is counterfeiting, prevent that lawbreaker from repacking cheating product into normal electronic scale, guarantees market trade environmentSincere, fair.
As to further improvement of this embodiment, on described electronic scale chip, also programming has one section of initial test routine,Described initial test routine is not rewritten by the described editor from the program of rewriting, and electronic scale chip is by reading described initial testing journeyThe order work of weighing, makes electronic scale chip exit described initial survey by electronic scale function key being inputted to predefined orderExamination program. Therefore, at electronic scale, during in the debug phase, electronic scale chip only can read and move programming on electronic scale chipInitial test routine, rewrite because described initial test routine is not subject to the described editor from the program of rewriting, even thereby electronicsThe housing of scale is disassembled, and the electronic scale work of still weighing, has ensured that the debugging work of electronic scale can be carried out smoothly. Work as instituteState assembling and after the debug phase completes, technical staff can specifically be ordered and impel electronic scale by the function key input of electronic scaleChip exits described initial test routine, and electronic scale chip enters into normal use state, under normal use state, and electricityDescribed in sub-scale chip can read in the course of the work, contain from the original program of rewriting module and (comprise Work machine code and certainly rewrite journeyOrder), electronic scale can start trigger switch because of being opened of housing at any time.
As to further improvement of this embodiment, as shown in Figure 6, while selecting electronic scale chip, follow the principles: chipProgram storage area length L need the length L 2 of write-in program just greater than user, and mixed and disorderly character code for remaining spaceFill up, Prevent cheating person increases cheating program L1 on the remaining space of electronic scale chip, in the time of L < L1+L2, and electronic chipJust can not load cheating program. After the remaining space of electronic scale chip is filled up, can Prevent cheating person continue chip to be added toCheating program, uses tricks, and has avoided electronic scale to be queried Shi Shi producer program, forwards again that cheating program goes when operation toSituation.
As to further improvement of this embodiment, electronic scale chip 4 be located at peripheral cell on PCB substrate 12 in the lumpBe encapsulated on described PCB substrate 12, after preventing that electronic scale chip 4 and various peripheral electron element from being split out easily, allow cheatingPerson plagiarizes the circuit of chip program and PCB substrate 12, has increased the difficulty of flight.
As to further improvement of this embodiment, on PCB substrate 12, be coated with radome (not shown in FIG.), can be effectivePrevent that interference unit from practising fraud from electronic scale outside.
An electronic scale anti-cheating method based on embodiment mono-, comprises the following steps: as shown in Figure 4, shown electronicsEach machine code of scale chip internal, and with each machine code corresponding stored device address one by one, this enforcement utilizes chip justIn machine code carry out false proof inspection work, the machine code in electronic scale chip is as " security code ", comprising belowStep:
S1: in the time that electronic scale is manufactured, insert one section of inquiry chip self machine code in the original program of electronic scale chipPolling routine, and the input command that is the described polling routine of startup by " 9 " set on electronic scale function key, in addition, inquiryThe decimal number that program can be inputted according to electronic scale function key finds the hexadecimal format of answering in contrast in chipMemory address, and recall the machine code leaving in this storage address.
S2: the machine code to electronic scale chip is put on record, generates the data of putting on record, the data bit of putting on record papery shelves or electronics literary compositionPart, identical with shown in Fig. 4 of the form of the data of putting on record, has clearly backed up the ground of each in its chip program before electronic scale dispatches from the factoryLocation and the machine code corresponding with address.
S3: after electronic scale dispatches from the factory, in the time that needs are verified it, press " 9 " key start, electronic scale is entered and check oneself functionState is then inputted decimal number word command " 64 " in function key, and the decimal system " 64 " is converted to hexadecimal in program" 40 ", polling routine has found the memory address of hexadecimal format, this memory address in chip according to hexadecimal " 40 "Fifth line " 000040 " in Fig. 4, polling routine just recalls the first five the machine code " D241 in memory address " 000040 "D2457B ", then in each electronic display of electronic scale display window, show (as shown in Figure 7). Then with standbyCase tables of data is more consistent, if comparison result is inconsistent, original product can really admit a fault. Certainly, in order to improve inspectionEffect, reviewer can input repeatedly decimal number word command, makes polling routine recall many group machine codes, and eachThe memory address inquiring and corresponding machine code are presented in electronic display successively, and as shown in Figure 8, reviewer is eachThe memory address and the machine code that are presented on electronic scale display window are recorded as form, and the last and data of putting on record are compared one by one, tableData in lattice only have on all four with the data of putting on record time, could prove that this electronic scale being verified is original-pack, do not haveHave and artificially revised.
As to further improvement of this embodiment, in order not reveal program, can by after machine code " distortion " again output orShow, namely machine code is encrypted, such as hexadecimal is converted to the decimal system, lose hundred, as Fig. 9 instituteShow, certainly, can adopt other algorithms of different, to reach secret object.
Embodiment bis-: operation principle and the embodiment of the present embodiment and embodiment mono-are similar, its difference is, asShown in Figure 10, be verified electronic scale 100 and connect by the serial ports of order wire and a verification electronic scale 200, then according to belowStep operation;
A. press " 9 " key that is verified electronic scale 100, polling routine recalls the first five in memory address " 000040 "After machine code " D241D2457B ", be then sent on described checking electronic scale 200.
B. checking electronic scale 200, to the machine code the receiving summation that adds up, show that accumulated value is " 20B37D ", andAccumulated value is presented on the display screen of verification electronic scale 200, as shown in figure 11.
C. then that aggregate-value is more consistent with the data of putting on record, if comparison result is inconsistent, can confirm testedTesting electronic scale 100 is not original product.
The NM part of the present embodiment is identical with embodiment mono-, repeats no more herein.
Embodiment tri-: operation principle and the embodiment of the present embodiment and embodiment mono-are similar, and its difference is, quiltVerification electronic scale connects by the serial ports of order wire and computer, then operation according to the following steps:
A. in computer, open serial ports software, select com port, set " baud rate 9600, no parity check position, 8 bit data, 1Position of rest " enter wait accepting state;
B. press " 9 " key of the electronic scale being verified, electronic scale starts to send toward computer the machine of electronic chip insideCode;
C. computer received file in order to case file same format preserve, and carry out with file comparator rightWhether different ratio, can find, as shown in figure 12.
Due to all machine codes that can compare in electronic scale chip, therefore can accurately find electronic scale in computerWhether there is the vestige being tampered.
The NM part of the present embodiment is identical with embodiment mono-, repeats no more herein.
Obviously, the above embodiment of the present invention is only for example of the present invention is clearly described, and is not rightThe restriction of embodiments of the present invention. For those of ordinary skill in the field, also can on the basis of the above descriptionTo make other changes in different forms, here without also giving exhaustive to all embodiments. All at thisAny amendment of doing within the spirit of invention and principle, be equal to and replace and improvement etc., all should be included in the claims in the present inventionProtection domain within.

Claims (8)

1. an anti-cheated electronic weighing scale, comprises housing, base, is located at PCB substrate on described base, is located on PCB substrate alsoThe electronic scale chip of depositing Work machine code, is characterized in that, also comprises trigger switch and triggers part, described electronic scale chipOn be also provided with machine code and rewrite module, described machine code is rewritten the Work machine that can rewrite described electronic scale chip after module startsCode, described trigger switch is electrically connected on described PCB substrate and can triggers and starts described machine code rewriting module, pacifies at housingBe loaded under the state of base, described trigger switch can not trigger startup, described triggering part be located at described housing and trigger switch itBetween, trigger part and can trigger described trigger switch with separating of housing;
On described electronic scale chip, also programming has one section of initial test routine, and described initial test routine is not subject to from the program of rewritingEditor rewrites, and electronic scale chip is by reading the work of weighing of described initial test routine, by defeated to electronic scale function keyEntering predefined order makes electronic scale chip exit described initial test routine;
The storage area length of described electronic scale chip is greater than the length of actual required write-in program, the residue sky of electronic scale chipBetween fill up the mixed and disorderly machine code that can not move.
2. anti-cheated electronic weighing scale according to claim 1, is characterized in that, described triggering part is elastic component, described elasticityPart one end is tightly pushed away by described housing, and the other end presses and closes described trigger switch, what described trigger switch can be with described housingSeparate and reset and trigger startup.
3. anti-cheated electronic weighing scale according to claim 1, is characterized in that, described electronic scale chip be located at PCB substrateOn peripheral cell be encapsulated in the lump on described PCB substrate, on described PCB substrate, be coated with radome.
4. the electronic scale anti-cheating method based on described in claim 1 ~ 3 any one, is characterized in that, comprises following stepRapid:
S1: in the original program of electronic scale chip, insert the polling routine of one section of inquiry chip self machine code, and can be by controlThe function key of electronic scale processed starts described polling routine;
S2: the machine code to electronic scale chip is put on record, generates the data of putting on record;
S3: in the time that electronic scale need to be verified, recall the machine code of electronic scale chip by starting polling routine, and put on record with describedData are compared.
5. electronic scale anti-cheating method according to claim 4, is characterized in that, in described step S3, after recallingMachine code be sent to again on display device after being encrypted.
6. electronic scale anti-cheating method according to claim 4, is characterized in that, in described step S3, and described tuneThe electronic scale chip machine code going out is presented on the display window of electronic scale, and compares with the data of putting on record.
7. electronic scale anti-cheating method according to claim 4, is characterized in that, in described step S3, and described electronicsScale is connected with a reading code device signal, described in the electronic scale chip machine code that is transferred out be sent on reading code equipment, and describedCumulative summation on reading code equipment, the accumulated value drawing and described in put on record the accumulated value of data compare.
8. electronic scale anti-cheating method according to claim 4, is characterized in that, in described step S3, and described tuneThe electronic scale chip machine code going out is sent on computer, and compares with the backup data of putting on record on computers.
CN201410235735.2A 2014-05-29 2014-05-29 A kind of anti-cheated electronic weighing scale and anti-cheating method Active CN103994810B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410235735.2A CN103994810B (en) 2014-05-29 2014-05-29 A kind of anti-cheated electronic weighing scale and anti-cheating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410235735.2A CN103994810B (en) 2014-05-29 2014-05-29 A kind of anti-cheated electronic weighing scale and anti-cheating method

Publications (2)

Publication Number Publication Date
CN103994810A CN103994810A (en) 2014-08-20
CN103994810B true CN103994810B (en) 2016-05-25

Family

ID=51309038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410235735.2A Active CN103994810B (en) 2014-05-29 2014-05-29 A kind of anti-cheated electronic weighing scale and anti-cheating method

Country Status (1)

Country Link
CN (1) CN103994810B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106768252A (en) * 2016-11-18 2017-05-31 中山市凯衡衡器有限公司 A kind of electronic scale anti-cheating system and its anti-cheating control method
CN109029683A (en) * 2018-11-02 2018-12-18 山东大陆计量科技有限公司 A kind of anti-cheating method of electronic scale and electronic scale with anti-cheating function
CN109724680A (en) * 2019-01-18 2019-05-07 深圳市计量质量检测研究院(国家高新技术计量站、国家数字电子产品质量监督检验中心) Weighing anti-cheating method in market
CN113091871B (en) * 2019-12-23 2023-02-03 广州市中兴电子衡器厂 Electronic scale management control method
CN113124977A (en) * 2019-12-31 2021-07-16 广州市中兴电子衡器厂 Self-service retail electronic scale capable of preventing cheating
CN113124976A (en) * 2019-12-31 2021-07-16 广州市中兴电子衡器厂 Self-service retail electronic scale and control method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201637469U (en) * 2009-11-09 2010-11-17 凯丰集团有限公司 Anti-cheating electronic scale
CN202041275U (en) * 2011-03-23 2011-11-16 成都九洲电子信息系统股份有限公司 Device for detecting and recording shell opening time in real time
CN202101750U (en) * 2011-05-26 2012-01-04 上海大华电子秤厂 Anti-cheating electronic scale
CN203231811U (en) * 2012-12-03 2013-10-09 金华职业技术学院 Control module for effectively preventing electronic scale cheating
CN204007847U (en) * 2014-05-29 2014-12-10 广州市中兴电子衡器厂 A kind of anti-cheated electronic weighing scale

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FI114425B (en) * 2002-08-12 2004-10-15 Plusdial Ab Oy Method and arrangement to verify the authenticity of a utility of value distributed as a digital message

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201637469U (en) * 2009-11-09 2010-11-17 凯丰集团有限公司 Anti-cheating electronic scale
CN202041275U (en) * 2011-03-23 2011-11-16 成都九洲电子信息系统股份有限公司 Device for detecting and recording shell opening time in real time
CN202101750U (en) * 2011-05-26 2012-01-04 上海大华电子秤厂 Anti-cheating electronic scale
CN203231811U (en) * 2012-12-03 2013-10-09 金华职业技术学院 Control module for effectively preventing electronic scale cheating
CN204007847U (en) * 2014-05-29 2014-12-10 广州市中兴电子衡器厂 A kind of anti-cheated electronic weighing scale

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
防作弊电子计价秤的研制;周岸;《产品介绍》;20101231;第39卷(第10期);第48~52页 *

Also Published As

Publication number Publication date
CN103994810A (en) 2014-08-20

Similar Documents

Publication Publication Date Title
CN103994810B (en) A kind of anti-cheated electronic weighing scale and anti-cheating method
US6607137B2 (en) Method and apparatus for casting a vote from home on elections
CN107800672A (en) A kind of Information Authentication method, electronic equipment, server and information authentication system
CN109144665A (en) A kind of simulator recognition methods, identification equipment and computer-readable medium
CN110888881B (en) Picture association method and device, computer equipment and storage medium
CN109062667A (en) A kind of simulator recognition methods, identification equipment and computer-readable medium
CN108319898A (en) Alarm method, medium and the electronic equipment of coalcutter work condition abnormality
CN107766727A (en) For the device and method for allowing to conduct interviews to wrong data
CN100418111C (en) Method and system for real time early warning monitoring to bank ATM terminal safety hidden peril
CN204007847U (en) A kind of anti-cheated electronic weighing scale
CN110933113A (en) Block chain-based interactive behavior detection method, device, equipment and storage medium
CN105844559A (en) Examination method based on mobile terminal
CN112437294B (en) Method, device and equipment for testing identity hiding function and storage medium
WO2020056458A1 (en) A block chain-based system for multi-party, multistage process verification
CN101106582A (en) Disassembly status recording system for portable electronic device and disassembly status recording method
CN102509226B (en) Electric lottery certificate generating and verifying method and electric lottery marketing and management system
CN107070892A (en) The intelligent management system and Intelligent management terminal of a kind of homework
CN110457601A (en) The recognition methods and device of social account, storage medium and electronic device
Wallach On the security of ballot marking devices
CN103995779A (en) Anti-cheating method of electronic scale
CN103995779B (en) A kind of anti-cheating method of electronic scale
CN111131328B (en) Safe financial settlement method and system for block chain
CN108874847A (en) Matching process, device, electronic equipment and the storage medium of custom rule
US20110171621A1 (en) System and Method for Managing and Delivering Course Content to Mobile Devices
CN207993071U (en) Placement optimization selects tutorship system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant