CN211878440U - Communication switching module and equipment testing system - Google Patents

Communication switching module and equipment testing system Download PDF

Info

Publication number
CN211878440U
CN211878440U CN202020746610.7U CN202020746610U CN211878440U CN 211878440 U CN211878440 U CN 211878440U CN 202020746610 U CN202020746610 U CN 202020746610U CN 211878440 U CN211878440 U CN 211878440U
Authority
CN
China
Prior art keywords
communication
unit
connecting end
upper computer
equipment
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
CN202020746610.7U
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.)
Chongqing Huanteng Technology Co ltd
Original Assignee
Chongqing Huanteng Technology 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 Chongqing Huanteng Technology Co ltd filed Critical Chongqing Huanteng Technology Co ltd
Priority to CN202020746610.7U priority Critical patent/CN211878440U/en
Application granted granted Critical
Publication of CN211878440U publication Critical patent/CN211878440U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The utility model discloses a communication switching module and a device testing system, wherein the communication switching module comprises a first communication unit, a second communication unit, a channel switching unit and a control unit, and is also provided with a device communication connecting end, a first upper computer communication connecting end and a second upper computer communication connecting end; the control unit is respectively in communication connection with the first communication unit and the second communication unit, the equipment communication connecting end is alternatively connected with the first communication unit and the first upper computer communication connecting end through the channel switching unit, the second communication unit is also electrically connected with the second upper computer communication connecting end, and the control end of the channel switching unit is electrically connected with the control unit in a triggering mode. The utility model discloses not only solved and needed the field operation, the inconvenient of secondary wiring still solves the host computer when testing equipment, need through the transfer of control module data and produce a large amount of codes, and lead to the problem that work load is big, development cycle is long.

Description

Communication switching module and equipment testing system
Technical Field
The utility model relates to the field of communication technology, concretely relates to communication switching module and equipment test system.
Background
The equipment with the communication interface comprises a card reader, a weighing instrument, a GPRS module, an LED display screen, a license plate camera and the like, and is provided with special upper computer software, and the upper computer software is used for carrying out parameter setting, debugging and fault detection on the equipment. After the equipment communication line is connected with the control module, if the equipment is required to be subjected to parameter setting, debugging and fault detection through upper computer software, two methods are conventionally adopted.
The first method is to take off the communication line connected to the control module, and then connect the control module to the upper computer, during the process, a plurality of secondary wiring operations such as temporary line placement, wiring and wire taking, communication joint welding and the like are carried out, and the field operation is inconvenient, labor and time are wasted.
The second method is that under the condition that the control module and the upper computer have a data interaction channel, a data transfer transmission program is compiled in the control module, the control module receives the communication data of the upper computer and then sends the communication data to the equipment, the data replied by the equipment is sent to the control module, and the control module sends the data to the upper computer. In the process, a large amount of communication data transfer codes need to be written in the control module, time is consumed, program space is occupied, the control module needs to have a large cache space, the running speed of the whole process is slow, and the operation time is long.
In an equipment testing system, if the upper computer software selects an equipment to enter a testing state, when the selected equipment is set, configured, debugged, detected and the like, a large amount of communication data transfer codes also need to be compiled in the control module, and after the equipment is replaced, the control module needs to re-compile a large amount of communication data transfer codes, so that the equipment cannot be conveniently and quickly set, debugged, detected and the like by using special equipment software.
SUMMERY OF THE UTILITY MODEL
Aiming at the defects in the prior art, the utility model provides a communication switching module, aiming at solving the inconvenience that the upper computer needs to operate on site and take out the communication line and the secondary wiring when testing the equipment; the problems that a control module needs a large cache space, workload is large and development cycle is long due to the fact that a large amount of communication data transfer codes need to be compiled through the control module are solved.
In order to achieve the above purpose, the utility model adopts the following technical scheme:
a communication switching module comprises a first communication unit, a second communication unit, a channel switching unit and a control unit, and is also provided with an equipment communication connecting end, a first upper computer communication connecting end and a second upper computer communication connecting end; the control unit is respectively in communication connection with the first communication unit and the second communication unit, the equipment communication connecting end is alternatively connected with the first communication unit and the first upper computer communication connecting end through the channel switching unit, the second communication unit is also electrically connected with the second upper computer communication connecting end, and the control end of the channel switching unit is electrically connected with the control unit in a triggering mode.
Compared with the prior art, the utility model discloses following beneficial effect has: the utility model discloses in as the host computer, equipment respectively with first host computer communication link, equipment communication link links to each other, and the host computer links to each other with the second host computer communication link of second communication unit, the host computer sends test control signal through the second communication unit and gives the control unit after, the control unit sends trigger control signal and switches the unit and be connected with first host computer communication link with trigger equipment communication link for the passageway, make host computer and equipment lug connection, host computer software can directly carry out parameter setting to equipment after the intercommunication, the debugging, fault detection. The process does not need field operation, communication lines and secondary wiring are removed, and a large amount of communication data transfer codes are generated without transferring data, so that the problems of large workload and long development period caused by a large amount of transferred codes can be solved.
To exist not enough among the prior art, the utility model provides an equipment test system, when its aim at solution set up, debug, detect, change equipment, can not conveniently utilize equipment special software to set up, debug, the problem that detects equipment fast.
The utility model provides an equipment test system, contains host computer, equipment and the aforesaid a communication switches the module, the host computer contains communication bus port, test special communication port, the first host computer communication link of communication switching module passes through the test bus and is connected with the test special communication port of host computer, the second host computer communication link of communication switching module passes through the communication bus and is connected with the communication bus port of host computer, the equipment communication link and the equipment communication of communication switching module are connected.
Compared with the prior art, the utility model discloses following beneficial effect has: the utility model discloses well communication switches module and equipment communication and is connected, and communication switches module and host computer communication bus port, test special communication port's communication and is connected, through host computer option equipment, host computer and equipment lug connection can realize conveniently, utilize equipment special software to set up, debug, detect operation such as to equipment fast.
Drawings
FIG. 1 is a schematic view of embodiment 1;
FIG. 2 is a schematic circuit diagram of a channel switching unit according to embodiment 1;
FIG. 3 is a schematic view of an apparatus detection system according to embodiment 1;
the circuit comprises a K1 relay, a D1 diode, a Q1 triode, a U1 optocoupler, an LED1 light-emitting diode, an R1 resistor, an R2 resistor and an R3 resistor.
Detailed Description
The technical solution of the present invention will be further explained with reference to the accompanying drawings and embodiments.
Example 1
A communication switching module, as shown in fig. 1, comprises a first communication unit, a second communication unit, a channel switching unit and a control unit, and is further provided with a first upper computer communication connecting end, a second upper computer communication connecting end and an equipment communication connecting end. The D end is a second upper computer communication connecting end and is electrically connected with the second communication unit, the channel switching unit comprises an electronic switch K, the electronic switch K comprises a public switch connecting end A end, a first switch connecting end B end and a second switch connecting end C end, the public switch connecting end A end is electrically connected with the equipment communication connecting end, the first switch connecting end B end is electrically connected with the first communication unit, and the second switch connecting end C end is electrically connected with the first upper computer communication connecting end; the equipment communication link is used for being connected with the equipment communication, realizes promptly that public switch link A end is connected with the communication of equipment, and first host computer communication link is used for being connected with the host computer communication, realizes promptly that second switch link C end is connected with the communication of host computer. The terminal A of the electronic switch K can be regarded as a device communication connecting terminal, and the terminal C of the electronic switch K is a first upper computer communication connecting terminal; the upper computer comprises two communication ports, namely an E port and an F port, wherein the E port is a special testing communication port, and the F port is a communication bus port. The E port of the upper computer is connected with the C end of the electronic switch K through the test bus, the F port of the upper computer is connected with the D end through the communication bus, the equipment is connected with the A end of the electronic switch K, the B end of the electronic switch K is electrically connected with the first communication unit, and the control unit is respectively in communication connection with the first communication unit and the second communication unit. The first communication unit and the second communication unit CAN be one of a 485 communication unit, a 232 communication unit, a USB communication unit or a CAN communication unit, and CAN also be other communication units to realize the communication between the control unit and the upper computer and the equipment respectively.
When the electronic switch K works normally, the equipment is communicated with the control unit, the equipment is connected to the end A of the electronic switch K, the end A of the electronic switch K is connected with the end B of the electronic switch K, and at the moment, the equipment is communicated with the control unit through the first communication unit. When the upper computer needs to test the equipment, the upper computer communicates with the control unit through the second communication unit, the upper computer sends a test control signal to the control unit through the second communication unit, the control unit receives the test control signal and then outputs a trigger control signal to the channel switching unit, the channel switching unit is triggered by the trigger control signal, so that the connection state of the electronic switch K is changed, the A end of the electronic switch K is disconnected from the B end of the electronic switch K at the moment and is converted into the A end of the electronic switch K to be connected with the C end of the electronic switch K, the direct connection of the equipment and the upper computer is realized, and the upper computer can directly carry out the operations of parameter setting, debugging, fault detection and the like on the equipment through upper computer software at the moment.
As shown in fig. 2, the channel switching unit includes a driving circuit, an optical coupling isolation circuit, and an electronic switch, where the electronic switch is a relay K1, the driving circuit is a triode switch driving circuit, the driving circuit includes a triode Q1, a resistor R2, a resistor R3, a power supply positive electrode V1+, a power supply negative electrode V-, and a light emitting diode LED1, and the optical coupling isolation circuit includes an optical coupling U1, a resistor R1, a power supply VCC, and a photoelectric trigger terminal SW. The relay K1 is a double-pole double-throw switch, and since the communication signal is a differential signal and is transmitted in two paths, the double-pole double-throw switch is adopted, and when multiple paths of signals are required to be transmitted, multiple paths of electronic switches are adopted. Relay K1 pin 4 and pin 5 are the trigger end of double pole double throw switch, relay K1 pin 3 and pin 6 are the common terminal of double pole double throw switch, relay K1 pin 2 and pin 7 are the normally closed end of double pole double throw switch, relay K1 pin 1 and pin 8 are the normally open end of double pole double throw switch, the common terminal at here is the common switch link, the normally closed end is first switch link, the normally open end is the second switch link. Drive circuit triggers end pin 4 and pin 5 with relay K1 and is connected, relay K1 triggers that end pin 4 and pin 5 are inside to have a coil, the coil is established ties and is triggered between end pin 4 and pin 5 at relay K1, the work of trigger control signal trigger coil that drive circuit gave, relay K1 public end pin 3 and pin 6 are connected with equipment communication link, equipment communication link is used for being connected with equipment, realize that relay K1 public end pin 3 and pin 6 are connected with equipment communication promptly, relay K1 normally closes end pin 2 and pin 7 and is connected with the control unit communication through first communication unit, relay K1 normally open end pin 1 and pin 8 are connected with first host computer communication link, first host computer communication link is used for being connected with the host computer, realize relay K1 normally open end pin 1 and pin 8 and host computer communication link promptly. The electronic switch can be a relay, an analog switch chip or a single-pole double-throw switch; the driving circuit can be a triode switch driving circuit or a MOS tube switch driving circuit.
The inside emitting diode and a triode that contain of opto-coupler U1 among the opto-coupler isolating circuit, emitting diode in the opto-coupler U1 is the luminous end, the triode in opto-coupler U1 is the photic end, emitting diode in the opto-coupler U1 does not have the relation of connection with the triode in the opto-coupler, the electric energy conversion of input is the luminous energy for the luminous end, accept the luminous end through the photic end and convert the electric energy transmission away into behind the luminous energy, thereby play the effect that input and output were kept apart. The opto-coupler U1 has 4 pins, opto-coupler pin 1 and pin 2 are opto-coupler isolation circuit's photoswitch input, opto-coupler pin 3 and pin 4 are opto-coupler isolation circuit's photoswitch output, the emitting diode positive pole in opto-coupler U1 is opto-coupler pin 1, series resistance R1 between opto-coupler pin 1 and the power VCC, resistance R1's effect is the current-limiting, the emitting diode's in opto-coupler U1 negative pole is opto-coupler pin 2, opto-coupler pin 2 still is opto-coupler isolation circuit's photoelectricity trigger end SW, the control unit and photoelectricity trigger end SW electric connection; the triode current collector in the optocoupler U1 is an optocoupler pin 4, the optocoupler pin 4 is connected with the cathode of a light emitting diode LED1 in the drive circuit in series, the anode of the light emitting diode LED1 is connected to the positive electrode V + of a power supply in the drive circuit, the anode of the light emitting diode LED1 is connected with a trigger end pin 5 of the relay K1 in series, the state of the light emitting diode LED1 shows the state of the optocoupler U1, the state of the relay K1 is objectively reflected, and when the triode Q1 and the relay K1 are broken, the state of the light emitting diode LED1 is changed; the triode emission level in the optocoupler U1 is optocoupler pin 3, and optocoupler pin 3 and drive circuit's trigger end electric connection realize the electrical isolation of the control unit and drive circuit.
The base electrode of a triode Q1 in the driving circuit is a triode Q1 pin 1, the emitter of a triode Q1 is a triode Q1 pin 2, the collector of the triode Q1 is a triode Q1 pin 3, the pin 1 of a triode Q1 is also the trigger end of the driving circuit, a resistor R2 is connected in series between the pin 3 of an optocoupler in the optocoupler isolation circuit and the pin 1 of the triode Q1, and a trigger control signal output by the optocoupler isolation circuit is sent to a triode Q1 to control the switching state of the triode Q1; the pin 1 of the transistor Q1 and the pin 2 of the transistor Q1 are connected with the resistor R3 in parallel, the pin 2 of the transistor Q1 is connected with the negative pole V-of the power supply, and the pin 3 of the transistor Q1 is connected with the pin 4 of the triggering end of the relay K1 in series. The channel switching unit further comprises a diode D1, a diode D1 is connected in parallel between the trigger terminal pin 4 and the trigger terminal pin 5 of the relay K1, and the diode D1 is used for preventing the high voltage generated by the coil in the relay K1 from breaking down the relay K1 at the moment of power up and power down.
The equipment and the upper computer are both connected to the communication switching module, when the control unit does not trigger a control signal for the channel switching unit, a pin 3 and a pin 6 of a public end of the relay K1 are initially connected with a pin 2 and a pin 7 of a normally closed end of the relay K1, so that the equipment is in communication connection with the first communication unit, and the equipment and the control unit can communicate at the moment; when the control unit triggers a control signal for the channel switching unit, the triggering control signal is input from the photoelectric triggering end SW, a light emitting diode and a triode in the optocoupler U1 are conducted, the triggering control signal is transmitted to the driving circuit, the triode Q1 in the driving circuit is conducted, a coil inside a pin 4 and a pin 5 of the triggering end of the relay K1 is electrified, the electrified coil enables the connection state of an internal switch of the relay K1 to be switched, and therefore the connection relation of the internal switch of the relay K1 is changed. Relay K1 public end pin 3 and pin 6 can break off and relay K1 normally closed end pin 2 and pin 7 be connected, then relay K1 public end pin 3 and pin 6 are connected with relay K1 normally open end pin 1 and pin 8, then have realized equipment and host computer direct intercommunication, and the host computer can directly carry out operations such as parameter setting, debugging, fault detection to equipment through host computer software this moment.
An equipment testing system is shown in fig. 3 and comprises a plurality of pieces of equipment, a plurality of communication switching modules and an upper computer, wherein the plurality of pieces of equipment are respectively in communication connection with the plurality of communication switching modules to realize the communication between the equipment and a channel switching module; the plurality of devices are provided with an upper computer, the upper computer comprises a communication bus port and a special test communication port, and the communication bus port of the upper computer is in parallel communication connection with the plurality of communication switching modules through a communication bus to realize the communication between the upper computer and the communication switching modules and between the communication switching modules and the communication switching modules; the special test communication port of the upper computer is in parallel communication connection with the plurality of communication switching modules through the test bus, so that test communication between the upper computer and the equipment is realized. The equipment is provided with special upper computer software, the upper computer software controls any selected communication switching module to enter a test state through a communication bus, and the upper computer software performs parameter setting, debugging and fault detection on the equipment connected with the selected control module through the test bus. Each communication switching module has a corresponding address, the upper computer selects a certain module and only transmits the address of the module to each communication switching module connected in parallel through a communication bus, the communication switching modules with the same address can be controlled to enter a test state, and the communication switching modules with different addresses cannot be controlled. When new equipment is added into the detection system, the first upper computer communication connecting end and the second upper computer communication connecting end of the communication switching module connected with the new equipment are connected with the upper computer in parallel through the test bus and the communication bus respectively, and then the new equipment is added into the equipment detection system, so that the easy expandability of the equipment detection system is realized. When the equipment needs to be set, debugged, detected and replaced, the direct connection between the upper computer and the equipment can realize the operations of setting, debugging, detecting and the like on the equipment by conveniently and quickly utilizing the special upper computer software of the equipment.
The equipment is provided with a communication interface, such as a card reader, a weighing instrument, a GPRS module, an LED display screen, a license plate camera and the like. Taking a card reader as an example, when the card reader normally works, the channel switching module only needs to receive a card number sent by the card reader, when an upper computer needs to test the card reader, the channel switching module is selected to enter a test state, after channels in the channel switching module are switched, the card reader is directly connected with the upper computer through a test bus, and the setting and debugging of a plurality of parameters can be completed on the upper computer by means of upper computer software which is equipped in the factory of the card reader, for example, the setting of a plurality of parameters such as baud rate, a trigger mode, power, wave band, trigger frequency, start address and read data length during card reading is performed, and the setting, debugging, detection and the like of the parameters of the card reader can be realized without secondary wiring or writing of communication data transfer codes.
Finally, although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that the present invention can be modified or replaced by other means without departing from the spirit and scope of the present invention, which should be construed as limited only by the appended claims.

Claims (9)

1. A communication switching module, characterized by: the device comprises a first communication unit, a second communication unit, a channel switching unit and a control unit, and is also provided with an equipment communication connecting end, a first upper computer communication connecting end and a second upper computer communication connecting end; the control unit is respectively in communication connection with the first communication unit and the second communication unit, the equipment communication connecting end is alternatively connected with the first communication unit and the first upper computer communication connecting end through the channel switching unit, the second communication unit is also electrically connected with the second upper computer communication connecting end, and the control end of the channel switching unit is electrically connected with the control unit in a triggering mode.
2. The communication switching module of claim 1, wherein: the channel switching unit comprises an electronic switch, the electronic switch comprises a public switch connecting end, a first switch connecting end and a second switch connecting end, the public switch connecting end is electrically connected with the equipment communication connecting end, the first switch connecting end is electrically connected with the first communication unit, and the second switch connecting end is electrically connected with the first upper computer communication connecting end.
3. A communication switching module according to claim 2, characterized in that: the electronic switch is an analog switch chip.
4. A communication switching module according to claim 2, characterized in that: the electronic switch is a relay.
5. The communication switching module of claim 4, wherein: the channel switching unit further comprises a driving circuit, the control unit is electrically connected with the triggering end of the relay through the driving circuit, and the driving circuit is a triode switch driving circuit or an MOS tube switching circuit.
6. The communication switching module of claim 5, wherein: the channel switching unit further comprises an optical coupling isolation circuit, the control unit is electrically connected with a photoelectric trigger end of the optical coupling isolation circuit, and an optical switch output end of the optical coupling isolation circuit is electrically connected with a trigger end of the driving circuit, so that the control unit is electrically isolated from the driving circuit.
7. The communication switching module of claim 1, wherein: the first communication unit and the second communication unit are one of a 485 communication unit, a 232 communication unit, a USB communication unit or a CAN communication unit.
8. The communication switching module of claim 5, wherein: the triode switch driving circuit or the MOS tube switch circuit comprises a light emitting diode, and the light emitting diode is connected with the output end of the optical switch of the optical coupling isolation circuit in series and is connected to the trigger end of the relay.
9. An equipment testing system, characterized by: the communication switching module comprises an upper computer, equipment and the communication switching module as claimed in any one of claims 1 to 8, wherein the upper computer comprises a communication bus port and a test special communication port, a first upper computer communication connecting end of the communication switching module is connected with the test special communication port of the upper computer through a test bus, a second upper computer communication connecting end of the communication switching module is connected with the communication bus port of the upper computer through a communication bus, and an equipment communication connecting end of the communication switching module is in communication connection with the equipment.
CN202020746610.7U 2020-05-08 2020-05-08 Communication switching module and equipment testing system Active CN211878440U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202020746610.7U CN211878440U (en) 2020-05-08 2020-05-08 Communication switching module and equipment testing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202020746610.7U CN211878440U (en) 2020-05-08 2020-05-08 Communication switching module and equipment testing system

Publications (1)

Publication Number Publication Date
CN211878440U true CN211878440U (en) 2020-11-06

Family

ID=73234046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202020746610.7U Active CN211878440U (en) 2020-05-08 2020-05-08 Communication switching module and equipment testing system

Country Status (1)

Country Link
CN (1) CN211878440U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114687083A (en) * 2020-12-30 2022-07-01 杰克科技股份有限公司 Time-sharing processing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114687083A (en) * 2020-12-30 2022-07-01 杰克科技股份有限公司 Time-sharing processing system
CN114687083B (en) * 2020-12-30 2023-06-27 杰克科技股份有限公司 Time-sharing processing system

Similar Documents

Publication Publication Date Title
CN200986582Y (en) Communication cable integration integrated test device
CN211878440U (en) Communication switching module and equipment testing system
CN103926530A (en) Isolated detection circuit for states of relays inside scanning switch
CN202256646U (en) Analog remote signaling control and measurement device
CN101835313B (en) LED control device with current monitoring function
CN203849373U (en) Isolation detection circuit for scanning state of relay in switch
CN210894633U (en) Power supply function testing device
CN210465652U (en) Portable multi-interface communication cable testing tool
CN110164343A (en) A kind of reverse-timing display device detection method, device, system and control system
CN102186288A (en) Intelligent LED (Light Emitting Diode) driving chip
CN204903978U (en) Communication signals self -adaptation device between test system and sorting machine
CN205826811U (en) A kind of aging testing system
CN208937665U (en) Transmit Digital Distribution Frame tester
CN201360257Y (en) Miniature pluggable optical module alarm monitoring device
CN101436425B (en) Circuit for controlling power supply of functional module and wireless data terminal equipment
CN211505837U (en) On-off detection device supporting various cables
CN114325149A (en) Special robot electrical fault diagnosis system
CN108107301B (en) Optocoupler testing device
CN207965644U (en) A kind of industrial personal computer apparatus front panel key detection device
CN217560794U (en) Illuminance conventional test and point inspection calibration automatic switching device and test system
CN220105867U (en) Teaching control circuit for electrical fault removal
CN212723995U (en) Computer software testing arrangement
CN215344035U (en) Automatic test equipment of communication
CN216772238U (en) Isolated input/output control circuit with constant current source drive
CN219369963U (en) Portable digital display connector wire harness number detection device

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant