CN106908145B - A kind of analogue type photo detector signal method for automatic measurement based on serial ports - Google Patents
A kind of analogue type photo detector signal method for automatic measurement based on serial ports Download PDFInfo
- Publication number
- CN106908145B CN106908145B CN201710109115.8A CN201710109115A CN106908145B CN 106908145 B CN106908145 B CN 106908145B CN 201710109115 A CN201710109115 A CN 201710109115A CN 106908145 B CN106908145 B CN 106908145B
- Authority
- CN
- China
- Prior art keywords
- serial ports
- photo detector
- type photo
- automatic measurement
- capture cards
- 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.)
- Expired - Fee Related
Links
- 238000005259 measurement Methods 0.000 title claims abstract description 17
- 238000000034 method Methods 0.000 title claims abstract description 17
- 238000006243 chemical reaction Methods 0.000 claims abstract description 8
- 239000002184 metal Substances 0.000 claims abstract description 6
- 229910052751 metal Inorganic materials 0.000 claims abstract description 6
- 230000011664 signaling Effects 0.000 claims abstract description 3
- 230000000007 visual effect Effects 0.000 claims description 4
- 230000008901 benefit Effects 0.000 abstract description 4
- 238000012545 processing Methods 0.000 description 6
- 239000000463 material Substances 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- PXHVJJICTQNCMI-UHFFFAOYSA-N Nickel Chemical compound [Ni] PXHVJJICTQNCMI-UHFFFAOYSA-N 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 229910001369 Brass Inorganic materials 0.000 description 1
- 241001269238 Data Species 0.000 description 1
- 239000010951 brass Substances 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 239000013078 crystal Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000000691 measurement method Methods 0.000 description 1
- 229910052759 nickel Inorganic materials 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000007747 plating Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 230000000087 stabilizing effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000008719 thickening Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J1/00—Photometry, e.g. photographic exposure meter
- G01J1/02—Details
- G01J1/0219—Electrical interface; User interface
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Spectroscopy & Molecular Physics (AREA)
- Photometry And Measurement Of Optical Pulse Characteristics (AREA)
Abstract
The invention discloses a kind of analogue type photo detector signal method for automatic measurement based on serial ports, including step:The central contact of bnc interface is drawn and is used as signal wire, the outer metal of the bnc interface is drawn as ground wire;AD capture cards are made, the system board transmitted including microcontroller, AD conversion chip and serial ports is opened in the AD acquisitions;It is passed to the core signal of bnc interface as analog signal all the way on the AD capture cards, the ground signalling of the bnc interface is connected to the ends GND of the AD capture cards;Turn USB line using a serial ports to connect the AD capture cards with controller;The com port of serial ports is determined by the controller, realizes the reading to serial ports.The invention has the advantages that:When the ends PC use serial ports, com port is selected in equipment manager, you can realize the automatic continuous read functions of serial ports.
Description
Technical field
The present invention relates to the single point detector data processing fields of analog signal, and in particular to a kind of simulation based on serial ports
Type photo detector signal method for automatic measurement.
Background technology
In optical test, it is often necessary to measure the intensity of light, and the common method one of two kinds of intensity for measuring light is
Using light power meter, another is to use photodetector.
Although common light power meter can conveniently read the intensity of a certain wavelength light, if necessary to automatic
When continuously acquiring the luminous intensity of continuous wavelength, light power meter can only manual change wavelength measurement, and be unfavorable for the data in later stage
Processing, so being difficult to realize automatic luminous intensity measurement.
Common photodetector is mostly the detector of analogue type at present, the detector of numeric type is rare and price compared with
Expensive, the output interface of analogue type detector is mostly S terminals or bnc interface, and the output interface of most of S terminals is followed by more
Switch to bnc interface.Bnc interface namely what is often called thin coaxial cable interface.Because coaxial cable has shielded layer, there is transmitting range
The advantages of length, signal stabilization.It is also largely used in communication system at present, if the E1 interfaces in the network equipment are exactly with two
The coaxial cable of BNC connector connects.Transmission audio, video letter are also often used in high-grade monitor, stereo set
Number, bnc interface can completely cut off video input signals, make to interfere with each other reduction between signal, and signal bandwidth is than the D of common 15 needle
Type interface is big, can reach more preferably signal response effect.It is connection oscillograph that the analog signal of bnc interface, which typically receives mode,
Use, it is clear that cannot be used for automatically processing for PC end datas, and support at present analog signal for being inserted in computer PCI interface
It is mostly to handle D type interfaces, processing BNC connects although AD cards can easily handle automatic acquisition of the analog signal at the ends PC
The AD plates of mouth are less and expensive, and this collection plate is powerful, but expensive, lacks bnc interface switching to it
He is easy to the scheme of data-processing interface.
Invention content
The present invention is directed at least solve one of above-mentioned technical problem.
For this purpose, an object of the present invention is to provide a kind of, the analogue type photo detector signal based on serial ports is surveyed automatically
Amount method.
To achieve the goals above, embodiment of the invention discloses that a kind of analogue type photodetector letter based on serial ports
Number method for automatic measurement, includes the following steps:S1:The central contact of bnc interface is drawn and is used as signal wire, by the BNC
The outer metal of interface is drawn as ground wire;S2:AD capture cards are made, the AD acquisitions are opened including microcontroller, AD conversion chip
With the system board of serial ports transmission;S3:It is passed to the core signal of bnc interface as analog signal all the way on the AD capture cards,
The ground signalling of the bnc interface is connected to the ends GND of the AD capture cards;S4:Turn USB line using serial ports to acquire the AD
Card is connect with controller;And S5:The com port of serial ports is determined by the controller, realizes the reading to serial ports.
Analogue type photo detector signal method for automatic measurement according to the ... of the embodiment of the present invention based on serial ports, makes at the ends PC
When with serial ports, com port is selected in equipment manager, you can realize the automatic continuous read functions of serial ports.
In addition, the analogue type photo detector signal automatic measurement side according to the above embodiment of the present invention based on serial ports
Method can also have following additional technical characteristic:
Further, the signal wire is Du Pont's line.
Further, the model STM32F103C8T6 of the microcontroller.
Further, the model ADS1256 of the AD conversion chip.
Further, in step s 5, it is realized to serial ports using CSerialIO classes in the API under visual studio
It reads.
The additional aspect and advantage of the present invention will be set forth in part in the description, and will partly become from the following description
Obviously, or practice through the invention is recognized.
Description of the drawings
The above-mentioned and/or additional aspect and advantage of the present invention will become in the description from combination following accompanying drawings to embodiment
Obviously and it is readily appreciated that, wherein:
Fig. 1 is the stream of the analogue type photo detector signal method for automatic measurement based on serial ports of one embodiment of the invention
Cheng Tu.
Specific implementation mode
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and is only used for explaining the present invention, and is not considered as limiting the invention.
In the description of the present invention, it is to be understood that, term "center", " longitudinal direction ", " transverse direction ", "upper", "lower",
The orientation or positional relationship of the instructions such as "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outside" is
It is based on the orientation or positional relationship shown in the drawings, is merely for convenience of description of the present invention and simplification of the description, rather than instruction or dark
Show that signified device or element must have a particular orientation, with specific azimuth configuration and operation, therefore should not be understood as pair
The limitation of the present invention.In addition, term " first ", " second " are used for description purposes only, it is not understood to indicate or imply opposite
Importance.
In the description of the present invention, it should be noted that unless otherwise clearly defined and limited, term " installation ", " phase
Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can
Can also be electrical connection to be mechanical connection;It can be directly connected, can also indirectly connected through an intermediary, Ke Yishi
Connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood at this with concrete condition
Concrete meaning in invention.
With reference to following description and drawings, it will be clear that these and other aspects of the embodiment of the present invention.In these descriptions
In attached drawing, some particular implementations in the embodiment of the present invention are specifically disclosed, to indicate to implement the implementation of the present invention
Some modes of the principle of example, but it is to be understood that the scope of embodiments of the invention is not limited.On the contrary, the present invention
Embodiment includes all changes, modification and the equivalent fallen within the scope of the spirit and intension of attached claims.
It is automatic that the analogue type photo detector signal according to the ... of the embodiment of the present invention based on serial ports is described below in conjunction with attached drawing
Measurement method.
Referring to FIG. 1, a kind of analogue type photo detector signal method for automatic measurement based on serial ports, including following step
Suddenly:
S1:The central contact of bnc interface is drawn and is used as signal wire, the outer metal of bnc interface is drawn as ground connection
Line.
Specifically, being turned the patchcord of bnc interface using S terminals can be connected to analog signal on oscillograph and check.Bnc interface
It is a kind of coaxial cable, what central contact i.e. contact pin transmitted is analog signal.
S2:AD capture cards are made, the system board transmitted including microcontroller, AD conversion chip and serial ports is opened in AD acquisitions.
In the example of the present invention, acquisition analog signal amplitude is no more than 5V, uses:Chip:STM32F103C8T6
(microcontroller), ADS1256 (AD conversion chip);Power supply:Onboard 5V and 3.3V voltage stabilizing elements, can be used 9V~12V external dcs
Power supply;Crystal oscillator frequency:8MHZ, 9 frequencys multiplication.
S3:The core signal of bnc interface is passed to as analog signal all the way on AD capture cards, by the ground connection of bnc interface
Signal is connected to the ends GND of the AD capture cards.
Specifically, the shell of bnc interface and other metal parts are mostly the materials such as brass, nickel plating (thickening), bnc interface
Shell and other metal parts are equivalent to ground wire, are drawn the ends GND for being connected to circuit board.
In the example of the present invention, analog signal is drawn using Du Pont's line, and is connected to as analog signal all the way
On our AD capture cards.
S4:Turn USB line using serial ports to connect AD capture cards with controller.
S5:The com port of serial ports is determined by controller, realizes the reading to serial ports.
Specifically, microcontroller is programmed, due to only being converted to analog signal all the way, continuous acquisition single-pass
Road AN0 analog voltages carry out ADC conversions, and transformed data are calculated as voltage value, in the form of ASCII character, pass through serial ports
Send out data.When the ends PC use serial ports, present com port is selected in present equipment manager, you can realize oneself of serial ports
Move continuous read functions.
In one embodiment of the invention, in step s 5, using CSerialIO in the API under visual studio
Class realizes the reading to serial ports.Voltage can be directly read under this pattern, in order to facilitate the secondary development in later stage, used
CSerialIO realizes a class to serial ports read-write in API under visual studio, and there are one threads to be responsible for processing to string
The read-write of mouth data, it is only necessary to which the simple API for calling CSerialIO to provide can intercept the data of serial ports.
In addition, other structures of the analogue type photo detector signal method for automatic measurement based on serial ports of the embodiment of the present invention
At and effect be all known for a person skilled in the art, in order to reduce redundancy, do not repeat.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiments or example in can be combined in any suitable manner.
Although an embodiment of the present invention has been shown and described, it will be understood by those skilled in the art that:Not
In the case of being detached from the principle of the present invention and objective a variety of change, modification, replacement and modification can be carried out to these embodiments, this
The range of invention is by claim and its equivalent limits.
Claims (5)
1. a kind of analogue type photo detector signal method for automatic measurement based on serial ports, which is characterized in that include the following steps:
S1:The central contact of bnc interface is drawn and is used as signal wire, the outer metal of the bnc interface is drawn as ground connection
Line;
S2:AD capture cards are made, the AD capture cards include the system board that microcontroller, AD conversion chip and serial ports transmit;
S3:It is passed to the core signal of bnc interface as analog signal all the way on the AD capture cards, by the bnc interface
Ground signalling is connected to the ends GND of the AD capture cards;
S4:Turn USB line using serial ports to connect the AD capture cards with controller;And
S5:The com port of serial ports is determined by the controller, realizes the reading to serial ports.
2. the analogue type photo detector signal method for automatic measurement according to claim 1 based on serial ports, feature exist
In the signal wire is Du Pont's line.
3. the analogue type photo detector signal method for automatic measurement according to claim 1 based on serial ports, feature exist
In the model STM32F103C8T6 of the microcontroller.
4. the analogue type photo detector signal method for automatic measurement according to claim 1 based on serial ports, feature exist
In the model ADS1256 of the AD conversion chip.
5. the analogue type photo detector signal method for automatic measurement according to claim 1 based on serial ports, feature exist
In in step s 5, CSerialIO classes in the API under visual studio being used to realize reading to serial ports.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710109115.8A CN106908145B (en) | 2017-02-27 | 2017-02-27 | A kind of analogue type photo detector signal method for automatic measurement based on serial ports |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710109115.8A CN106908145B (en) | 2017-02-27 | 2017-02-27 | A kind of analogue type photo detector signal method for automatic measurement based on serial ports |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106908145A CN106908145A (en) | 2017-06-30 |
CN106908145B true CN106908145B (en) | 2018-11-13 |
Family
ID=59208584
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710109115.8A Expired - Fee Related CN106908145B (en) | 2017-02-27 | 2017-02-27 | A kind of analogue type photo detector signal method for automatic measurement based on serial ports |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106908145B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101221422A (en) * | 2008-01-04 | 2008-07-16 | 北京工业大学 | Portable vibration data collector and method based on embedded technology |
CN103453997A (en) * | 2013-09-04 | 2013-12-18 | 中国科学院上海光学精密机械研究所 | Broad-spectrum weak pulse laser energy measuring system |
CN103991558A (en) * | 2014-04-17 | 2014-08-20 | 中国航空工业集团公司沈阳飞机设计研究所 | Anti-interference torque simulator |
CN105472368A (en) * | 2015-11-25 | 2016-04-06 | 深圳凯澳斯科技有限公司 | Stereo video live system for clustered terminals |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7304288B2 (en) * | 2005-07-06 | 2007-12-04 | The United States Of America As Represented By The Secretary Of The Navy | Laser pulse counter |
CN101839767A (en) * | 2010-05-21 | 2010-09-22 | 西安工业大学 | Device for measuring spectral responsivity of infrared photoelectric detector |
JP5846626B2 (en) * | 2011-07-12 | 2016-01-20 | 国立研究開発法人情報通信研究機構 | Superconducting single photon detection system and superconducting single photon detection method |
CN104297558B (en) * | 2014-10-08 | 2017-08-11 | 中国科学院电工研究所 | A kind of current measuring device |
CN205898306U (en) * | 2016-07-15 | 2017-01-18 | 武汉寒霜科技有限公司 | Host system of infrared radiation thermometer |
-
2017
- 2017-02-27 CN CN201710109115.8A patent/CN106908145B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101221422A (en) * | 2008-01-04 | 2008-07-16 | 北京工业大学 | Portable vibration data collector and method based on embedded technology |
CN103453997A (en) * | 2013-09-04 | 2013-12-18 | 中国科学院上海光学精密机械研究所 | Broad-spectrum weak pulse laser energy measuring system |
CN103991558A (en) * | 2014-04-17 | 2014-08-20 | 中国航空工业集团公司沈阳飞机设计研究所 | Anti-interference torque simulator |
CN105472368A (en) * | 2015-11-25 | 2016-04-06 | 深圳凯澳斯科技有限公司 | Stereo video live system for clustered terminals |
Also Published As
Publication number | Publication date |
---|---|
CN106908145A (en) | 2017-06-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102033149A (en) | Mixed signal acquisition system for a measurement instrument | |
CN101419261B (en) | High resolution multimedia interface test system | |
CN112702240B (en) | System and method for testing ground electronic unit | |
CN206894813U (en) | A kind of camera testing system | |
CN106908145B (en) | A kind of analogue type photo detector signal method for automatic measurement based on serial ports | |
CN209590642U (en) | The conversion of underwater robot information and processing system | |
CN209280273U (en) | LED test card | |
CN204944793U (en) | Optical cable fibre core line sequence tester | |
CN202256480U (en) | Voltage and current detecting device of power supply of radio-frequency remote system | |
CN110034776A (en) | External antenna and wireless communication system | |
CN204905447U (en) | Antenna equipment with radiofrequency signal intensity monitoring device | |
CN1893605B (en) | Electronic apparatus and control method thereof | |
CN207408495U (en) | A kind of rf electric field measuring probe and portable intelligent comprehensive electromagnetic field measurement instrument | |
CN207623444U (en) | A kind of multi-epitope is visited one house after another examination device | |
CN106125068B (en) | Echo signal reception device in laser ranging | |
CN108429904A (en) | A kind of video optical multiplexer clock circuitry | |
CN210378029U (en) | Network type measuring antenna | |
CN201000326Y (en) | Device for measuring laser beam | |
CN208158587U (en) | A kind of optical cable is automatically to fine test macro | |
CN207396949U (en) | A kind of camera structure convenient for being connected with detection device | |
CN202929137U (en) | Antenna state detection circuit applied to ship automatic identification system terminal | |
CN207601242U (en) | ROSA test circuits | |
CN101667151A (en) | Signal integrity testing method based on server PCI-Express | |
CN210112169U (en) | Display signal protocol conversion equipment | |
CN208847769U (en) | A kind of input signal of F48 connector applies and output signal detection 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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20181113 |