RS485 interface testing device

The RS485 interface test device uses a converter to realize the conversion between RS232 and RS485 interfaces, which solves the tedious problem of RS485 interface testing and realizes efficient interface detection.

CN120653495APending Publication Date: 2025-09-16MITAC COMP (SHUN DE) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410285846.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-13
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

In the prior art, there are differences between the RS232 interface and the RS485 interface, which results in cumbersome RS485 interface testing and a lack of effective testing methods.

Method used

Through the RS485 interface test device, the communication connection between the RS232 interface and the RS485 interface is realized by using a converter, and the conversion between the full-duplex RS232 interface and the half-duplex RS485 interface is adopted to simplify the test process.

Benefits of technology

It realizes efficient detection of RS485 interface based on RS232 interface, simplifies the test process and improves test efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120653495A_ABST
    Figure CN120653495A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, and discloses an RS485 interface testing device, which is used for testing an RS485 interface on an RS485 module, and comprises a converter, an RS485 interface testing module, an RS485 interface testing module and an RS485 interface testing module, a main controller; the RS232 interface is connected with the main controller and is in communication connection with the RS485 interface through the converter, and the RS232 interface is provided with a third receiving end and a third transmitting end; and when the main controller receives the test response signal through the third receiving end of the RS232 interface, the main controller judges whether the test signal corresponds to the test response signal, and when the test signal corresponds to the test response signal, the main controller displays that the test is normal through a display module. In this way, the RS485 interface on the mainboard can be tested quickly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, in particular to an RS485 interface testing device. Background Art

[0002] In daily factory testing, the industrial computers involved in the test are all equipped with RS485 interfaces. However, most of the current interface testing methods are for RS232 interfaces. Moreover, there are significant differences between RS232 interfaces and RS485 interfaces. If the RS485 interface needs to be tested, additional circuits or devices are required, which is very cumbersome. Therefore, how to implement RS485 interface testing based on RS232 interfaces is a technical challenge that needs to be solved. Summary of the Invention

[0003] The purpose of the present invention is to provide an RS485 interface testing device to quickly test the RS485 interface on a mainboard.

[0004] To achieve the above object, the present invention provides the following technical solutions: An RS485 interface testing device is used for testing an RS485 interface on an RS485 module, wherein the RS485 module includes the RS485 interface and an RS485 controller, wherein the RS485 interface has a first receiving end, a second receiving end, a first transmitting end, and a second transmitting end, and the RS485 interface testing device includes: a converter; a main controller; and an RS232 interface connected to the main controller and communicatively connected to the RS485 interface through the converter, wherein the RS232 interface has a third receiving end and a third transmitting end; wherein, when the main controller sends a test signal to the converter through the third transmitting end of the RS232 interface, the converter divides the test signal into a first receiving signal and a second receiving signal, and the converter sends the first receiving signal and the second receiving signal to the first receiving end and the second transmitting end of the RS485 interface. The second receiving end, the RS485 controller outputs a first transmission signal corresponding to the first reception signal to the first transmission end of the RS485 interface according to the first reception signal and the second reception signal of the first receiving end and the second receiving end, and outputs a second transmission signal corresponding to the second reception signal to the second transmission end of the RS485 interface, the converter converts the first transmission signal and the second transmission signal into a test response signal corresponding to the test signal, and the converter sends the test response signal to the third receiving end of the RS232 interface. When the main controller receives the test response signal through the third receiving end of the RS232 interface, the main controller determines whether the test signal corresponds to the test response signal. When the test signal corresponds to the test response signal, the main controller displays that the test is normal through a display module.

[0005] Preferably, it also includes a delay module, which is arranged between the third receiving end and the converter. When the converter outputs the test response signal, the third receiving end receives the test response signal through the converter after a delay period corresponding to the delay module.

[0006] Preferably, when the test signal does not correspond to the test response signal, the controller displays an abnormal test through the display module.

[0007] Preferably, the model of the converter is UT-203.

[0008] Compared with the prior art, the present invention has the following advantages: the communication connection between the RS232 interface and the RS485 interface is realized by the converter; under the action of the converter, the conversion between the full-duplex RS232 interface and the half-duplex RS485 interface can be achieved, thereby solving the traditional problem of RS485 interface detection; at the same time, the conversion between the two can be achieved without overly complex circuits, and the detection of the RS485 interface is realized on the basis of RS232, thereby achieving high test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 This is the schematic diagram of the RS485 interface test device. DETAILED DESCRIPTION

[0010] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0011] It should be noted that when an element is referred to as being “fixed on” or “disposed on” another element, it may be directly on the other element or indirectly on the other element. When an element is referred to as being “connected to” another element, it may be directly connected to the other element or indirectly connected to the other element.

[0012] It should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as limiting the present invention.

[0013] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature identified as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, "plurality" means two or more, unless otherwise specifically defined.

[0014] See Figure 1The present invention provides an RS485 interface testing device 100, which is mainly used for testing the RS485 interface 201 on the RS485 module 200. The RS485 interface testing device 100 includes a converter 101, a main controller 102 and an RS232 interface 103. The communication connection between the RS232 interface 103 and the RS485 interface 201 is realized by the converter 101. Under the action of the converter 101, the full-duplex RS232 interface 103 and the half-duplex RS485 interface 201 can be converted, which solves the traditional problem of RS485 interface 201 detection. At the same time, the conversion between the two can be realized without overly complex circuits. The RS485 interface 201 is detected based on RS232, and the testing efficiency is high.

[0015] In this embodiment, the RS485 module 200 includes the RS485 interface 201 and the RS485 controller 202. The RS485 interface 201 has a first receiving end 203, a second receiving end 2031, a first transmitting end 204 and a second transmitting end 2041. The corresponding RS232 interface 103 has a third receiving end 104 and a third transmitting end 105. The RS232 interface 103 is connected to the main controller 102. When the main controller 102 sends a test signal to the converter 101 through the third transmitting end 105 of the RS232 interface 103, the converter 101 divides the test signal into a first receiving signal and a second receiving signal, and the converter 101 sends the first receiving signal and the second receiving signal to the first receiving end 203 and the second receiving end 2031 of the RS485 interface 201. The RS485 controller 202 generates a signal based on the first receiving end 203. The first receiving signal and the second receiving signal of the second receiving end 2031 output a first transmitting signal corresponding to the first receiving signal to the first transmitting end 204 of the RS485 interface 201, and output a second transmitting signal corresponding to the second receiving signal to the second transmitting end 2041 of the RS485 interface. The converter 101 combines the first transmitting signal and the second transmitting signal into a test response signal corresponding to the test signal, and the converter 101 sends the test response signal to the third receiving end 104 of the RS232 interface 103. When the main controller 102 receives the test response signal through the third receiving end 104 of the RS232 interface 103, the main controller 102 determines whether the test signal corresponds to the test response signal. When the test signal corresponds to the test response signal, the main controller 102 displays a normal test through a display module. Secondly, when the test signal does not correspond to the test response signal, the controller displays an abnormal test through the display module.

[0016] It should be noted that, because the RS485 port is a duplex mode, the TXD end for signal output is divided into TXD- and TXD+, and the RXD end for signal input is divided into RXD- and RXD+, while the RS232 interface 103 is a single-station mode, with its signal output end having only a TX end and its signal input end having only an RX end. Therefore, the transmission between them needs to adopt the RS485 interface test device 100, so as to quickly implement the test of the RS485 interface 201. That is, after the converter 101 divides the test signal into a first received signal and a second received signal, the RS485 port is provided with a first receiving end 203 and a second receiving end 2031, the first receiving end 203 receives the first received signal, and the second receiving end 2031 receives the second received signal. Similarly, in order to correspond to the above-mentioned first receiving end 203 and the second receiving end 2031, the transmitting ends on the RS485 port are respectively the first transmitting end 204 and the second transmitting end 2041, the first transmitting end 204 corresponds to the first receiving end 203, the second transmitting end 2041 corresponds to the second receiving end 2031, the first transmitting end 204 receives a first transmitting signal corresponding to the first receiving signal, and the second transmitting end 2041 receives a second transmitting signal corresponding to the second receiving signal.

[0017] As a preferred embodiment, the test signal is a high-level signal 1. The controller sends the high-level signal 1 to the RS485 interface 201 through the converter 101 via the third transmitting end 105 of the RS232 interface 103. Under the conversion of the converter 101, the test signal will divide the high-level signal 1 into a first receiving signal 1+ and a second receiving signal 1-. The converter 101 sends the first receiving signal 1+ and the second receiving signal 1- to the first receiving end 203 and the second receiving end 2031 of the RS485 interface 201. The RS485 controller 202 receives the first receiving signal 1+ and the second receiving signal 1- at the first receiving end 203. The second receiving signal 1- at the terminal 2031 outputs the first transmitting signal 1+' corresponding to the first receiving signal 1+ to the first transmitting terminal 204 of the RS485 interface 201, and outputs the second transmitting signal 1-' corresponding to the second receiving signal 1- to the second transmitting terminal 2041 of the RS485 interface 201, and then the converter 101 merges the first transmitting signal 1+' and the second transmitting signal 1-' into a test response signal 1' corresponding to the test signal. After the RS232 interface 103 receives the test response signal 1' through the third receiving terminal 104, the test response signal 1' is sent to the main controller 102. It should be noted that if the test signal sent from the RS232 interface 103 is a high-level signal 1, and if the RS485 interface 201 functions normally, then the test response signal 1' transmitted back to the RS232 interface 103 via the converter 101 should also be a high-level signal. If it is the same as the high-level signal 1 of the test signal, the test result of the RS485 interface 201 is considered to have passed, indicating that the test signal corresponds to the test response signal, and the main controller 102 displays a normal test result through a display module. If the test response signal 1' transmitted back to the RS232 interface 103 via the converter 101 is not a high-level signal, it indicates that the test signal does not correspond to the test response signal, and the RS485 interface 201 functions abnormally, and the controller displays an abnormal test result through the display module.

[0018] As another preferred embodiment, the RS485 interface test device 100 further includes a delay module, which is disposed between the third receiving end 104 and the converter 101. After the converter 101 outputs the test response signal, the third receiving end 104 receives the test response signal through the converter 101 after a delay period corresponding to the delay module. The delay module is primarily provided to allow the third receiving end 104 to obtain a time buffer of the delay period before receiving the test response signal, thereby ensuring smooth transmission of the test response signal.

[0019] As another preferred embodiment, the display module may be a display screen.

[0020] As another preferred embodiment, the model of the converter 101 is UT-203, which is a universal converter 101 used for conversion between the RS232 interface 103 and the RS485 interface 201.

[0021] Based on the disclosure and teachings of the above description, those skilled in the art may also make changes and modifications to the above embodiments. Therefore, the present invention is not limited to the specific embodiments disclosed and described above, and modifications and variations of the present invention should also fall within the scope of protection of the claims of the present invention. In addition, although certain specific terms are used in this description, these terms are only for convenience of description and do not constitute any limitation to the present invention.

Claims

1. An RS485 interface testing device for testing an RS485 interface on an RS485 module, wherein the RS485 module comprises the RS485 interface and an RS485 controller, wherein the RS485 interface comprises a first receiving terminal, a second receiving terminal, a first transmitting terminal and a second transmitting terminal, and is characterized in that: include: a converter; a main controller; and an RS232 interface connected to the main controller and communicatively connected to the RS485 interface via the converter, the RS232 interface having a third receiving end and a third transmitting end; Wherein, when the main controller sends a test signal to the converter through the third transmitting end of the RS232 interface, the converter divides the test signal into a first receiving signal and a second receiving signal, and the converter sends the first receiving signal and the second receiving signal to the first receiving end and the second receiving end of the RS485 interface. The RS485 controller outputs a first transmitting signal corresponding to the first receiving signal to the first transmitting end of the RS485 interface and outputs a second transmitting signal corresponding to the second receiving signal to the second transmitting end of the RS485 interface based on the first receiving signal and the second receiving signal of the first receiving end and the second receiving end. The converter converts the first transmitting signal and the second transmitting signal into a test response signal corresponding to the test signal, and the converter sends the test response signal to the third receiving end of the RS232 interface. When the main controller receives the test response signal through the third receiving end of the RS232 interface, the main controller determines whether the test signal corresponds to the test response signal. When the test signal corresponds to the test response signal, the main controller displays a normal test through a display module.

2. RS485 interface testing device according to claim 1, characterized in that, It also includes a delay module, which is arranged between the third receiving end and the converter. When the converter outputs the test response signal, the third receiving end receives the test response signal through the converter after a delay period corresponding to the delay module.

3. RS485 interface testing device according to claim 1, characterized in that, When the test signal does not correspond to the test response signal, the controller displays a test abnormality through the display module.

4. RS485 interface testing device according to claim 1, characterized in that, The model of the converter is UT-203.