CN104297666A - Daisy chain circuit abnormal position diagnostic method - Google Patents

Daisy chain circuit abnormal position diagnostic method Download PDF

Info

Publication number
CN104297666A
CN104297666A CN201410416058.4A CN201410416058A CN104297666A CN 104297666 A CN104297666 A CN 104297666A CN 201410416058 A CN201410416058 A CN 201410416058A CN 104297666 A CN104297666 A CN 104297666A
Authority
CN
China
Prior art keywords
circuit
daisy chain
section
controller
chain circuit
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
Application number
CN201410416058.4A
Other languages
Chinese (zh)
Other versions
CN104297666B (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.)
Huizhou Epower Electronics Co Ltd
Original Assignee
Huizhou Epower Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou Epower Electronics Co Ltd filed Critical Huizhou Epower Electronics Co Ltd
Priority to CN201410416058.4A priority Critical patent/CN104297666B/en
Publication of CN104297666A publication Critical patent/CN104297666A/en
Application granted granted Critical
Publication of CN104297666B publication Critical patent/CN104297666B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Eye Examination Apparatus (AREA)
  • Small-Scale Networks (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a daisy chain circuit abnormal position diagnostic method. The method comprises the following steps that A, a daisy chain circuit is connected with a controller, and an indicator lamp is connected into each section of the daisy chain circuit; B, the controller judges whether abnormities exist in the daisy chain circuit or not; if no abnormity exists, all the indicator lamps of the daisy chain circuit are controlled to be switched on, and if abnormities exist, the step C is executed; C, the controller judges whether abnormities exist in sections of the circuit or not section by section beginning from the first section of the daisy chain circuit; if it is judged that abnormities exist in a certain section of the circuit, the indicator lamp connected with the normal section, closest to the section with the abnormities, of the daisy chain circuit is switched on, and the series number of the section with the abnormities is reported to an upper computer. According to the daisy chain circuit abnormal position diagnostic method, the abnormal positions are identified through the indicator lamps, the specific positions of the abnormities of the daisy chain circuit can be known clearly, and no complex reasoning or judgment is needed; no extra diagnosis algorithm flows need to be added, and the development cost is reduced.

Description

A kind of daisy chain circuit out-of-the way position diagnostic method
Technical field
The present invention relates to the diagnostic techniques of circuit field, relate to a kind of daisy chain circuit out-of-the way position diagnostic method particularly.
Background technology
Daisy chain cascading circuit structure is by the input at rear equipment of being coupled in the output of first equipment in daisy chain cascading circuit in daisy chain cascading circuit, with provide from first equipment to rear equipment information (as, data, address and command information) and the transmission of control signal (e.g., enable signal).Daisy chain cascading structure have employed less and shorter connection compared with parallel interconnection structure, can reduce the impact that whole system is subject to transmission delay and crosstalk.But, with the equipment of daisy chain cascading Structural assignments, only have when whole daisy chain circuit all normally works, program could normally be run, once it is abnormal to appoint first device to occur in daisy chain circuit, namely communication be interrupted, and other program modules also cannot normally be run, in order to allow daisy chain circuit recover normal operating conditions as early as possible, be badly in need of a kind of method can investigating out-of-the way position in daisy chain circuit quickly and easily at present.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of method detecting out-of-the way position in daisy chain circuit, effectively can find out the abnormal position occurred when daisy chain circuit occurs abnormal, for subsequent conditioning circuit reparation and functional rehabilitation are provided convenience.
For solving the problems of the technologies described above, the present invention proposes a kind of daisy chain circuit out-of-the way position diagnostic method, and the method comprises the steps:
A, daisy chain circuit to be connected with controller, and every grade of circuit in daisy chain circuit and this grade of circuit are divided into every section of circuit in daisy chain circuit near the coupling part of controller;
B, every section of circuit in daisy chain circuit is all connected a pilot lamp;
C, controller judge whether there is exception in daisy chain circuit, if without exception, then control to open all pilot lamp in daisy chain circuit and process ends, if exist abnormal, then enter step D;
D, controller, from be connected one section of nearest circuit with it, judge whether every section of circuit occurs exception piecemeal, if judge
When a certain section of circuit occurs abnormal, then open the pilot lamp connected from one section of normal circuit that this section of circuit is nearest, and will occur that the hop count of abnormal circuit is reported to host computer.
Preferably, described controller judges that whether there is abnormal concrete grammar in daisy chain circuit is:
A, controller send initialization signaling to daisy chain integrated circuit;
B, described daisy chain integrated circuit receive described initialization signaling, and return responsive data frame;
C, controller judge whether to finish receiving in certain time length T the frame responsive data frame that described daisy chain integrated circuit returns; If finish receiving, then represent that daisy chain circuit is normal, control to open all pilot lamp in daisy chain; Do not complete if receive, then represent that daisy chain circuit occurs abnormal.
Preferably, describedly judge whether every section of circuit occurs that abnormal concrete grammar is piecemeal:
A, controller send initialization command to certain section of circuit in daisy chain;
Described in B, daisy chain, certain section of circuit receives described initialization signaling, and returns responsive data frame;
C, controller judge whether to finish receiving in certain time length T the frame responsive data frame that described certain section of circuit returns, if finish receiving, then represent that this section of circuit is normal, continue the detection to next section of circuit away from controller direction; Do not complete if receive, then represent that this certain section circuit exists abnormal, controller controls to open the pilot lamp connected from one section of normal circuit that described certain section of circuit is nearest, and will occur that the hop count of abnormal circuit is reported to host computer.
Preferably, whether described controller finishes receiving mark to judge whether according to Frame and finishes receiving Frame.
Tool of the present invention has the following advantages and beneficial effect:
1, by using the pilot lamp with obvious visual effect to identify out-of-the way position information, use can be informed apparently
Whether family there is exception, judges without the need to intricate reasoning.
2, conventional circuit initializes process is utilized to judge out-of-the way position, without the need to rolling up extra diagnostic algorithm flow, letter
Change system program, reduce cost of development.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, accompanying drawing required in describing embodiment is done simple introduction below, apparently, accompanying drawing described below is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the signal wiring schematic diagram of daisy chain circuit and controller in the embodiment of the present invention.
Fig. 2 is the initialized program flow diagram of daisy chain circuit in prior art.
Fig. 3 is the process flow diagram of daisy chain out-of-the way position diagnostic method in the embodiment of the present invention.
Embodiment
Elaborate below in conjunction with the embodiment of Figure of description to the embodiment of the present invention.
As shown in Figure 1, daisy chain circuit is connected with controller, assuming that the progression of daisy chain is N, to be connected nearest stage circuit with controller as first order circuit, in figure, each dotted line frame represents every section of circuit of daisy chain, namely first order circuit and the coupling part L1 near controller end thereof constitute first paragraph circuit 1, the coupling part L2 of second level circuit and close controller end thereof constitutes second segment circuit 2, the coupling part of tertiary circuit and close controller end thereof constitutes the 3rd section of circuit 3, by that analogy, the coupling part of N level circuit and close controller end thereof constitutes N section circuit N, select LED as pilot lamp, the opening as pilot lamp is lit using LED, every stage circuit in daisy chain is all connected with a LED.Daisy chain out-of-the way position diagnostic method can be divided into two steps substantially: 1) judge whether there is exception in daisy chain circuit; 2) when existing abnormal in daisy chain circuit, there is abnormal particular location in diagnosis.Lower mask body is described in detail to above-mentioned two steps.
1) judge whether there is exception in daisy chain circuit
Controller sends HELLOALL signaling to daisy chain integrated circuit, start to carry out initialization after described daisy chain integrated circuit receives HELLOALL signaling, and return corresponding responsive data frame to controller, controller judges whether to finish receiving in regular hour T according to the finishing receiving mark F field in received responsive data frame the frame responsive data frame that daisy chain integrated circuit returns, if finish receiving, then illustrate that daisy chain is normal, return init_ok signaling, and all LED that control is lighted in daisy chain circuit, exit diagnostic routine; If do not finish receiving, then illustrate in daisy chain circuit to exist abnormal, proceed following step 2) algorithm.
2) when existing abnormal in daisy chain circuit, there is abnormal particular location in diagnosis
Controller sends initialization signaling HELLOALL to daisy chain first paragraph circuit, controller judges whether to finish receiving in regular hour T according to data frame receipt complement mark F the frame responsive data frame that described first paragraph circuit returns, if do not finish receiving, then illustrate that daisy chain first paragraph circuit exists abnormal, if finish receiving, then illustrate that daisy chain first paragraph circuit is normal; Controller continues to send initialization signaling HELLOALL to second segment circuit in daisy chain, and judge whether to finish receiving in regular hour T according to data frame receipt complement mark F the frame responsive data frame that second segment circuit returns, if do not finish receiving, then illustrate that daisy chain second segment circuit exists abnormal, the LED that this Time Controller reference mark bright daisy chain first order circuit connects, and will occur that abnormal circuit hop count " second segment " sends to host computer, if finish receiving, then illustrate that daisy chain second segment circuit is normal; Controller continues the 3rd section of circuit in daisy chain and sends initialization signaling HELLOALL, and judge whether to finish receiving in regular hour T according to data frame receipt complement mark F the frame responsive data frame that the 3rd section of circuit return, if do not finish receiving, then illustrate that daisy chain the 3rd section of circuit exists abnormal, the LED that this bright daisy chain second level, Time Controller reference mark circuit connects, and will occur that abnormal circuit hop count " the 3rd section " sends to host computer, if finish receiving, then illustrate that daisy chain the 3rd section of circuit is normal; By that analogy, controller continues the 4th section of circuit transmission initialization signaling in daisy chain and carries out abnormality detection, until daisy chain circuit final stage.It is anticipated that when daisy chain first paragraph circuit exists abnormal, all LED all can not be lit, and when daisy chain N section circuit abnormality, then the LED that N-1 level circuit connects is lit.
Fig. 3 shows the program flow diagram of daisy chain out-of-the way position diagnostic method in the embodiment of the present invention, as can be seen from the figure, when concrete program realizes, variable i and j that an initial value is 0 can be preset, wherein i represents certain section of circuit that current execution inner loop detects, j is a numerical variable, for the number of times that aggregate program performs, the value of j progressively increases along with the execution of program, and setting 0≤j≤M, when the value of j equals M, then illustrate that the time limit T that wait-receiving mode completes arrives, now can judge whether to occur extremely, in order to take into account the time cost of program operation and abnormality diagnostic accuracy, the span of M is preferably 2≤M≤4, the value that have chosen M in the present embodiment is 3, a frame responsive data frame is not also finished receiving when the value of variable j arrives 3, namely judge to exist extremely in daisy chain, now call each section of inside circuit in daisy chain further and detect circulation, if the value of variable j does not reach 3, and a frame response data finishes receiving, then illustrate that daisy chain is normal, detect in the inside of each section of circuit in circulation, equally also be also do not finish receiving a frame responsive data frame when the value of j arrives 3, then judge that this section of circuit occurs abnormal, now light the LED that this this section circuit the preceding paragraph connects, when j does not reach 3, then judge whether a frame response data finishes receiving further, if finish receiving, then judge that this section of circuit is normal, now further next section of circuit is diagnosed, do not complete if receive, then continue wait-receiving mode until the value of j reaches 3 or finish receiving.
It should be noted that, the present invention in the specific implementation also can using the stage circuit that is connected with controller farthest as first order circuit, using this first order circuit and near the coupling part of controller end as first paragraph circuit, judging to deposit in an exceptional case in daisy chain circuit, then from N section circuit, judge whether every section of circuit occurs exception piecemeal, embodiment in this situation and afore-mentioned similar, just in daisy chain, the definition of order of the progression/hop count of at different levels/section circuit is different, those skilled in the art significantly can obtain its equivalent embodiment according to foregoing description, no longer describe in detail herein.In addition, the opening of pilot lamp, except above-mentioned pilot lamp is lit, also shows by other modes, and such as pilot lamp continues flicker and other allly can show the mode that pilot lamp is unlocked.In addition, in the present invention, indication is abnormal, can be any part open circuit in circuit or short circuit.
Daisy chain out-of-the way position diagnostic method provided by the present invention, it uses pilot lamp to identify out-of-the way position, makes user can know the particular location of daisy chain exception at a glance, without the need to intricate reasoning and judgement; And the present invention just completes out-of-the way position diagnosis in the circuit initializes moment, without the need to rolling up extra appendage, only need increase the corresponding algorithm of this program on initialization basis, system realizes simple, and cost of development is lower.
The above embodiment only have expressed preferred embodiment of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (4)

1. a daisy chain circuit out-of-the way position diagnostic method, is characterized in that, the method comprises the steps:
A, daisy chain circuit to be connected with controller, and every grade of circuit in daisy chain circuit and this grade of circuit are divided into every section of circuit in daisy chain circuit near the coupling part of controller;
B, every section of circuit in daisy chain circuit is all connected a pilot lamp;
C, controller judge whether there is exception in daisy chain circuit, if without exception, then control to open all pilot lamp in daisy chain circuit and process ends, if exist abnormal, then enter step D;
D, controller, from be connected one section of nearest circuit with it, judge whether every section of circuit occurs exception piecemeal, if judge
When a certain section of circuit occurs abnormal, then open the pilot lamp connected from one section of normal circuit that this section of circuit is nearest, and will occur that the hop count of abnormal circuit is reported to host computer.
2. daisy chain circuit out-of-the way position diagnostic method according to claim 1, is characterized in that, described controller judges that whether there is abnormal concrete grammar in daisy chain circuit is:
A, controller send initialization signaling to daisy chain integrated circuit;
B, described daisy chain integrated circuit receive described initialization signaling, and return responsive data frame;
C, controller judge whether to finish receiving in certain time length T the frame responsive data frame that described daisy chain integrated circuit returns; If finish receiving, then represent that daisy chain circuit is normal, control to open all pilot lamp in daisy chain; Do not complete if receive, then represent that daisy chain circuit occurs abnormal.
3. daisy chain circuit out-of-the way position diagnostic method according to claim 1 and 2, is characterized in that, describedly judges whether every grade of section circuit occurs that abnormal concrete grammar is piecemeal:
A, controller send initialization command to certain section of circuit in daisy chain;
Described in B, daisy chain, certain section of circuit receives described initialization signaling, and returns responsive data frame;
C, controller judge whether to finish receiving in certain time length T the frame responsive data frame that described certain section of circuit returns, if finish receiving, then represent that this section of circuit is normal, continue the detection to next section of circuit away from controller direction; Do not complete if receive, then represent that this certain section circuit exists abnormal, controller controls to open the pilot lamp connected from one section of normal circuit that described certain section of circuit is nearest, and will occur that the hop count of abnormal circuit is reported to host computer.
4. daisy chain circuit out-of-the way position diagnostic method according to claim 3, is characterized in that, whether described controller finishes receiving mark to judge whether according to Frame finishes receiving a frame responsive data frame.
CN201410416058.4A 2014-08-22 2014-08-22 A kind of daisy chain circuit out-of-the way position diagnostic method Active CN104297666B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410416058.4A CN104297666B (en) 2014-08-22 2014-08-22 A kind of daisy chain circuit out-of-the way position diagnostic method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410416058.4A CN104297666B (en) 2014-08-22 2014-08-22 A kind of daisy chain circuit out-of-the way position diagnostic method

Publications (2)

Publication Number Publication Date
CN104297666A true CN104297666A (en) 2015-01-21
CN104297666B CN104297666B (en) 2017-12-29

Family

ID=52317469

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410416058.4A Active CN104297666B (en) 2014-08-22 2014-08-22 A kind of daisy chain circuit out-of-the way position diagnostic method

Country Status (1)

Country Link
CN (1) CN104297666B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107450009A (en) * 2016-05-31 2017-12-08 展讯通信(上海)有限公司 A kind of arrangement for testing integrated circuit and the method using its test solder joint
CN110703105A (en) * 2019-10-15 2020-01-17 宁波吉利汽车研究开发有限公司 Battery management system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0310357A (en) * 1989-06-07 1991-01-17 Mitsubishi Electric Corp Controller for daisy chain system
CN1375844A (en) * 2001-03-19 2002-10-23 华为技术有限公司 Daisy chain switch matrix and the measuring method of transmission equipment with it
CN1542459A (en) * 2003-05-01 2004-11-03 中兴通讯股份有限公司 Boundary scan testing device for integrated circuit
CN1866853A (en) * 2005-05-19 2006-11-22 黄宁宁 LAN node fault alarming method, system and interface module for the system
JP2009003729A (en) * 2007-06-22 2009-01-08 Meidensha Corp Data processing system
CN103404091A (en) * 2012-11-22 2013-11-20 华为技术有限公司 Business protecting method, device and system
CN103875209A (en) * 2012-04-25 2014-06-18 Abb技术有限公司 A fast detecting and locating fault method for intercom system and a system thereof
CN203720646U (en) * 2014-01-03 2014-07-16 上海通用汽车有限公司 Shunting circuit used for realizing on-line fault injection of chrysanthemum-type controller area network (CAN) bus

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0310357A (en) * 1989-06-07 1991-01-17 Mitsubishi Electric Corp Controller for daisy chain system
CN1375844A (en) * 2001-03-19 2002-10-23 华为技术有限公司 Daisy chain switch matrix and the measuring method of transmission equipment with it
CN1542459A (en) * 2003-05-01 2004-11-03 中兴通讯股份有限公司 Boundary scan testing device for integrated circuit
CN1866853A (en) * 2005-05-19 2006-11-22 黄宁宁 LAN node fault alarming method, system and interface module for the system
JP2009003729A (en) * 2007-06-22 2009-01-08 Meidensha Corp Data processing system
CN103875209A (en) * 2012-04-25 2014-06-18 Abb技术有限公司 A fast detecting and locating fault method for intercom system and a system thereof
CN103404091A (en) * 2012-11-22 2013-11-20 华为技术有限公司 Business protecting method, device and system
CN203720646U (en) * 2014-01-03 2014-07-16 上海通用汽车有限公司 Shunting circuit used for realizing on-line fault injection of chrysanthemum-type controller area network (CAN) bus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107450009A (en) * 2016-05-31 2017-12-08 展讯通信(上海)有限公司 A kind of arrangement for testing integrated circuit and the method using its test solder joint
CN110703105A (en) * 2019-10-15 2020-01-17 宁波吉利汽车研究开发有限公司 Battery management system
CN110703105B (en) * 2019-10-15 2021-12-28 宁波吉利汽车研究开发有限公司 Battery management system

Also Published As

Publication number Publication date
CN104297666B (en) 2017-12-29

Similar Documents

Publication Publication Date Title
US7699143B2 (en) Method of setting the floor associations of a plurality of operating units of an elevator installation
CN101605959B (en) Sensor for automatic door device and automatic door device using the sensor
CN104019216B (en) Method and device for controlling AMT gear selecting and shifting executing mechanism
CN105974263B (en) A kind of motor wrong line detector and method
CN105297208B (en) For assisting the equipment for connecing yarn in ring-like spinning machine
US20120136558A1 (en) Apparatus and method for controlling engine restarting of vehicle
CN104297666A (en) Daisy chain circuit abnormal position diagnostic method
EP3051516A1 (en) Real-time monitoring and diagnostic processing of traffic control data
KR101673780B1 (en) Control method of breakdown diagnosis
CN106130414B (en) Vehicle dormer window is from motor hall signal fault detection method, relevant apparatus and system
CN108132652A (en) Train automatic car washing processing method and processing device based on carwash plan
CN105952889B (en) Gear on-off signal pickup assembly and its method, automobile shift system and automobile
CN107771159A (en) Elevator device and portable configuration device with the user interface that can be configured by means of optical detecting unit
CN108916378A (en) Shift lever position identifying system and method
CN106965805A (en) Wagon control based on risk
CN109733331A (en) Control system for windscreen wiper and control method
CN105152012B (en) Method and system for automatically identifying crane conditions
CN106609839B (en) Method for controlling the driving of vehicle
CN107098237B (en) Elevator door lock detection method and elevator external call address setting method
KR101477641B1 (en) Traffic signal controller
CN1893339B (en) Continuous median failure control system and method
JP6566665B2 (en) Traffic signal controller
JP2015129026A (en) Elevator device
CN111045448B (en) Man-machine interaction method of multi-mode complex automatic flight control system
JP2011081448A (en) Connection determination device, traffic signal control system, and computer program

Legal Events

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