Embodiment
The utility model is described in further detail below in conjunction with the drawings and specific embodiments.
At first introduce the utility model at the cheating prevention electronic weighing apparatus calibrating device, as shown in Figure 1, comprise control module, storage unit, display unit, push-button unit and Power Management Unit, also comprise the unit of swiping the card, authentication ' unit, USB (universal serial bus) and standard serial interface simultaneously, said memory cells, display unit, push-button unit, the unit of swiping the card, authentication ' unit, USB (universal serial bus) are star with standard serial interface and control module and directly are connected, and Power Management Unit and other each unit and interface are electrically connected to its management and working power is provided.Selectable, above-mentioned electronic weighing apparatus calibrating device also comprises and control module direct-connected real-time clock unit and network interface.
Below, also can implement the utility model for the ease of those of ordinary skill in the art's understanding, the concrete condition of above-mentioned cheating prevention electronic weighing apparatus calibrating device (abbreviation caliberating device) each unit and interface is done further detailed description:
Control module: be used to realize to other unit of caliberating device and the control of interface.Can select single-chip microcomputer, microprocessor (MCU) or central processing unit (CPU), present embodiment is selected the microprocessor chip of MICROCHIP for use, and the said firm's chip has advantages such as high security and high reliability.
Storage unit: relevant program and the data message that is used for depositing calibration process.Present embodiment adopts independently eeprom memory.If the storer of control module inside is enough big, storage unit can no longer adopt extra storer, the storer of control module inside is got final product as storage unit use of the present utility model, and the function of control module and storage unit just can concentrate on microprocessor, single-chip microcomputer or the central processing unit and realize like this.
Display unit: be used for user of service's output and display message to caliberating device.Display unit adopts LCD display in the present embodiment, and it adopts the dot matrix gray-scale screens, passes through I
2C bus or UART bus (general serial data bus) and control module communicate.
Push-button unit: the user of service who is used for caliberating device is to its input information.Push-button unit is provided with a four direction key and an options button and a cancel key and has 6 keys altogether in the present embodiment, further also can consider to add numerical key and radix point, and push-button unit is connected with control module by GPIO (general I/O) bus.Push-button unit and display unit provide the human-computer interaction function of caliberating device together.
The unit of swiping the card: the identity information that is used to read the caliberating device user of service.Present embodiment adopts radio-frequency (RF) identification (RFID) reader, it can be transferred to the information that has in the electronic tag of user of service's identity information in the control module and the authentication ' unit authentication of comparing by UART bus (general serial data bus), thereby realize identification and control of authority, prevent illegal demarcation the user of service.
Authentication ' unit: in order to the identity information of the user of service of caliberating device and caliberating device self is compared authentication and encrypting.In the present embodiment, authentication ' unit is formed by the software that has comprised authentication procedure and encipheror with as the independently storer of software carrier, and authentication ' unit is connected with control module by the UART bus.The authentication unit of the authentication ' unit of caliberating device and electronic scale to be calibrated is finished the encryption and decryption to identity information He other data message of the user of service of caliberating device and caliberating device self respectively, and both are corresponding relation and form cryptographic keys and decryption key respectively.If data message is legal, authentication by authentication ' unit, electronic scale is just opened caliberating device to its restriction of demarcating, to electronic scale, the data of all transmission are all carried out encryption and decryption through by both party demarcation unit and authentication unit to service data by the input of the push-button unit of caliberating device and one-way transmission in the calibration process.In this case, single electronic scale or caliberating device all can't independently be finished calibration process, have fundamentally prevented illegal demarcation.
User of service's identity information has mainly comprised identification number, charge time and has demarcated time, and the identity information of caliberating device has comprised the calibration facility identification number, and the identity information of electronic scale mainly comprises the identification number of the electronic scale of having demarcated.Specifying information can be provided with as required.Authentication ' unit in the caliberating device also has the function of storing data automatically information, each information such as user of service who demarcates, the identity information of caliberating device and electronic scale and other operation information as running time, number of operations etc. all can be preserved automatically and can outwards be transferred to the metrological supervision and administration platform.For preventing that the demarcation personnel from repeatedly demarcating, every electronic scale all has the number of times of the demarcation upper limit, surpasses to demarcate upper limit palpus by the open authority of metrological supervision and administration platform.
The hardware of authentication ' unit adopts independently storer, also can shared above-mentioned eeprom memory, like this, just storage unit and authentication ' unit can be become one on hardware.
USB (universal serial bus): be used for being connected of caliberating device and computer.Present embodiment adopts USB interface, the data in the caliberating device can be reached in the computer by this interface, crosses network by the computer expert again and is uploaded to the metrological supervision and administration platform.
Standard serial interface: be used for the two-way communication between caliberating device and the electronic scale.Adopt RS-232 interface in the present embodiment, can be by this interface caliberating device to caliberating device user of service and caliberating device identity information and other data message after electronic scale transmission to be calibrated is encrypted, electronic scale can and store caliberating device into its identity information and operation information reverse transfer.
Power Management Unit: in order to be electrically connected and to manage and to provide working power with other each unit and interface.Mainly contain three kinds of power supply modes, the one, USB power supply, the 2nd, lithium battery power supply, the 3rd, external power supply power supply.If adopt the lithium battery power supply of 8.4V and 2.2A, overall power can be used more than ten hours according to a preliminary estimate continuously.
Real-time clock unit: with thinking that caliberating device provides real-time time.In the present embodiment, the real-time clock unit adopts independently module, and it passes through I
2The C bus is communicated by letter with control module.Selectable, if the accuracy requirement to real-time time is not high, also can consider to use the real-time clock (RTC) of control module inside, the function of control module and real-time clock unit just can concentrate on microprocessor, single-chip microcomputer or the central processing unit and realize like this, so this unit is a selectable unit.
Network interface: in order to the data in the storage unit of caliberating device directly are transferred on the metrological supervision and administration platform.Network interface can adopt Ethernet interface (RJ-45 interface) or/and the GPRS network interface.Because the information in the storage unit can also reach in the computer by USB (universal serial bus), cross network by the computer expert again and be uploaded to the metrological supervision and administration platform, thereby this interface is optional interface.
Understand cheating prevention electronic weighing apparatus described in the utility model (abbreviation electronic scale) for the ease of those of ordinary skill in the art, below the utility model is described in detail, as shown in Figure 2, cheating prevention electronic weighing apparatus, comprise control module, the weighing and sensing unit, display unit, push-button unit and Power Management Unit, also comprise authentication unit and standard serial port interface, above-mentioned weighing and sensing unit, display unit, push-button unit, authentication unit is star with standard serial port interface and control module and directly is connected, and Power Management Unit and other each unit and interface are electrically connected to its management and working power is provided.
Below, the concrete condition of each unit of above-mentioned electronic scale and interface is done further detailed description:
Control module: be used to realize to other unit of electronic scale and the control of interface.Can select single-chip microcomputer, microprocessor (MCU) or central processing unit (CPU).
Weighing and sensing unit: be used for claiming the weight of article to change electric signal into waiting.It comprises to be used to hold waits to claim article a support, support is connected with piezoelectric sensor, wait to claim the variation of Item Weight can cause the miniature deformation of sensor, thereby sensor outputs to the magnitude of voltage of control module also can and then be changed, and mainboard is determined the size of Item Weight according to the variation of magnitude of voltage.A weighing and sensing unit output voltage detects and handles for control module.
Display unit: be used for user of service's output and display message to electronic scale.The dot matrix that display unit adopts the LED charactron to constitute in the present embodiment is formed, and passes through I
2C bus or UART bus (general serial data bus) and control module communicate.Display unit shows testee weight, input unit price information, total price information, temporal information, various prompting sign as overweight sign of prompting and version identifier etc.
Push-button unit: be used for providing input interface to electronic scale.Wait to claim the input and the various additional function of the unit price of object all to finish by operation to push-button unit as the use of storage, accumulative total, zero clearing, peeling etc.
Authentication unit: be decrypted and authenticate in order to the data message that caliberating device is transmitted.If the data message that can transmit caliberating device smoothly is decrypted, identify the identity information of user of service and caliberating device, then by authentication, electronic scale to its restriction of demarcating, at this moment just can carry out proving operation to electronic scale by the push-button unit of caliberating device with regard to open caliberating device.In the present embodiment, authentication unit exists with the form of software, and its hardware carrier is the storer that control module carries, and control module and authentication unit just can be integrated into same single-chip microcomputer, microprocessor or central processing unit like this.Certainly, authentication unit also can have independently storer as hardware carrier, but this not preferred scheme.
Standard serial port interface: be used to realize the two-way communication between electronic weighing apparatus calibrating device and the electronic scale.Adopt RS-232 interface in the present embodiment, can be by this interface caliberating device to caliberating device user of service and caliberating device identity information and other data message after electronic scale transmission to be calibrated is encrypted, electronic scale can and store caliberating device into its identity information and operation information reverse transfer.
Power Management Unit: in order to be electrically connected and to provide working power with other each unit and interface.Mainly contain three kinds of power supply modes, the one, USB power supply, the 2nd, lithium battery power supply, the 3rd, external power supply power supply.If adopt the lithium battery power supply of 8.4V and 2.2A, overall power can be used more than ten hours according to a preliminary estimate continuously.
Further understand electronic scale described in the utility model for the ease of those of ordinary skill in the art, introduce the cheating prevention electronic weighing apparatus calibrating system of mainly forming (abbreviation electronic weighing apparatus calibrating system) below by cheating prevention electronic weighing apparatus calibrating device and cheating prevention electronic weighing apparatus.As Fig. 1, Fig. 2 and shown in Figure 3, cheating prevention electronic weighing apparatus calibrating system, comprise electronic scale and electronic weighing apparatus calibrating device, also comprise the metrological supervision and administration platform, described metrological supervision and administration platform is to be made of electronic scale, caliberating device and demarcation personnel's various identity informations and database that operation information constitutes and the computer or the server that carry these databases, and it sets up direct or indirect data communication connection by network and caliberating device;
Described electronic scale comprises control module, weighing and sensing unit, display unit, push-button unit, authentication unit and standard serial port interface and Power Management Unit, and the weighing and sensing unit of above-mentioned electronic scale, display unit, push-button unit, authentication unit are star with the standard serial port interface with the control module of electronic scale and directly are connected;
Described electronic weighing apparatus calibrating device comprises control module, storage unit, display unit, push-button unit, the unit of swiping the card, authentication ' unit, USB (universal serial bus), standard serial interface and Power Management Unit, and the storage unit of above-mentioned electronic weighing apparatus calibrating device, display unit, push-button unit, the unit of swiping the card, authentication ' unit, USB (universal serial bus) are star with standard serial interface with the control module of electronic scale and directly are connected.
The Power Management Unit of electronic scale and caliberating device is electrically connected to its management with other unit and interface respectively and working power is provided.
Above-mentioned electronic scale is connected by its standard serial interface separately with caliberating device realizes intercommunication mutually.The authentication unit of electronic scale and the authentication ' unit of caliberating device are finished the encryption and decryption to identity information He other data message of user of service and caliberating device respectively, and both are corresponding relation and form cryptographic keys and decryption key respectively.
Selectable, above-mentioned electronic weighing apparatus calibrating device also comprises and control module direct-connected real-time clock unit or network interface.
Respectively each parts of electronic scale and electronic weighing apparatus calibrating device have been done detailed introduction owing to aforementioned, thereby details this part content of each parts has been not described in detail, the description before please refer to.
Further understand electronic scale described in the utility model for the ease of those of ordinary skill in the art, introduce below the utility model at the scaling method scaling method of electronic weighing apparatus calibrating system (be called for short) of cheating prevention electronic weighing apparatus calibrating system, comprise the steps:
(1) electronic scale is connected by USB (universal serial bus) with caliberating device, caliberating device and metrological supervision and administration platform are by USB interface or network interface indirectly or directly be connected.
(2) unlocking electronic weighing apparatus and caliberating device, the user of service of caliberating device swipes the card on the unit of swiping the card of caliberating device by its electronic tag that carries and carries out user of service's authentication.
Caliberating device reads electronic labeling information by the unit of swiping the card, and the information transmission that electronic tag is carried is to the authentication of comparing of its control module, have only electronic tag and corresponding user of service thereof by authentication just to have the authority of using caliberating device, so just prevented that unauthorized person from illegally demarcating.
(3) user of service's that the authentication ' unit of caliberating device will be by authentication identity information, identity information and other operation information of caliberating device are encrypted, and data encrypted information is transferred to electronic scale by USB (universal serial bus), simultaneously with described data information memory on the storage unit of caliberating device.
(4) authentication unit of electronic scale is decrypted the data message that the caliberating device that receives transmits, if can decipher smoothly, identify the identity information of user of service and caliberating device, then by authentication, electronic scale is just opened caliberating device to its restriction of demarcating.
At this moment, the user of service of caliberating device can carry out proving operation to electronic scale by the push-button unit of caliberating device.
(5) user of service of caliberating device demarcates electronic scale, the demarcation personnel import the demarcation that electronic scale is finished in various instructions by the push-button unit of caliberating device to electronic scale, and the identity information of the electronic scale after demarcation finished and operation information reverse transfer are in the storage unit of caliberating device.
Its detailed process is: by determining parameter W
Demarcate(weight of the standard test weight that timing signal is used) and R
Difference(difference of the interior code value when the interior code value at zero point and placement standard test weight) demarcates, and its simple formula of weighing is:
W
Weigh=(R
Weigh-R
0) * W
Demarcate/ R
Difference
W wherein
WeighPut weight, R on the scale pan when weighing
WeighThe interior code value of the weight of putting on the scale pan when weighing, R
0Interior code value when being in sky scale pan state for electronic scales.Below be the operating process at this scaling method: allow electronic scale be in sky scale pan state earlier, caliberating device reads the interior code value R of current AD sampling from electronic scale by standard serial interface then
0(being the interior code value at zero point); Place a standard test weight W again
Demarcate(as 10kg/15kg/20kg) obtains the interior code value R of an AD sampling again to the scale pan
nObtain R
Difference=R
n-R
0With W
DemarcateAnd R
DifferenceValue be transferred to electronic scale, allow its record store, as the parameter of weighing later on, finish demarcation.
(6) data message of caliberating device after calibration mass is finished on the metrological supervision and administration platform.After demarcation is finished, all related data information that this is demarcated, a series of information such as device number, range, precision, producer, calibrating maintenance record, factory number, demarcation personnel and calibration facility numbering as electronic scale, all will temporarily be stored on the storage unit of caliberating device, when network or computer are gone up in connection, all data messages are uploaded in the background data base of metrological supervision and administration platform by network and computer.If the information data on the caliberating device stores full, then this equipment can not continue to use, and needs can demarcate after all data upload next time.The metrological supervision and administration platform just can also can be found the problem source, thereby effectively prevent illegal demarcation very soon to each demarcation control that exercises supervision when going wrong like this.
Further understand electronic weighing apparatus calibrating device described in the utility model for the ease of those of ordinary skill in the art, introduce metrological supervision and administration below and partly utilize the utility model to prevent that illegal flow process of demarcating is described in detail.As shown in Figure 4,
1. metrological service sets up the metrological supervision and administration platform, and this platform is by comprising various identity informations of electronic scale and proving operation database of information and forming as the computer or the server of database carrier.
2. electronic scale manufacturer sets up the electronic scale maintenance center that electronic scale sale by agent merchant and process producer or metrological service authorize in various places cities and counties.Electronic scale manufacturer is to the wholesale product of electronic scale sale by agent merchant, and when product bug occurring, the electronic scale user then sends into electronic scale the maintenance center maintenance.
3. maintenance qualification and supervision are authorized to the maintenance personal of maintenance center by metrological service.Carry out technical training simultaneously.
4. metrological service is to the weighing apparatus product qualification certification of producer.
5. metrological service is with maintenance personal's identity typing weighing apparatus management database of authorizing.
6. the electronic scale sale by agent merchant that producer is provided of metrological service puts on record and typing metrological supervision and administration platform, regularly electronic scale sale by agent merchant is made regular check on to determine that it does not have illegal demarcation behavior.
7. producer is uploaded to the metrological supervision and administration platform with the product data information of dispatching from the factory.
8. manufacturer is wholesale to electronic scale sale by agent merchant with weighing apparatus; Electronic scale sale by agent merchant gives electronic scale user such as country fair, eating and drinking establishment and hypermarket or the like final user with production marketing again.
9. metrological service carries out regular visit to the electronic scale user at any time, to check the accuracy of electronic scale weighing.
10. after product broke down, the electronic scale user delivered weighing apparatus to the maintenance center and handles.
11. the maintenance personal of maintenance center is connected electronic scale by the electronic weighing apparatus calibrating device with network or computer, the maintenance personal swipes the card by electronic tag and obtains caliberating device user of service's legal identity, verify the legal identity of electronic scale simultaneously by caliberating device, if caliberating device user of service and electronic scale all have legal identity, then enter the calibrating procedure to electronic scale, nothing is blocked or identity is defective then can not demarcate.
12. after demarcation is finished, caliberating device will be uploaded to the metrological supervision and administration platform with the identity information and the operation information of this time demarcation automatically by computer or network.
When article were weighed, the applied electronic scale of the utility model was operated as electronic scales with general electronic scale and is weighed.When being to demarcate with the general electronic scale key distinction, general electronic scale enters calibrating procedure by interpolation short-circuit block or input password and demarcates, and it can finish demarcation alone.And the applied electronic scale of the utility model is to be triggered and carried out proving operation by the caliberating device of external dedicated, and the electronic scale method is finished demarcation alone, must be by the caliberating device of outside.Metrological service just can effectively monitor electronic scale by setting up the metrological supervision and administration platform, prevents illegal appearance of demarcating, thereby effectively prevents to come behavior that electronic scale is practised fraud by the illegal demarcation to electronic scale.
Those of ordinary skill in the art will appreciate that embodiment described here is in order to help reader understanding's principle of the present utility model, should to be understood that protection domain of the present utility model is not limited to such special statement and embodiment.Those of ordinary skill in the art can make various other various concrete distortion and combinations that do not break away from the utility model essence according to disclosed these technology enlightenments of the utility model, and these distortion and combination are still in protection domain of the present utility model.