CN113390499A - Digital weighing sensor anti-cheating method, sensor, equipment and storage medium - Google Patents

Digital weighing sensor anti-cheating method, sensor, equipment and storage medium Download PDF

Info

Publication number
CN113390499A
CN113390499A CN202110562066.XA CN202110562066A CN113390499A CN 113390499 A CN113390499 A CN 113390499A CN 202110562066 A CN202110562066 A CN 202110562066A CN 113390499 A CN113390499 A CN 113390499A
Authority
CN
China
Prior art keywords
data
information
sent
cheating
transmitted
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
CN202110562066.XA
Other languages
Chinese (zh)
Other versions
CN113390499B (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.)
Shandong Jinzhong Technology Group Co ltd
Original Assignee
Shandong Jinzhong Technology Group Co ltd
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 Shandong Jinzhong Technology Group Co ltd filed Critical Shandong Jinzhong Technology Group Co ltd
Priority to CN202110562066.XA priority Critical patent/CN113390499B/en
Publication of CN113390499A publication Critical patent/CN113390499A/en
Application granted granted Critical
Publication of CN113390499B publication Critical patent/CN113390499B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01GWEIGHING
    • G01G23/00Auxiliary devices for weighing apparatus
    • G01G23/01Testing or calibrating of weighing apparatus
    • G01G23/017Securing calibration against fraud
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01GWEIGHING
    • G01G23/00Auxiliary devices for weighing apparatus
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S40/00Systems for electrical power generation, transmission, distribution or end-user application management characterised by the use of communication or information technologies, or communication or information technology specific aspects supporting them
    • Y04S40/20Information technology specific aspects, e.g. CAD, simulation, modelling, system security

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention discloses an anti-cheating method, a sensor, equipment and a storage medium for a digital weighing sensor, and relates to the technical field of weighing, wherein the method comprises the following steps: acquiring check data sent by a statistical terminal, wherein the data format of the check data is the same as that of the weighing data to be sent; merging the check data and the weighing data to obtain data to be transmitted; encrypting data to be transmitted to obtain encrypted data; and sending the encrypted data to a statistical terminal. According to the invention, the check data is added into the transmission data, and when the transmission data is tampered, the check data can be modified possibly, so that the tampering condition is identified; meanwhile, the difficulty of data tampering is increased through data encryption, so that digital weighing sensing cheating is prevented, and the reliability of data is improved.

Description

Digital weighing sensor anti-cheating method, sensor, equipment and storage medium
Technical Field
The invention relates to the technical field of weighing, in particular to an anti-cheating method for a digital weighing sensor, the sensor, equipment and a storage medium.
Background
The digital weighing sensor is connected with the digital weighing module after the elastic element is pasted with a sheet, cured and post-cured and is bridged by wiring, so that the weighing sensor outputs signals with formats and regularity and can realize remote transmission. However, some bad users modify the transmitted digital information by arranging a cheating device in the communication line, and falsify the weighing result. Therefore, how to prevent the cheating of the digital weighing sensor is a problem which needs to be solved urgently.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide an anti-cheating method, a sensor, equipment and a storage medium for a digital weighing sensor, and aims to solve the technical problem that transmission data of the digital weighing sensor in the prior art are easy to tamper.
In order to achieve the above object, the present invention provides a digital weighing sensor anti-cheating method, comprising the steps of:
acquiring check data sent by a statistical terminal, wherein the data format of the check data is the same as that of the weighing data to be sent;
merging the check data and the weighing data to obtain data to be transmitted;
encrypting data to be transmitted to obtain encrypted data;
and sending the encrypted data to a statistical terminal.
Optionally, encrypting data to be transmitted to obtain encrypted data includes:
performing hash operation on data to be transmitted based on a preset hash function to obtain scattered data;
encrypting data to be transmitted based on a preset encryption function and a preset key to obtain ciphertext data;
and merging the scattered data and the ciphertext data to obtain encrypted data.
Optionally, before encrypting the data to be transmitted based on the preset encryption function and the preset key, the method further includes:
acquiring encryption information and a secret key sent by a statistical terminal;
selecting an encryption function from a preset function library according to encryption information;
and taking the encryption function as a preset encryption function and taking the key as a preset key.
Optionally, sending the encrypted data to the statistical terminal includes:
generating a random number based on a preset random number generation function;
generating information to be sent according to the encrypted data and the random number;
determining time information according to the random number;
and determining interval time according to the time information, and sending the information to be sent to the statistical terminal in an interval time mode.
Optionally, the encrypted data includes first encrypted data and second encrypted data, and the first encrypted data and the second encrypted data are encrypted in different ways.
Optionally, generating information to be sent according to the encrypted data and the random number includes:
acquiring current time information;
generating first information to be sent according to the current time information and the first encrypted data;
generating reference time information according to the current time information and the random number;
and generating second information to be transmitted according to the reference time information and the second encrypted data.
Optionally, determining an interval time according to the time information, and sending the information to be sent to the statistical terminal in an interval time manner, where the interval time includes:
determining interval time according to the time information;
sending the first information to be sent to a statistical terminal, and starting timing;
and after the timing time reaches the interval time, sending the second information to be sent to the statistical terminal.
In addition, in order to achieve the above object, the present invention also provides a digital load cell, including:
the receiving module is used for acquiring the check data sent by the statistical terminal, and the data format of the check data is the same as that of the weighing data to be sent;
the data processing module is used for merging the checking data and the weighing data to obtain data to be transmitted;
the encryption module is used for encrypting data to be transmitted to obtain encrypted data;
and the sending module is used for sending the encrypted data to the statistical terminal.
In addition, in order to achieve the above object, the present invention further provides a digital weighing sensor anti-cheating apparatus, including: the digital weighing sensor anti-cheating program is stored on the memory and can run on the processor, and when being executed by the processor, the digital weighing sensor anti-cheating program realizes the digital weighing sensor anti-cheating method.
In addition, in order to achieve the above object, the present invention further provides a storage medium having a digital weighing sensor anti-cheating program stored thereon, wherein the digital weighing sensor anti-cheating program, when executed by a processor, implements the digital weighing sensor anti-cheating method as described above.
In the invention, by acquiring the check data sent by the statistical terminal, the data format of the check data is the same as that of the weighing data to be sent; merging the check data and the weighing data to obtain data to be transmitted; encrypting data to be transmitted to obtain encrypted data; and finally, sending the encrypted data to a statistical terminal. According to the invention, the check data is added into the transmission data, and when the transmission data is tampered, the check data can be modified possibly, so that the tampering condition is identified; meanwhile, the difficulty of data tampering is increased through data encryption, so that digital weighing sensing cheating is prevented, and the reliability of data is improved.
Drawings
FIG. 1 is a schematic structural diagram of a digital load cell anti-cheating device for a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a first embodiment of an anti-cheating method for a digital weighing sensor according to the present invention;
FIG. 3 is a schematic flow chart illustrating a cheating-prevention method for a digital weighing sensor according to a second embodiment of the present invention;
FIG. 4 is a schematic flow chart illustrating a cheating-prevention method for a digital weighing sensor according to a third embodiment of the present invention;
FIG. 5 is a block diagram of a digital load cell in accordance with an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a digital weighing sensor anti-cheating device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the digital load cell anti-cheating device may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), and the optional user interface 1003 may further include a standard wired interface and a wireless interface, and the wired interface for the user interface 1003 may be a USB interface in the present invention. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory or a Non-volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in FIG. 1 does not constitute a limitation of the digital load cell anti-cheating device, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in FIG. 1, a memory 1005, identified as one type of computer storage medium, may include an operating system, a network communication module, a user interface module, and a digital load cell anti-cheating program.
In the digital load cell anti-cheating device shown in fig. 1, the network interface 1004 is mainly used for connecting other devices, such as a weighing meter or a server, and performing data communication with the weighing meter or the server; the user interface 1003 is mainly used for connecting user equipment; the digital weighing sensor anti-cheating device calls a digital weighing sensor anti-cheating program stored in the memory 1005 through the processor 1001 and executes the digital weighing sensor anti-cheating method provided by the embodiment of the invention.
Based on the hardware structure, the embodiment of the anti-cheating method of the digital weighing sensor is provided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the anti-cheating method for the digital weighing sensor of the invention, and the first embodiment of the anti-cheating method for the digital weighing sensor of the invention is provided.
In a first embodiment, a digital load cell anti-cheating method comprises the steps of:
step S10: and acquiring verification data sent by the statistical terminal, wherein the data format of the verification data is the same as that of the weighing data to be sent.
It should be understood that the implementation subject of this embodiment is the digital weighing sensor anti-cheating device, which has functions of data processing, data communication, program running, and the like, and the digital weighing sensor anti-cheating device may be a digital weighing sensor, or a weighing device including a digital weighing sensor, such as a truck scale, and of course, other devices having similar functions may also be used, and this embodiment is not limited thereto.
It should be understood that the statistical terminal refers to a terminal for receiving weighing data detected by a digital weighing sensor, and after receiving the weighing data, the statistical terminal can perform data analysis, data display and the like based on the weighing data, and is generally a weighing instrument. The digital weighing sensor and the statistical terminal can be connected in a wireless or wired mode to realize data interaction.
It should be noted that the check data may be a random number generated by the statistical terminal, and a data format of the check data is the same as a data format of the weighing data to be sent. Digital load cells are used to generate digital signals, and the load data may be represented in binary form, such as 0111; accordingly, the check data may also be represented in binary form, such as 0100.
During specific implementation, the statistical terminal can send once test data to the digital weighing sensor at regular time, and the digital weighing sensor stores the test data into the memory after receiving the check data. When weighing data transmission is required, the digital weighing sensor can read the memory to obtain verification data. Or the statistical terminal sends a plurality of check data to the digital weighing sensor, and the digital weighing sensor can randomly or according to a preset selection strategy select one check data from the plurality of check data.
Step S20: and merging the checking data and the weighing data to obtain the data to be transmitted.
It should be noted that merging the verification data with the weighing data means combining the verification data and the weighing data. Because the data format of the check data is the same as that of the weighing data, the check data and the weighing data can be directly combined, for example, if the weighing data is represented by 0111, the check data is represented by 0100; the combined data may be 01110100.
After receiving the data 01110100, the statistical terminal splits the data according to a preset rule, thereby obtaining two data, 0111 and 0100. The statistical terminal can judge whether the weighing data is credible by judging whether the verification data is correct or not, and if the verification data is correct, the weighing data is credible; otherwise, it is not trusted. Due to the fact that transmitted data are combined, after the cheating equipment directly modifies the transmitted data, verification data can be changed, and after the statistics terminal checks the verification data, the counting terminal can judge that the transmitted weighing data are not credible.
It should be noted that, the combination mode of the check data and the weighing data also adopts an interpolation mode to combine, and the check data can be inserted into each bit of the weighing data, or the check data can be inserted into the head and the tail of the weighing data. The digital weighing sensor can also switch a combined mode at regular time so as to improve the safety. The combination of the verification data and the weighing data may be set according to the user requirement, which is not limited in this embodiment.
Step S30: and encrypting the data to be transmitted to obtain encrypted data.
It can be understood that, in order to further improve the security of data transmission, the digital weighing sensor encrypts data to be transmitted before data transmission; the encryption algorithm may be a symmetric encryption algorithm or a custom algorithm, and a secret key or a random number related to the encryption process may be issued by the statistical terminal. Even if a cheater intercepts the transmission information, accurate weighing data cannot be obtained.
Step S40: and sending the encrypted data to a statistical terminal.
It should be noted that, the digital weighing sensor sends the encrypted data to the statistical terminal according to a preset communication protocol, for example, a 485 communication protocol. In addition, in order to improve the safety, the communication protocol between the digital weighing sensor and the statistical terminal can be customized.
After receiving the encrypted data, the statistical terminal decrypts the encrypted data according to a corresponding decoding algorithm to obtain transmission data; then, weighing data and checking data are extracted from the transmission data according to a data combination rule; and comparing the check data with the recorded check data, if the check data is consistent with the recorded check data, judging that the weighing data is credible, and if the check data is inconsistent with the recorded check data, judging that the weighing data is not credible. The statistical terminal can also display the analysis result, and when the analysis result is judged to be unreliable, the corresponding digital weighing sensor is marked for further checking by an administrator.
In the first embodiment, the data format of the check data is the same as that of the weighing data to be sent by acquiring the check data sent by the statistical terminal; merging the check data and the weighing data to obtain data to be transmitted; encrypting data to be transmitted to obtain encrypted data; and finally, sending the encrypted data to a statistical terminal. In the embodiment, the verification data is added into the transmission data, and when the transmission data is tampered, the verification data can be modified, so that the tampering condition is identified; meanwhile, the difficulty of data tampering is increased through data encryption, so that digital weighing sensing cheating is prevented, and the reliability of data is improved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a cheating-prevention method for a digital weighing sensor according to a second embodiment of the present invention.
In the second embodiment, in order to improve the security of encrypted data, the present embodiment mainly proposes an encryption method for data to be transmitted. Step S30 includes:
step S301: and carrying out hash operation on the data to be transmitted based on a preset hash function to obtain the scattered data.
It should be noted that the predetermined hash function may be MD5 or SHA-256 algorithm, and the hash operation may convert an input with an arbitrary length (i.e. data to be transmitted) into an output with a fixed length (i.e. hashed data). In general, the space of hashed outputs is usually much smaller than the space of inputs, different inputs may hash to the same output, so it is not possible to determine a unique input value from the output, and hashed data can be used to verify whether the data to be transmitted has been tampered with.
Step S302: and encrypting the data to be transmitted based on the preset encryption function and the preset key to obtain ciphertext data.
It can be understood that the digital weighing sensor encrypts the data to be transmitted before data transmission is carried out; the preset encryption function can be a symmetric encryption function or a custom encryption function, so that the security of data transmission is further improved.
Further, before step S302, the method may further include acquiring encryption information and a key sent by the statistical terminal; selecting an encryption function from a preset function library according to encryption information; and taking the encryption function as a preset encryption function and taking the key as a preset key. The key or random number related to the encryption process can be issued by the statistical terminal, so that the secrecy of the encryption mode is improved.
It should be noted that the encryption information may be an identification code, which is used for reference to the encryption function. The digital weighing sensor stores various encryption functions, the statistical terminal can send encryption information and keys at regular time, and the digital weighing sensor encrypts data according to the encryption functions and keys designated by the encryption information after receiving the encryption information.
Step S303: and merging the scattered data and the ciphertext data to obtain encrypted data.
It can be understood that, because the data to be transmitted includes the weighing data and the verification data, the statistical terminal only determines that the weighing data is valid when the verification data is correct. Therefore, even if a cheater intercepts the transmission data, the cheater can only modify the weighing data but cannot modify the verification data; thus, the modified hash data is different from the hash data corresponding to the original transmission data.
In the encryption, the hash data and the data to be transmitted may be encrypted together, and the encrypted data may be used as the encrypted data. The specific encryption function may be set as required, and an existing encryption manner may be adopted, or a customized encryption function may be adopted, so as to improve the security, which is not limited in this embodiment.
In a second embodiment, hash operation is performed on data to be transmitted based on a preset hash function to obtain hash data, data to be transmitted is encrypted based on a preset encryption function and a preset key to obtain ciphertext data, and the hash data and the ciphertext data are combined to obtain encrypted data. When data to be transmitted is encrypted, the hash operation is firstly carried out on the data to be transmitted, and the hash and the verification data are used for carrying out anti-tampering detection on the transmitted weighing data together, so that the cheating condition is prevented; meanwhile, the transmitted data are encrypted, so that the difficulty of cheating is improved.
Referring to fig. 4, fig. 4 is a schematic flow chart of a digital weighing sensor anti-cheating method according to a third embodiment of the invention, which is provided based on the first embodiment and the second embodiment.
In the third embodiment, in order to further improve the prevention of the data to be transmitted from being tampered, the purpose of preventing cheating is achieved by setting the sending process. Step S40 includes:
step S401: the random number is generated based on a preset random number generation function.
Step S402: and generating information to be sent according to the encrypted data and the random number.
Step S403: time information is determined from the random number.
Step S404: and determining interval time according to the time information, and sending the information to be sent to the statistical terminal in an interval time mode.
It is understood that the predetermined random number generation function may be a RAND function or the like, and the digital weighing cell may obtain a random number after running the predetermined random number generation function, and the random number may be a natural number.
In this embodiment, the data to be transmitted is transmitted to the statistical terminal multiple times, wherein the time interval of each transmission is determined according to the random number. The digital weighing sensor generates the random number and the encrypted data together to information to be sent and transmits the information to the statistical terminal, the statistical terminal takes a time interval as a verification parameter, the detected time interval is compared with the received random number, and if the time interval is consistent with the received random number, the transmitted data is judged to be credible; negative, unreliable. Of course, in order to avoid the influence of the communication state on the transmission data, the statistical terminal may set an allowable error range when the detected time interval is compared with the random number. When the error between the two is within the allowable error range, the judgment is reliable.
It should be noted that the correspondence between the random number and the actual transmission time interval may be: the value of the random number is used as the time interval for transmission in milliseconds, or the value of the random number is used as the time interval for transmission in seconds. The specific mode can be set according to the requirement, and the present embodiment is not limited to this.
In order to further improve the reliability of data transmission, in this embodiment, the encrypted data includes first encrypted data and second encrypted data, and the encryption modes used for the first encrypted data and the second encrypted data are different. The data of different encryption modes are transmitted to the statistical terminal, so that the cheating difficulty is increased.
In a specific implementation, step S402 specifically includes: acquiring current time information; generating first information to be sent according to the current time information and the first encrypted data; generating reference time information according to the current time information and the random number; and generating second information to be transmitted according to the reference time information and the second encrypted data.
It should be noted that the current time information may be clock information built in the digital weighing sensor, and in order to ensure validity of time verification, the inside of the statistical terminal should have the same clock information. During specific implementation, a timestamp is generated according to the time information, and the timestamp information is added into the sending information, so that the time information is obtained from the information directly received by the statistical terminal; wherein the time of the timestamp may be the same as the current time or delayed compared to the current time.
In the present embodiment, the number of transmissions is described as two, but the transmission may be performed twice or more. In the embodiment, encrypted data generated in a non-encryption mode and a timestamp determined according to current time information and a random number are adopted in data sent twice, wherein the time difference between the two timestamps is equal to the time interval corresponding to the random number.
In a specific implementation, step S404 is specifically: determining interval time according to the time information; sending the first information to be sent to a statistical terminal, and starting timing; and after the timing time reaches the interval time, sending the second information to be sent to the statistical terminal.
It can be understood that the data weighing sensor can firstly package the first information to be transmitted and the second information to be transmitted before transmitting, and then transmit the first information to be transmitted and the second information to be transmitted. After the first information transmission, an internal timer is started, and after the timing time of the timer reaches the interval time, the second transmission is carried out. The interval time can be as short as possible, so that the cheater spends different time when decrypting different encryption modes, the receiving time of the statistical terminal changes, and the statistical terminal judges that the received data is not credible when detecting that the time information is not equal.
In a third embodiment, a random number is generated based on a preset random number generation function; generating information to be sent according to the encrypted data and the random number; determining time information according to the random number; and determining interval time according to the time information, and sending the information to be sent to the statistical terminal in an interval time mode. The method takes the sending time of the information as the verification parameter, and a cheater usually intercepts the data first and sends the data to the statistical terminal after modifying the data when tampering the data, and the cheating mode can be identified through time verification, so that timely prevention is realized, the cheating possibility is reduced, and the reliability of data transmission is improved.
In addition, an embodiment of the present invention further provides a storage medium, where the storage medium stores a digital weighing sensor anti-cheating program, and the digital weighing sensor anti-cheating program implements the steps of the digital weighing sensor anti-cheating method described above when executed by a processor.
Since the storage medium adopts all technical solutions of all the embodiments, at least all the beneficial effects brought by the technical solutions of the embodiments are achieved, and no further description is given here.
In addition, referring to fig. 5, fig. 5 is a block diagram of a digital load cell according to an embodiment of the present invention.
In the present embodiment, the digital load cell includes:
the receiving module 10 is configured to obtain calibration data sent by the statistical terminal, where a data format of the calibration data is the same as a data format of the weighing data to be sent.
And the data processing module 20 is configured to combine the verification data and the weighing data to obtain data to be transmitted.
And the encryption module 30 is configured to encrypt data to be transmitted to obtain encrypted data.
And the sending module 40 is used for sending the encrypted data to the statistical terminal.
In the embodiment, the data format of the check data is the same as that of the weighing data to be sent by obtaining the check data sent by the statistical terminal; merging the check data and the weighing data to obtain data to be transmitted; encrypting data to be transmitted to obtain encrypted data; and finally, sending the encrypted data to a statistical terminal. In the embodiment, the verification data is added into the transmission data, and when the transmission data is tampered, the verification data can be modified, so that the tampering condition is identified; meanwhile, the difficulty of data tampering is increased through data encryption, so that digital weighing sensing cheating is prevented, and the reliability of data is improved.
In an embodiment, the encryption module 30 is further configured to perform a hash operation on the data to be transmitted based on a preset hash function to obtain hash data; encrypting data to be transmitted based on a preset encryption function and a preset key to obtain ciphertext data; and merging the scattered data and the ciphertext data to obtain encrypted data.
In an embodiment, the encryption module 30 is further configured to obtain encryption information and a key sent by the statistical terminal; selecting an encryption function from a preset function library according to encryption information; and taking the encryption function as a preset encryption function and taking the key as a preset key.
In an embodiment, the sending module 40 is further configured to generate a random number based on a preset random number generation function; generating information to be sent according to the encrypted data and the random number; determining time information according to the random number; and determining interval time according to the time information, and sending the information to be sent to the statistical terminal in an interval time mode.
In one embodiment, the encrypted data includes first encrypted data and second encrypted data, and the first encrypted data and the second encrypted data are encrypted in different ways.
In an embodiment, the sending module 40 is further configured to obtain current time information; generating first information to be sent according to the current time information and the first encrypted data; generating reference time information according to the current time information and the random number; and generating second information to be transmitted according to the reference time information and the second encrypted data.
In an embodiment, the sending module 40 is further configured to determine an interval time according to the time information; sending the first information to be sent to a statistical terminal, and starting timing; and after the timing time reaches the interval time, sending the second information to be sent to the statistical terminal.
Other embodiments or specific implementation manners of the anti-cheating device of the digital weighing sensor can refer to the above method embodiments, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order, but rather the words first, second, third, etc. are to be interpreted as names.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be substantially implemented or a part contributing to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g., a Read Only Memory (ROM)/Random Access Memory (RAM), a magnetic disk, an optical disk), and includes several instructions for enabling a terminal device (which may be a weighing instrument, a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. The anti-cheating method for the digital weighing sensor is characterized by comprising the following steps of:
acquiring check data sent by a statistical terminal, wherein the data format of the check data is the same as that of weighing data to be sent;
merging the check data and the weighing data to obtain data to be transmitted;
encrypting the data to be transmitted to obtain encrypted data;
and sending the encrypted data to the statistical terminal.
2. The digital load cell anti-cheating method according to claim 1, wherein said encrypting said data to be transmitted to obtain encrypted data comprises:
performing hash operation on the data to be transmitted based on a preset hash function to obtain scattered data;
encrypting the data to be transmitted based on a preset encryption function and a preset secret key to obtain ciphertext data;
and merging the scattered data and the ciphertext data to obtain encrypted data.
3. The digital weighing sensor anti-cheating method according to claim 2, wherein before encrypting the data to be transmitted based on a preset encryption function and a preset key, the method further comprises:
acquiring encryption information and a secret key sent by the statistical terminal;
selecting an encryption function from a preset function library according to the encryption information;
and taking the encryption function as a preset encryption function, and taking the key as a preset key.
4. The digital load cell anti-cheating method of any of claims 1-3, wherein said sending said encrypted data to said statistical terminal comprises:
generating a random number based on a preset random number generation function;
generating information to be sent according to the encrypted data and the random number;
determining time information according to the random number;
and determining interval time according to the time information, and sending the information to be sent to the statistical terminal in a mode of adopting the interval time.
5. The digital load cell anti-cheating method of claim 4, wherein the encrypted data includes first encrypted data and second encrypted data, the first encrypted data and the second encrypted data being encrypted differently.
6. The digital load cell anti-cheating method of claim 5, wherein said generating information to be transmitted based on said encrypted data and said random number comprises:
acquiring current time information;
generating first information to be sent according to the current time information and the first encrypted data;
generating reference time information according to the current time information and the random number;
and generating second information to be transmitted according to the reference time information and the second encrypted data.
7. The digital weighing sensor anti-cheating method according to claim 6, wherein the determining an interval time according to the time information to send the information to be sent to the statistical terminal in the interval time manner comprises:
determining interval time according to the time information;
sending the first information to be sent to the statistical terminal, and starting timing;
and after the timing time reaches the interval time, sending the second information to be sent to the statistical terminal.
8. A digital load cell, comprising:
the receiving module is used for acquiring check data sent by the statistical terminal, and the data format of the check data is the same as that of the weighing data to be sent;
the data processing module is used for merging the check data and the weighing data to obtain data to be transmitted;
the encryption module is used for encrypting the data to be transmitted to obtain encrypted data;
and the sending module is used for sending the encrypted data to the statistical terminal.
9. A digital weighing sensor anti-cheating apparatus, comprising: a memory, a processor, and a digital load cell anti-cheating program stored on the memory and executable on the processor, the digital load cell anti-cheating program, when executed by the processor, implementing the digital load cell anti-cheating method of any of claims 1-7.
10. A storage medium having stored thereon a digital load cell anti-cheating program that, when executed by a processor, implements a digital load cell anti-cheating method as recited in any one of claims 1-7.
CN202110562066.XA 2021-05-21 2021-05-21 Anti-cheating method for digital weighing sensor, equipment and storage medium Active CN113390499B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110562066.XA CN113390499B (en) 2021-05-21 2021-05-21 Anti-cheating method for digital weighing sensor, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110562066.XA CN113390499B (en) 2021-05-21 2021-05-21 Anti-cheating method for digital weighing sensor, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113390499A true CN113390499A (en) 2021-09-14
CN113390499B CN113390499B (en) 2023-09-08

Family

ID=77618738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110562066.XA Active CN113390499B (en) 2021-05-21 2021-05-21 Anti-cheating method for digital weighing sensor, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113390499B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007142504A (en) * 2005-11-14 2007-06-07 Kotohaco:Kk Information processing system
CN101432980A (en) * 2006-05-01 2009-05-13 未来科技株式会社 Time sync-type otp generation device and method for mobile phones
CN102176199A (en) * 2011-01-28 2011-09-07 中国科学院西安光学精密机械研究所 Truth random number producing method and device
CN102437910A (en) * 2011-10-18 2012-05-02 国家超级计算深圳中心(深圳云计算中心) Data encryption/decryption checking method and system
CN102664893A (en) * 2012-04-23 2012-09-12 重庆理工大学 Adaptive retransmission and signature segmented embedding data transmission method
CN102833259A (en) * 2012-09-03 2012-12-19 中科华核电技术研究院有限公司 Tamper-proof detection method for intersystem data, as well as method and apparatus for generating check code
CN104180881A (en) * 2014-08-22 2014-12-03 济南金钟电子衡器股份有限公司 Anti-cheating high-precision intelligent digital weighing module and anti-cheating method thereof
CN105806457A (en) * 2014-12-31 2016-07-27 航天信息股份有限公司 Cheating-prevention wagon balance weighing device and method
CN106549748A (en) * 2015-09-21 2017-03-29 天地融科技股份有限公司 A kind of data transmission method and data handling equipment
CN108650082A (en) * 2018-05-08 2018-10-12 腾讯科技(深圳)有限公司 The encryption and verification method of information to be verified, relevant apparatus and storage medium
CN108847930A (en) * 2018-06-05 2018-11-20 深圳市中电数通智慧安全科技股份有限公司 A kind of data transmission method, device and fire-fighting system
CN111751776A (en) * 2020-07-03 2020-10-09 国网四川省电力公司电力科学研究院 Time verification system and method for digital relay protection tester
CN112653719A (en) * 2019-10-12 2021-04-13 深圳市奇虎智能科技有限公司 Automobile information safety storage method and device, electronic equipment and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007142504A (en) * 2005-11-14 2007-06-07 Kotohaco:Kk Information processing system
CN101432980A (en) * 2006-05-01 2009-05-13 未来科技株式会社 Time sync-type otp generation device and method for mobile phones
CN102176199A (en) * 2011-01-28 2011-09-07 中国科学院西安光学精密机械研究所 Truth random number producing method and device
CN102437910A (en) * 2011-10-18 2012-05-02 国家超级计算深圳中心(深圳云计算中心) Data encryption/decryption checking method and system
CN102664893A (en) * 2012-04-23 2012-09-12 重庆理工大学 Adaptive retransmission and signature segmented embedding data transmission method
CN102833259A (en) * 2012-09-03 2012-12-19 中科华核电技术研究院有限公司 Tamper-proof detection method for intersystem data, as well as method and apparatus for generating check code
CN104180881A (en) * 2014-08-22 2014-12-03 济南金钟电子衡器股份有限公司 Anti-cheating high-precision intelligent digital weighing module and anti-cheating method thereof
CN105806457A (en) * 2014-12-31 2016-07-27 航天信息股份有限公司 Cheating-prevention wagon balance weighing device and method
CN106549748A (en) * 2015-09-21 2017-03-29 天地融科技股份有限公司 A kind of data transmission method and data handling equipment
CN108650082A (en) * 2018-05-08 2018-10-12 腾讯科技(深圳)有限公司 The encryption and verification method of information to be verified, relevant apparatus and storage medium
CN108847930A (en) * 2018-06-05 2018-11-20 深圳市中电数通智慧安全科技股份有限公司 A kind of data transmission method, device and fire-fighting system
CN112653719A (en) * 2019-10-12 2021-04-13 深圳市奇虎智能科技有限公司 Automobile information safety storage method and device, electronic equipment and storage medium
CN111751776A (en) * 2020-07-03 2020-10-09 国网四川省电力公司电力科学研究院 Time verification system and method for digital relay protection tester

Also Published As

Publication number Publication date
CN113390499B (en) 2023-09-08

Similar Documents

Publication Publication Date Title
CN110493197B (en) Login processing method and related equipment
KR101296483B1 (en) Validation and/or authentication of a device for communication with a network
CN101444063B (en) Secure time functionality for a wireless device
US20170180137A1 (en) Providing security in an intelligent electronic device
CN106055936A (en) Method and device for encryption/decryption of executable program data package
JP6387908B2 (en) Authentication system
CN111769955B (en) Electronic signature generation method and device, electronic signature verification method and device and related components
CN111343204B (en) Control command obfuscation method, apparatus and computer-readable storage medium
CN110995720A (en) Encryption method, device, host terminal and encryption chip
CN107548542B (en) User authentication method with enhanced integrity and security
JP3646055B2 (en) Time signature apparatus, signing method thereof, and time signature system
CN115915131B (en) Vehicle key bidirectional encryption authentication method and system, vehicle binding device and NFC card
CN113390499B (en) Anti-cheating method for digital weighing sensor, equipment and storage medium
CN116419217A (en) OTA data upgrading method, system, equipment and storage medium
CN116011042A (en) Data storage method, device, system, computer equipment and storage medium
KR102551592B1 (en) Method for preventing mileage tampering of car and mileage recording device using the same
KR20210158813A (en) Remote resetting to factory default settings, a method and a device
TWI590637B (en) Genuine counterfeit identification device and authentic counterfeit identification method
CN105323287B (en) Third-party application program login method and system
US20230308260A1 (en) Apparatus for Receiving Cryptographically Protected Communication Data and Method for Receiving Cryptographically Protected Communication Data
CN114285584B (en) Encryption algorithm experiment system
US7287161B2 (en) Method and system for testing a program, and a device
US20240073028A1 (en) Anti-counterfeiting verifying method, hardware apparatus, system, electronic device, and storage medium
CN112231724B (en) Public number data processing method, device, server and storage medium
US20240187247A1 (en) Providing security in an intelligent electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant