CN111835598B - Test method and system compatible with polarity 485 networking simulation - Google Patents

Test method and system compatible with polarity 485 networking simulation Download PDF

Info

Publication number
CN111835598B
CN111835598B CN202010753858.0A CN202010753858A CN111835598B CN 111835598 B CN111835598 B CN 111835598B CN 202010753858 A CN202010753858 A CN 202010753858A CN 111835598 B CN111835598 B CN 111835598B
Authority
CN
China
Prior art keywords
networking
chip
polarity
line
communication
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
CN202010753858.0A
Other languages
Chinese (zh)
Other versions
CN111835598A (en
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.)
Guizhou Power Grid Co Ltd
Original Assignee
Guizhou Power Grid 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 Guizhou Power Grid Co Ltd filed Critical Guizhou Power Grid Co Ltd
Priority to CN202010753858.0A priority Critical patent/CN111835598B/en
Publication of CN111835598A publication Critical patent/CN111835598A/en
Application granted granted Critical
Publication of CN111835598B publication Critical patent/CN111835598B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application discloses a test method and a system compatible with a polarity 485 networking simulation, comprising the steps of connecting a tested product containing a 485 chip with a communication module and transmitting data; the identification unit judges whether a 485 chip on a tested product connected to the communication bus is polar or nonpolar; the identification unit outputs a corresponding control signal to the switching unit according to the judgment result; the switching unit controls the switching unit to be connected with the polar 485 analog networking unit or the nonpolar 485 networking analog unit according to the received control signal; the upper computer establishes connection with the communication module through the receiver and tests networking communication of 485 chips of the tested product, and judges networking communication capacity of the tested product. The application has the beneficial effects that: the 485 networking test with polarity and no polarity is flexibly and effectively compatible, the success rate of the test is higher, the principle is simple, the equipment cost is low, and the result can be directly checked without complex operation during detection, thereby being fast and efficient.

Description

Test method and system compatible with polarity 485 networking simulation
Technical Field
The application relates to the technical field of 485 networking test, in particular to a test method and a test system compatible with polarity-free 485 networking simulation.
Background
In recent years, 485 networking applications have covered a variety of application areas, including industrial and residential applications. RS485 is generally more suitable for use as a system architecture for master-slave networking, and may be applied one-to-one.
The 485 networking test is to connect the 485 communication interfaces of N products with 485 circuits to the same 485 bus, and then the 485 receiver is connected with the product of a 485 circuit on the bus in a butt joint way to carry out the communication test. The 485 networking simulation test is to simulate the load of N products with 485 through a certain simulation circuit, the tested products and the simulation circuit are connected into a 485 bus together, and the receiver performs the communication capability test on 485 of the tested products
In the prior art, the networking test of the polar RS485 is simulated through the polar RS485 simulation networking circuit, but the networking simulation test of the self-adaptive also called nonpolar RS485 is not performed at present, the existing networking simulation test has single function, low flexibility and few test items, and the on-site 485 networking condition and environment cannot be completely simulated, so that the test result is inaccurate.
Disclosure of Invention
This section is intended to outline some aspects of embodiments of the application and to briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section as well as in the description of the application and in the title of the application, which may not be used to limit the scope of the application.
The present application has been made in view of the above-described problems occurring in the prior art.
Therefore, one technical problem solved by the present application is: the test method compatible with the polarity 485 networking simulation is provided, the test method can be compatible with the polarity and the polarity 485 networking simulation, and the test result can be conveniently obtained.
In order to solve the technical problems, the application provides the following technical scheme: a test method compatible with a 485 networking simulation with or without polarity comprises the steps of connecting a tested product containing a 485 chip with a communication module and transmitting data; the identification unit judges whether a 485 chip on a tested product connected to the communication bus is polar or nonpolar; the identification unit outputs a corresponding control signal to the switching unit according to the judgment result; the switching unit controls the switching unit to be connected with the polar 485 analog networking unit or the nonpolar 485 networking analog unit according to the received control signal; the upper computer establishes connection with the communication module through the receiver and tests networking communication of 485 chips of the tested product, and judges networking communication capacity of the tested product.
As a preferable scheme of the test method compatible with the polarity 485 networking simulation, the application comprises the following steps: the communication module comprises a communication bus, wherein the communication bus comprises an A line and a B line, an A line interface of a tested product is connected with the A line when the communication bus is connected, and the B line interface is connected with the B line.
As a preferable scheme of the test method compatible with the polarity 485 networking simulation, the application comprises the following steps: and the data transmission is realized by connecting a receiver into the communication module and outputting a differential pressure signal between the A line and the B line and a 485 chip of the tested product by the receiver.
As a preferable scheme of the test method compatible with the polarity 485 networking simulation, the application comprises the following steps: the identification unit judges 485 chips to be polar or non-polar by detecting interface voltage between the A line and the B line.
As a preferable scheme of the test method compatible with the polarity 485 networking simulation, the application comprises the following steps: the switching unit comprises a relay switch circuit which is selectively connected according to a control signal.
As a preferable scheme of the test method compatible with the polarity 485 networking simulation, the application comprises the following steps: the communication test for networking comprises the steps of sending a communication command frame to a 485 bus through a receiver and circulating communication data, and judging the probability of successful communication according to whether an upper computer can receive a response frame of a tested product.
The application solves the other technical problem that: a test system compatible with the polarity 485 networking simulation is provided, so that the test method can be realized by means of the system.
In order to solve the technical problems, the application provides the following technical scheme: the test device compatible with the polarity 485 networking simulation comprises a receiver, wherein the receiver is used for receiving an instruction issued by an upper computer; the identification unit can judge whether the 485 chip on the tested product has polarity or not and output a corresponding control signal to the switching unit; the switching unit switches the connection state of the switching unit and the polar 485 analog networking unit or the nonpolar 485 analog networking unit according to the control signal; the system comprises a polar 485 simulation networking unit and a nonpolar 485 simulation networking unit, wherein the polar 485 simulation networking unit and the nonpolar 485 simulation networking unit are used for testing networking communication of 485 chips of tested products and judging networking communication capacity of the tested products; and the upper computer is used for testing and judging networking communication capacity of the tested product.
As a preferable scheme of the test system compatible with the polarity 485 networking simulation, the application comprises the following steps: the identification unit includes an AD detection circuit and a signal control circuit.
The application has the beneficial effects that: according to the application, the simulation 485 networking circuit is designed, so that the networking test of simulation nonpolar 485 can be compatible on the basis of meeting the requirement of simulating polar 485 networking, the test flexibility and success rate are higher, the principle is simple, the equipment with low detection cost can be manufactured in practical application, and the result can be directly checked without complex operation during detection, thereby being fast and efficient.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. Wherein:
FIG. 1 is a schematic overall flow chart of a testing method compatible with a polarity 485 networking simulation according to a first embodiment of the application;
fig. 2 is a schematic circuit structure diagram of the polar 485 analog networking module according to the application;
fig. 3 is a schematic circuit structure diagram of the nonpolar 485 analog networking module according to the application;
fig. 4 is a schematic diagram of an AD detection circuit of the identification unit according to the present application;
fig. 5 is a schematic diagram of the overall structure of a test system compatible with a non-polar 485 networking simulation according to a second embodiment of the application.
Detailed Description
So that the manner in which the above recited objects, features and advantages of the present application can be understood in detail, a more particular description of the application, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application, but the present application may be practiced in other ways other than those described herein, and persons skilled in the art will readily appreciate that the present application is not limited to the specific embodiments disclosed below.
Further, reference herein to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic can be included in at least one implementation of the application. The appearances of the phrase "in one embodiment" in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments.
While the embodiments of the present application have been illustrated and described in detail in the drawings, the cross-sectional view of the device structure is not to scale in the general sense for ease of illustration, and the drawings are merely exemplary and should not be construed as limiting the scope of the application. In addition, the three-dimensional dimensions of length, width and depth should be included in actual fabrication.
Also in the description of the present application, it should be noted that the orientation or positional relationship indicated by the terms "upper, lower, inner and outer", etc. are based on the orientation or positional relationship shown in the drawings, are merely for convenience of describing the present application and simplifying the description, and do not indicate or imply that the apparatus or elements referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present application. Furthermore, the terms "first, second, or third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
The terms "mounted, connected, and coupled" should be construed broadly in this disclosure unless otherwise specifically indicated and defined, such as: can be fixed connection, detachable connection or integral connection; it may also be a mechanical connection, an electrical connection, or a direct connection, or may be indirectly connected through an intermediate medium, or may be a communication between two elements. The specific meaning of the above terms in the present application will be understood in specific cases by those of ordinary skill in the art.
Example 1
Referring to the schematic of fig. 1, an overall flowchart of a test method compatible with the polarity 485 networking simulation proposed in this embodiment is shown, and the method specifically includes,
s1: the tested product containing 485 chip is connected with the analog networking unit through a communication bus and can carry out data transmission;
specifically, the analog networking unit includes a polar 485 analog networking module or a nonpolar 485 networking analog module, referring to the schematic diagrams of fig. 2 and 3, the analog networking unit is a circuit schematic diagram of the polar analog networking and the nonpolar analog networking respectively, in this embodiment, analog circuits respectively representing AB line interface loads of 485 products of 100 products are respectively, for resistors R1 and R2 in the polar analog networking circuit, 200 Ω are divided by 100, which are equivalent to 100 resistors in parallel, since the A, B interface of each 485 circuit is connected with a pull-up resistor and a pull-down resistor, and assuming that 485 products of 100 products are connected with a bus, 100 pull-up resistors are equivalent to a line on the 485 bus, and similarly, 100 pull-down resistors are equivalent to B line; c1 is a capacitance of 104K, 100 transient diodes Z1 are simulated, the junction capacitance of the transient diodes is 102K, namely 1NF, and 100 simulated transient diodes are equivalent to 104K, namely 100NF under the normal communication frequency of 485 chips; for the nonpolar analog networking circuit, as the nonpolar 485 chip has no pull-up resistors R1 and R2, the analog networking circuit does not need to be provided with resistors, and the capacitor C1 is arranged in the same way as the polar analog networking circuit.
The communication bus comprises an A line and a B line, and referring to the schematic diagrams of fig. 2 and 3, the embodiment adopts a general 485 networking default connection method, namely all the A lines of the circuits are combined together, and all the B lines of the circuits are combined together to jointly form the A line and the B line of the communication bus. When the tested product is connected with the communication bus, the A line interface of the tested product is connected with the A line, and the B line interface is connected with the B line.
S2: the identification unit judges whether the 485 chip of the tested product has polarity or is nonpolar;
the identification unit comprises an AD detection circuit, the judgment of the identification unit is based on the magnitude of signal voltage on the communication bus, specifically, for a 485 chip with polarity, since the 485 chip with polarity does not automatically judge the polarity circuit, an initial fixed level is required to be given to the chip through the communication bus, for example, the A line is high and the B line is low, so the A line is required to be connected with a pull-up resistor to a power supply, and the B line is required to be connected with a pull-down resistor to the ground of the chip; and for the nonpolar 485 chip, the level polarity on the communication bus can be automatically judged, so that the A line interface and the A line can be connected, and the B line interface and the B line can be reversely connected for the nonpolar 485 chip.
Because the polar 485 chip needs to have a fixed initial level, the A line with the polar 485 chip is connected with the pull-up resistor to the power supply, the B line is connected with the pull-down resistor to the ground, in the embodiment, a 5V power supply is selected as the power supply, the 5V power supply is connected with the A line pull-up resistor, and the pull-up resistor is set as R 1 Pull-down resistor R 2 AB impedance of 485 chip is R AB Voltage V between AB interfaces AB In order to achieve this, the first and second,
V AB =5*R AB /(R AB +R 1 +R 2 )
the resistance value of the pull-up resistor ranges from 5kΩ to 20kΩ, and the impedance between A and B inside the polarized 485 chip is at least more than 100kΩ, so the voltage difference of the AB interface can be more than 3V through voltage division; the communication interface of the nonpolar 485 chip is not provided with a pull-up resistor and an AB signal is in a high-resistance state, so that the voltage difference between the AB signals, namely the interface voltage, is smaller than 0.5V.
Specifically, referring to the schematic diagram of fig. 4, in the AD detection circuit constructed in this embodiment, the LM393 is a dual-voltage comparator, which has a lower offset voltage, the 485A line is connected to the non-inverting input terminal of the LM393 through the load resistor R2, the 485B line is connected to the inverting input terminal of the LM393 through the load resistor R1, the OUT comparison signal is output from the 7 pin of the LM393, the 8 pin is connected to the V485 power supply, and the 4 pin is connected to the GND. When the AD detection circuit judges that the polarity exists, the AD detection circuit can judge that the polarity exists according to the voltage V between the AB lines AB If the difference is greater than 3V, the non-inverting input terminal of LM393 is greater than the inverting input terminal, and the output signal of LM393 is high; when the polarity-free judgment is performed, the voltage difference between the AB lines is 0 in the polarity-free state, and the low offset voltage of the LM393 allows the output to be clamped at the zero level, and the low offset voltage is about 1.0mV, so that the output pin output is at the low level.
Therefore, the AD detection circuit can judge whether the 485 chip on the tested product connected to the communication bus is polar or non-polar by detecting the signal voltage on the communication bus, if the signal voltage is more than 3V, the 485 chip of the tested product is polar, and if the signal voltage is less than 0.5V, the 485 chip of the tested product is non-polar.
S3: the identification unit outputs a corresponding control signal to the switching unit according to the judgment result;
specifically, the identification unit further comprises a signal control circuit, and the signal control circuit sends a corresponding control signal to the switching unit according to the judged existence of the 485 chip of the tested product, so that the switching unit correspondingly changes the connection of the switching unit.
S4: the switching unit controls the switching unit to be communicated with a polar 485 analog networking module or a nonpolar 485 networking analog module in the analog networking unit according to the received control signal;
specifically, the switching unit comprises a relay switch circuit, the switch of the relay switch circuit is controlled by a control signal sent by the identification unit, the relay switch circuit is normally connected with a polar 485 networking simulation module of the simulation networking unit, and when the identification unit detects that the product to be tested is nonpolar 485, the relay switch circuit sends a control signal to control the networking simulation switching unit to be connected with the nonpolar 485 networking simulation module.
S5: the upper computer establishes connection with the communication module through the receiver and tests networking communication of 485 chips of the tested product, and judges networking communication capacity of the tested product. The communication test on the networking comprises the steps of sending a communication command frame to a 485 bus through a receiver and circulating communication data, and judging the probability of successful communication according to whether the upper computer can receive a response frame of a tested product.
Specifically, the upper computer is a computer, in this embodiment, the computer communication software sends a communication command frame to the 485 bus through the receiver, and circulates the communication data 1000 times, where the number of times may be greater than 1000 times, if the communication is successful, the computer can receive a response frame of the testing device, and the computer calculates the ratio of the number of times of successful communication to the total number of times of communication, and if the ratio is greater than 95%, considers that the whole communication is successful, so as to determine the networking communication capability of the tested product.
Scene one:
in order to verify the advantages of the test method compatible with the polarity 485 networking simulation provided by the embodiment compared with the traditional method, the following experiment is used for comparison and explanation, and the traditional test method and the test method of the embodiment are selected for respectively carrying out the experiment and comparing the results. The traditional test method simulates networking test of the polar RS485 by a polar RS485 simulation networking circuit, but the networking simulation test of the self-adaptive non-polar RS485 is not available at present.
Selecting and disturbing 10 polarized 485 networking devices and 10 nonpolar 485 networking devices, respectively testing by adopting a traditional testing method and the testing method of the embodiment, and outputting the testing result, wherein the obtained experimental result is as follows:
table 1: comparison of results of tests performed with the method of this example and the conventional method
Compared with the traditional testing method, the method has the advantages that as no special non-polar networking analog circuit is arranged, only polar networking is identified, but non-polar networking cannot be identified, and the testing method provided by the embodiment can identify and switch the chip to be tested according to the polarity of the chip to be tested to be connected with the corresponding networking analog circuit for testing, so that the testing function is more comprehensive and flexible; the success rate of observation detection can also be seen that the success rate of the test method of the embodiment is higher in success rate, especially in the detection of the nonpolar networking, and because the traditional detection method does not have special nonpolar identification and test, a polar networking analog circuit is still adopted when the nonpolar 485 networking is tested, so the test success rate is lower than that of the method of the embodiment, and the method of the embodiment can more comprehensively simulate the 485 networking condition and environment of the site, thereby improving the test success rate.
Example 2
Referring to the schematic illustration of fig. 5, the schematic illustration is a structure diagram of a test system compatible with a non-polar 485 networking simulation, the test method compatible with the non-polar 485 networking simulation of the above embodiment can be implemented by means of the system, and the system specifically comprises a receiver, an identification unit, a switching unit, a simulation networking unit and an upper computer, wherein the receiver is used for receiving an instruction issued by the upper computer; the identification unit can judge whether the 485 chip on the tested product has polarity or not, and output a corresponding control signal to the switching unit; the switching unit switches the connection state of the switching unit in the analog networking unit according to the control signal; the analog networking unit comprises a communication bus for connection, and can test networking communication of 485 chips of the tested product; the upper computer is a computer and is used for testing and judging networking communication capacity of the tested product.
Specifically, the identification unit includes an AD detection circuit and a signal control circuit. The AD detection circuit comprises a detection chip, the detection chip is used for detecting a voltage difference, the signal control circuit comprises a singlechip, and the singlechip can be used for controlling the transmission of signals and controlling the connection of the polar 485 analog networking unit and the nonpolar 485 analog networking unit.
The analog networking unit comprises a polar 485 analog networking module and a nonpolar 485 analog networking module, and the circuit structure of the analog networking unit can refer to the schematic diagrams of fig. 2 and 3 and is respectively used for testing tested products comprising a polar 485 chip and a nonpolar 485 chip.
It should be appreciated that embodiments of the application may be implemented or realized by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer readable memory. The methods may be implemented in a computer program using standard programming techniques, including a non-transitory computer readable storage medium configured with a computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner, in accordance with the methods and drawings described in the specific embodiments. Each program may be implemented in a high level procedural or object oriented programming language to communicate with a computer system. However, the program(s) can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language. Furthermore, the program can be run on a programmed application specific integrated circuit for this purpose.
Furthermore, the operations of the processes described herein may be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes (or variations and/or combinations thereof) described herein may be performed under control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications), by hardware, or combinations thereof, collectively executing on one or more processors. The computer program includes a plurality of instructions executable by one or more processors.
Further, the method may be implemented in any type of computing platform operatively connected to a suitable computing platform, including, but not limited to, a personal computer, mini-computer, mainframe, workstation, network or distributed computing environment, separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, and so forth. Aspects of the application may be implemented in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, optical read and/or write storage medium, RAM, ROM, etc., such that it is readable by a programmable computer, which when read by a computer, is operable to configure and operate the computer to perform the processes described herein. Further, the machine readable code, or portions thereof, may be transmitted over a wired or wireless network. When such media includes instructions or programs that, in conjunction with a microprocessor or other data processor, implement the steps described above, the application described herein includes these and other different types of non-transitory computer-readable storage media. The application also includes the computer itself when programmed according to the methods and techniques of the present application. The computer program can be applied to the input data to perform the functions described herein, thereby converting the input data to generate output data that is stored to the non-volatile memory. The output information may also be applied to one or more output devices such as a display. In a preferred embodiment of the application, the transformed data represents physical and tangible objects, including specific visual depictions of physical and tangible objects produced on a display.
As used in this disclosure, the terms "component," "module," "system," and the like are intended to refer to a computer-related entity, either hardware, firmware, a combination of hardware and software, or software in execution. For example, the components may be, but are not limited to: a process running on a processor, an object, an executable, a thread of execution, a program, and/or a computer. By way of example, both an application running on a computing device and the computing device can be a component. One or more components may reside within a process and/or thread of execution and a component may be localized on one computer and/or distributed between two or more computers. Furthermore, these components can execute from various computer readable media having various data structures thereon. The components may communicate by way of local and/or remote processes such as in accordance with a signal having one or more data packets (e.g., data from one component interacting with another component in a local system, distributed system, and/or across a network such as the internet with other systems by way of the signal).
It should be noted that the above embodiments are only for illustrating the technical solution of the present application and not for limiting the same, and although the present application has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that the technical solution of the present application may be modified or substituted without departing from the spirit and scope of the technical solution of the present application, which is intended to be covered in the scope of the claims of the present application.

Claims (3)

1. A test method compatible with a polarity 485 networking simulation is characterized in that: comprising the steps of (a) a step of,
the tested product containing 485 chip is connected with the analog networking unit through a communication bus which is 485 bus, and can carry out data transmission;
the identification unit judges whether the 485 chip of the tested product has polarity or is nonpolar;
the identification unit outputs a corresponding control signal to the switching unit according to the judgment result;
the switching unit controls the switching unit to be communicated with a polar 485 analog networking module or a nonpolar 485 networking analog module in the analog networking unit according to the received control signal;
the upper computer establishes connection with the communication module through the receiver and tests networking communication of 485 chips of the tested product to judge networking communication capacity of the tested product, wherein the testing of the networking communication of 485 chips of the tested product comprises the steps of sending a communication command frame to a 485 bus through the receiver and circulating communication data, and judging the probability of successful communication according to whether the upper computer can receive a response frame of the tested product or not;
the communication bus comprises an A line and a B line, wherein an A line interface of a tested product is connected with the A line when the communication bus is connected, and the B line interface is connected with the B line;
the data transmission is realized by connecting a receiver into the communication bus and outputting a differential pressure signal between the A line and the B line and a 485 chip of the tested product by the receiver;
the identification unit is connected with the communication bus and judges whether the 485 chip is polar or non-polar by detecting the voltage difference of the interface voltage between the A line and the B line; for a 485 chip with polarity, a polarity circuit is not automatically judged, and an A line interface of the 485 chip with polarity is connected with a pull-up resistor to a power supply, and a B line interface is connected with a pull-down resistor to the chip ground; the non-polar 485 chip can automatically judge the level polarity on the communication bus, an A line interface of the non-polar 485 chip is connected with an A line, a B line interface is connected with a B line or an A line interface of the non-polar 485 chip is connected with a B line, and a B line interface is connected with the A line;
the switching unit comprises a relay switch circuit, and the relay switch circuit is selectively connected with a polar 485 analog networking module or a nonpolar 485 analog networking module in the analog networking unit according to a control signal.
2. A system for implementing a test method compatible with a polarity-free 485 networking simulation as set forth in claim 1, wherein: comprising the steps of (a) a step of,
the receiver is used for receiving an instruction issued by the upper computer;
the identification unit comprises an AD detection circuit and a signal control circuit, can judge whether a 485 chip on a tested product has polarity or not, and outputs a corresponding control signal to the switching unit;
the switching unit switches the connection state of the switching unit in the analog networking unit according to the control signal;
the simulation networking unit comprises a communication bus for connection, and can test networking communication of 485 chips of a tested product;
and the upper computer is used for testing and judging networking communication capacity of the tested product.
3. The system according to claim 2, wherein: the simulation networking unit comprises a polarity 485 simulation networking module and a nonpolar 485 simulation networking module which are respectively used for testing tested products comprising a polarity 485 chip and a nonpolar 485 chip.
CN202010753858.0A 2020-07-30 2020-07-30 Test method and system compatible with polarity 485 networking simulation Active CN111835598B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010753858.0A CN111835598B (en) 2020-07-30 2020-07-30 Test method and system compatible with polarity 485 networking simulation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010753858.0A CN111835598B (en) 2020-07-30 2020-07-30 Test method and system compatible with polarity 485 networking simulation

Publications (2)

Publication Number Publication Date
CN111835598A CN111835598A (en) 2020-10-27
CN111835598B true CN111835598B (en) 2023-08-22

Family

ID=72920631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010753858.0A Active CN111835598B (en) 2020-07-30 2020-07-30 Test method and system compatible with polarity 485 networking simulation

Country Status (1)

Country Link
CN (1) CN111835598B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103323737A (en) * 2013-06-13 2013-09-25 国家电网公司 RS-485 interface polarity detecting method and system based on electric energy meter communication protocol
CN104865470A (en) * 2015-05-22 2015-08-26 国家电网公司 Portable networking test device based on RS-485 communication technology
CN106546833A (en) * 2015-09-16 2017-03-29 中国电力科学研究院 A kind of electric energy meter RS-485 communication chip networking test systems
CN107193697A (en) * 2017-05-05 2017-09-22 西安电子工程研究所 A kind of method for realizing the nonpolarity connections of RS485

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103323737A (en) * 2013-06-13 2013-09-25 国家电网公司 RS-485 interface polarity detecting method and system based on electric energy meter communication protocol
CN104865470A (en) * 2015-05-22 2015-08-26 国家电网公司 Portable networking test device based on RS-485 communication technology
CN106546833A (en) * 2015-09-16 2017-03-29 中国电力科学研究院 A kind of electric energy meter RS-485 communication chip networking test systems
CN107193697A (en) * 2017-05-05 2017-09-22 西安电子工程研究所 A kind of method for realizing the nonpolarity connections of RS485

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
智能电能表RS485接口设计方案综述;张志等;《电测与仪表》;20160310;第53卷(第05期);第124-128页 *

Also Published As

Publication number Publication date
CN111835598A (en) 2020-10-27

Similar Documents

Publication Publication Date Title
KR101149270B1 (en) Systems and methods for testing integrated circuit devices
CN103198033A (en) Apparatus and method of identifying a USB or an MHL device
CN109298266B (en) Test system, test method, test apparatus, and storage medium
CN107452305A (en) A kind of current sensing means detected for screen, system and method
CN104932962A (en) USB (Universal Serial Bus) plug testing system and method thereof
US9846609B2 (en) System and method for testing configuration and operation of I/O devices
CN104569673B (en) Test circuit, method and apparatus
CN103248527A (en) Testing tool device, testing system and testing method for Ethernet consistency
CN110658439B (en) Test method and system for protection circuit
US20180342054A1 (en) System and method for constructing augmented and virtual reality interfaces from sensor input
CN115470064A (en) Security test method and device for device to be tested, electronic device and storage medium
CN111835598B (en) Test method and system compatible with polarity 485 networking simulation
CN111104279B (en) SAS connector conduction detection system and method thereof
CN207318605U (en) Automobile bus radiated immunity test system
CN115856589B (en) Test circuit and test method for NFC chip power tube transmitting circuit
US20230305937A1 (en) Test apparatus for usb-pd device
CN108072855A (en) A kind of test device and test system
CN104581527B (en) A kind of interface circuit and peripherals detecting method, outer sensor based on the circuit
CN206114834U (en) Pressure transmitter's withstand voltage automatic test system
CN105242757A (en) Connection structure of tablet personal computer and base
US20130096859A1 (en) Resistance determining system
CN105093965B (en) Emulation controller and device emulation system
CN110133481B (en) Test method and test circuit for IO bridge short circuit
CN107153376A (en) A kind of electronic controller
CN105182034A (en) Oscilloscope and connecting device thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant