CN106484363A - A kind of ammeter meter is used for the method for producing random number - Google Patents

A kind of ammeter meter is used for the method for producing random number Download PDF

Info

Publication number
CN106484363A
CN106484363A CN201610881741.4A CN201610881741A CN106484363A CN 106484363 A CN106484363 A CN 106484363A CN 201610881741 A CN201610881741 A CN 201610881741A CN 106484363 A CN106484363 A CN 106484363A
Authority
CN
China
Prior art keywords
random number
data
ammeter
cycle
present
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.)
Pending
Application number
CN201610881741.4A
Other languages
Chinese (zh)
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.)
Ningbo Sanxing Medical and Electric Co Ltd
Original Assignee
Ningbo Sanxing Medical and Electric 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 Ningbo Sanxing Medical and Electric Co Ltd filed Critical Ningbo Sanxing Medical and Electric Co Ltd
Priority to CN201610881741.4A priority Critical patent/CN106484363A/en
Publication of CN106484363A publication Critical patent/CN106484363A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/58Random or pseudo-random number generators
    • G06F7/588Random number generators, i.e. based on natural stochastic processes
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R22/00Arrangements for measuring time integral of electric power or current, e.g. electricity meters
    • G01R22/06Arrangements for measuring time integral of electric power or current, e.g. electricity meters by electronic methods
    • G01R22/061Details of electronic electricity meters
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R22/00Arrangements for measuring time integral of electric power or current, e.g. electricity meters
    • G01R22/06Arrangements for measuring time integral of electric power or current, e.g. electricity meters by electronic methods
    • G01R22/10Arrangements for measuring time integral of electric power or current, e.g. electricity meters by electronic methods using digital techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Power Engineering (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a kind of ammeter meter is used for the method for producing random number, using ammeter ADC gathered data, the gathered data in cumulative integer cycle, take last position of accumulated value, for randomly generating firmly data, the random number of 1 t can be produced every time, the random number of m position is such as wanted, is then acquired m cycle.Compared with prior art, the present invention is without extra hardware and in the case of not lifting cost, realized using ADC sampled data hard random, improve security, using the technical scheme in the present invention, attacker cannot find reasonably and reduce attack interval, and therefore the present invention has high security.

Description

A kind of ammeter meter is used for the method for producing random number
Technical field
The present invention relates to a kind of encryption method, more particularly to a kind of ammeter meter is used for the method for producing random number.
Background technology
If communication adopts plaintext transmission, there is the risk that spied upon, distort, for the safety that transmits, communication needs to add Close, and encrypting then involves the generation of key, and generating key needs random number generation mechanism.Now typically produced using two methods Raw random number:The first, use time is generated with pseudo-random algorithm as random seed;Second, using hardware random chip Or the chip comprising hardware chance mechanism.
Use time is breakneck behavior as pseudo-random seed using pseudo-random algorithm, and the attack of attacker is permissible Narrow down to the interval of very little.Truly random can be produced using hardware chance mechanism, but if simply with CPU's Behavior attacks interval possibility to produce hardware and similarly have at random to be reduced by attacker.And hard random possibility truly The raising of hardware cost can be brought.
Content of the invention
The present invention is directed to deficiency of the prior art, there is provided a kind of ammeter meter is used for the method for producing random number, In the case of not increasing hardware cost, the security of communication is improved.
In order to solve above-mentioned technical problem, the present invention is addressed by following technical proposals:A kind of ammeter meter is used for The method for producing random number, including,
Step one, electric meter system are initialized, and opening ADC carries out ammeter data collection, is input into the digit of the random number for needing For m;
Step 2, detection voltage frequency are f, then the cycle is 1/f;
Step 3, the overtone order for being input into analytical sampling voltage are n time, it is determined that 2*n point of each cycle data sampling;
Step 4, the every continuous 2*n data of generation are the sampling of cycle data, are then entered by Fourier transform mode Row voltage effective value, current effective value, active power, reactive power, harmonic wave etc. are calculated;
Step 5,2*n data of each cycle, be added together, take last position, be random number, now generate one with Machine number;
Step 6, repeats m step 5, produces altogether m position random number;
Step 7, completes the acquisition of m position random number, quits work, ammeter proceed ammeter data collection, repeat step two to Step 4.
The present invention without extra hardware and in the case of not lifting cost, realized using ADC sampled data hard At random, security is improved, using the technical scheme in the present invention, attacker cannot find reasonably and reduce attack interval, therefore The present invention has high security.
Description of the drawings
Fig. 1 is step schematic diagram of the present invention.
Specific embodiment
The present invention is described in further detail with specific embodiment below in conjunction with the accompanying drawings:As shown in Figure 1, Yi Zhong electricity Table meter is used for the method for producing random number, including,
Step one, electric meter system are initialized, and opening ADC carries out ammeter data collection, is input into the digit of the random number for needing For m;
Step 2, detection voltage frequency are f, then the cycle is 1/f;
Step 3, the overtone order for being input into analytical sampling voltage are n time, it is determined that 2*n point of each cycle data sampling, then ADC is 2*n*f according to sample rate(Sampling interval is 1/ (2*n*f))Equal interval sampling goes down;
Step 4, the every continuous 2*n data of generation are the sampling of cycle data, are then entered by Fourier transform mode Row voltage effective value, current effective value, active power, reactive power, harmonic wave etc. are calculated;
Step 5,2*n data of each cycle, be added together, take last position, be random number, now generate one with Machine number;
Step 6, repeats m step 5, produces altogether m position random number;
Step 7, completes the acquisition of m position random number, quits work, ammeter proceed ammeter data collection, repeat step two to Step 4.
This device utilizes ammeter ADC gathered data, adds up the integer cycle(1 cycle is typically taken)Collection number According to taking last position of accumulated value, be to randomly generate firmly data, the random number of 1 can be produced every time, such as want the random of m position Number, then be acquired m cycle.
Using the ADC sampling module gathered data of ammeter, add up the integer cycle(1 cycle is typically taken)Collection number According to taking last position of accumulated value, be to randomly generate firmly data.In this way, 1 random data can be produced every time.
Random data is produced using the method, in the case of added up in power frequency 50Hz and using 1 cycle, can produce within one second Raw 50 random data.Under experimental result, the method produces 0,1 data being evenly distributed, and distribution is good, meets safe wanting Ask.
Can be acquired using non-integer, it is also possible to produce random data, but with respect to number of cycles, immediately Effect can reduce, and security is relatively low with respect to number of cycles.
The key point of the present invention and protection point are the voltage data using ADC sampling integer cycle, tire out and take last Position produces the random number of a position.So as to, in the case of hardware cost is not increased, the ammeter that is sampled based on ADC can have one kind The method of the generation random number of safety.
Protection scope of the present invention includes but is not limited to embodiment of above, and protection scope of the present invention is with claims It is defined, any replacement is readily apparent that by those skilled in the art that this technology is made, deformation, improvement each fall within the present invention's Protection domain.
The present invention without extra hardware and in the case of not lifting cost, realized using ADC sampled data hard At random, security is improved, using the technical scheme in the present invention, attacker cannot find reasonably and reduce attack interval, therefore The present invention has high security.

Claims (1)

1. a kind of ammeter meter is used for the method for producing random number, it is characterised in that:Including,
Step one, electric meter system are initialized, and opening ADC carries out ammeter data collection, is input into the digit of the random number for needing For m;
Step 2, detection voltage frequency are f, then the cycle is 1/f;
Step 3, the overtone order for being input into analytical sampling voltage are n time, it is determined that 2*n point of each cycle data sampling;
Step 4, the every continuous 2*n data of generation are the sampling of cycle data, are then entered by Fourier transform mode Row voltage effective value, current effective value, active power, reactive power, harmonic wave etc. are calculated;
Step 5,2*n data of each cycle, be added together, take last position, be random number, now generate one with Machine number;
Step 6, repeats m step 5, produces altogether m position random number;
Step 7, completes the acquisition of m position random number, quits work, ammeter proceed ammeter data collection, repeat step two to Step 4.
CN201610881741.4A 2016-10-10 2016-10-10 A kind of ammeter meter is used for the method for producing random number Pending CN106484363A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610881741.4A CN106484363A (en) 2016-10-10 2016-10-10 A kind of ammeter meter is used for the method for producing random number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610881741.4A CN106484363A (en) 2016-10-10 2016-10-10 A kind of ammeter meter is used for the method for producing random number

Publications (1)

Publication Number Publication Date
CN106484363A true CN106484363A (en) 2017-03-08

Family

ID=58269189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610881741.4A Pending CN106484363A (en) 2016-10-10 2016-10-10 A kind of ammeter meter is used for the method for producing random number

Country Status (1)

Country Link
CN (1) CN106484363A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277646A (en) * 2022-09-29 2022-11-01 河北振创电子科技有限公司 Method and device for automatically setting MAC address of Ethernet data acquisition instrument

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010031630A1 (en) * 2008-09-22 2010-03-25 Siemens Aktiengesellschaft Apparatus and method for generating a random bit sequence
CN102998523A (en) * 2012-12-25 2013-03-27 上海贝岭股份有限公司 Harmonic power calculating method for electric energy measuring
TW201405419A (en) * 2012-07-19 2014-02-01 Nuvoton Technology Corp Circuit and method for generating random number
CN103617020A (en) * 2013-12-23 2014-03-05 乐得科技有限公司 Method and equipment for generating random number in application program
CN105067882A (en) * 2015-07-24 2015-11-18 许继电气股份有限公司 Power amplitude measuring method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010031630A1 (en) * 2008-09-22 2010-03-25 Siemens Aktiengesellschaft Apparatus and method for generating a random bit sequence
TW201405419A (en) * 2012-07-19 2014-02-01 Nuvoton Technology Corp Circuit and method for generating random number
CN102998523A (en) * 2012-12-25 2013-03-27 上海贝岭股份有限公司 Harmonic power calculating method for electric energy measuring
CN103617020A (en) * 2013-12-23 2014-03-05 乐得科技有限公司 Method and equipment for generating random number in application program
CN105067882A (en) * 2015-07-24 2015-11-18 许继电气股份有限公司 Power amplitude measuring method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张建忠: "基于宽带混沌激光熵源实现高速真随机数的产生", 《中国博士学位论文全文数据库 信息科技辑》 *
陶维青等: "ESAM安全模块在预付费电表中的应用研究", 《电测与仪表》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277646A (en) * 2022-09-29 2022-11-01 河北振创电子科技有限公司 Method and device for automatically setting MAC address of Ethernet data acquisition instrument

Similar Documents

Publication Publication Date Title
Wang et al. Chaotic encryption algorithm based on alternant of stream cipher and block cipher
CN103731258B (en) Generate the method and apparatus of key
Sun et al. An image encryption scheme based on modified logistic map
CN108696354A (en) A kind of quantum asymmetric encryption equipment using quantum random number
CN107306180A (en) Ciphering and deciphering device and its power analysis defence method
CN104052590A (en) Frequency-domain analysis method based on side channel correlation energy analysis
CN110034928B (en) Electric energy metering information transmission device and method
CN106484363A (en) A kind of ammeter meter is used for the method for producing random number
Rahimov et al. Improving middle square method RNG using chaotic map
Li et al. Look-up table based FHE system for privacy preserving anomaly detection in smart grids
Fujdiak et al. Design of low-power random number generator using signal quantization error in smart grid
CN103888245A (en) S box randomized method and system for smart card
CN103916617B (en) A kind of interference signal generation method and device
CN104317552B (en) Real random number generator and method, true random number key cryptographic systems and method
CN102932147A (en) Elliptic curve cipher timing attacking method based on hidden markov model (HMM)
CN112994887B (en) Communication encryption method and system suitable for power Internet of things terminal
CN105376047B (en) Security module protection method and device
Cho et al. Entropy test for complexity in chaotic time series
Ergün Cryptanalysis and improvement of a chaos based random number generator
CN108710561A (en) A kind of power supply burr fault attacks Evaluation Platform for real random number generator
Rohith et al. Image encryption and decryption using combined key sequence of Logistic map and Lozi map
CN102394747B (en) Method for rapidly embedding plaintext on one point of elliptic curve
Wang et al. ARM realization of storage device encryption based on chaos and AES algorithm
Zhang et al. Fast random number generation with spontaneous emission noise of a single-mode semiconductor laser
Sathya et al. Random number generation based on sensor with decimation method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170308