Random number generating device based on mechanical structure

文档序号:1815467 发布日期:2021-11-09 浏览:10次 中文

阅读说明:本技术 一种基于机械结构的随机数生成装置 (Random number generating device based on mechanical structure ) 是由 高志伟 于 2021-06-28 设计创作,主要内容包括:本发明公开一种基于机械结构的随机数生成装置,包括基座、可旋转地设置于基座上的旋转件、可往复运动地设置于基座上并用于驱动旋转件进行断续旋转的驱动件、用于检测旋转件的旋转状态并根据其每次旋转停止后的旋转角度产生对应电参量的检测器,以及与检测器信号连接、用于将其产生的电参量转化为数字信号的随机数生成器。如此,由于机械结构在现实中的非理想特性,旋转件在每次被驱动件带动旋转至停止后的旋转角度均存在细微区别,从而在一定范围内形成随机角度数值,检测器即根据旋转件每次旋转停止后的不同旋转角度产生不同的电参量,再通过随机数生成器将电参量转化为数字信号,能够方便、容易地生成随机数,降低生产成本和能耗。(The invention discloses a random number generating device based on a mechanical structure, which comprises a base, a rotating piece, a driving piece, a detector and a random number generator, wherein the rotating piece is rotatably arranged on the base, the driving piece is arranged on the base in a reciprocating mode and is used for driving the rotating piece to rotate intermittently, the detector is used for detecting the rotating state of the rotating piece and generating corresponding electric parameters according to the rotating angle after the rotating piece stops rotating each time, and the random number generator is connected with the detector in a signal mode and is used for converting the generated electric parameters into digital signals. So, because mechanical structure is in the nonideal characteristic of reality, the rotating member is driven at every turn by the driving piece and is rotated to the rotation angle after stopping all to there is slight difference, thereby form random angle numerical value in certain extent, the detector produces different electric parameters according to the different rotation angles after the rotating member rotation stops at every turn, rethread random number generator turns into digital signal with electric parameter, can conveniently, easily generate the random number, reduction in production cost and energy consumption.)

1. The random number generating device based on the mechanical structure is characterized by comprising a base (1), a rotating piece (2) rotatably arranged on the base (1), a driving piece (3) which is arranged on the base (1) in a reciprocating mode and used for driving the rotating piece (2) to rotate intermittently, a detector (4) used for detecting the rotating state of the rotating piece (2) and generating corresponding electric parameters according to the rotating angle after the rotation of the rotating piece is stopped every time, and a random number generator (5) which is in signal connection with the detector (4) and used for converting the generated electric parameters into digital signals.

2. The mechanical structure based random number generating device according to claim 1, wherein the rotating member (2) is a flywheel or a gear, and the detector (4) is configured to detect a rotation state of a rotating shaft of the rotating member (2).

3. The mechanical structure-based random number generating device according to claim 2, wherein a rotation shaft of the rotating member (2) is rotatably inserted in the detector (4).

4. The mechanical-structure-based random number generation device according to claim 3, wherein the detector (4) is a potentiometer for generating a corresponding resistance value or a corresponding voltage value according to a rotation angle of the rotating member (2).

5. The mechanical structure-based random number generating device according to claim 2, wherein the driving member (3) comprises a moving rod (31) linearly movably disposed on the base (1), and a protruding tooth (32) disposed on a rod body of the moving rod (31) and used for abutting against the gear teeth of the rotating member (2) during a single-stroke movement of the moving rod to drive the rotating member to perform a single rotation.

6. The mechanical structure-based random number generating device according to claim 5, wherein the driving member (3) further comprises a spring (33) having one end connected to the base (1) and the other end connected to the body of the motion rod (31), and the extension and contraction direction of the spring (33) is parallel to the motion direction of the motion rod (31).

7. The mechanical-structure-based random number generating apparatus according to claim 6, wherein a connecting table (34) is provided on a body of the moving rod (31), and the other end of the spring (33) is connected to a wall surface of the connecting table (34).

8. The mechanical structure-based random number generating device according to claim 7, wherein a guide rail (6) for sliding in cooperation with the moving bar (31) is provided on the base (1).

9. The mechanical structure-based random number generating device according to claim 8, wherein a stopper (7) for abutting against the connection table (34) to limit a maximum stroke of the moving lever (31) is provided on the base (1).

10. The mechanical structure based random number generating device according to any of claims 1-9, wherein said random number generator (5) comprises an ADC module (51) in signal connection with said detector (4), a value generating module (52) in signal connection with said ADC module (51).

Technical Field

The invention relates to the technical field of chip design, in particular to a random number generation device based on a mechanical structure.

Background

With the development of the electronic technology in China, more and more electronic devices have been widely used.

Servers are important components in electronic devices, and are devices that provide computing services. Since the server needs to respond to and process the service request, the server has the capability of assuming and securing the service. The server is divided into a file server, a database server, an application program server, a WEB server and the like according to different service types provided by the server. The main components of the server include a processor, a hard disk, a memory, a system bus, etc., which are similar to a general computer architecture, but have higher requirements on processing capability, stability, reliability, security, expandability, manageability, etc.

In the big data era, a large number of IT devices are centrally placed in racks of a data center. These data centers include various types of servers, storage, switches, and a large number of cabinets and other infrastructure. Each IT device is composed of various hardware board cards, such as a computing module, a storage module, a case module, a heat dissipation module, a security verification module and the like.

At present, the information security of a server is more and more emphasized, the reliability, timeliness and comprehensiveness of data security protection are more and more examined, encryption and security chips are widely applied to the server, and random number generation is the key link of an encryption technology, a security verification technology and an anti-theft technology.

In the prior art, a method for generating random numbers in a server is generally implemented by an electromagnetic structure, that is, a magnetization reversal phenomenon caused by a certain probability after a spin-polarized current is injected into a magnetic material is utilized, and the spin-polarized current is injected to obtain the occurrence probability of the magnetization reversal phenomenon, so that the physical phenomenon is utilized to generate real random numbers. However, the technical difficulty of realizing random number generation through the electromagnetic structure is high, the generation period is long, and an additional set of electromagnetic system needs to be erected on the mainboard, so that the circuit structure becomes complex, the production cost is high, and the energy consumption is high.

Therefore, how to conveniently and easily generate random numbers and reduce production cost and energy consumption is a technical problem faced by those skilled in the art.

Disclosure of Invention

The invention aims to provide a random number generating device based on a mechanical structure, which can conveniently and easily generate random numbers and reduce the production cost and energy consumption.

In order to solve the above technical problems, the present invention provides a random number generating device based on a mechanical structure, which includes a base, a rotating member rotatably disposed on the base, a driving member reciprocally disposed on the base for driving the rotating member to intermittently rotate, a detector for detecting a rotation state of the rotating member and generating a corresponding electrical parameter according to a rotation angle after each rotation of the rotating member is stopped, and a random number generator in signal connection with the detector for converting the generated electrical parameter into a digital signal.

Preferably, the rotating member is a flywheel or a gear, and the detector is configured to detect a rotation state of a rotating shaft of the rotating member.

Preferably, the rotation shaft of the rotation member is rotatably inserted into the detector.

Preferably, the detector is a potentiometer for generating a corresponding resistance value or a corresponding voltage value according to a rotation angle of the rotating member.

Preferably, the driving member includes a moving rod linearly movably disposed on the base, and a protruding tooth disposed on a rod body of the moving rod and used for abutting against a gear tooth of the rotating member in a single-pass movement process of the moving rod to drive the rotating member to perform a single rotation.

Preferably, the driving member further includes a spring having one end connected to the base and the other end connected to the rod body of the motion rod, and the extension direction of the spring is parallel to the motion direction of the motion rod.

Preferably, a connecting table is arranged on the rod body of the motion rod, and the other end of the spring is connected to the wall surface of the connecting table.

Preferably, a guide sliding rail used for being matched with the moving rod to slide is arranged on the base.

Preferably, the base is provided with a limiting block which is used for abutting against the connecting table to limit the maximum stroke of the moving rod.

Preferably, the random number generator comprises an ADC module in signal connection with the detector, a value generation module in signal connection with the ADC module.

The invention provides a random number generating device based on a mechanical structure. Wherein, the base is the major structure, mainly used installs other spare parts. The rotating member is provided on the base and can perform a rotating motion on the base. The driving part is arranged on the base and can perform directional reciprocating motion on the base, and the driving part is mainly used for driving the rotating part to perform intermittent rotation in the motion process, namely discontinuous rotation, and specifically drives the rotating part to complete one directional rotating motion in the one reciprocating motion process of the driving part. The detector is arranged on the base and is mainly used for detecting the rotation state of the rotating piece and generating corresponding electric parameters according to the rotation stop angle of the rotating piece after the single directional rotation motion is finished. The random number generator is in signal connection with the detector and is mainly used for converting the electrical parameter generated by the detector into a corresponding digital signal so as to generate a numerical value. Thus, due to the non-ideal characteristics of the mechanical structure in reality, such as the friction influence of the rotating part during rotation, the motion state deviation of the driving part in each reciprocating motion, the driving state deviation of the driving part to the rotating part and the like, the rotating angle of the rotating part driven by the driving part to rotate to a stopped state each time is slightly different, so that a random angle value is formed in a certain range, the detector generates different electric parameters according to the different rotating angles of the rotating part after each rotation stop, and the electric parameters are converted into digital signals through the random number generator to output random numbers. Compared with the prior art, the random number generating device based on the mechanical structure provided by the invention has the advantages that the rotating piece generates random motion parameter changes in each rotating process by utilizing the non-ideal characteristic of the mechanical structure, the random number can be conveniently and easily generated, and the production cost and the energy consumption are reduced.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.

Fig. 1 is a schematic overall structure diagram of an embodiment of the present invention.

Fig. 2 is a schematic view of the motion bar in a one-way maximum stroke state.

Fig. 3 is a schematic view of a connection structure of the rotary member and the detector.

Fig. 4 is a schematic circuit diagram of the random number generator.

Wherein, in fig. 1-4:

the device comprises a base-1, a rotating piece-2, a driving piece-3, a detector-4, a random number generator-5, a guide slide rail-6 and a limiting block-7;

the device comprises a moving rod-31, convex teeth-32, a spring-33, a connecting table-34, an ADC module-51 and a numerical value generation module-52.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Referring to fig. 1, fig. 1 is a schematic overall structure diagram of an embodiment of the present invention.

In one embodiment of the present invention, the random number generator based on mechanical structure mainly comprises a base 1, a rotating member 2, a driving member 3, a detector 4 and a random number generator 5.

Wherein, base 1 is the major structure, mainly used installs other spare parts.

The rotary member 2 is provided on the base 1 and can perform a rotary motion on the base 1.

The driving part 3 is arranged on the base 1 and can perform directional reciprocating motion on the base 1, and is mainly used for driving the rotating part 2 to perform intermittent rotation, namely discontinuous rotation, in the motion process, and specifically, the driving part 3 drives the rotating part 2 to complete one directional rotating motion in the one reciprocating motion process.

The detector 4 is arranged on the base 1, and is mainly used for detecting the rotation state of the rotating member 2 and generating a corresponding electrical parameter according to the rotation stop angle of the rotating member 2 after the single directional rotation motion is finished.

The random number generator 5 is in signal connection with the detector 4 and is mainly used for converting the electrical quantity generated by the detector 4 into a corresponding digital signal, thereby generating a numerical value.

Thus, due to the non-ideal characteristics of the mechanical structure in reality, such as the friction effect of the rotating member 2 during rotation, the deviation of the motion state of the driving member 3 during each reciprocating motion, the deviation of the driving state of the driving member 3 to the rotating member 2, the subsequent deviation of the elastic force of the spring 33, the deviation of the stroke of the moving rod 31, the deviation of the collision angle between the convex teeth 32 and the gear teeth, etc., the rotation angle of the rotating member 2 after being driven to rotate to stop by the driving member 3 each time is slightly different, so that a random angle value is formed within a certain range, the detector 4 generates different electrical parameters according to the different rotation angles of the rotating member 2 after each rotation stop, and then converts the electrical parameters into digital signals through the random number generator 5 to output random numbers.

Compared with the prior art, the random number generating device based on the mechanical structure provided by the embodiment utilizes the non-ideal characteristic of the mechanical structure to enable the rotating member 2 to generate random motion parameter changes in each rotating process, so that the random number can be conveniently and easily generated, and the production cost and the energy consumption are reduced.

In a preferred embodiment with respect to the rotary member 2, the rotary member 2 is embodied as a flywheel or a gear. Meanwhile, the rotating member 2 is connected with a rotating shaft, and the detector 4 is mainly used for detecting the rotating state of the rotating shaft of the rotating member 2 so as to accurately judge the rotating angle of the rotating member 2 after the single rotation is stopped. Of course, the detector 4 may directly detect the rotation state of the rotary member 2 itself.

As shown in fig. 3, fig. 3 is a schematic view of a connection structure of the rotating member 2 and the detector 4.

Further, in order to improve the detection accuracy of the detector 4, in the present embodiment, the rotary member 2 is specifically attached to the detector 4, and the rotation shaft of the rotary member 2 is inserted into the housing of the detector 4 and maintains the rotational degree of freedom. With this arrangement, the rotating shaft of the rotating member 2 can rotate in the housing of the detector 4, and the proximity detection can be performed by a relevant sensor in the housing of the detector 4, such as a photoelectric sensor, a displacement sensor, an image sensor, and the like.

In a preferred embodiment with respect to the detector 4, the detector 4 is embodied as a potentiometer in order to facilitate the generation of a corresponding electrical quantity depending on the detected angle of rotation of the rotary member 2. The potentiometer is an adjustable electronic element, has an action principle similar to that of a sliding rheostat, and can adjust the specific wiring position of a built-in circuit according to the change of the rotation angle of the rotating piece 2, so that a corresponding component generates sensitive resistance value change or voltage value change.

In a preferred embodiment with respect to the driving member 3, the driving member 3 mainly comprises a movement rod 31 and a cam 32. Wherein the motion bar 31 can perform a linear reciprocating motion on the base 1 and is located at a position of one side of the rotation member 2. Generally, the linear motion direction of the motion bar 31 is kept in line with the length direction thereof, and the end of the motion bar 31 is usually driven by a micro motor. The convex teeth 32 are arranged on the rod body of the motion rod 31, protrude out of the side wall of the rod body of the motion rod 31 by a certain height, and are mainly used for abutting collision with the gear teeth on the rotating part 2 in the single-pass motion process of the motion rod 31 so as to form a rotating moment on the rotating part 2 through abutting acting force and drive the rotating part 2 to perform single directional rotation.

Fig. 2 is a schematic view of the state in which the moving rod 31 is at the maximum stroke for one trip, as shown in fig. 2.

Further, considering that the motion rod 31 needs to perform a linear reciprocating motion to drive the rotating member 2 to rotate during each motion, in order to facilitate the automatic return of the motion rod 31, a spring 33 is added to the driving member 3 in this embodiment. Specifically, one end of the spring 33 is connected to the base 1, and the other end is connected to the rod body of the moving rod 31, and the elastic expansion and contraction direction of the spring 33 is parallel to the moving direction of the moving rod 31. So configured, when the motion bar 31 reaches the limit position in a single movement (right movement as shown), the spring 33 will be stretched (or compressed) to the limit, and then automatically return to the initial position under the action of the elastic force.

Generally, considering that the teeth 32 provided on the moving rod 31 need to make abutting collision with the teeth on the rotary member 2, the surface of the teeth 32 may be provided with smoothly transiting wedge teeth, so as to slightly and slowly collide with the teeth on the rotary member 2 during the forward stroke of the moving rod 31, and further slightly rotate the rotary member 2 clockwise, and then rapidly and heavily collide with the teeth on the rotary member 2 under the elastic force of the spring 33 during the backward stroke, and further rotate the rotary member 2 counterclockwise by a large angle, and the detection data of the detector 4 only needs to record the rotation angle of the rotary member 2 during the backward stroke of the moving rod 31.

Further, in order to facilitate the connection of the spring 33 to the moving rod 31, the connecting table 34 is provided on the rod body of the moving rod 31 in this embodiment. Specifically, the connecting portion 34 protrudes from the surface of the motion bar 31, and is generally located on two opposite sides of the motion bar 31 with the protruding teeth 32. With this arrangement, the other end of the spring 33 can be connected to the wall surface of the connecting table 34, and the extending direction of the spring 33 is ensured to be parallel to the moving direction of the moving rod 31.

In addition, in order to ensure the stability of the moving rod 31 during the linear reciprocating motion, the present embodiment is further provided with a guide rail 6 on the base 1. Specifically, the length direction of the guide slide rail 6 is collinear with the length direction of the moving rod 31, and the end of the moving rod 31 is inserted into the guide slide rail 6, so that the guide slide rail 6 is used for providing a guiding effect for the linear motion of the moving rod 31, and the linear motion of the moving rod 31 is prevented from shaking or vibrating during the motion process.

Moreover, considering that the amount of the expansion deformation of the spring 33 is not too large when the moving rod 31 moves, otherwise the impact force between the protruding teeth 32 and the rotating member 2 is too large due to too large elastic force, which may cause damage, the embodiment further includes a limiting block 7 on the base 1. Specifically, the stopper 7 is located on one side of the moving rod 31 in the single-stroke moving direction, and is mainly used for abutting against a connecting table 34 provided on the moving rod 31 to limit the maximum stroke of the moving rod 31 in the single stroke, and at the same time, to limit the maximum deformation amount of the spring 33.

As shown in fig. 4, fig. 4 is a schematic diagram of a circuit structure of the random number generator 5.

In a preferred embodiment with respect to the random number generator 5, the random number generator 5 mainly includes an ADC module 51 and a value generation module 52. The ADC (Analog to digital converter) module 51 is in signal connection with the detector 4, and is mainly used for converting an electrical parameter (Analog quantity) generated by the detector 4 into a digital quantity. The numerical value generating module 52 is in signal connection with the ADC module 51, and is mainly configured to generate a numerical value, i.e., a random number, according to the digital quantity generated by the ADC module 51. Generally, the value generation module 52 may be an FPGA (Field Programmable Gate Array). For example, the FPGA may obtain a 31-bit 2-ary number or a 10-bit decimal number as a random number through the 31-bit ADC module 51.

The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种数据处理方法和处理核

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类