CN107356802B - Self-test circuit and circuit self-test method - Google Patents

Self-test circuit and circuit self-test method Download PDF

Info

Publication number
CN107356802B
CN107356802B CN201710533385.1A CN201710533385A CN107356802B CN 107356802 B CN107356802 B CN 107356802B CN 201710533385 A CN201710533385 A CN 201710533385A CN 107356802 B CN107356802 B CN 107356802B
Authority
CN
China
Prior art keywords
node
value
control bus
voltage division
bus
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
CN201710533385.1A
Other languages
Chinese (zh)
Other versions
CN107356802A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201710533385.1A priority Critical patent/CN107356802B/en
Publication of CN107356802A publication Critical patent/CN107356802A/en
Application granted granted Critical
Publication of CN107356802B publication Critical patent/CN107356802B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/145Indicating the presence of current or voltage
    • G01R19/155Indicating the presence of voltage
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/282Testing of electronic circuits specially adapted for particular applications not provided for elsewhere
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Abstract

The invention discloses a self-checking circuit and a circuit self-checking method. Wherein, this self-checking circuit includes: the node equipment is accessed to the control bus and used for calculating a voltage division value of the node equipment after the power supply is accessed; and the control bus is connected with the node equipment and used for receiving the voltage division value of the node equipment, acquiring the node equipment with the minimum voltage division value and accessing the node equipment with the minimum voltage division value into the matched resistor. The invention solves the technical problem of low efficiency of installation engineering caused by the fact that tail end equipment needs to be manually checked and connected with a corresponding matching resistor in the prior art.

Description

Self-test circuit and circuit self-test method
Technical Field
The invention relates to the field of application of electrical automation control technology, in particular to a self-checking circuit and a circuit self-checking method.
Background
At present, a Controller Area Network (CAN) communication technology is widely applied to the fields of automobiles, air conditioners, intelligent homes and the like due to excellent reliability and multi-node performance; the Controller Area Network (CAN) is a serial communication protocol and CAN effectively support distributed real-time control with a very high security level. Because of strong compatibility, simple configuration and wide application scene, the CAN technology CAN be used for the multi-path connection from a high-speed network to a low-price network, and the transmission speed of the CAN bus CAN reach 1 Mbit/s.
However, the CAN communication network also has disadvantages, and when the communication distance is too long and the communication speed is high, the problem of impedance matching occurs, and the communication quality is directly affected by impedance mismatching. At present, a CAN application system is mostly connected with 120 omega matching resistors at head end equipment and tail end equipment of the system to realize impedance matching of the system. At present, the matching resistor of the head end equipment is easy to access in engineering installation, and the matching resistor of the tail end equipment is mostly accessed in a way that engineering personnel finds the tail end equipment and manually operates the tail end equipment to access the matching resistor, so that the engineering debugging time is wasted, and the difficulty of the engineering installation operation is increased.
Aiming at the problem that the installation engineering efficiency is low due to the fact that manual examination is needed on tail end equipment and corresponding matched resistors are connected in the prior art, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a self-checking circuit and a circuit self-checking method, which at least solve the technical problem of low installation engineering efficiency caused by the fact that tail end equipment needs to be manually checked and connected with a corresponding matching resistor in the prior art.
According to an aspect of an embodiment of the present invention, there is provided a self-test circuit including: the system comprises a plurality of node devices and a control bus, wherein each node device in the plurality of node devices is accessed to the control bus and used for respectively acquiring a voltage division value of each node device after a power supply is accessed; and the control bus is connected with the plurality of node devices and is used for receiving the voltage division value of each node device, acquiring the node device with the minimum voltage division value and accessing the node device with the minimum voltage division value into the matching resistor.
Optionally, the self-checking circuit further includes: the head end equipment is connected with the control bus, is adjacent to the position of the first node equipment which is sequenced according to the preset sequence in the plurality of node equipment, and is used for controlling the power supply to be connected through the logic controller or switching the control bus to be connected into a local area network comprising the plurality of node equipment.
Further, optionally, each node device includes: the device comprises a bus interface, a resistor set, a storage device and a data processing device, wherein the bus interface is used for accessing an external device; the data processing device is connected with the resistor set and used for obtaining a voltage division value of the matching resistance value of the corresponding node device, wherein the resistor set comprises: matching a resistor; and the storage device is connected with the data processing device and is used for storing the voltage division value.
Optionally, the node device further includes: the system comprises a resistance switching control device and a bypass resistor, wherein the resistance switching control device is used for controlling the node equipment to enter a communication state by switching to access the bypass resistor under the condition that the head-end equipment switches to access the control bus; the data processing device is also used for sending the partial pressure value to the control bus, monitoring the control bus to acquire bus information, comparing the partial pressure value in the bus information with the partial pressure value stored in the storage device, and quitting the bus operation if the stored partial pressure value is greater than the partial pressure value in the bus information; if the stored voltage division value is smaller than the voltage division value in the bus information, the control bus is monitored continuously to obtain the bus information, and the voltage division value in the bus information is compared with the voltage division value stored in the storage device until the node equipment with the minimum voltage division value is obtained, so that the control bus is connected to the corresponding matching resistor through the node equipment with the minimum voltage division value.
Optionally, the control bus is configured to receive a voltage division value sent by each node device of the multiple node devices, obtain a node device with a minimum voltage division value through comparison, and access a matching resistor to the node device with the minimum voltage division value.
According to another aspect of the embodiments of the present invention, there is provided a method for self-checking a circuit, including: after the power supply is connected, calculating a voltage division value of the node equipment; sending a partial pressure value to a control bus; and comparing the voltage division value with the voltage division value in the control bus to obtain the node equipment with the minimum voltage division value, so that the control bus accesses the matched resistor to the node equipment with the minimum voltage division value.
Optionally, after the power source is connected, calculating the voltage division value of the node device includes: the resistance of the control bus line is accessed through the resistance switching control device; and calculating the voltage obtained by dividing the matching resistance value according to the resistance value of the control bus line resistance to obtain a voltage division value.
Further, optionally, after obtaining the partial pressure value, the method further includes: storing the divided voltage value, wherein storing the divided voltage value comprises: the divided voltage value is stored in a storage device through digital-to-analog conversion sampling.
Optionally, sending the divided voltage value to the control bus includes: the bypass resistor is accessed through the resistor switching control device, and the node equipment is accessed to the local area network of each node equipment component; and sending the divided voltage value to a control bus.
Optionally, the step of comparing the divided voltage value with the divided voltage value in the control bus to obtain the node device with the minimum divided voltage value includes: monitoring a control bus to obtain bus information; comparing the partial pressure value in the bus information with the partial pressure value stored in the storage device; if the stored partial pressure value is larger than the partial pressure value in the bus information, the bus operation is quitted; if the stored voltage division value is smaller than the voltage division value in the bus information, the control bus is monitored continuously to obtain the bus information, and the voltage division value in the bus information is compared with the voltage division value stored in the storage device until the node equipment with the minimum voltage division value is obtained, so that the control bus is connected to the corresponding matching resistor through the node equipment with the minimum voltage division value.
Optionally, after the power is turned on, before the voltage division value of the node device is calculated, the method further includes: and the power supply access is controlled by the head-end equipment through the logic controller.
Optionally, before sending the divided voltage value to the control bus, the method further includes: the local area network of each node device component is accessed through the head-end device switching control bus.
According to another aspect of the embodiments of the present invention, there is provided a method for self-checking a circuit, including: receiving a partial pressure value sent by each node device; acquiring the node equipment with the minimum partial pressure value in each node equipment; and connecting the node equipment with the minimum voltage division value into a matching resistor.
According to still another aspect of embodiments of the present invention, there is provided a storage medium including a stored program, wherein the method of controlling a device on which the storage medium is located to perform the above circuit self-test is performed when the program is executed.
According to a further aspect of the embodiments of the present invention, there is provided a processor for executing a program, wherein the program executes a method for performing the circuit self-test.
In the embodiment of the invention, the node equipment and the control bus are used, wherein the node equipment is accessed to the control bus and used for calculating the voltage division value of the node equipment after the power supply is accessed; the control bus is connected with the node equipment and used for receiving the partial pressure value of the node equipment, obtaining the node equipment with the minimum partial pressure value and accessing the node equipment with the minimum partial pressure value into the matching resistor, so that the purposes of automatically detecting the tail end node equipment and automatically matching the corresponding matching resistor are achieved, the technical effect of improving the installation engineering efficiency is achieved, and the technical problem that the installation engineering efficiency is low due to the fact that manual troubleshooting is needed on the tail end equipment in the prior art and the corresponding matching resistor is accessed is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of a self-test circuit according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a system architecture in the field of air conditioning in a self-test circuit according to an embodiment of the present invention;
FIG. 3 is a simplified schematic diagram of a system in a self-test circuit according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a self-test circuit according to an embodiment of the present invention;
FIG. 5 is a schematic flow diagram of a self-test circuit according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of resistance parameters in a self-test circuit according to an embodiment of the invention;
FIG. 7 is a flow chart diagram of a method of circuit self-test according to an embodiment of the invention;
fig. 8 is a flow chart illustrating a method for self-testing a circuit according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
According to an aspect of the embodiments of the present invention, there is provided a self-checking circuit, and fig. 1 is a schematic structural diagram of the self-checking circuit according to the embodiments of the present invention, as shown in fig. 1, including:
the system comprises a plurality of node devices 12 and a control bus 14, wherein each node device 12 in the plurality of node devices 12 is connected to the control bus 14 and used for respectively acquiring a voltage division value of each node device 12 after a power supply is connected; and the control bus 14 is connected with the plurality of node devices 12, and is configured to receive the voltage division value of each node device 12, obtain the node device 12 with the smallest voltage division value, and access the matching resistor to the node device 12 with the smallest voltage division value.
Specifically, the self-checking circuit provided by the application CAN be applied to the field of air conditioners, wherein the self-checking circuit CAN be applied to the field of household, enterprise or industrial central air conditioner control, fig. 2 is a schematic diagram of a system structure in the field of air conditioners in the self-checking circuit according to an embodiment of the invention, as shown in fig. 2, an access CAN bus in fig. 2 comprises an outdoor unit and a plurality of indoor units, the application selects a maximum impedance indoor unit accessed to the CAN bus according to a relation between resistance and voltage and a near differential sampling subtraction method, determines a terminal indoor unit with the maximum impedance as a tail end device of the CAN bus, and further accesses a corresponding matching resistor to the tail end device.
Wherein, a Controller Area Network (CAN) technology is adopted to control a plurality of node devices in a bus system by a CAN bus, the self-checking circuit provided in the application is used for solving the problem that in the prior art, in order to obtain the tail end equipment in the CAN bus, manual checking is needed and the matching resistor is manually accessed, in the application, after the node equipment 12 is powered on, the voltage obtained by calculating the matching voltage value of the node equipment, after the CAN bus (i.e., the control bus 14 in the embodiment of the present application) is accessed for communication, the communication between the node device 12 and the CAN bus is compared with the voltage division value received by the CAN bus, further obtaining the node equipment with the minimum voltage division value, determining the node equipment as tail end equipment of the tail end of the deployment and CAN bus, and after the tail-end equipment is obtained, automatically configuring and connecting corresponding matched resistors to the tail-end equipment. Specifically, as shown in fig. 3, fig. 3 is a simplified schematic diagram of a system in a self-test circuit according to an embodiment of the present invention.
The application provides a self-checking circuit selects the biggest impedance internal machine according to the relation between resistance and voltage to and with "close on the pressure differential sampling subtraction method", confirm the tail end equipment for the CAN bus with the terminal internal machine that the impedance is the biggest, and then for the corresponding matched resistance of this tail end equipment access.
In the embodiment of the invention, the node equipment and the control bus are used, wherein the node equipment is accessed to the control bus and used for calculating the voltage division value of the node equipment after the power supply is accessed; the control bus is connected with the node equipment and used for receiving the partial pressure value of the node equipment, obtaining the node equipment with the minimum partial pressure value and accessing the node equipment with the minimum partial pressure value into the matching resistor, so that the purposes of automatically detecting the tail end node equipment and automatically matching the corresponding matching resistor are achieved, the technical effect of improving the installation engineering efficiency is achieved, and the technical problem that the installation engineering efficiency is low due to the fact that manual troubleshooting is needed on the tail end equipment in the prior art and the corresponding matching resistor is accessed is solved.
Specifically, fig. 4 is a schematic structural diagram of a self-checking circuit according to an embodiment of the present invention, and as shown in fig. 4, the self-checking circuit provided in the present application specifically includes the following components:
optionally, the self-checking circuit provided in this application further includes: the head end equipment is connected with the control bus, is adjacent to the position of the first node equipment which is sequenced according to the preset sequence in the plurality of node equipment, and is used for controlling the power supply to be connected through the logic controller or switching the control bus to be connected into a local area network comprising the plurality of node equipment.
As shown in fig. 4, in the head-end apparatus, the head-end apparatus includes: the communication interface, the bus switching control interface and the corresponding control module are used, in the application, the head-end equipment controls power supply through the logic controller, a 12V power supply is connected into the CAN communication bus, at the moment, the bus has no communication information, and the equipment shields communication faults.
Or, after each node finishes sampling (5S), the head end equipment accesses the CAN bus through the switching of the logic controller, each node bypasses the bus resistance, and the communication is prevented from being influenced by the overlarge bus impedance, and the bus is ready to enter a communication state (because the matching resistance is not accessed, the equipment at the two ends of the bus end cannot communicate at the moment).
It should be noted that the above parameters provided in the present application are only examples of the self-checking circuit provided in the present application, so as to implement the self-checking circuit provided in the present application, and are not limited specifically.
Further, optionally, each node device 12 includes: the device comprises a bus interface, a resistor set, a storage device and a data processing device, wherein the bus interface is used for accessing an external device; the data processing device is connected with the resistor set and used for obtaining a voltage division value of the matching resistance value of the corresponding node device, wherein the resistor set comprises: matching a resistor; and the storage device is connected with the data processing device and is used for storing the voltage division value.
Specifically, as shown in fig. 4, in the present application, the node device 12 includes an access line resistor, a matching resistor, a bypass resistor, a resistor switching controller, and a matching resistor access controller, a bus interface is configured in the node device 12 and is used for accessing the node device 12 to a CAN bus, and the node device 12 includes a bus structure, where the access line resistor and the matching resistor are respectively accessed to a trunk circuit and a branch circuit of the bus, the access line resistor and the bypass resistor are accessed to the trunk circuit of the bus in parallel and are connected to the resistor switching controller in series, and the matching resistor access controller are connected to the bus branch circuit in series.
Optionally, the node device 12 further includes: a resistance switching control device and a bypass resistor, wherein the resistance switching control device is used for controlling the node device 12 to enter a communication state by switching to access the bypass resistor under the condition that the head-end device switches to access the control bus 14; the data processing device is also used for sending the partial pressure value to the control bus 14, monitoring the control bus 14 to acquire bus information, comparing the partial pressure value in the bus information with the partial pressure value stored in the storage device, and quitting the bus operation if the stored partial pressure value is greater than the partial pressure value in the bus information; if the stored voltage division value is smaller than the voltage division value in the bus information, the control bus is monitored continuously to obtain the bus information, and the voltage division value in the bus information is compared with the voltage division value stored in the storage device until the node device with the minimum voltage division value is obtained, so that the control bus is connected to the corresponding matching resistor through the node device 12 with the minimum voltage division value.
Specifically, as shown in fig. 4, the node device 12 sequentially sends the stored partial pressure value to the CAN bus, and simultaneously monitors the CAN bus to receive bus information, the microprocessor MCU (and the data processing device in this application) in the node device 12 compares the partial pressure value received by the CAN bus with information stored in a volatile Random Access Memory (RAM) in the node device, and if the partial pressure value of the node device is smaller, it indicates that the node of the node device is close, and the step is repeated. If the divided voltage value of the node equipment is larger, the divided voltage pin is more, and the node equipment is closer to the front, and the automatic bus exit operation is executed.
Optionally, the control bus 14 is configured to receive a voltage division value sent by each node device 12 of the plurality of node devices 12, obtain the node device 12 with the smallest voltage division value through comparison, and access a matching resistor to the node device 12 with the smallest voltage division value.
In summary, as shown in fig. 5, fig. 5 is a schematic flow chart of a self-test circuit according to an embodiment of the present invention, and a processing flow of the self-test circuit provided in the present application is specifically as follows:
step one, after the engineering installation is finished, the system is powered on, the head end equipment logically controls power supply to access a 12V power supply to a CAN communication bus, at the moment, the bus has no communication information, and the equipment shields communication faults.
And step two, controlling the resistance access of the bus line after the bus of the node equipment is powered on, and automatically accessing the line resistance of the node equipment because the resistance of the pure lead is small. The node equipment calculates the voltage obtained by dividing the matched resistance value by resistance voltage division, and stores the voltage value obtained by voltage division into the RAM after ADC sampling.
Step three, after each node finishes sampling (5S), the head-end equipment is switched to access the communication bus, each node bypasses the bus resistance, and the communication is prevented from being influenced by the overlarge bus impedance;
and step four, after the node equipment finishes the action, the stored partial pressure value information is sequentially sent to the bus, meanwhile, the bus is monitored to receive the bus information, the MCU compares the bus receiving value with the information stored in the RAM, and if the value is smaller, the MCU indicates that the node is close to the back, the four steps are repeated. If the value of the self-test device is larger, the number of divided voltage pins is large, and the self-test device executes automatic bus exit operation before the self-test node is tested.
Node 1 matched resistance voltage division U1 ═ U (R2/R1+ R2)
=12*(120/130)
=11.077;
Node 2 matched resistance voltage division U2 ═ U1 ═ R4/R3+ R4)
=10.225;
Node N matching resistance voltage division Un ═ U (N-1) × (R2N/R2N-1+ R2N)
To sum up: the less the device voltage at the back of the node. As shown in fig. 6, fig. 6 is a schematic diagram of resistance parameters in a self-test circuit according to an embodiment of the present invention, it should be noted that the resistance values in fig. 6 are only preferred examples of the self-test circuit provided in this application, and only the implementation of the self-test circuit provided in this application is taken as a standard, which is not particularly limited.
And step five, comparing the node equipment with the minimum voltage division through a similar bubbling method, and automatically connecting the node equipment into a matched resistor for the terminal equipment.
The application provides a self-checking circuit utilizes conductor impedance and the direct proportional theory of line length, and the whole match resistance that inserts of interior machine before the debugging, interior machine partial pressure detect the partial pressure value through the ADC and store to main chip RAM, through detecting communication bus impedance, selects the biggest impedance interior machine with "close on differential pressure sampling subtraction method", and the impedance is the terminal interior machine then to the greatest extent. Then judging and identifying the last equipment through an effective self-checking mode; and after the CAN system is debugged, the automatic access of the matching resistor is realized, so that the impedance matching of the communication system is realized.
Example 2
In accordance with an embodiment of the present invention, there is provided a method embodiment for self-checking of circuits, it being noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that presented herein.
Fig. 7 is a flowchart illustrating a method for self-checking a circuit according to an embodiment of the present invention, where, as shown in fig. 7, on the node device side, the method includes the following steps:
step S702, after the power supply is connected, calculating a voltage division value of the node equipment;
step S704, sending the voltage division value to a control bus;
step S706, comparing the divided voltage value with the divided voltage value in the control bus, to obtain the node device with the minimum divided voltage value, so that the control bus accesses the matching resistor to the node device with the minimum divided voltage value.
Specifically, on the node device side, corresponding to the node device in the self-test circuit provided in embodiment 1, after the power supply of the node device is connected, a divided voltage value corresponding to the matching voltage value is calculated, after the control bus is connected to the communication, each node device sends the calculated divided voltage value to the control bus, and by monitoring the divided voltage value in the control bus and comparing the divided voltage value with the divided voltage value in the node device, the node device with the minimum divided voltage value is obtained, so that the control bus accesses the matching resistor to the node device with the minimum divided voltage value.
In the embodiment of the invention, the node equipment and the control bus are used, wherein the node equipment is accessed to the control bus and used for calculating the voltage division value of the node equipment after the power supply is accessed; the control bus is connected with the node equipment and used for receiving the partial pressure value of the node equipment, obtaining the node equipment with the minimum partial pressure value and accessing the node equipment with the minimum partial pressure value into the matching resistor, so that the purposes of automatically detecting the tail end node equipment and automatically matching the corresponding matching resistor are achieved, the technical effect of improving the installation engineering efficiency is achieved, and the technical problem that the installation engineering efficiency is low due to the fact that manual troubleshooting is needed on the tail end equipment in the prior art and the corresponding matching resistor is accessed is solved.
Optionally, after the power is turned on in step S702, calculating the voltage division value of the node device includes:
step1, controlling the resistance of the bus line by the resistance switching control device;
step2, calculating the voltage obtained by dividing the matching resistance value according to the resistance value of the control bus line resistance, and obtaining the divided voltage value.
Further, optionally, after obtaining the voltage division value at Step2, the method for self-checking the circuit provided by the present application further includes:
step3, storing the voltage division value, wherein the storing the voltage division value comprises: the divided voltage value is stored in a storage device through digital-to-analog conversion sampling.
Optionally, the step S704 of sending the divided voltage value to the control bus includes:
step1, accessing the bypass resistor through the resistor switching control device, and accessing the node equipment into the local area network of each node equipment component;
step2, sending the divided voltage value to the control bus.
Optionally, in step S706, comparing the divided voltage value with the divided voltage value in the control bus, and obtaining the node device with the minimum divided voltage value includes:
step1, monitoring the control bus to obtain bus information;
step2, comparing the voltage dividing value in the bus information with the voltage dividing value stored in the storage device;
step3, if the stored voltage dividing value is larger than the voltage dividing value in the bus information, the bus operation is quitted;
step4, if the stored voltage division value is smaller than the voltage division value in the bus information, continuing to monitor the control bus, acquiring the bus information, and comparing the voltage division value in the bus information with the voltage division value stored in the storage device until the node device with the minimum voltage division value is obtained, so that the control bus is connected to the corresponding matching resistor through the node device with the minimum voltage division value.
Optionally, after the power is turned on in step S702 and before the voltage division value of the node device is calculated, the method for self-checking the circuit provided by the present application further includes:
and step S701, controlling power access through the head-end equipment through the logic controller.
Optionally, before sending the divided voltage value to the control bus in step S704, the method for self-checking a circuit provided by the present application further includes:
step S703, the local area network of each node device component is accessed through the head-end device switching control bus.
The circuit self-checking method provided by the application is characterized in that the matching resistors are all connected into the inner machine before debugging by utilizing the theory that the conductor impedance is in direct proportion to the line length, the partial pressure of the inner machine is detected by the ADC, the partial pressure value is stored into the RAM of the main chip, the inner machine with the maximum impedance is selected by using a near differential pressure sampling subtraction method by detecting the impedance of a communication bus, and the inner machine with the maximum impedance is the terminal inner machine. Then judging and identifying the last equipment through an effective self-checking mode; and after the CAN system is debugged, the automatic access of the matching resistor is realized, so that the impedance matching of the communication system is realized.
Example 3
Fig. 8 is a schematic flow chart of a method for self-testing a circuit according to an embodiment of the present invention, and as shown in fig. 8, on the control bus side, the method includes the following steps:
step S802, receiving the partial pressure value sent by each node device;
step S804, obtaining the node equipment with the minimum voltage division value in each node equipment;
and step 806, accessing the matching resistor to the node equipment with the minimum voltage division value.
Specifically, on the control bus side, the voltage division value sent by each node device is received corresponding to the control bus side in the self-checking circuit provided in embodiment 1; acquiring the node equipment with the minimum partial pressure value in each node equipment; and connecting the node equipment with the minimum voltage division value into a matching resistor. Therefore, the last access device at the tail end of the control bus is automatically acquired, the corresponding matching resistor is accessed to the access device, the engineering installation efficiency is improved, and the circuit self-checking automation is realized.
In the embodiment of the invention, the voltage division values sent by each node device are received; acquiring the node equipment with the minimum partial pressure value in each node equipment; the node equipment with the minimum voltage division value is connected with the matching resistor, the purposes of automatically detecting terminal node equipment and automatically matching the corresponding matching resistor are achieved, the technical effect of improving the efficiency of installation engineering is achieved, and the technical problem that in the prior art, the efficiency of installation engineering is low due to the fact that manual troubleshooting is needed on tail end equipment and the corresponding matching resistor is connected is solved.
Example 4
According to still another aspect of an embodiment of the present invention, there is provided a storage medium including a stored program, wherein the apparatus in which the storage medium is controlled to perform the method of circuit self-test in embodiment 2 or embodiment 3 described above when the program is executed.
Example 5
According to a further aspect of the embodiments of the present invention, there is provided a processor, the processor being configured to execute a program, wherein the program executes a method for performing the self-test of the circuit in embodiment 2 or embodiment 3.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A self-checking circuit is applied to the field of air conditioners and comprises: a plurality of node devices and a control bus, wherein,
each node device in the plurality of node devices is accessed to the control bus and is used for respectively obtaining a voltage division value of each node device after a power supply is accessed;
the control bus is connected with the plurality of node devices and is used for receiving the voltage division value of each node device, acquiring the node device with the minimum voltage division value and accessing the node device with the minimum voltage division value into the matching resistor;
determining the node equipment with the minimum voltage division value as tail end equipment at the tail end of the control bus, and accessing the corresponding matching resistor to the tail end equipment;
the self-test circuit further comprises: a head-end apparatus, wherein,
the head-end equipment is accessed to the control bus, is adjacent to the position of the first node equipment sequenced according to the preset sequence in the plurality of node equipment, and is used for controlling the power supply to be accessed through a logic controller or switching the control bus to be accessed to a local area network comprising the plurality of node equipment;
the control bus is used for receiving the voltage division value sent by each node device in the plurality of node devices, obtaining the node device with the minimum voltage division value through comparison, and accessing the node device with the minimum voltage division value into a matching resistor.
2. The self-test circuit of claim 1, wherein each node device comprises: a bus interface, a resistor set, a memory device, and a data processing device, wherein,
the bus interface is used for accessing an external device;
the data processing device is connected to the resistor set, and configured to obtain a resistance value of a control bus line resistor and calculate the voltage division value of a matching resistance value, where the resistor set includes: matching a resistor;
and the storage device is connected with the data processing device and is used for storing the partial pressure value.
3. The self-test circuit according to claim 2, wherein the node device further comprises: a resistance switching control device and a bypass resistor, wherein,
the resistance switching control device is used for controlling the node equipment to enter a communication state by switching to access the bypass resistance under the condition that the head-end equipment switches to access the control bus;
the data processing device is further configured to send the partial pressure value to the control bus, monitor the control bus to obtain bus information, compare the partial pressure value in the bus information with the partial pressure value stored in the storage device, and exit from bus operation if the stored partial pressure value is greater than the partial pressure value in the bus information; if the stored partial pressure value is smaller than the partial pressure value in the bus information, the control bus is monitored continuously to obtain the bus information, and the comparison is carried out according to the partial pressure value in the bus information and the partial pressure value stored in the storage device until the node equipment with the minimum partial pressure value is obtained, so that the control bus is accessed to the corresponding matching resistor through the obtained node equipment with the minimum partial pressure value.
4. A circuit self-checking method is characterized in that the method is applied to the field of air conditioners and comprises the following steps:
after the power supply is connected, calculating a voltage division value of the node equipment;
sending the divided voltage value to a control bus;
comparing the voltage division value with a voltage division value in the control bus to obtain the node equipment with the minimum voltage division value, so that the control bus accesses the matching resistor to the node equipment with the minimum voltage division value;
determining the node equipment with the minimum voltage division value as tail end equipment at the tail end of the control bus, and accessing the corresponding matching resistor to the tail end equipment;
after the power supply is connected and before the step of calculating the voltage division value of the node equipment, the head-end equipment controls the power supply to be connected through a logic controller;
and the number of the first and second groups,
before the step of sending the partial pressure value to the control bus is executed, the control bus is switched to access a local area network of each node equipment component through head end equipment;
the head-end device is accessed to the control bus, is adjacent to the position of the first node device in the plurality of node devices after being sequenced according to the preset sequence, and is accessed to the control bus by each node device in the plurality of node devices.
5. The method of circuit self-test according to claim 4, wherein the calculating the voltage division value of the node device after the power is turned on comprises:
the resistance of the control bus line is accessed through the resistance switching control device;
and calculating the voltage obtained by dividing the matched resistance value according to the resistance value of the control bus line resistance to obtain the divided voltage value.
6. The method of circuit self-test of claim 5, wherein after said obtaining said divided voltage value, said method further comprises:
storing the divided voltage value, wherein the storing the divided voltage value comprises: and storing the voltage division value to a storage device through digital-to-analog conversion sampling.
7. The method of circuit self-test of claim 5, wherein said sending the divided voltage value to a control bus comprises:
the resistance switching control device is connected into a bypass resistor, and the node equipment is connected into a local area network of each node equipment component;
and sending the divided voltage value to the control bus.
8. The method of circuit self-test according to claim 5, wherein the obtaining the node device with the minimum voltage division value by comparing the voltage division value with the voltage division value in the control bus comprises:
monitoring the control bus to acquire bus information;
comparing the partial pressure value in the bus information with the partial pressure value stored in the storage device;
if the stored partial pressure value is larger than the partial pressure value in the bus information, the bus operation is quitted;
if the stored partial pressure value is smaller than the partial pressure value in the bus information, the control bus is monitored continuously to obtain the bus information, and the comparison is carried out according to the partial pressure value in the bus information and the partial pressure value stored in the storage device until the node equipment with the minimum partial pressure value is obtained, so that the control bus is accessed to the corresponding matching resistor through the obtained node equipment with the minimum partial pressure value.
9. A circuit self-checking method applied to the self-checking circuit of claim 1, which is applied to the field of air conditioners and comprises the following steps:
receiving a partial pressure value sent by each node device;
acquiring the node equipment with the minimum voltage division value in each node equipment;
connecting the node equipment with the minimum voltage division value into a matching resistor;
determining the node equipment with the minimum voltage division value as tail end equipment at the tail end of the control bus, and accessing the corresponding matching resistor to the tail end equipment;
before receiving the partial pressure value sent by each node device, switching the control bus to access the local area network of each node device component through head-end equipment;
the head-end device is accessed to the control bus, is adjacent to the position of the first node device in the plurality of node devices after being sequenced according to the preset sequence, and is accessed to the control bus by each node device in the plurality of node devices.
10. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, the apparatus on which the storage medium is located is controlled to execute the circuit self-checking method according to any one of claims 4 to 9.
CN201710533385.1A 2017-07-03 2017-07-03 Self-test circuit and circuit self-test method Active CN107356802B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710533385.1A CN107356802B (en) 2017-07-03 2017-07-03 Self-test circuit and circuit self-test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710533385.1A CN107356802B (en) 2017-07-03 2017-07-03 Self-test circuit and circuit self-test method

Publications (2)

Publication Number Publication Date
CN107356802A CN107356802A (en) 2017-11-17
CN107356802B true CN107356802B (en) 2020-02-28

Family

ID=60291802

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710533385.1A Active CN107356802B (en) 2017-07-03 2017-07-03 Self-test circuit and circuit self-test method

Country Status (1)

Country Link
CN (1) CN107356802B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110336725B (en) * 2019-07-11 2020-11-10 珠海格力电器股份有限公司 Method and device for accurately positioning nodes in Controller Area Network (CAN) network
CN111043721B (en) * 2019-12-09 2020-11-24 珠海格力电器股份有限公司 CAN bus matching resistor access method and device, air conditioning unit and system
CN112559416A (en) * 2020-12-07 2021-03-26 珠海格力电器股份有限公司 Bus communication control method and device and industrial touch screen

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630298A (en) * 2009-07-28 2010-01-20 中兴通讯股份有限公司 Serial bus slave address setting system
KR20120014212A (en) * 2009-05-19 2012-02-16 일렉트로룩스 홈 프로덕츠 코오포레이션 엔.브이. Bus control for a domestic appliance
CN103248529A (en) * 2012-02-10 2013-08-14 珠海格力电器股份有限公司 Control circuit for matched resistance of communication network
CN104243246A (en) * 2014-10-22 2014-12-24 重庆大学 Method and device for Zigbee technology-based FlexRay bus test and optimization
CN105827554A (en) * 2016-03-10 2016-08-03 重庆大学 Optimization method and apparatus of matched resistance of flexray bus node
CN205792658U (en) * 2016-05-27 2016-12-07 合肥国轩高科动力能源有限公司 A kind of CAN network structure

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387059A (en) * 2011-10-25 2012-03-21 中国西电电气股份有限公司 Method and device for carrying out automatic matching on field bus terminals

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120014212A (en) * 2009-05-19 2012-02-16 일렉트로룩스 홈 프로덕츠 코오포레이션 엔.브이. Bus control for a domestic appliance
CN101630298A (en) * 2009-07-28 2010-01-20 中兴通讯股份有限公司 Serial bus slave address setting system
CN103248529A (en) * 2012-02-10 2013-08-14 珠海格力电器股份有限公司 Control circuit for matched resistance of communication network
CN104243246A (en) * 2014-10-22 2014-12-24 重庆大学 Method and device for Zigbee technology-based FlexRay bus test and optimization
CN105827554A (en) * 2016-03-10 2016-08-03 重庆大学 Optimization method and apparatus of matched resistance of flexray bus node
CN205792658U (en) * 2016-05-27 2016-12-07 合肥国轩高科动力能源有限公司 A kind of CAN network structure

Also Published As

Publication number Publication date
CN107356802A (en) 2017-11-17

Similar Documents

Publication Publication Date Title
CN107356802B (en) Self-test circuit and circuit self-test method
CN106564390B (en) Electric automobile and high-voltage system, detection method and pre-charging circuit thereof
CN108051745A (en) Test system, method and the computer readable storage medium of BMS
US11609012B2 (en) Communication implementation method and device for air conditioning units, non-transitory computer readable storage medium and processor
CN106451363B (en) The protection circuit of reversible transducer and the electricity system with energy storage function
CN108278731A (en) Communicating circuit and its control method, storage medium and processor
CN107064823A (en) A kind of system for testing power panel and its method for testing power panel
US20210050880A1 (en) Channel Switching Processing Method, Device and System, Storage Medium, and Electronic Device
WO2023065620A1 (en) Ethercat bus-based wiring harness test method and apparatus
US8798078B2 (en) Plurality of sensors coupled to a series of switching devices
CN105974909A (en) Automatic configuration box for automobile electronic test circuit
CN107332228B (en) Protection circuit and air conditioner
CN110221229A (en) Power-supply management system, power supply system and method for controlling power supply
CN103901242A (en) Multi-online individual billing method and system
CN105203146A (en) Sensor interconnection device and sensor detection system and method
CN107846286A (en) It is a kind of for the electric supply installation of cascade, method of supplying power to and cascade electric power system
CN106440553B (en) The method and device of boss's machine is arranged in multi-gang air-conditioner automatically
CN110019323A (en) A kind of check method of electrical cabinet component cable
CN112769968B (en) Circuit breaker, cabinet, system, address acquisition method and equipment
CN110336725B (en) Method and device for accurately positioning nodes in Controller Area Network (CAN) network
CN209921228U (en) Tractor electrical box with self fault diagnosis function
CN107395475B (en) CAN communication polarity control method, device and system and multi-connected air conditioning unit
CN108054902B (en) DC/DC converter, control method and device thereof, storage medium and processor
CN106899450B (en) Performance detection method and device of port daughter card with bypass function
CN104807128B (en) The method and system of Climate Control Module rotation

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