CN206133545U - Device that detect is carried out access state of RS232 interface - Google Patents

Device that detect is carried out access state of RS232 interface Download PDF

Info

Publication number
CN206133545U
CN206133545U CN201620903196.XU CN201620903196U CN206133545U CN 206133545 U CN206133545 U CN 206133545U CN 201620903196 U CN201620903196 U CN 201620903196U CN 206133545 U CN206133545 U CN 206133545U
Authority
CN
China
Prior art keywords
comparator
interfaces
access state
state
detected
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.)
Active
Application number
CN201620903196.XU
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.)
Sichuan Lingtong Telecommunications Co Ltd
Original Assignee
Sichuan Lingtong Telecommunications 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 Sichuan Lingtong Telecommunications Co Ltd filed Critical Sichuan Lingtong Telecommunications Co Ltd
Priority to CN201620903196.XU priority Critical patent/CN206133545U/en
Application granted granted Critical
Publication of CN206133545U publication Critical patent/CN206133545U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Dc Digital Transmission (AREA)

Abstract

The utility model discloses a device that detect is carried out access state of RS232 interface, include: two terminal equipment that have the RS232 interface through the cable connection, wherein, be in to receive the RS232 interface of end, its receiving terminal is connected with one in order carrying out the detection circuitry that monitors to its voltage -to -ground value, with warning mechanism or processing mechanism that detection circuitry connects, according to the corresponding level state of detection circuitry output, and then show or the access state of judgement at the cable of the RS232 interface of receipts end. The utility model provides a device that detect is carried out access state of RS232 interface, its can be when whether RS232 interface receiver input section cable be connected the voltage -to -ground different, use the detection circuitry automatic detection line cable whether to connect to do benefit to the detection to the RS232 connection status, ensure security, the stability of its data transmission in -process.

Description

The device that the access state of RS232 interfaces is detected
Technical field
The utility model is related to a kind of detection means used in the case of data communication.More specifically, this practicality is new Type is related to a kind of device detected to the access state of RS232 interfaces in the case of data communication.
Background technology
Under normal circumstances, when the RS232 interfaces of certain equipment connect the RS232 interfaces of other equipment by cable, need to make Check whether it normally connects with serial communication software or Error Detector transceiving data.
If but occurring cable connecting fault in use, the information that other side sends then may lose, and reciever May not know that other side was once transmitted across information yet.In order to judge whether cable connection is normal in real time, one kind is needed to its RS232 Connection status between interface is carried out in real time, persistently detect, and provides corresponding state instruction, is beneficial to stablizing for data transmit-receive Property and reliability.
Under normal circumstances, a RS232 interface is made up of a transmitter and a receiver, and receiver input has one To the pull down resistor on ground, this is caused when the transmitter of other RS232 interfaces is connected without cable, its receiver input it is right Ground voltage is 0V or so, and the transmitter of RS232 interfaces output voltage-to-ground is usually between -5V~-15V or+5V~+15V. Therefore:
The receiver of RS232 interfaces is input into when the transmitter of other RS232 interfaces is connected without cable, and voltage-to-ground is 0V or so;
The receiver of RS232 interfaces is input into when there is cable normally to connect the transmitter of other RS232 interfaces, voltage-to-ground For between -5V~-15V or+5V~+15V.
Utility model content
A purpose of the present utility model is to solve at least the above and/or defect, and offer at least will be described later Advantage.
The utility model it is also an object that provide the device that a kind of access state to RS232 interfaces is detected, It can voltage-to-ground be different when whether RS232 interface receivers importation cable connects, and is examined automatically using detection circuit Whether survey line cable connects, and its State- output can drive LED light or deliver to CPU, FPGA etc. and be identified control, be beneficial to Detection to RS232 connection status, it is ensured that the security, stability in its data transmission procedure.
In order to realize according to these purposes of the present utility model and further advantage, there is provided a kind of that RS232 interfaces are connect Enter the device that state is detected, including:
Two connected by cable have the terminal device of RS232 interfaces;
Wherein, in the RS232 interfaces of receiving end, its receiving terminal is connected with an inspection to be monitored to its voltage-to-ground value Slowdown monitoring circuit, the warning mechanism being connected with the detection circuit or processing mechanism, according to the corresponding level of the detection circuit output State, and then the access state of the cable of display or judgement in the RS232 interfaces of receiving end.
Preferably, wherein, in the RS232 interfaces of receiving end, its receiving terminal connects in the RS232 for being connected with corresponding end Mouthful when, its be input into detection circuit voltage-to-ground be configured between -5V~-15V or+5V~+15V, otherwise for -5V~+ Between 5V.
Preferably, wherein, it is described detection circuit include using comparator A, comparator B composition window comparator electricity Road.
Preferably, wherein, in the window comparator circuit, the in-phase end of the comparator A, comparator B it is anti- Phase end is connected to respectively the receiver input of receiving end RS232 interface by a potential-divider network;
The end of oppisite phase of the comparator A, the in-phase end of comparator B are connected to, to provide anticipation for each comparator The benchmark A of value, benchmark B;
And the output end of each comparator is serially connected with respectively diode, after to each output using "or" logic, to enter And export level state corresponding with access state.
Preferably, wherein, when working power VCC of each comparator is all higher than 15V, the homophase of the comparator A End, the end of oppisite phase of comparator B may be connected directly to the receiver input of receiving end RS232 interface.
Preferably, wherein, the benchmark A is set to less than the positive voltage over the ground of 5V, and benchmark B is set to less than 5V Negative voltage over the ground.
Preferably, wherein, the magnitude of voltage corresponding to the benchmark A, benchmark B, respectively by corresponding comparator string Right ± VCC the partial pressures of a divider resistance for connecing are to obtain.
Preferably, wherein, the comparator A, comparator B are any one in single comparator or operational amplifier Plant, or the comparator A, comparator B are integrated in same chip.
Preferably, wherein, the warning mechanism be LED light, the processing mechanism be arranged on receiving end CPU or FPGA。
Preferably, wherein, it is described detection circuit output level state be arranged to:When cable meets two RS232 When mouth is in connected state, the output state of the detection circuit is to be arranged to high level;Conversely, output state is to be set For low level.
The utility model at least includes following beneficial effect:First, the utility model can be defeated according to RS232 interface transmitters Go out the characteristic of fractional hardware circuit and receiver importation hardware circuit, using hardware circuit automatic detection RS232 interface line Whether cable accesses.When there is the equipment with RS232 interfaces to access RS232 interfaces by cable, automatic detection simultaneously shows its access State, and then realize the monitoring to RS232 interface connection status, it is ensured that the safety and reliability of data transfer.
Second, whether detection circuit of the present utility model based on RS232 interface receivers importation cable when being connected pair Ground voltage is different, constitutes whether window comparator circuit automatic detection cable connects using two comparators, and State- output can drive Dynamic LED light or deliver to CPU, FPGA etc. be identified control, with simple structure, it is easy to accomplish, strong operability, stability It is good, the strong effect of data transmission credibility.
Further advantage of the present utility model, target and feature embody part by description below, and part will also pass through Research of the present utility model and practice are understood by the person skilled in the art.
Description of the drawings
Fig. 1 is the knot of the device detected to the access state of RS232 interfaces in one embodiment of the present utility model Structure schematic diagram.
Specific embodiment
The utility model is described in further detail below in conjunction with the accompanying drawings, to make those skilled in the art with reference to explanation Book word can be implemented according to this.
It should be appreciated that it is used herein such as " have ", "comprising" and " including " term do not allot one or many The presence or addition of individual other elements or its combination.
Fig. 1 shows the reality of the device detected according to a kind of access state to RS232 interfaces of the present utility model Existing form, including:
Two connected by cable have the terminal device 1,2 of RS232 interfaces;
Wherein, in the RS232 interfaces 20 of receiving end, its receiving terminal is connected with one to be monitored its voltage-to-ground value Detection circuit 21, the warning mechanism being connected with the detection circuit or processing mechanism, according to the corresponding of the detection circuit output Level state, and then the access state of the cable of display or judgement in the RS232 interfaces of receiving end.Using this scheme energy according to The characteristic of RS232 interfaces transmitter output par, c hardware circuit and receiver importation hardware circuit, using hardware circuit certainly Whether dynamic detection RS232 interface cables access.When there is the equipment with RS232 interfaces to access RS232 interfaces by cable, automatically Detect and show its access state, and then realize the monitoring to RS232 interface connection status, it is ensured that the security of data transfer and The benefit of reliability.Also, this mode is a kind of explanation of preferred embodiments, but is not limited thereto.Implementing this During utility model, appropriate replacement and/or modification can be carried out according to user's demand.
In another kind of example, in the RS232 interfaces of receiving end, its receiving terminal is being connected with the RS232 of corresponding end During interface, its be input into detection circuit voltage-to-ground be configured between -5V~-15V or+5V~+15V, otherwise for -5V~ Between+5V.Voltage-to-ground is different when whether being connected based on RS232 interface receivers importation cable using this scheme, with The access state of RS232 interfaces is detected by the magnitude of voltage of input detecting circuit, it is ensured that the stability of data transfer Benefit.Also, this mode is a kind of explanation of preferred embodiments, but is not limited thereto.Implementing the utility model When, appropriate replacement and/or modification can be carried out according to user's demand.
As shown in figure 1, in another kind of example, the detection circuit is included using comparator A 22,23 groups of comparator B Into window comparator circuit.It is capable of achieving to its access state by succinct window comparator circuit using this scheme Monitoring, with can implementation result it is good, workable, simple structure, the controllable benefit of cost.Also, this mode is only It is a kind of explanation of preferred embodiments, but is not limited thereto.When the utility model is implemented, can be carried out according to user's demand Appropriate replacement and/or modification.
As shown in figure 1, in another kind of example, in the window comparator circuit, the in-phase end of the comparator A, The end of oppisite phase of comparator B is connected to respectively the receiver input of receiving end RS232 interface by a potential-divider network 24;
The end of oppisite phase of the comparator A, the in-phase end of comparator B are connected to, to provide anticipation for each comparator The benchmark A 25 of value, benchmark B 26;
And the output end of each comparator is serially connected with respectively diode 27,28, to adopt "or" logic to each output Afterwards, and then corresponding with access state level state is exported.Using this scheme specifically to the concrete of window comparator circuit Structure is defined, comply with correlation requirement, with can implementation result it is good, it is workable, simple structure it is favourable Part.Also, this mode is a kind of explanation of preferred embodiments, but is not limited thereto.When the utility model is implemented, can To carry out appropriate replacement and/or modification according to user's demand.
In another kind of example, when working power VCC of each comparator is all higher than 15V, the homophase of the comparator A End, the end of oppisite phase of comparator B may be connected directly to the receiver input of receiving end RS232 interface.Using in this scheme The effect of potential-divider network is the stable operating voltage in order to ensure comparator, when the VCC of its working power is all higher than 15V, than When constant compared with the operating voltage of device, potential-divider network can no longer need, with strong adaptability, can implementation result it is good it is favourable it Place.Also, this mode is a kind of explanation of preferred embodiments, but is not limited thereto.When the utility model is implemented, can be with Appropriate replacement and/or modification is carried out according to user's demand.
In another kind of example, the benchmark A is set to less than the positive voltage over the ground of 5V, and benchmark B is set to less than The negative voltage over the ground of 5V.Adopt this scheme is having cable to be normally connected not with corresponding with the receiver input of RS232 interfaces RS232 interfaces transmitter when, voltage-to-ground be -5V~-15V or+5V~+15V it is corresponding, with by comparator to its point Do not make a distinction and compare, with can good, the workable benefit of implementation result.Also, this mode be it is a kind of compared with The explanation of good example, but be not limited thereto.When the utility model is implemented, appropriate replacing can be carried out according to user's demand Change and/or change.
In another kind of example, the magnitude of voltage corresponding to the benchmark A, benchmark B, respectively by corresponding comparator string Right ± VCC the partial pressures of a divider resistance for connecing are to obtain.Using this scheme have can implementation result it is good, simple structure, it is easy to real Existing benefit.Also, this mode is a kind of explanation of preferred embodiments, but is not limited thereto.Implementing this practicality When new, appropriate replacement and/or modification can be carried out according to user's demand.
In another kind of example, the comparator A, comparator B are any in single comparator or operational amplifier One kind, or the comparator A, comparator B be integrated in same chip.Adopt this scheme to adapt to different uses Demand and use environment, good with adaptability, workable benefit.Also, this mode is a kind of preferable reality The explanation of example, but be not limited thereto.When the utility model is implemented, appropriate replacement can be carried out according to user's demand And/or modification.
In another kind of example, the warning mechanism is LED light (not shown), and the processing mechanism is to be arranged on receipts The CPU (not shown) or FPGA (not shown) at end.Adopt this scheme, using needs and environment, is carried out with according to specific to it It is handled differently, with strong adaptability, can the good benefit of implementation result.Also, this mode is a kind of preferred embodiments Illustrate, but be not limited thereto.When the utility model is implemented, can according to user's demand carry out appropriate replacement and/or Modification.
In another kind of example, the level state of the detection circuit output is arranged to:When cable meets two RS232 When mouth is in connected state, the output state of the detection circuit is to be arranged to high level;Conversely, output state is to be set For low level.LED light can be driven by State- output using this scheme or CPU, FPGA etc. is delivered to and be identified control, To make a distinction to its different conditions, it is beneficial to the collection of later data, processes, and does corresponding judge or operation is repaiied accordingly It is multiple, with can implementation result it is good, the benefit of strong operability.Also, this mode is a kind of explanation of preferred embodiments, but It is not limited thereto.When the utility model is implemented, appropriate replacement and/or modification can be carried out according to user's demand.
Number of devices described herein and treatment scale are for simplifying explanation of the present utility model.To the utility model The device that the access state of RS232 interfaces is detected application, modifications and variations to one skilled in the art It is obvious.
Although embodiment of the present utility model is disclosed as above, it is not restricted in specification and embodiment Listed utilization.It can be applied to completely various suitable fields of the present utility model.For those skilled in the art, It is easily achieved other modification.Therefore under the universal limited without departing substantially from claim and equivalency range, this reality Specific details is not limited to new and shown here as the legend with description.

Claims (10)

1. the device that a kind of access state to RS232 interfaces is detected, it is characterised in that include:
Two connected by cable have the terminal device of RS232 interfaces;
Wherein, in the RS232 interfaces of receiving end, the detection electricity that its receiving terminal is connected with to be monitored its voltage-to-ground value Road, the warning mechanism being connected with the detection circuit or processing mechanism, according to the corresponding level state of the detection circuit output, And then the access state of the cable of display or judgement in the RS232 interfaces of receiving end.
2. the device that the access state to RS232 interfaces as claimed in claim 1 is detected, it is characterised in that in receipts The RS232 interfaces at end, when the RS232 interfaces of corresponding end are connected with, it is input into detection circuit over the ground its receiving terminal Voltage is configured between -5V~-15V or+5V~+15V, otherwise between -5V~+5V.
3. the device that the access state to RS232 interfaces as claimed in claim 1 is detected, it is characterised in that the inspection Slowdown monitoring circuit includes the window comparator circuit using comparator A, comparator B composition.
4. the device that the access state to RS232 interfaces as claimed in claim 3 is detected, it is characterised in that described In window comparator circuit, the in-phase end of the comparator A, the end of oppisite phase of comparator B are connected to respectively by a potential-divider network The receiver input of receiving end RS232 interface;
The end of oppisite phase of the comparator A, the in-phase end of comparator B are connected to, to provide anticipation value for each comparator Benchmark A, benchmark B;
And the output end of each comparator is serially connected with respectively diode, with after to each output using "or" logic and then defeated Go out level state corresponding with access state.
5. the device that the access state to RS232 interfaces as claimed in claim 4 is detected, it is characterised in that each described When working power VCC of comparator is all higher than 15V, the in-phase end of the comparator A, the end of oppisite phase of comparator B can directly connect It is connected to the receiver input of receiving end RS232 interface.
6. the device that the access state to RS232 interfaces as claimed in claim 4 is detected, it is characterised in that the base Quasi- A is set to less than the positive voltage over the ground of 5V, and benchmark B is set to less than the negative voltage over the ground of 5V.
7. the device that the access state to RS232 interfaces as claimed in claim 4 is detected, it is characterised in that the base Magnitude of voltage corresponding to quasi- A, benchmark B, the right ± VCC partial pressures of a divider resistance for being concatenated by corresponding comparator respectively are to obtain Arrive.
8. the device that the access state to RS232 interfaces as claimed in claim 4 is detected, it is characterised in that the ratio It is any one in single comparator or operational amplifier compared with device A, comparator B, or the comparator A, comparator B equal In being integrated into same chip.
9. the device that the access state to RS232 interfaces as claimed in claim 1 is detected, it is characterised in that the police Show that mechanism is LED light, the processing mechanism is the CPU or FPGA for being arranged on receiving end.
10. the device that the access state to RS232 interfaces as claimed in claim 1 is detected, it is characterised in that the inspection The level state of slowdown monitoring circuit output is arranged to:When cable makes two RS232 interfaces be in connected state, the detection circuit Output state to be arranged to high level;Conversely, output state is to be arranged to low level.
CN201620903196.XU 2016-08-18 2016-08-18 Device that detect is carried out access state of RS232 interface Active CN206133545U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201620903196.XU CN206133545U (en) 2016-08-18 2016-08-18 Device that detect is carried out access state of RS232 interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201620903196.XU CN206133545U (en) 2016-08-18 2016-08-18 Device that detect is carried out access state of RS232 interface

Publications (1)

Publication Number Publication Date
CN206133545U true CN206133545U (en) 2017-04-26

Family

ID=58563144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201620903196.XU Active CN206133545U (en) 2016-08-18 2016-08-18 Device that detect is carried out access state of RS232 interface

Country Status (1)

Country Link
CN (1) CN206133545U (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107132502A (en) * 2017-05-09 2017-09-05 无锡市恒通电器有限公司 A kind of RS485 communication test devices of electric energy meter
CN108732462A (en) * 2018-04-12 2018-11-02 华为技术有限公司 A kind of detection device and method
WO2020142893A1 (en) * 2019-01-08 2020-07-16 深圳市大疆创新科技有限公司 Radar access detection method, circuit and movable platform

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107132502A (en) * 2017-05-09 2017-09-05 无锡市恒通电器有限公司 A kind of RS485 communication test devices of electric energy meter
CN108732462A (en) * 2018-04-12 2018-11-02 华为技术有限公司 A kind of detection device and method
US11047924B2 (en) 2018-04-12 2021-06-29 Huawei Technologies Co., Ltd. Detection apparatus and method
WO2020142893A1 (en) * 2019-01-08 2020-07-16 深圳市大疆创新科技有限公司 Radar access detection method, circuit and movable platform
CN111684296A (en) * 2019-01-08 2020-09-18 深圳市大疆创新科技有限公司 Radar access detection method, circuit and movable platform

Similar Documents

Publication Publication Date Title
CN206133545U (en) Device that detect is carried out access state of RS232 interface
CN104820156B (en) A kind of Beam Detector and method
CN103566573A (en) Automatic counting device based on comprehensive basketball shooting training system and counting method thereof
CN201402288Y (en) Anti-static wrist strap monitor
CN104914376A (en) Digital circuit state detection circuit and digital circuit state detection method
CN104991164A (en) Cable on-line detector
CN207150841U (en) Sensing positioning node and alignment system based on LoRa
CN106093676B (en) Outfield fault detection and diagnosis equipment
CN107918050A (en) A kind of power consumption test system and method
CN205426364U (en) Intelligence humiture measurement system
CN204766860U (en) Medical infusion dropping speed detection device
CN101320968A (en) Self-adapting circuit and its processing method
CN203540016U (en) Automatic counting device based on basketball shooting combined training system
CN203337268U (en) Temperature and pressure monitoring and early warning system of circuit breaker operating mechanism
CN205581252U (en) Power system fault indicator
CN113542925B (en) Transmission system and transmission method for signal power information of transmitter
CN206330867U (en) A kind of sync detection device of aerial different height dust particle content
CN201281726Y (en) High voltage detector
CN204631265U (en) A kind of bus decomposing prevention circuit being connected multiple sensor by bus
CN104410548A (en) Single LAN interface wireless router performance testing system and method
CN113568359A (en) Be used for instrument landing equipment lower slip table fault detection and processing apparatus
CN106323376A (en) Coal mine fire monitoring device
CN207926619U (en) A kind of portable SIM cards detection device
CN206336870U (en) Elevator running environment monitoring system
US20190011972A1 (en) Power management system that displays background colors to indicate battery statuses

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant