Signal universal type plug connector and cable conduction tester
By designing a universal signal connector and a cable continuity tester, the problems of testing errors and inaccuracies in multi-core cable testing were solved, achieving efficient and accurate cable testing, adapting to different plug models, and possessing data storage and search functions.
Patent Information
- Application Number
- CN202511993718.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-26
- Publication Date
- 2026-02-27
AI Technical Summary
In railway signaling construction, testing of multi-core cables is prone to errors, inaccuracies, and misalignments. Furthermore, manual testing is limited by communication methods and plug size, affecting testing efficiency and accuracy.
A universal signal connector and cable continuity tester was designed, including a transmitter module, a receiver module, test cables, a storage module, a display module, and control logic. It adopts a serial-to-parallel conversion chip, an I/O expansion chip, a common cathode LED indicator array, and the Modbus RTU protocol to realize three working modes: automatic line testing, manual line testing, and line inspection. It also has data storage and search functions.
It improves testing accuracy, is not limited by the size and shape of multi-core cable plugs, has data storage and search functions, is small and lightweight, adapts to different types of cable plugs, and has high testing efficiency.
Smart Images

Figure CN121578192A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of railway signaling construction, and in particular relates to a universal signaling connector and a cable continuity tester. Background Technology
[0002] In the field of railway signaling construction, cable verification is one of the most important tasks after the cables are laid. However, due to the limitations of the number of cores and finished plugs, the testing of multi-core cables is prone to errors. In addition, the wide variety of multi-core cables and their diverse structures bring many inconveniences to on-site testing and seriously affect the testing efficiency at the construction site.
[0003] Currently, multi-core cable testing mostly uses manual testing methods. However, manual testing methods often rely on communication methods such as shouting, walkie-talkies, telephone calls, and magneto telephones. Due to the limitations of these communication methods, inaccurate testing and misalignment are prone to occur during the testing process, affecting testing efficiency. In addition, manual testing is also prone to wire mixing and breakage due to the size limitations of the plugs of the tested products, affecting testing accuracy. Summary of the Invention
[0004] In view of this, the present invention aims to provide a universal signal connector and a cable continuity tester to solve at least one of the problems existing in the prior art.
[0005] To achieve the above objectives, the technical solution of the present invention is implemented as follows:
[0006] A universal signal connector and cable continuity tester includes a transmitter module, a receiver module, a test cable, a storage module, a display module, and control logic;
[0007] The transmitter module includes a connector, a microcontroller module, a serial-to-parallel conversion output module, an I / O expansion input module, and a storage module.
[0008] The receiving module includes a connector, a receiving line testing module, and a receiving line tracing module.
[0009] One end of the transmitter module is connected to the display module, and the other end of the transmitter module is connected to one end of the test cable, and the other end of the test cable is connected to the receiver module; the display module is connected to several transmitter modules.
[0010] The connector of the transmitter module is connected to the plug at one end of the test cable. The serial-to-parallel conversion output module, the I / O expansion input module, and the storage module are all connected to the microcontroller module. The serial-to-parallel conversion output module is connected to the connector of the transmitter module. The microcontroller module is connected to the display module.
[0011] The connector of the receiving module is connected to the plug at the other end of the test cable, and the connector of the receiving module is connected to the receiving test line module.
[0012] Both the connectors of the transmitter module and the receiver module are detachable and are compatible with cable plugs.
[0013] Furthermore, the serial-to-parallel conversion output module includes several serial-to-parallel conversion chips, which are connected in a cascaded manner. The serial port of the serial-to-parallel conversion chip is connected to the microcontroller, and the parallel port of the serial-to-parallel conversion chip is connected to the connector of the transmitter module.
[0014] Furthermore, the I / O expansion input module includes several I / O expansion chips, all of which are connected to the microcontroller via an SPI interface. The I / O expansion chips share one SPI interface of the microcontroller. The chip select signal line of the I / O expansion chip is connected to the GPIO of the microcontroller, and the GPIO of the I / O expansion chip is connected to an optocoupler.
[0015] Furthermore, the receiving end test line module includes a common cathode LED indicator array, the array includes a multi-channel LED indicator module, the LED indicator module includes a resistor, an LED and a diode, one end of the resistor is connected in series with the LED, the diode is connected in reverse parallel with the LED, the other end of the resistor is connected to the connector of the receiving end module, and the LEDs of the multi-channel LED indicator module share a common cathode.
[0016] Furthermore, the receiving end line-following module includes an antenna and two power amplifier modules, which are connected in a cascaded manner.
[0017] Furthermore, the microcontroller and the display module are connected via a serial port, and the two communicate via the Modbus RTU protocol. The data area of the Modbus RTU includes coils, discrete inputs, holding registers, and input registers.
[0018] Furthermore, the control logic includes:
[0019] Clicking the home UI interface of the display module allows you to write parameters to the microcontroller's holding register. Based on these parameters, you can select the operating mode, which includes automatic line testing, manual line testing, and line patrol. In manual line testing, clicking the manual line testing UI interface of the display module allows you to write a 1 to the microcontroller's coil. Based on the coil data, an analog signal is sent to the corresponding cable. By reading the discrete input, you can determine the cable's continuity. In automatic line testing, you write 1 to the coil sequentially, thereby sending an analog signal to each cable sequentially, and then determining the continuity of the corresponding cable. In line patrol, you write 1 or 0 to all coils in PWM mode.
[0020] Compared with existing technologies, the universal signal connector and cable continuity tester described in this invention have the following advantages:
[0021] The universal signal connector and cable continuity tester of the present invention are not limited by the size and shape of multi-core cable plugs, and have higher testing accuracy. The tester has data storage and data retrieval functions. The various functional modules of the tester are reasonably designed and can be installed in a suitcase, making the tester small, lightweight and portable. Attached Figure Description
[0022] The accompanying drawings, which form part of this invention, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an undue limitation of the invention. In the drawings:
[0023] Figure 1 This is a schematic diagram of the transmitter module described in an embodiment of the present invention. Figure 1 ;
[0024] Figure 2 This is a schematic diagram of the transmitter module described in an embodiment of the present invention. Figure 2 ;
[0025] Figure 3 This is a schematic diagram of the transmitter module described in an embodiment of the present invention. Figure 3 ;
[0026] Figure 4 This is a schematic diagram of the receiving end test line module according to an embodiment of the present invention;
[0027] Figure 5 This is a schematic diagram of the receiver line-following module according to an embodiment of the present invention;
[0028] Figure 6 This is a schematic diagram of the microcontroller control logic described in an embodiment of the present invention;
[0029] Figure 7 This is a schematic diagram of the display module according to an embodiment of the present invention. Detailed Implementation
[0030] It should be noted that, unless otherwise specified, the embodiments and features described in the present invention can be combined with each other.
[0031] In the description of this invention, it should be understood that the terms "center," "longitudinal," "lateral," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Furthermore, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined with "first," "second," etc., may explicitly or implicitly include one or more of that feature. In the description of this invention, unless otherwise stated, "a plurality of" means two or more.
[0032] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art will understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0033] The present invention will now be described in detail with reference to the accompanying drawings and embodiments.
[0034] like Figures 1 to 7 As shown, a universal signal connector and cable continuity tester includes a transmitter module, a receiver module, a test cable, a storage module, a display module, and control logic. The transmitter module includes connectors, a microcontroller module, a serial-to-parallel conversion output module, an I / O expansion input module, and a storage module. The receiver module includes connectors, a receiver line testing module, and a receiver line tracking module. One end of the transmitter module is connected to the display module, and the other end of the transmitter module is connected to one end of the test cable, which in turn is connected to the receiver module. The display module is connected to several transmitter modules. The connector of the transmitting module is connected to the plug at one end of the test cable. The serial-to-parallel conversion output module, I / O expansion input module, and storage module are all connected to the microcontroller module. The serial-to-parallel conversion output module is connected to the connector of the transmitting module, and the microcontroller module is connected to the display module. The connector of the receiving module is connected to the plug at the other end of the test cable, and the connector of the receiving module is connected to the receiving test line module. Both the connectors of the transmitting and receiving modules are detachable, which allows the tester to adapt to different types of cable plugs, improving its versatility.
[0035] The present invention has the following advantages: the tester is not limited by the size and shape of the finished plug of multi-core cable, and the test accuracy is higher; the tester has data storage function and data search function; the various functional modules of the tester are reasonably designed and can be installed in a suitcase, making the tester small, lightweight and portable.
[0036] In a preferred embodiment of the present invention, the serial-to-parallel conversion output module includes a plurality of serial-to-parallel conversion chips, which are connected in a cascaded manner. The serial port of the serial-to-parallel conversion chip is connected to a microcontroller, and the parallel port of the serial-to-parallel conversion chip is connected to a connector of the transmitter module.
[0037] In this embodiment, the serial-to-parallel conversion output module is a key signal conversion circuit in the cable tester, responsible for converting the serial data from the microcontroller into parallel signal output. Its core components include: a serial-to-parallel conversion chip: using a 74HC595D chip, with multiple chips connected in a cascaded manner; the Q7S output of the preceding chip is connected to the DS input of the following chip; the clock signals of all chips are connected in parallel; during signal flow, data is output from the microcontroller's serial port, converted to parallel, and then connected to the connector of the transmitting module via a parallel port; during data transmission, the microcontroller sends serial data to the serial-to-parallel conversion chip via the serial port; and it can perform cascading processing, with multiple 74HC595D chips connected in a cascaded manner to achieve parallel output of multiple data bits; during signal output, the converted parallel signal is output through ports Q0-Q7, processed by a capacitor and resistor network, and then connected to the connector; it also has circuit protection, with a capacitor and resistor connected in series at each parallel output port; diodes are connected in parallel with capacitors to provide reverse voltage protection; the serial-to-parallel conversion output module achieves efficient serial-to-parallel conversion, providing a stable parallel signal output channel for cable testing.
[0038] In a preferred embodiment of the present invention, the I / O expansion input module includes a plurality of I / O expansion chips, all of which are connected to a microcontroller via an SPI interface. The plurality of I / O expansion chips share one SPI interface of the microcontroller. The chip select signal line of the I / O expansion chip is connected to the GPIO of the microcontroller, and the GPIO of the I / O expansion chip is connected to an optocoupler.
[0039] In this embodiment, the I / O expansion input module is a circuit design based on the SPI interface, used to expand the input / output capabilities of a microcontroller. Its core components include: I / O expansion chips: using the MCP23S17T chip, communicating with the microcontroller via the SPI interface; interface sharing: multiple I / O expansion chips share a single SPI interface of the microcontroller, saving hardware resources; chip select control: the chip select signal line of each I / O expansion chip is connected to the microcontroller's GPIO, enabling independent control; opto-isolation: the GPIO of the I / O expansion chips is connected to optocouplers, providing electrical isolation and anti-interference capabilities; SPI bus sharing: multiple chips communicate through the same SPI bus, distinguishing different chips through the chip select signal; opto-coupler protection: the optocoupler provides electrical isolation of input signals, improving the system's anti-interference capability; flexible expansion: the number of I / O expansion chips can be increased as needed to expand input / output channels. The I / O expansion input module can be used in industrial control, testing equipment, and other applications requiring a large number of input / output channels and high reliability.
[0040] In a preferred embodiment of the present invention, the receiving end test line module includes a common cathode LED indicator array, the array including a multi-channel LED indicator module, the LED indicator module including a resistor, an LED and a diode, one end of the resistor is connected in series with the LED, the diode is connected in reverse parallel with the LED, the other end of the resistor is connected to the connector of the receiving end module, and the LEDs of the multi-channel LED indicator module share a common cathode.
[0041] In this embodiment, the common cathode LED indicator array is a circuit design for multi-channel LED indicators. Each LED indicator module in its circuit structure includes a current-limiting resistor, an LED, and a reverse-parallel diode. One end of the resistor is connected in series with the LED for current-limiting protection. The diode (such as 1N4148WS) is connected in reverse parallel with the LED to provide reverse voltage protection. The other end of the resistor is connected to the connector of the receiving module. The LEDs of the multi-channel LED indicator module are grounded with a common cathode. This provides current-limiting protection to prevent the LED from burning out due to excessive current caused by voltage fluctuations or insufficient forward voltage drop. It also provides reverse voltage protection; when a reverse voltage occurs in the circuit, the diode conducts in the forward direction, clamping the reverse voltage to a safe value (0.7V for silicon diodes, 0.3V for germanium diodes), protecting the LED from reverse breakdown. Furthermore, the on / off state of the LEDs can visually indicate the continuity of the cable, effectively protecting the LED indicators and improving the system's reliability and anti-interference capability.
[0042] In a preferred embodiment of the present invention, the receiving-end line-tracking module includes an antenna and two power amplifier modules, which are connected in a cascaded manner. This is the core structural design of the receiving-end line-tracking module in the present invention. The cascaded connection means that the two power amplifier modules are connected sequentially, with the output of the previous stage serving as the input of the next stage. This design enhances signal amplification capability and improves the detection sensitivity and reliability of the system. The receiving-end line-tracking module is mainly used for cable line detection. It receives signals through the antenna, and then performs judgment after two stages of power amplification. The cascaded structure effectively improves signal strength and ensures detection performance in complex environments.
[0043] In a preferred embodiment of the present invention, the microcontroller and the display module are connected via a serial port and communicate with each other via the Modbus RTU protocol. The data area of the Modbus RTU includes coils, discrete inputs, holding registers, and input registers.
[0044] In this embodiment, the Modbus RTU protocol is a serial communication protocol widely used in industrial automation. Its data area type has a readable and writable coil for controlling output devices (such as relays), a discrete input type that is read-only for reading switch states, a holding register that is readable and writable for storing configuration parameters, and an input register that is read-only for reading sensor data. In the cable testing system of this invention, the Modbus RTU protocol enables communication control between the microcontroller and the display module: writing operating mode parameters through the holding register; sending control signals through the coil; and reading the cable continuity status through the discrete input; enabling the system to flexibly switch between three operating modes: automatic cable testing, manual cable testing, and cable inspection.
[0045] In a preferred embodiment of the present invention, the control logic includes:
[0046] Clicking the home UI interface of the display module allows you to write parameters to the microcontroller's holding register. Based on these parameters, you can select the operating mode, which includes automatic line testing, manual line testing, and line patrol. In manual line testing, clicking the manual line testing UI interface of the display module allows you to write a 1 to the microcontroller's coil. Based on the coil data, an analog signal is sent to the corresponding cable. By reading the discrete input, you can determine the cable's continuity. In automatic line testing, you write 1 to the coil sequentially, thereby sending an analog signal to each cable in turn, and then determining the continuity of the corresponding cable. In line patrol, you write 1 or 0 to all coils in PWM mode.
[0047] In this embodiment, the control logic embodies the control flow of three working modes of the cable testing system based on the Modbus RTU protocol:
[0048] The three operating modes are: Automatic Line Testing: The system sequentially writes a 1 to each coil and sends an analog signal to each cable, then determines the continuity status of each cable by reading the discrete input; Manual Line Testing: After clicking on the interface, the user writes a 1 to a specific coil and sends an analog signal to the corresponding cable, then determines the continuity status of the cable by reading the discrete input; Line Inspection: Using PWM (Pulse Width Modulation), the system writes 1 or 0 to all coils to achieve the inspection function.
[0049] The core control process includes: operating through the UI interface of the display module; writing parameters to the microcontroller's holding register to select the working mode; operating coil data according to different modes; reading the cable status through discrete inputs; and realizing the detection and judgment of the cable continuity status.
[0050] The control logic of this invention enables the system to flexibly switch between different test modes to adapt to various cable testing needs.
[0051] Example 1: As Figures 1 to 3 As shown, the transmitter module
[0052] The microcontroller used is STM32, the serial-to-parallel converter chip is 74HC595D, and the I / O expansion chip is MCP23S17T.
[0053] Using the bus driver chip 74HCT245PW, the STM32 drives five 74HC595D chips through three GPIOs. The 74HCT245PW is used to enhance bus driving capability and level matching.
[0054] Five 74HC595D chips are cascaded: the Q7S (serial output) of the previous chip is connected to the DS (serial input) of the next chip; the SHCP (shift clock) and STCP (latch clock) of all chips are connected in parallel to the same I / O port of the 74HCT245PW; the output is sent to the last chip first, then to the middle chips, and finally to the first chip. When the STCP latches, all chips update their outputs simultaneously.
[0055] The Q0-Q7 (parallel output ports) of the 74HC595D are all connected in series with capacitors, capacitors are connected in series with resistors, capacitors are connected in parallel with diodes, and resistors are connected to connectors.
[0056] The three MCP23S17T chips share one SPI interface of the STM32. The chip select signal CS of each MCP23S17T is connected to one GPIO of the STM32, and each GPIO of the MCP23S17T is connected to an optocoupler.
[0057] This embodiment illustrates a hardware design scheme for a transmitter module based on STM32, which mainly includes the following core components and connection methods: Core components: The main control chip is an STM32 microcontroller; the serial-to-parallel conversion chip consists of five cascaded 74HC595D chips; the I / O expansion chip consists of three MCP23S17T chips; and the bus driver chip is a 74HCT245PW, which enhances driving capability and level matching.
[0058] Connection method: In the 74HC595D cascade connection, the front-end Q7S is connected to the lower-end DS; the SHCP and STCP of all chips are connected in parallel to the 74HCT245PW; the data transmission order is: end, middle, first chip, updated simultaneously during latching. In the output circuit protection, the outputs of Q0-Q7 are all connected in series with capacitors; capacitors are connected in series with resistors, and capacitors are connected in parallel with diodes; finally, they are connected to the connector through resistors. In the MCP23S17T connection, the STM32's SPI interface is shared; each chip's independent chip select (CS) is connected to a different GPIO; each GPIO is connected to an optocoupler.
[0059] This embodiment uses 3 GPIOs to control 5 74HC595Ds, saving I / O resources; the cascaded design can realize multi-bit parallel output expansion; the optocoupler can provide electrical isolation and improve the system's anti-interference capability.
[0060] Example 2: Figure 4 As shown, the receiver test line module
[0061] The resistor is a current-limiting resistor, and the diode is a 1N4148WS.
[0062] The common cathode LED indicator array includes a multi-channel LED indicator module. Each LED indicator module includes a resistor, an LED, and a diode. The resistor is a current-limiting resistor, which limits the current flowing through the LED to prevent excessive current from burning out the LED due to voltage fluctuations or insufficient forward voltage drop. One end of the current-limiting resistor is connected in series with the LED, and the diode is connected in reverse parallel with the LED. The diode is a 1N4148WS. When a reverse voltage occurs in the circuit, the diode conducts in the forward direction, clamping the reverse voltage at 0.7V (silicon diode) or 0.3V (germanium diode), protecting the LED from reverse breakdown. The other end of the current-limiting resistor is connected to the connector of the receiving module. The LEDs of the multi-channel LED indicator module are grounded with a common cathode.
[0063] In this embodiment, the common cathode LED indicator array is an LED display circuit design. Each LED module includes a current-limiting resistor, an LED, and a 1N4148WS diode. The resistor is connected in series with the LED, and the diode is connected in reverse parallel with the LED. The current-limiting resistor controls the LED current, preventing voltage fluctuations or insufficient forward voltage drop from causing excessive current and burning out the LED. The diode provides reverse protection; when a reverse voltage occurs in the circuit, the diode conducts in the forward direction, clamping the reverse voltage to 0.7V (for silicon diodes), protecting the LED from reverse breakdown. One end of the current-limiting resistor is connected in series with the LED, and the other end is connected to the connector of the receiving module. The LEDs in the multi-channel LED module are grounded via a common cathode. This embodiment ensures both normal LED operation and reliable reverse voltage protection, making it suitable for industrial control scenarios requiring stable display.
[0064] Example 3: Figure 5 As shown, the receiving end line-following module
[0065] The inverting input terminal of power amplifier U1 is connected to one end of capacitor C6. The other end of capacitor C6 is connected to one end of capacitor C5 and one end of resistor R9. The other end of capacitor C5 is grounded. The other end of resistor R9 is connected to one end of capacitor C4 and one end of resistor R8. The other end of capacitor C4 is grounded.
[0066] The non-inverting input terminal of power amplifier U2 is connected to one end of capacitor C3. The other end of capacitor C3 is connected to the adjustable contact of variable resistor VR1 and the other end of resistor R8. One end of variable resistor VR1 is connected to one end of capacitor C14 and one end of resistor R18. The other end of capacitor C14 is grounded. The other end of resistor R18 is connected to the source of MOSFET Q1. The gate of MOSFET Q1 is connected to one end of resistor R3 and one end of resistor R2. The drain of MOSFET Q1 is connected to one end of resistor R5, one end of resistor R6 and one end of capacitor C2. The other end of capacitor C2 is grounded.
[0067] The other end of resistor R2 is connected to one end of capacitor C1. Capacitor C1 is connected to the anode of diode D1, the cathode of diode D2, and antenna ANT1 respectively. The cathode of diode D1 and the anode of diode D2 are both connected to one end of resistor R1. The other end of resistor R1 is grounded.
[0068] The other end of resistor R3 is connected to the other end of resistor R5 and one end of resistor R4, and the other end of resistor R4 is grounded.
[0069] The other end of resistor R6 is connected to the positive terminal of polarized capacitor E1, the positive terminal of polarized capacitor E11, the positive terminal of power amplifier U1, and one end of resistor R7. The negative terminal of polarized capacitor E1 is grounded, and polarized capacitor E11 is grounded.
[0070] The other end of resistor R7 is connected to pin 1 of switch SW1, the anode of LED1, the positive terminal of polarized capacitor E10, the positive terminal of polarized capacitor E2, and the positive terminal of power amplifier U2, respectively.
[0071] The output terminal of power amplifier U1 is connected to one end of capacitor C7 and one end of capacitor C8 respectively. The other end of capacitor C7 is connected to one end of resistor R10, and the other end of resistor R10 is grounded. The other end of capacitor C8 is connected to one end of capacitor C9 and one end of resistor R11 respectively. The other end of capacitor C9 is connected to one end of capacitor C12 and the non-inverting input terminal of power amplifier U2 respectively. The other end of capacitor C12 is grounded.
[0072] The inverting input of power amplifier U2 is grounded. The output of power amplifier U2 is connected to the positive terminal of polarized capacitor E12, the positive terminal of polarized capacitor E3, and one end of resistor R12. The other end of resistor R12 is connected to one end of capacitor C11, and the other end of capacitor C11 is grounded. The negative terminal of polarized capacitor E12 is connected to one end of resistor R16, the negative terminal of polarized capacitor E3, and pins 5 and 2 of interface J1. Pin 1 of interface J1 is connected to buzzer BZ1.
[0073] The other end of resistor R16 is connected to resistor R17 and the base of transistor Q2 respectively. The other end of resistor R17 is grounded. The emitter of transistor Q2 is grounded. The collector of transistor Q2 is connected to one end of resistor R15. The other end of resistor R15 is connected to one end of capacitor C13 and the cathode of LED1 respectively. The other end of capacitor C13 is grounded.
[0074] Pin 2 of switch SW1 is connected to pin 2 of DIP switch SW2, pin 3 of DIP switch SW2, and pin 1 of battery BT1. Pin 2 of battery BT1 is grounded. Pin 4 of DIP switch SW2 is connected to one end of resistor R14. The other end of resistor R14 is connected to the anode of LED2. The cathode of LED2 is grounded.
[0075] This embodiment illustrates the circuit connection of a receiver-side line-following module. This module is mainly used for signal reception, amplification, and processing, and works with an antenna and LED indicators to achieve line-following functionality. Its power amplifier circuit includes two power amplifiers, U1 and U2, for signal amplification; its filtering circuit consists of a filtering network composed of multiple capacitors (C4-C14) to ensure signal quality; its MOSFET driver is Q1 MOSFET used for signal switching and control; its antenna interface uses ANT1 antenna to receive external signals; its protection circuit provides reverse voltage protection through diodes D1 and D2; its power management uses multiple polarized capacitors (E1-E12) for power filtering and voltage regulation; its indicator circuit provides status indication through LED1, LED2, and buzzer BZ1; and its interface circuit uses J1 interface for external connection and control. In use, the antenna first receives the signal, then the power is amplified, then filtered, and finally the output is controlled; the sensitivity is adjusted by a variable resistor VR1; the operating status is displayed by LED indicators; and sound feedback is provided by a buzzer.
[0076] Example 4: Figure 6 As shown, the microcontroller control logic
[0077] Initialization: HAL, system clock, GPIO, timers, SPI conversion, serial port;
[0078] Each MCP23S17's I / O direction is set to input;
[0079] Based on the coil data, an analog signal is sent to the cable;
[0080] Select the operating mode based on the data in the holding register;
[0081] If it is an automatic line measurement, write 1 to the coil in sequence, and then read the discrete input;
[0082] If it is a manual line survey, then read the discrete input;
[0083] If it is line following, then in PWM form, all coils are written with 1 or 0;
[0084] If the serial port receives Modbus data packets, extract the function code, operate the Modbus data area based on the function code, and respond accordingly;
[0085] Based on the coil data, analog signals are sent to the cable in a loop.
[0086] This embodiment illustrates the workflow of a microcontroller control system based on the MCP23S17 chip, primarily involving cable testing functionality. Its core functional modules mainly include system initialization, which configures the HAL library, system clock, GPIO, timers, SPI interface, and serial port; and sets each MCP23S17 I / O pin to input mode. During operating mode selection, three modes are chosen based on the holding register data: Automatic line testing: coils are sequentially written with 1s, then discrete inputs are read; Manual line testing: discrete inputs are directly read; Line following: all coils are controlled to write 1s or 0s using PWM. During Modbus communication processing, Modbus data packets are received via the serial port; function codes are extracted and the corresponding Modbus data areas are manipulated; and response data is generated. During signal output control, analog signals are sent to the cable based on the coil data; and the above process is executed cyclically. The MCP23S17 chip features include a 16-bit I / O expander, support for the SPI interface, independent configuration of each pin as input or output, support for internal pull-up resistors and interrupt functions, and support for up to eight chips connected in parallel on the same SPI bus.
[0087] This tester can be used in industrial cable testing equipment, and through flexible I / O expansion and multiple working modes, it can achieve high-precision testing of different types of cables.
[0088] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A universal signal connector and cable continuity tester, characterized in that: It includes a transmitter module, a receiver module, test cables, a storage module, a display module, and control logic; The transmitter module includes a connector, a microcontroller module, a serial-to-parallel conversion output module, an I / O expansion input module, and a storage module. The receiving module includes a connector, a receiving line testing module, and a receiving line tracing module. One end of the transmitter module is connected to the display module, and the other end of the transmitter module is connected to one end of the test cable, and the other end of the test cable is connected to the receiver module; the display module is connected to several transmitter modules. The connector of the transmitter module is connected to the plug at one end of the test cable. The serial-to-parallel conversion output module, the I / O expansion input module, and the storage module are all connected to the microcontroller module. The serial-to-parallel conversion output module is connected to the connector of the transmitter module. The microcontroller module is connected to the display module. The connector of the receiving module is connected to the plug at the other end of the test cable, and the connector of the receiving module is connected to the receiving test line module. Both the connectors of the transmitter module and the receiver module are detachable and are compatible with cable plugs.
2. The universal signal connector and cable continuity tester according to claim 1, characterized in that: The serial-to-parallel conversion output module includes several serial-to-parallel conversion chips, which are connected in a cascaded manner. The serial port of the serial-to-parallel conversion chip is connected to a microcontroller, and the parallel port of the serial-to-parallel conversion chip is connected to a connector of the transmitter module.
3. The universal signal connector and cable continuity tester according to claim 1, characterized in that: The I / O expansion input module includes several I / O expansion chips. Each of the I / O expansion chips is connected to the microcontroller via an SPI interface. The I / O expansion chips share one SPI interface of the microcontroller. The chip select signal line of the I / O expansion chip is connected to the GPIO of the microcontroller. The GPIO of the I / O expansion chip is connected to an optocoupler.
4. The universal signal connector and cable continuity tester according to claim 1, characterized in that: The receiving end test line module includes a common cathode LED indicator array. The array includes multiple LED indicator modules. Each LED indicator module includes a resistor, an LED, and a diode. One end of the resistor is connected in series with the LED, and the diode is connected in reverse parallel with the LED. The other end of the resistor is connected to the connector of the receiving end module. The multiple LED indicator modules share a common cathode.
5. The universal signal connector and cable continuity tester according to claim 1, characterized in that: The receiving end line-following module includes an antenna and two power amplifier modules, which are connected in a cascaded manner.
6. The universal signal connector and cable continuity tester according to claim 1, characterized in that: The microcontroller and the display module are connected via a serial port and communicate with each other via the Modbus RTU protocol. The data area of the Modbus RTU includes coils, discrete inputs, holding registers, and input registers.
7. The universal signal connector and cable continuity tester according to claim 6, characterized in that: The control logic includes: Clicking the home UI interface of the display module allows you to write parameters to the microcontroller's holding register. Based on these parameters, you can select the operating mode, which includes automatic line testing, manual line testing, and line patrol. In manual line testing, clicking the manual line testing UI interface of the display module allows you to write a 1 to the microcontroller's coil. Based on the coil data, an analog signal is sent to the corresponding cable. By reading the discrete input, you can determine the cable's continuity. In automatic line testing, you write 1 to the coil sequentially, thereby sending an analog signal to each cable sequentially, and then determining the continuity of the corresponding cable. In line patrol, you write 1 or 0 to all coils in PWM mode.