CN109408029A - The method of car networking lower sensor generation random number - Google Patents

The method of car networking lower sensor generation random number Download PDF

Info

Publication number
CN109408029A
CN109408029A CN201811212055.3A CN201811212055A CN109408029A CN 109408029 A CN109408029 A CN 109408029A CN 201811212055 A CN201811212055 A CN 201811212055A CN 109408029 A CN109408029 A CN 109408029A
Authority
CN
China
Prior art keywords
random number
data
poll
sensor
ecu
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
CN201811212055.3A
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.)
Nanjing Automobile Group Corp
SAIC Maxus Vehicle Co Ltd Nanjing Branch
Original Assignee
Nanjing Automobile Group Corp
SAIC Maxus Vehicle Co Ltd Nanjing Branch
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 Nanjing Automobile Group Corp, SAIC Maxus Vehicle Co Ltd Nanjing Branch filed Critical Nanjing Automobile Group Corp
Priority to CN201811212055.3A priority Critical patent/CN109408029A/en
Publication of CN109408029A publication Critical patent/CN109408029A/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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention discloses a kind of methods that car networking lower sensor generates random number, carry out in accordance with the following steps: establishing a system model: including interior sensor, poll ECU, random number buffer area, entropy pool;Collected data are transferred to poll ECU by interior sensor;Poll ECU receives the data that interior sensor transmissions are come, and carries out three step process to data, obtains random number source and be stored in entropy pool;Poll ECU calls polymerization and folding operation by treated, and number source generates new random numerical example;Interior random numerical example generates random number buffer area by reduction function, exports random number.The present invention realizes the extraction of random number, improves the quality of random number, to improve the safety of interior communication.

Description

The method of car networking lower sensor generation random number
Technical field:
The invention belongs to technical fields such as car networking, sensor, random numbers, in particular to a kind of car networking lower sensor is raw At the method for random number.
Background technique:
Random number typically refer to by the array with unpredictability and the acquisition of probabilistic source at sequence, such as it is more The secondary statistical result for throwing coin is a kind of random number sequence.With the fast development of internet and computer technology, at random Application of the number in the field has obtained development in an all-round way, such as information security, analog simulation, digital signature, intelligence computation, digital display circuit Built In Self Test survey, cryptographic key generate etc. require to use random number.
No matter in practice using real random number generator or pseudo-random generator, it is necessary to have two it is basic Functional unit, one is uncertainty unit, it is so-called in the source and informatics of whole system unpredictability Entropy is the signal source that stochastic source is used as in random number, also becomes entropy source.The other is deterministic algorithm, it by with The random signal that machine source provides further generates uniform, independence, data stabilization output sequence.General entropy source be entirely with In machine number generation system obtain randomness exclusive source, therefore good entropy source for a randomizer statistics, Safety, data stability play a crucial role.
With the fast development of microcomputer and the communication technology, the development of modern sensor gone on microprocessor, The only way that microcomputer and the communication technology combine.Common sensor type has pressure resistance type, strain-type, capacitive sensing Device, magnetoelectric sensor, piezoelectric transducer etc..In view of factors such as temperature, humidity, parasitic capacitances, the data of sensor have There is unpredictability, this kind of data are ideal random number entropy sources.
With the continuous development of automotive engineering, interior communication security is had been to be concerned by more and more people.As security module In an important member, the selection of random number often decides the quality of security system, and one is chosen under car networking more Independently, the random number of unpredictability is more and more important.
The information disclosed in the background technology section is intended only to increase the understanding to general background of the invention, without answering When being considered as recognizing or imply that the information constitutes the prior art already known to those of ordinary skill in the art in any form.
Summary of the invention:
The purpose of the present invention is to provide a kind of methods that car networking lower sensor generates random number, to overcome above-mentioned existing There is the defects of technology.
To achieve the above object, the present invention provides a kind of methods that car networking lower sensor generates random number, according to such as Lower step carries out:
S1 establishes a system model: the main tool including interior sensor, as acquisition data;Poll ECU makees For the primary control for handling data;Random number buffer area stores the random number source finally obtained;Entropy pool is original as storing Random number source;
Collected data are transferred to poll ECU by S2, interior sensor;
S3, poll ECU receive the data that interior sensor transmissions are come, and carry out three step process to data, obtain random Number source is simultaneously stored in entropy pool;
S4, poll ECU call polymerization and folding operation by treated, and number source generates new random numerical example;
S5, interior random numerical example generate random number buffer area by reduction function, export random number.
The technical solution that the present invention further limits are as follows:
Preferably, in above-mentioned technical proposal, in the step S1 and S2, interior sensor includes vehicle speed sensor, temperature Sensor, acceleration transducer.
Preferably, in above-mentioned technical proposal, in the step S3, three step process specifically:
Cleaning sensor is transmitted the data come by S3.1: poll ECU, and main target is to clear data in sequence slowly The key data of drift, these drift datas represent any mode that can be tracked in interior sensor, strongly limit Hostile control;
S3.2: sensing data is after the cleaning of step 3.1, and progress is flushing cycle, by further converting number According to becoming continuous random sequence;
S3.3: after the flushing Jing Guo step 3.2, existing data sequence has been to stablize safety, can be divided It solves and is used as random number source.
Preferably, in above-mentioned technical proposal, step S4 specifically:
Step S3 is formed by random number source and condensed together by S4.1, and obtained result is stored in processing sequence, etc. It is to be processed;
S4.2, after being collected into the random numerical example of predetermined quantity, the Bit String that poll ECU creates a regular length is used for Folding operation;
S4.3 is formed by processing sequence from step S4.1 and pops up top element, is incorporated into the bit of step S4.2 In string, allow Bit String that there is position indicator pointer;
Then S4.4 carries out xor operation to each in top element, once the process is completed, the new ratio that will be obtained Spy's string is sent to reduction function.
Preferably, in above-mentioned technical proposal, in step S5, poll ECU is after performing reduction function, by obtained biography The random numerical example of sensor is put into the tail portion of random number output pool, forms random number output pool, to export on the head of output pool Random number.
Compared with prior art, the invention has the following beneficial effects:
The present invention realizes the extraction of random number, improves the quality of random number, to improve the safety of interior communication.
Detailed description of the invention:
Fig. 1 is overall design drawing of the invention;
Fig. 2 is three step process flow chart in the present invention;
Fig. 3 is that polymerization folds and reduce functional flow diagram in the present invention.
Specific embodiment:
Specific embodiments of the present invention will be described in detail below, it is to be understood that protection scope of the present invention is not It is restricted by specific implementation.
Unless otherwise explicitly stated, otherwise in entire disclosure and claims, term " includes " or its change Changing such as "comprising" or " including " etc. will be understood to comprise stated element or component, and not exclude other members Part or other component parts.
Method of the invention is basic as application system using existing interior sensor, electronic control unit poll ECU, entropy pool, Mainly include following five part:
1. establishing a system model
Including interior sensor, electronic control unit poll ECU, random number buffer area and entropy pool, interior sensor is made For the main tool for acquiring data, primary control of the poll ECU as processing data, random number buffer area, which is that storage is last, to be obtained The random number source arrived, entropy pool is as storage original random number source.
2. interior sensor transmissions data are to poll ECU
Interior sensor includes vehicle speed sensor, temperature sensor, acceleration transducer etc., these interior sensors will The data being collected into are transferred to poll ECU as initial entropy source, and ECU to be polled is waited to handle.
3. poll ECU carries out three step process to data
Poll ECU receives the data that interior sensor transmissions are come, and carries out three step process to data, obtains more random Entropy source, as shown in Figure 2, the specific steps are as follows:
Cleaning sensor is transmitted the data come by the first step, poll ECU, and main target is to clear data to delay in sequence The key data of slow drift, these drift datas represent any mode that can be tracked in interior sensor, these are counted Hostile control is strongly limited according to selecting away to remove.The simplest method of non-stationary is to discriminate between data in removal data set, Obtain their derivative.For current data set G, the first derivative of acceleration, i.e. acceleration is utilized, if data are Height non-stationary, then additive process can be repeated by constantly obtaining higher derivative, the threshold value until reaching setting.
Second step, sensor after the cleaning of the first step so that available data it is more more independent than initial data, can not be pre- Survey, but still have predictable data pattern, followed by be flushing cycle, by further change data, make its at For continuous random sequence.In the step, this method does not manipulate data directly, instead converts data to N point Fast Fourier Transform, convert data to complicated index:Herein, in order to effective " upset " data, the imaginary number of k is replaced with random value.
Third step, after the flushing Jing Guo previous step, existing data sequence has been to stablize safety, can be divided It solves and is used as random number source.
4. polymerization and folding operation is called to generate new random numerical example
Poll ECU calls polymerization and folding operation that interior random number data is generated to new sensor samples, such as Fig. 3 institute Show, the specific steps are as follows:
The first step, by the random number G after three step process1、G2、..、GkIt condenses together, uses E=G1G2..GkIndicate polymerization Afterwards as a result, by E be stored in processing queue A in.
Second step, once being collected into enough random numerical examples, poll ECU will create the bit that a regular length is l The T that goes here and there is used for folding operation.
Third step pops up top element from processing sequence A, is incorporated into Bit String T, and Bit String T is allowed to have position Pointer P.Then, we execute following operation for i-th bit data in E:
WhereinIt is step-by-step exclusive or.For multiple sample E1、E2...EkThe process is repeated, once this process is completed, T quilt It is sent to reduction function.
5. reducing function generates random number output pool
Reduction function is inputted from both sensor output pool and folder function, further to mix non-temporal upper part Bit.Reduction function mainly ensures that reduced function is difficult to reverse, and prevents the random number reconstruct of input, it is ensured that random number source is not Predictability.It is as follows to reduce the main operation of function:
Input for reduced function is three n blocks, T, H1, and H2 corresponds respectively to two n of data and head newly handled Position block.It calculates firstInput of the l as substitution table, to obtain output S.The length of S bitwise can be with Changed according to the parameter of generation table.Then H2, S, _ H1 are linked together, and result is attached to the end of buffer area, with The sequence and parity of bit in the buffer are removed, to obtain random number output pool, exports random number.
The aforementioned description to specific exemplary embodiment of the invention is in order to illustrate and illustration purpose.These descriptions It is not wishing to limit the invention to disclosed precise forms, and it will be apparent that according to the above instruction, can much be changed And variation.The purpose of selecting and describing the exemplary embodiment is that explaining specific principle of the invention and its actually answering With so that those skilled in the art can be realized and utilize a variety of different exemplary implementation schemes of the invention and Various chooses and changes.The scope of the present invention is intended to be limited by claims and its equivalents.

Claims (5)

1. a kind of method that car networking lower sensor generates random number, it is characterised in that: carry out in accordance with the following steps:
S1 establishes a system model: including interior sensor, poll ECU, random number buffer area, entropy pool;
Collected data are transferred to poll ECU by S2, interior sensor;
S3, poll ECU receive the data that interior sensor transmissions are come, and carry out three step process to data, obtain more random Entropy source;
S4, poll ECU call polymerization and folding operation by treated, and data generate new random numerical example;
S5, interior random numerical example generate sensor random number output pool by reduction function, export random number.
2. the method that car networking lower sensor according to claim 1 generates random number, it is characterised in that: the step S1 In S2, interior sensor includes vehicle speed sensor, temperature sensor, acceleration transducer.
3. the method that car networking lower sensor according to claim 1 generates random number, it is characterised in that: the step S3 In, three step process specifically:
Cleaning sensor is transmitted the data come by S3.1: poll ECU, and main target is the slow drift in sequence that clears data Key data, these drift datas represent any mode that can be tracked in interior sensor, strongly limit hostile Control;
S3.2: for sensing data after the cleaning of step 3.1, progress is flushing cycle, by further change data, is made It becomes continuous random sequence;
S3.3: after the flushing Jing Guo step 3.2, existing data sequence has been to stablize safety, can be decomposed simultaneously As random number source.
4. the method that car networking lower sensor according to claim 1 generates random number, it is characterised in that: the step S4 Specifically:
Step S3 is formed by random number source and condensed together by S4.1, and obtained result is stored in processing sequence, at waiting Reason;
S4.2, after being collected into the random numerical example of predetermined quantity, poll ECU creates the Bit String of a regular length for folding Operation;
S4.3 is formed by processing sequence from step S4.1 and pops up top element, is incorporated into the Bit String of step S4.2, Allow Bit String that there is position indicator pointer;
Then S4.4 carries out xor operation to each in top element, once the process is completed, the new Bit String that will be obtained Reduction function is sent to go.
5. the method that car networking lower sensor according to claim 1 generates random number, it is characterised in that: in step S5, The random numerical example of obtained sensor is put into the tail portion of random number output pool, shape after performing reduction function by poll ECU At random number output pool, to export random number on the head of output pool.
CN201811212055.3A 2018-10-17 2018-10-17 The method of car networking lower sensor generation random number Pending CN109408029A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811212055.3A CN109408029A (en) 2018-10-17 2018-10-17 The method of car networking lower sensor generation random number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811212055.3A CN109408029A (en) 2018-10-17 2018-10-17 The method of car networking lower sensor generation random number

Publications (1)

Publication Number Publication Date
CN109408029A true CN109408029A (en) 2019-03-01

Family

ID=65468499

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811212055.3A Pending CN109408029A (en) 2018-10-17 2018-10-17 The method of car networking lower sensor generation random number

Country Status (1)

Country Link
CN (1) CN109408029A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112912838A (en) * 2020-05-27 2021-06-04 华为技术有限公司 Random number generation device and method
GB2607943A (en) * 2021-06-17 2022-12-21 Haldex Brake Prod Ab A method and system for seed generation

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064974A (en) * 2013-01-10 2013-04-24 东南大学 Method for cleaning traffic flow data on basis of time-space analysis
CN104317551A (en) * 2014-10-17 2015-01-28 北京德加才科技有限公司 Ultrahigh-safety true random number generation method and ultrahigh-safety true random number generation system
CN107527313A (en) * 2016-06-20 2017-12-29 同济大学 User Activity mode division and attribute estimation method
CN108206735A (en) * 2016-12-16 2018-06-26 波音公司 The method and system of password round key is generated by bit mixer
CN108491184A (en) * 2018-03-16 2018-09-04 数安时代科技股份有限公司 Entropy source acquisition method, computer equipment and the storage medium of randomizer

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064974A (en) * 2013-01-10 2013-04-24 东南大学 Method for cleaning traffic flow data on basis of time-space analysis
CN104317551A (en) * 2014-10-17 2015-01-28 北京德加才科技有限公司 Ultrahigh-safety true random number generation method and ultrahigh-safety true random number generation system
CN107527313A (en) * 2016-06-20 2017-12-29 同济大学 User Activity mode division and attribute estimation method
CN108206735A (en) * 2016-12-16 2018-06-26 波音公司 The method and system of password round key is generated by bit mixer
CN108491184A (en) * 2018-03-16 2018-09-04 数安时代科技股份有限公司 Entropy source acquisition method, computer equipment and the storage medium of randomizer

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112912838A (en) * 2020-05-27 2021-06-04 华为技术有限公司 Random number generation device and method
WO2021237538A1 (en) * 2020-05-27 2021-12-02 华为技术有限公司 Apparatus and method for generating random numbers
CN112912838B (en) * 2020-05-27 2022-04-22 华为技术有限公司 Random number generation device and method
GB2607943A (en) * 2021-06-17 2022-12-21 Haldex Brake Prod Ab A method and system for seed generation

Similar Documents

Publication Publication Date Title
CN106487359B (en) The building method of Morphologic filters based on self-adapting multi-dimension AVG-Hat transformation
CN109117801A (en) Method, apparatus, terminal and the computer readable storage medium of recognition of face
CN107368820B (en) Refined gesture recognition method, device and equipment
CN109408029A (en) The method of car networking lower sensor generation random number
CN111700718B (en) Method and device for recognizing holding gesture, artificial limb and readable storage medium
US11853862B2 (en) Method, digital electronic circuit and system for unsupervised detection of repeating patterns in a series of events
Price et al. Lower bounds for adaptive sparse recovery
JP2020184309A (en) Neural network acceleration device and operation method thereof
CN105611114A (en) Full-digital multi-convolution core-convolution processing chip for AER (Address-Event Representation) image sensor
De Bernardi et al. Pseudo-random number generation using generative adversarial networks
CN102244520B (en) Blind recognition method of convolutional coding parameters
CN111985414B (en) Joint position determining method and device
CN109241490A (en) A kind of X11 Dynamic Hashing Schemes and device towards block chain
CN106940688A (en) A kind of Mathematical Modeling modeling method of EMD chaff components identification
CN109063128A (en) Integrated Density Estimator device window parameter optimization method, device and terminal device
CN110188407A (en) The determination method and device of fluid flow parameter in porous media
CN102201882A (en) Blind identification method for coding parameters of linear block codes
CN107016292A (en) Prevent the electronic circuit eavesdropped by power analysis and the method for preventing eavesdropping
JPWO2020162048A5 (en)
CN109413036A (en) Sensitive information outflow monitoring method, device and server extremely
CN102750445A (en) Failure prediction method of multivariate gray model improved based on Complexification Simpson formula
CN112507955B (en) Method and system for identifying fine motion of hands of baby
CN107657256A (en) The more character locatings of image end to end and matching process based on deep neural network
CN105376052B (en) Symmetric iterative block coding method and corresponding device
CN108491563B (en) Signal envelope extraction method based on sparse reconstruction optimization algorithm

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190301

RJ01 Rejection of invention patent application after publication