CN107356802A - Self-test circuit and circuit self-test method - Google Patents
Self-test circuit and circuit self-test method Download PDFInfo
- Publication number
- CN107356802A CN107356802A CN201710533385.1A CN201710533385A CN107356802A CN 107356802 A CN107356802 A CN 107356802A CN 201710533385 A CN201710533385 A CN 201710533385A CN 107356802 A CN107356802 A CN 107356802A
- Authority
- CN
- China
- Prior art keywords
- partial pressure
- pressure value
- node device
- bus
- controlling 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.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims description 33
- 238000010998 test method Methods 0.000 title 1
- 238000000034 method Methods 0.000 claims abstract description 52
- 238000003860 storage Methods 0.000 claims description 53
- 238000004891 communication Methods 0.000 claims description 28
- 238000012545 processing Methods 0.000 claims description 13
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 230000005611 electricity Effects 0.000 claims description 3
- 230000005540 biological transmission Effects 0.000 claims description 2
- 238000009434 installation Methods 0.000 abstract description 5
- 238000011835 investigation Methods 0.000 description 7
- 238000001514 detection method Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 238000005070 sampling Methods 0.000 description 5
- 238000004378 air conditioning Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 239000004020 conductor Substances 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000003467 diminishing effect Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000005587 bubbling Effects 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40006—Architecture of a communication node
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R19/00—Arrangements for measuring currents or voltages or for indicating presence or sign thereof
- G01R19/145—Indicating the presence of current or voltage
- G01R19/155—Indicating the presence of voltage
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/28—Testing of electronic circuits, e.g. by signal tracer
- G01R31/282—Testing of electronic circuits specially adapted for particular applications not provided for elsewhere
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40215—Controller Area Network CAN
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Air Conditioning Control Device (AREA)
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
Technical field
The present invention relates to electric automatization control technology application field, in particular to a kind of self-checking circuit and circuit
The method of self-test.
Background technology
At present controller LAN (Controller Area Network, abbreviation CAN) mechanics of communication with its it is superior can
The extensive use in the fields such as automobile, air-conditioning, smart home is obtained by property and multinode;Controller LAN (CAN) is serial
Communications protocol, the distribution with very high safety grade can be effectively supported to control in real time.Due to compatible strong, configuration is simple, fits
It is wide with scene, therefore the multichannel wiring from the network of high speed to low price can use CAN technologies, the transmission speed of CAN
Degree is up to 1Mbit/s.
But CAN communication network also has shortcoming, when communication distance is long, in the case of communication speed height, it may appear that impedance
The problem of matching, impedance mismatch can directly influence communication quality.CAN application systems are more in system headend equipment, tail at present
End equipment accesses 120 Ω build-out resistor, to realize the impedance matching of system.Present project installation headend build-out resistor compared with
It is easily accessed, and the build-out resistor of end-equipment is mostly engineering staff finds tail end equipment and manually operated access build-out resistor
, so not only waste engineering debug time but also add the difficulty of project installation operation.
For above-mentioned due to needing artificial investigation to tail end equipment in the prior art, and Corresponding matching resistance is accessed, led
The problem of causing installing engineering efficiency low, not yet proposes effective solution at present.
The content of the invention
The embodiments of the invention provide a kind of method of self-checking circuit and circuitry self test, at least to solve due to prior art
In artificial investigation is being needed to tail end equipment, and access Corresponding matching resistance, cause the low technical problem of installing engineering efficiency.
One side according to embodiments of the present invention, there is provided a kind of self-checking circuit, including:Multiple node devices and control
Bus, wherein, each node device in multiple node devices, Access Control bus, for after plant-grid connection, obtaining respectively
The partial pressure value of each node device;Controlling bus, multiple node devices are connected, for receiving the partial pressure value of each node device,
The minimum node device of partial pressure value is obtained, and build-out resistor is accessed to the minimum node device of partial pressure value.
Optionally, self-checking circuit also includes:Head end device, wherein, head end device, Access Control bus, with multiple nodes
The position of first node device after being ranked up in a predetermined order in equipment is adjacent, for controlling electricity by logic controller
Source is accessed, or, the access of switching control bus includes the LAN of multiple node devices.
Further, optionally, each node device includes:EBI, resistance set, storage device and data processing
Device, wherein, EBI, for accessing external equipment;Data processing equipment, it is connected with resistance set, for obtaining correspondingly
The partial pressure value of the build-out resistor value of node device, wherein, resistance set includes:Build-out resistor;Storage device, filled with data processing
Connection is put, for storing partial pressure value.
Optionally, node device also includes:Resistance switching control and bypass resistance, wherein, resistance switching control dress
Put, in the case of being accessed in head end device switching control bus, access bypass resistance by switching, control node equipment is entered
Enter communications status;Data processing equipment, it is additionally operable to send partial pressure value to controlling bus, and monitors controlling bus and obtain bus letter
Breath, according to the partial pressure value in bus message compared with the partial pressure value stored in storage device, if the partial pressure value of storage is more than
Partial pressure value in bus message, then exit bus operation;If the partial pressure value of storage is less than the partial pressure value in bus message, continue
Controlling bus is monitored, obtains bus message, and enter according to the partial pressure value stored in the partial pressure value in bus message and storage device
Row compares, until the minimum node device of partial pressure value is obtained, to cause controlling bus to pass through the minimum section of the partial pressure value got
Build-out resistor corresponding to point device access.
Optionally, controlling bus, for receiving the partial pressure value that each node device is sent in multiple node devices, by right
The node device more minimum than obtaining partial pressure value, and build-out resistor is accessed to the minimum node device of partial pressure value.
Other side according to embodiments of the present invention, there is provided a kind of method of circuitry self test, including:In plant-grid connection
Afterwards, the partial pressure value of calculate node equipment;Partial pressure value is sent to controlling bus;By the way that partial pressure value and partial pressure value in controlling bus are entered
Row compares, and obtains the minimum node device of partial pressure value, to cause controlling bus to access matching to the minimum node device of partial pressure value
Resistance.
Optionally, after plant-grid connection, the partial pressure value of calculate node equipment includes:Accessed by resistance switching control
Controlling bus line resistance;Resistance value according to controlling bus line resistance calculates the voltage that build-out resistor value is got, and obtains partial pressure
Value.
Further, optionally, after partial pressure value is obtained, this method also includes:Partial pressure value is stored, wherein, storage point
Pressure value includes:Sampled by digital-to-analogue conversion and store partial pressure value to storage device.
Optionally, sending partial pressure value to controlling bus includes:Bypass resistance is accessed by resistance switching control, will be saved
Point device accesses the LAN by each node device component;Partial pressure value is sent to controlling bus.
Optionally, set by the way that partial pressure value compared with partial pressure value in controlling bus, to be obtained to the minimum node of partial pressure value
It is standby to include:Monitor controlling bus and obtain bus message;According to the partial pressure stored in the partial pressure value in bus message and storage device
Value is compared;If the partial pressure value of storage is more than the partial pressure value in bus message, bus operation is exited;If the partial pressure value of storage
Less than the partial pressure value in bus message, then continue to monitor controlling bus, obtain bus message, and according to the partial pressure in bus message
Value is compared with the partial pressure value stored in storage device, until the minimum node device of partial pressure value is obtained, make it that control is total
Line passes through build-out resistor corresponding to the minimum node device access of the partial pressure value got.
Optionally, after plant-grid connection, before the partial pressure value of calculate node equipment, this method also includes:Pass through head end
Equipment controls plant-grid connection by logic controller.
Optionally, before partial pressure value is sent to controlling bus, this method also includes:It is total by head end device switching control
Line accesses the LAN by each node device component.
Another aspect according to embodiments of the present invention, there is provided a kind of method of circuitry self test, including:Receive each section
The partial pressure value that point device is sent;Obtain the node device that partial pressure value is minimum in each node device;To the node that partial pressure value is minimum
Equipment accesses build-out resistor.
Another aspect according to embodiments of the present invention, there is provided a kind of storage medium, storage medium include the journey of storage
Sequence, wherein, the method that equipment where controlling storage medium when program is run performs foregoing circuit self-test.
Another aspect according to embodiments of the present invention, there is provided a kind of processor, processor are used for operation program, its
In, the method for execution foregoing circuit self-test when program is run.
In embodiments of the present invention, by node device and controlling bus, wherein, node device, Access Control bus, use
In after plant-grid connection, the partial pressure value of calculate node equipment;Controlling bus, connecting node equipment, for receiving node equipment
Partial pressure value, the minimum node device of partial pressure value is obtained, and build-out resistor is accessed to the minimum node device of partial pressure value, reached certainly
The purpose of dynamic detection endpoint node equipment and Auto-matching Corresponding matching resistance, it is achieved thereby that erection & lift engineering efficiency
Technique effect, and then solve due to needing artificial investigation to tail end equipment in the prior art, and Corresponding matching resistance is accessed,
Cause the low technical problem of installing engineering efficiency.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the structural representation of self-checking circuit according to embodiments of the present invention;
Fig. 2 is the field of air conditioning system structure diagram in self-checking circuit according to embodiments of the present invention;
Fig. 3 is the system rough schematic view in self-checking circuit according to embodiments of the present invention;
Fig. 4 is a kind of structural representation of self-checking circuit according to embodiments of the present invention;
Fig. 5 is a kind of schematic flow sheet of self-checking circuit according to embodiments of the present invention;
Fig. 6 is the schematic diagram of resistance parameter in a kind of self-checking circuit according to embodiments of the present invention;
Fig. 7 is the schematic flow sheet of the method for circuitry self test according to embodiments of the present invention;
Fig. 8 is a kind of schematic flow sheet of the method for circuitry self test according to embodiments of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model that the present invention protects
Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use
Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or
Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment
Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product
Or the intrinsic other steps of equipment or unit.
Embodiment 1
One side according to embodiments of the present invention, there is provided a kind of self-checking circuit, Fig. 1 are according to embodiments of the present invention
The structural representation of self-checking circuit, as shown in figure 1, including:
Multiple node devices 12 and controlling bus 14, wherein, each node device 12 in multiple node devices 12, access
Controlling bus 14, for after plant-grid connection, obtaining the partial pressure value of each node device 12 respectively;Controlling bus 14, connection are more
Individual node device 12, for receiving the partial pressure value of each node device 12, the minimum node device 12 of partial pressure value is obtained, and to dividing
The minimum node device 12 of pressure value accesses build-out resistor.
Specifically, the self-checking circuit that the application provides goes for air-conditioner field, wherein it is possible to be applied to family
Level, enterprise or technical grade central air-conditioning control field, Fig. 2 are the field of air conditioning systems in self-checking circuit according to embodiments of the present invention
System structural representation, as shown in Fig. 2 CAN is accessed in Fig. 2 includes outdoor machine and Duo Tai indoor sets, the application is according to resistance
Relation between voltage, and machine in maximum impedance is selected in access CAN with " close on pressure difference sampling diminishing method ", it will hinder
Machine is defined as the tail end equipment of CAN in anti-maximum end, and then is build-out resistor corresponding to tail end equipment access.
Wherein, by controller LAN (Controller Area Network, abbreviation CAN) technology, by CAN
Control multiple node devices in bus system, the self-checking circuit provided in this application be used to solve in the prior art in order to
Tail end equipment in CAN is obtained, it is necessary to artificial investigation and the problem of by manually accessing build-out resistor, the application interior joint equipment
12 after power-up, the voltage that the matching voltage value by calculating itself is got, in CAN (that is, in the embodiment of the present application
Controlling bus 14) after access communications by the communication between node device 12 and CAN, the partial pressure received with CAN
Value is compared, and then obtains the minimum node device of partial pressure value, and determines the node device for deployment and CAN tail end
Tail end equipment, after the tail end equipment is obtained, automatically to build-out resistor corresponding to tail end equipment configuration access.It is specific such as to scheme
Shown in 3, Fig. 3 is the system rough schematic view in self-checking circuit according to embodiments of the present invention.
The self-checking circuit that the application provides is according to the relation between resistance and voltage, and with " closing on pressure difference and sample and successively decrease
Method " selects machine in maximum impedance, machine in the maximum end of impedance is defined as into the tail end equipment of CAN, and then be the tail end
Build-out resistor corresponding to equipment access.
In embodiments of the present invention, by node device and controlling bus, wherein, node device, Access Control bus, use
In after plant-grid connection, the partial pressure value of calculate node equipment;Controlling bus, connecting node equipment, for receiving node equipment
Partial pressure value, the minimum node device of partial pressure value is obtained, and build-out resistor is accessed to the minimum node device of partial pressure value, reached certainly
The purpose of dynamic detection endpoint node equipment and Auto-matching Corresponding matching resistance, it is achieved thereby that erection & lift engineering efficiency
Technique effect, and then solve due to needing artificial investigation to tail end equipment in the prior art, and Corresponding matching resistance is accessed,
Cause the low technical problem of installing engineering efficiency.
Specifically, Fig. 4 is a kind of structural representation of self-checking circuit according to embodiments of the present invention, as shown in figure 4, this Shen
The self-checking circuit that please be provided is specific as follows:
Optionally, the self-checking circuit that the application provides also includes:Head end device, wherein, head end device, Access Control is total
Line, be ranked up in a predetermined order in multiple node devices after first node device position it is adjacent, for by patrolling
Controller control plant-grid connection is collected, or, the access of switching control bus includes the LAN of multiple node devices.
Wherein, as shown in figure 4, in head end device, head end device includes:Communication interface, bus switch control interface with
And corresponding control module, in this application head end device by logic controller control power, 12V plant-grid connections CAN is led to
Bus is interrogated, now bus is without communication information, device mask communication failure.
Or, treat that each node sample finishes (5S), head end device is switched by logic controller accesses CAN, respectively
Individual node bypasses bus resistance, avoid bus impedance it is excessive influence communication, now bus be prepared to enter into communication state (because
Do not accessed with resistance, now bus ending terminal device possibly can not communicate).
It should be noted that the above-mentioned parameter that the application provides is only the example in the self-checking circuit that the application provides, with
Realize that the self-checking circuit that the application provides is defined, do not limit specifically.
Further, optionally, each node device 12 includes:At EBI, resistance set, storage device and data
Device is managed, wherein, EBI, for accessing external equipment;Data processing equipment, it is connected with resistance set, for acquisition pair
The partial pressure value of the build-out resistor value of node device is answered, wherein, resistance set includes:Build-out resistor;Storage device, with data processing
Device connects, for storing partial pressure value.
Specifically, as shown in figure 4, node device 12 includes access line resistance, build-out resistor, bypass electricity in this application
Resistance, resistance switch controller and build-out resistor access controller, EBI are configured with node device 12, for node to be set
Standby 12 access CAN, includes bus structures in node device 12, wherein, access line resistance and build-out resistor is respectively connected to
The main line of bus and branch road, line resistance and bypass resistance access bus main line in parallel are accessed, is connected with resistance switch controller,
With resistance and build-out resistor access controller series connection access bus branch.
Optionally, node device 12 also includes:Resistance switching control and bypass resistance, wherein, resistance switching control
Device, in the case of being accessed in head end device switching control bus 14, bypass resistance is accessed by switching, control node is set
Standby 12 enter communications status;Data processing equipment, it is additionally operable to send partial pressure value to controlling bus 14, and monitors controlling bus 14
Bus message is obtained, according to the partial pressure value in bus message compared with the partial pressure value stored in storage device, if storage
Partial pressure value is more than the partial pressure value in bus message, then exits bus operation;If the partial pressure value of storage is less than point in bus message
Pressure value, then continue to monitor controlling bus, obtain bus message, and according to being stored in the partial pressure value in bus message and storage device
Partial pressure value be compared, until obtain the minimum node device of partial pressure value, to cause controlling bus to pass through the partial pressure that gets
The minimum node device 12 of value accesses corresponding build-out resistor.
Specifically, as shown in figure 4, node device 12 sends the partial pressure value of storage to CAN successively, while listening for CAN
Bus receives bus message, and the Micro-processor MCV (and data processing equipment in the application) in node device 12 is total by CAN
Effumability random access memory (RamdomAccessMemory, letter are stored in partial pressure value and node device that line receives
Claim RAM) in information compare size, if the partial pressure value of the node device is smaller, illustrate the node of the node device rearward, weight
The multiple step.If the partial pressure value of the node device is larger, the voltage pin illustrated point is more, illustrates that the node device is forward, performs
Automatically exit from bus operation.
Optionally, controlling bus 14, for receiving the partial pressure value that each node device 12 is sent in multiple node devices 12,
The minimum node device 12 of partial pressure value is obtained by contrasting, and build-out resistor is accessed to the minimum node device 12 of partial pressure value.
To sum up, as shown in figure 5, Fig. 5 is a kind of schematic flow sheet of self-checking circuit according to embodiments of the present invention, the application
The self-checking circuit handling process of offer is specific as follows:
Step 1: being completed in project installation, system electrification, 12V plant-grid connections CAN is led in head end device logic control power supply
Bus is interrogated, now bus is without communication information, device mask communication failure.
Step 2: node device bus obtain it is electric after controlling bus line resistance access because pure conductor resistance is smaller, section
Point device automatically accesses line resistance.Node device calculates the voltage that oneself build-out resistor value got by electric resistance partial pressure, passes through
The magnitude of voltage for obtaining partial pressure after ADC samplings deposits into itself RAM.
Step 3: treating that each node sample finishes (5S), head end device switching accesses communication bus, and each node will be total
Line resistance bypasses, and avoids bus impedance is excessive from influenceing communication, now bus is prepared to enter into communication state (because build-out resistor does not connect
Enter, now bus ending terminal device possibly can not communicate);
Step 4: the partial pressure value information of storage is sent after the completion of node device action to bus successively, while listening for bus
Bus message is received, MCU sizes compared with the information itself being stored in RAM by bus reception value, if oneself value is smaller, is said
Oneself bright node rearward, repeats four steps.If the value of oneself is larger, the voltage pin illustrated point is more, illustrates oneself node before examination,
Execution automatically exits from bus operation.
The build-out resistor partial pressure U1=U* (R2/R1+R2) of node 1
=12* (120/130)
=11.077;
The build-out resistor partial pressure U2=U1* (R4/R3+R4) of node 2
=10.225;
Node N build-out resistor partial pressures Un=U (n-1) * (R2n/R2n-1+R2n)
To sum up:The equipment partial pressure of node rearward is fewer.As shown in fig. 6, Fig. 6 is a kind of self-test according to embodiments of the present invention
The schematic diagram of resistance parameter is, it is necessary to which what is illustrated is that the resistance value in Fig. 6 is only the excellent of the self-checking circuit that the application provides in circuit
Example is selected, only to realize that the self-checking circuit that the application provides is defined, is not limited specifically.
Step 5: comparing the minimum node device of partial pressure by similar bubbling method, then the node device is end-equipment
Automatically access build-out resistor.
The self-checking circuit that the application provides is using the Conductor Impedance theory directly proportional to line length, and interior machine all accesses before debugging
Build-out resistor, interior machine partial pressure is stored into master chip RAM by ADC detections partial pressure value, by detecting communication bus impedance, with " facing
Nearly pressure difference sampling diminishing method " selects machine in maximum impedance, and impedance maximum is then machine in end.And then pass through effective self test mode
Judge to identify last equipment;Build-out resistor automatically accesses after the completion of CAN system debugging, realizes the impedance of communication system
Matching.
Embodiment 2
According to embodiments of the present invention, there is provided a kind of embodiment of the method for circuitry self test is, it is necessary to illustrate, in accompanying drawing
The step of flow illustrates can perform in the computer system of such as one group computer executable instructions, although also,
Logical order is shown in flow chart, but in some cases, can be to perform shown different from order herein or retouch
The step of stating.
Fig. 7 is the schematic flow sheet of the method for circuitry self test according to embodiments of the present invention, as shown in fig. 7, being set in node
Standby side, this method comprise the following steps:
Step S702, after plant-grid connection, the partial pressure value of calculate node equipment;
Step S704, partial pressure value is sent to controlling bus;
Step S706, by the way that partial pressure value compared with partial pressure value in controlling bus, to be obtained to the minimum node of partial pressure value
Equipment, to cause controlling bus to access build-out resistor to the minimum node device of partial pressure value.
Specifically, the node device in the self-checking circuit provided in node device side, corresponding embodiment 1, node device
After plant-grid connection, the partial pressure value of Corresponding matching magnitude of voltage, after controlling bus access communications, each node device are calculated
The partial pressure value being calculated is sent to controlling bus, by monitoring the partial pressure value in controlling bus, with point in node device
Pressure value is compared, and obtains the minimum node device of partial pressure value, to cause controlling bus to connect the minimum node device of partial pressure value
Enter build-out resistor.
In embodiments of the present invention, by node device and controlling bus, wherein, node device, Access Control bus, use
In after plant-grid connection, the partial pressure value of calculate node equipment;Controlling bus, connecting node equipment, for receiving node equipment
Partial pressure value, the minimum node device of partial pressure value is obtained, and build-out resistor is accessed to the minimum node device of partial pressure value, reached certainly
The purpose of dynamic detection endpoint node equipment and Auto-matching Corresponding matching resistance, it is achieved thereby that erection & lift engineering efficiency
Technique effect, and then solve due to needing artificial investigation to tail end equipment in the prior art, and Corresponding matching resistance is accessed,
Cause the low technical problem of installing engineering efficiency.
Optionally, in step S702 after plant-grid connection, the partial pressure value of calculate node equipment includes:
Step1, pass through resistance switching control Access Control bus line resistance;
Step2, the resistance value according to controlling bus line resistance calculate the voltage that build-out resistor value is got, obtain partial pressure
Value.
Further, optionally, after obtaining partial pressure value in Step2, the method for the circuitry self test that the application provides is also
Including:
Step3, partial pressure value is stored, wherein, storage partial pressure value includes:Partial pressure value is stored to depositing by digital-to-analogue conversion sampling
Storage device.
Optionally, sending partial pressure value to controlling bus in step S704 includes:
Step1, bypass resistance is accessed by resistance switching control, node device is accessed by each node device structure
The LAN of part;
Step2, partial pressure value is sent to controlling bus.
Optionally, by the way that compared with partial pressure value in controlling bus, partial pressure value is obtained into partial pressure value most in step S706
Small node device includes:
Step1, monitor controlling bus and obtain bus message;
Step2, according to the partial pressure value in bus message compared with the partial pressure value stored in storage device;
Step3, if the partial pressure value of storage is more than the partial pressure value in bus message, exit bus operation;
Step4, if the partial pressure value of storage is less than the partial pressure value in bus message, continue to monitor controlling bus, obtain total
Line information, and according to the partial pressure value in bus message compared with the partial pressure value stored in storage device, until obtaining partial pressure
It is worth minimum node device, to cause controlling bus by being matched corresponding to the minimum node device access of the partial pressure value got
Resistance.
Optionally, in step S702 after plant-grid connection, before the partial pressure value of calculate node equipment, what the application provided
The method of circuitry self test also includes:
Step S701, plant-grid connection is controlled by logic controller by head end device.
Optionally, before sending partial pressure value to controlling bus in step S704, the side for the circuitry self test that the application provides
Method also includes:
Step S703, the LAN by the access of head end device switching control bus by each node device component.
The method for the circuitry self test that the application provides is interior before debugging by using the Conductor Impedance theory directly proportional to line length
Machine all accesses build-out resistor, and interior machine partial pressure is stored into master chip RAM by ADC detections partial pressure value, by detecting communication bus
Impedance, machine in maximum impedance is selected with " closing on pressure difference sampling diminishing method ", impedance maximum is then machine in end.And then by effective
Self test mode judge identify last equipment;Build-out resistor automatically accesses after the completion of CAN system debugging, realizes communication
The impedance matching of system.
Embodiment 3
Fig. 8 is a kind of schematic flow sheet of the method for circuitry self test according to embodiments of the present invention, as shown in figure 8, controlling
Bus side processed, this method comprise the following steps:
Step S802, receive the partial pressure value that each node device is sent;
Step S804, obtain the node device that partial pressure value is minimum in each node device;
Step S806, build-out resistor is accessed to the minimum node device of partial pressure value.
Specifically, the controlling bus side in the self-checking circuit provided in controlling bus side, corresponding embodiment 1, is received each
The partial pressure value that individual node device is sent;Obtain the node device that partial pressure value is minimum in each node device;Minimum to partial pressure value
Node device accesses build-out resistor.So as to realize automatic last access device obtained positioned at controlling bus tail end, and it is right
Build-out resistor corresponding to access device access, improves project installation efficiency, realizes circuitry self test automation.
In embodiments of the present invention, the partial pressure value sent by receiving each node device;Obtain in each node device
The minimum node device of partial pressure value;Build-out resistor is accessed to the minimum node device of partial pressure value, has reached automatic detection end segment
The purpose of point device and Auto-matching Corresponding matching resistance, it is achieved thereby that the technique effect of erection & lift engineering efficiency, enters
And solve due to needing artificial investigation to tail end equipment in the prior art, and Corresponding matching resistance is accessed, cause erector
The low technical problem of journey efficiency.
Embodiment 4
Another aspect according to embodiments of the present invention, there is provided a kind of storage medium, storage medium include the journey of storage
Sequence, wherein, control equipment where storage medium to perform the circuitry self test in above-described embodiment 2 or embodiment 3 when program is run
Method.
Embodiment 5
Another aspect according to embodiments of the present invention, there is provided a kind of processor, processor are used for operation program, its
In, program run when perform above-described embodiment 2 or the circuitry self test in embodiment 3 method.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment
The part of detailed description, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, others can be passed through
Mode is realized.Wherein, device embodiment described above is only schematical, such as the division of the unit, Ke Yiwei
A kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module
Connect, can be electrical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On unit.Some or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer
Equipment (can be personal computer, server or network equipment etc.) perform each embodiment methods described of the present invention whole or
Part steps.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with store program codes
Medium.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (15)
- A kind of 1. self-checking circuit, it is characterised in that including:Multiple node devices and controlling bus, wherein,Each node device in the multiple node device, accesses the controlling bus, for after plant-grid connection, obtaining respectively Take the partial pressure value of each node device;The controlling bus, the multiple node device is connected, for receiving the partial pressure value of each node device, obtain partial pressure value Minimum node device, and build-out resistor is accessed to the minimum node device of the partial pressure value.
- 2. self-checking circuit according to claim 1, it is characterised in that the self-checking circuit also includes:Head end device, its In,The head end device, the controlling bus is accessed, after being ranked up in a predetermined order in the multiple node device The position of first node device is adjacent, and for controlling the plant-grid connection by logic controller, or, the switching control is always Line accesses the LAN for including the multiple node device.
- 3. self-checking circuit according to claim 2, it is characterised in that each node device includes:EBI, resistance collection Conjunction, storage device and data processing equipment, wherein,The EBI, for accessing external equipment;The data processing equipment, it is connected with the resistance set, the institute of the build-out resistor value for obtaining corresponding node equipment Partial pressure value is stated, wherein, the resistance set includes:Build-out resistor;The storage device, it is connected with the data processing equipment, for storing the partial pressure value.
- 4. self-checking circuit according to claim 3, it is characterised in that the node device also includes:Resistance switching control Device and bypass resistance, wherein,The resistance switching control, in the case of switching the controlling bus access in the head end device, pass through Switching accesses the bypass resistance, controls the node device to enter communications status;The data processing equipment, it is additionally operable to send the partial pressure value to the controlling bus, and monitors the controlling bus Bus message is obtained, according to the partial pressure value in the bus message compared with the partial pressure value stored in the storage device, If the partial pressure value of storage is more than the partial pressure value in the bus message, bus operation is exited;If the partial pressure of storage Value is less than the partial pressure value in the bus message, then continues to monitor the controlling bus, obtains bus message, and according to described total Partial pressure value in line information is compared with the partial pressure value stored in the storage device, until obtaining the minimum node of partial pressure value Equipment, to cause the controlling bus to pass through matching electricity corresponding to the minimum node device access of the partial pressure value got Resistance.
- 5. self-checking circuit according to claim 3, it is characterised in thatThe controlling bus, for receiving the partial pressure value that each node device is sent in the multiple node device, pass through Contrast obtains the minimum node device of the partial pressure value, and accesses build-out resistor to the minimum node device of the partial pressure value.
- A kind of 6. method of circuitry self test, it is characterised in that including:After plant-grid connection, the partial pressure value of calculate node equipment;The partial pressure value is sent to controlling bus;Set by the way that the partial pressure value compared with partial pressure value in the controlling bus, to be obtained to the minimum node of the partial pressure value It is standby, to cause the controlling bus to access build-out resistor to the minimum node device of the partial pressure value.
- 7. the method for circuitry self test according to claim 6, it is characterised in that described after plant-grid connection, calculate node The partial pressure value of equipment includes:Pass through resistance switching control Access Control bus line resistance;Resistance value according to the controlling bus line resistance calculates the voltage that build-out resistor value is got, and obtains the partial pressure value.
- 8. the method for circuitry self test according to claim 7, it is characterised in that it is described obtain the partial pressure value after, Methods described also includes:The partial pressure value is stored, wherein, the storage partial pressure value includes:Sampled by digital-to-analogue conversion and deposit the partial pressure value Store up to storage device.
- 9. the method for circuitry self test according to claim 7, it is characterised in that described to send the partial pressure to controlling bus Value includes:Bypass resistance is accessed by the resistance switching control, the node device is accessed by each node device The LAN of component;The partial pressure value is sent to the controlling bus.
- 10. the method for circuitry self test according to claim 7, it is characterised in that described by by the partial pressure value and institute State partial pressure value in controlling bus to be compared, obtaining the minimum node device of the partial pressure value includes:Monitor the controlling bus and obtain bus message;According to the partial pressure value in the bus message compared with the partial pressure value stored in storage device;If the partial pressure value of storage is more than the partial pressure value in the bus message, bus operation is exited;If the partial pressure value of storage is less than the partial pressure value in the bus message, continue to monitor the controlling bus, obtain Bus message, and according to the partial pressure value in the bus message compared with the partial pressure value stored in the storage device, directly To the minimum node device of partial pressure value is obtained, to cause the controlling bus to pass through the minimum node of the partial pressure value got Build-out resistor corresponding to equipment access.
- 11. the method for circuitry self test according to claim 6, it is characterised in that described after plant-grid connection, calculate section Before the partial pressure value of point device, methods described also includes:The plant-grid connection is controlled by logic controller by head end device.
- 12. the method for circuitry self test according to claim 6, it is characterised in that described to described in controlling bus transmission Before partial pressure value, methods described also includes:LAN of the controlling bus access by each node device component is switched by head end device.
- A kind of 13. method of circuitry self test, it is characterised in that including:Receive the partial pressure value that each node device is sent;Obtain the node device that partial pressure value is minimum in each node device;Build-out resistor is accessed to the minimum node device of the partial pressure value.
- A kind of 14. storage medium, it is characterised in that the storage medium includes the program of storage, wherein, run in described program When control the storage medium where circuitry self test in equipment perform claim requirement 1 to 13 described in any one method.
- A kind of 15. processor, it is characterised in that the processor is used for operation program, wherein, right of execution when described program is run The method that profit requires the circuitry self test described in any one in 1 to 13.
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 true CN107356802A (en) | 2017-11-17 |
CN107356802B 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) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110336725A (en) * | 2019-07-11 | 2019-10-15 | 珠海格力电器股份有限公司 | Method and device for accurately positioning nodes in Controller Area Network (CAN) network |
CN111043721A (en) * | 2019-12-09 | 2020-04-21 | 珠海格力电器股份有限公司 | 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 (7)
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 |
CN102387059A (en) * | 2011-10-25 | 2012-03-21 | 中国西电电气股份有限公司 | Method and device for carrying out automatic matching on field bus terminals |
CN103248529A (en) * | 2012-02-10 | 2013-08-14 | 珠海格力电器股份有限公司 | Control circuit of communication network matching resistor |
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 | 合肥国轩高科动力能源有限公司 | CAN bus network structure |
-
2017
- 2017-07-03 CN CN201710533385.1A patent/CN107356802B/en active Active
Patent Citations (7)
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 |
CN102387059A (en) * | 2011-10-25 | 2012-03-21 | 中国西电电气股份有限公司 | Method and device for carrying out automatic matching on field bus terminals |
CN103248529A (en) * | 2012-02-10 | 2013-08-14 | 珠海格力电器股份有限公司 | Control circuit of communication network matching resistor |
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 | 合肥国轩高科动力能源有限公司 | CAN bus network structure |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110336725A (en) * | 2019-07-11 | 2019-10-15 | 珠海格力电器股份有限公司 | Method and device for accurately positioning nodes in Controller Area Network (CAN) network |
CN110336725B (en) * | 2019-07-11 | 2020-11-10 | 珠海格力电器股份有限公司 | Method and device for accurately positioning nodes in Controller Area Network (CAN) network |
CN111043721A (en) * | 2019-12-09 | 2020-04-21 | 珠海格力电器股份有限公司 | CAN bus matching resistor access method and device, air conditioning unit and system |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN107356802B (en) | 2020-02-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2840643B1 (en) | Slave controller, communication method, communication system, energy storage system including the communication system | |
CN101542402B (en) | Methods and apparatus providing advanced classification for power over ethernet | |
US20090243391A1 (en) | Multi-functional power supply with power over ethernet support, integrated monitoring and supplemental power source backup | |
CN107356802A (en) | Self-test circuit and circuit self-test method | |
CN104237645A (en) | Online monitoring system and method for insulation state of substation DC system | |
CN109639544A (en) | System and method for automatically allocating addresses | |
CN105871672A (en) | One-host multi-slave communication system and data transmission method thereof | |
CN102842939A (en) | Battery management system and battery management method | |
CN109143954A (en) | A kind of system and method realizing controller and resetting | |
CN110401411B (en) | Photovoltaic energy storage system and fault recording device | |
CN106814324A (en) | The method and apparatus for monitoring batteries running status | |
CN106451363A (en) | Protection circuit of bidirectional converter and power utilization system with electricity storage function | |
CN105955859B (en) | The verification circuit and method of USB collocation channels | |
CN108599811B (en) | channel switching processing method, device, system, storage medium and electronic device | |
WO2023065620A1 (en) | Ethercat bus-based wiring harness test method and apparatus | |
CN102722110B (en) | Addressing circuit and addressing method of modularized photovoltaic convergence acquisition device | |
CN107544340A (en) | The data acquisition controller of train | |
CN107357196A (en) | Wire identification method and device | |
CN106991067B (en) | Data interaction method for one-master multi-slave network and embedded equipment thereof | |
CN113419451B (en) | Distributed data acquisition method and system for communication network | |
CN112416836B (en) | Method for controlling RT address allocation of hanging point nodes in distributed hanging object management system | |
CN211349338U (en) | Information acquisition system and electrical equipment | |
CN111928895B (en) | Data acquisition system and data acquisition method | |
CN112769968B (en) | Circuit breaker, cabinet, system, address acquisition method and equipment | |
CN115219250A (en) | Motor train unit power vehicle IO loop test method |
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 |