CN100424605C - Intelligent management apparatus and management method for distributed control network based on CAN bus - Google Patents

Intelligent management apparatus and management method for distributed control network based on CAN bus Download PDF

Info

Publication number
CN100424605C
CN100424605C CNB2006100426226A CN200610042622A CN100424605C CN 100424605 C CN100424605 C CN 100424605C CN B2006100426226 A CNB2006100426226 A CN B2006100426226A CN 200610042622 A CN200610042622 A CN 200610042622A CN 100424605 C CN100424605 C CN 100424605C
Authority
CN
China
Prior art keywords
node
priority
bus
network
control unit
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.)
Expired - Fee Related
Application number
CNB2006100426226A
Other languages
Chinese (zh)
Other versions
CN1838011A (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.)
Xidian University
Original Assignee
Xidian University
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 Xidian University filed Critical Xidian University
Priority to CNB2006100426226A priority Critical patent/CN100424605C/en
Publication of CN1838011A publication Critical patent/CN1838011A/en
Application granted granted Critical
Publication of CN100424605C publication Critical patent/CN100424605C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

  • Small-Scale Networks (AREA)
  • Computer And Data Communications (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The present invention discloses an intelligent management apparatus and a management method for a distributed control network. A CAN bus interface unit of the management apparatus receives communication messages on a CAN bus, converts a difference electrical level on the bus to a digital logic level, implements filter, transformation and dispatch processing through CAN messages, and sends data processed to a data converting unit and a PCI bus control unit for data exchange to complete the communication with an upper control machine. The management method is realized through software function modules stored in an ARM chip, and the software function modules respectively complete the functions of network communication management, network performance test, network fault diagnosis, data management among network segments, conversion of CAN and PCI protocols, etc. The present invention can realize the real-time analysis of CAN communication quality inside a management unit without communicating with the upper control machine and repairs node failure already appeared, which greatly improves the real-time performance of the communication quality detection of the entire network and can be used in the technical field of industrial control.

Description

Distributed control network intelligent management apapratus and management method based on the CAN bus
Technical field
The invention belongs to industrial automation control field, specially refer to a kind of Communications Management Units of the distributed control network based on controller local area network CAN fieldbus and the interconnected management method between subnet.
Background technology
The CAN bus is a kind of serial data communications busses of developing in order to solve in the Hyundai Motor exchanges data between control and the testing tool.The CAN bussing technique has high real-time and reliability, has obtained using widely in industry spot.But rising along with the continuous complicated and system scale of the applied Control Network structure of CAN bus, the CAN bus is because the support that lacks the upper layer network agreement own, therefore also there are many difficulties in the imperfection also at the aspects such as detection, diagnosis and management of communication network for interconnected between the control sub-network of isomorphism and isomery.
At present, although external Related product has a stronger detection performance commercial, the DNA Analyzer protocol analyzer of the Contemporary Controls company of the U.S. etc. for example, but often cost an arm and a leg, range of application is narrower, be not suitable in the industry spot of middle and small scale is used, promoting.The domestic Related product and the research and development of technology are for CAN bus communication self networks administrative skill shorter mention also.Publication number is CZ2638142, open day is 20040901, number of patent application is 03208726.8 " USB interface-based portable CAN bus analysis registering instrument ", independently carry out CAN bus analysis and record though can not rely on PC, but it can only detect and show bus state and the current communication data of bus, do not have the function of the bus communication situation being carried out intelligent management, more can not judge the network failure situation.Publication number is CZ1629813, open day is 2005.06.22, number of patent application is 200310109393.1 " a kind of field bus communication failure recording device ", be that the communication failure in the fieldbus is write down and exports, but just carried out a kind of passive judgement for communication failure, can't detect in real time bus running status and signal intelligence, more lack administrative mechanism the CAN network communication quality.
The content of invention
The objective of the invention is to avoid the deficiency of above-mentioned prior art, provide a kind of distributed control network to carry out the assembly unit of intelligent network management based on the CAN bus, to finish data management between network service management, network state analysis, network failure judgement, the network segment, reach the function of bus detection in real time and demonstration.
The technical thought that realizes the object of the invention is: break product in the past only carries out passive monitoring to the CAN bus network communication situation, introducing the network quality service technology replenishes the CAN bus communication protocol, dynamically adjust node priority, network service is managed, solve the communication obstruction of transient network and the problem of part of nodes soft fault; And the self-test by node and bus, bus is communicated state-detection and the network failure classification is judged; Aspect data communication, network administration apparatus is by Date Conversion Unit and pci bus control module, realization communicates to connect with upper PC, operating personnel can rely on upper PC that network administration apparatus is carried out parameter setting easily, check the detection data of the next management devices intuitively, the final realization carried out dynamic communication management and dispatching and quality testing to the CAN bus network.
Hardware circuit of the present invention comprises: CAN Bus Interface Unit, CAN bus communication control module, Date Conversion Unit and pci bus control module.Wherein the CAN Bus Interface Unit is used to receive the communication message on the CAN bus, converts the differential level on the bus to digital logic level; CAN bus communication control module carries out filtering, conversion and scheduling to the CAN message after changing to be handled, and the data after will handling send Date Conversion Unit and pci bus control module to; Data-switching and pci bus control module, the data that are used for receiving send to the exchange of the enterprising line data of pci bus, finish and the communicating by letter of upper control machine.
The method that the present invention utilizes above-mentioned hardware circuit that network service is managed, carry out according to the following procedure:
(1) the CAN interface unit is sampled to the unknown data in the CAN bus, and delivers to CAN communication control unit completion bit rate detection simultaneously, dynamically adjusts priority, the communication check and the management of fault diagnosis three parts,
Described bit rate detects, and is by control module the Frame of sampling to be judged and analysis, interrupts recursive algorithm according to the CAN bus error, detects the current network bit rate and the bit rate that detection obtains is delivered to control module internal register (1) preservation;
Described dynamic adjustment priority is to create a priority management table by communication control unit, and network node is divided into three classes, according to the theoretical dynamic assignment node priority of QoS, and delivers to its internal register (1) and preserves;
Described fault diagnosis is to carry out fault diagnosis and fault restoration by control module according to sampled data, and with abort situation and fault category parameter that judgement obtains, delivers to communication control unit internal register (2) and preserve;
(2) communication control unit is sent to Date Conversion Unit and pci bus control module with the parameter of preserving in register (1) and the register (2), finishes the intelligent management of whole C AN network service.
The method of above-mentioned management, wherein the bit rate measuring ability is finished the bit rate test to the current network transmission, be to interrupt recursive algorithm according to the CAN bus error, at first set a bit rate by CAN bus communication control module, bit rate to this setting reduces gradually then, when being reduced to when equating with current bit rate, CAN bus communication control module will receive a message, detect correct bit rate.
The method of above-mentioned management, the process of wherein dynamically adjusting priority is as follows:
(1) create a priority management table by the network service control module, this admin table has comprised the classification of each node, node communication priority, parameters such as QoS management;
(2) communication control unit is divided three classes network node according to self CAN network service situation, distributes the priority thresholding one by one;
When (3) network blockage taking place, node sends priority to communication control unit and promotes request;
(4) communication control unit receives several above-mentioned requests, will ask to search in the node administration tables of data, and according to the communication queue in the table node request that communication control unit receives be sorted, and produces an interim request communication sequence;
(5) in next communication cycle, if should ask the node of highest level in the communication ordering temporarily, continue to send request to the network service control module, then communication control unit sends the network service administrative message for this node, allows this node to promote the priority of self;
(6) after this node is finished data communication, send the priority recovery request to communication control unit, and directly requesting node is carried out priority by communication control unit and recover according to the priority management table.
The method of above-mentioned management, wherein the process of fault diagnosis is as follows:
(1) sets up a fault management table, the value of storing each node error counter in the CAN controller by communication control unit;
(2) communication control unit is set an error flag value according to self CAN network service requirement, and the node failure value of read failure admin table and this error flag value compare;
(3) relatively the dynamic priority lifting is carried out to each malfunctioning node in the fault management table in the back, and then node failure is made the highest priority of distribution or reparation;
(4) for the malfunctioning node that can not repair, according to priority management table recovery nodes priority, and communication control unit carries out bus to current C AN network and tests oneself;
(5) will test oneself data and fault management table compares and determines final malfunctioning node, and send the fault test frame to this malfunctioning node by transceiver, return situation according to fault test and judge the bug position, and, judge the type of error of node by receiving in the statistics controller of communication control unit inside and sending the error count value;
(6) communication control unit is delivered to abort situation and fault category parameter that judgement obtains the register (2) of communication control unit inside and is preserved.
The method of above-mentioned management, wherein the CAN interface unit is sampled to the unknown data in the CAN bus, be to utilize the CAN transceiver that carries in the microprocessor, with reference to the CAN2.0 basic agreement, intercept the data transmission on the CAN network, and sampled data delivered in the microprocessor, adopt the CAN bus state check algorithm that is added in the processor Frame of sampling is judged and to be analyzed, finish whole data sampling.
Above-mentioned management devices, wherein CAN bus communication control module is made of ARM chip LPC2294 and respective peripheral circuit, inner integrated 4 tunnel the CAN bus controller of LPC2294, the ARM chip is read and write the CAN message in the internal resource scope, handle accordingly according to program setting, the address wire of LPC2294 links to each other with data conversion module with the read and write access control line, and the data of host computer communication are read and write.
The present invention has following advantage:
1. the present invention can utilize its inner CAN module to realize the function of data management between network service management, bus detection and demonstration, network state analysis, network failure judgement, the network segment owing to adopt ARM chip LPC2294 as core processor;
2. the present invention finishes functions such as dynamic adjustment priority and Intelligent Recognition network soft fault owing to utilize the QoS quality services theory that is added on the LPC2294 chip internal that network data communication is managed;
3. the present invention has realized in management devices inside the CAN communication quality being communicated the function of management owing to utilized embedded technology to programme in the ARM controller, has greatly improved the real-time that whole network communication quality detects;
4. the present invention has promoted the cell data processing power under the high load capacity owing to utilize pci bus interface and ARM chip at a high speed.
Test shows that the present invention can manage the CAN network data communication intelligently, detects CAN bus communication state, carries out fault diagnosis, and can communicate by letter with upper PC, makes things convenient for data storage, and man-machine interaction can be widely used in industrial control field.
Description of drawings
Fig. 1 is an intelligent management apapratus theory diagram of the present invention
Fig. 2 is a management devices circuit structure diagram of the present invention
Fig. 3 is a telecommunication management process flow diagram of the present invention
Embodiment
Followingly the present invention is described in further detail with reference to accompanying drawing.
With reference to Fig. 1, the present invention mainly is made up of CAN Bus Interface Unit, CAN bus communication control module, Date Conversion Unit, pci bus control module, passes through data/address wire, the two-way connection of control line between each unit.The CAN Bus Interface Unit is used to receive the communication message on the CAN bus, and converts the differential level on this bus to digital logic level, is transferred to CAN bus communication control module.CAN bus communication control module, CAN message data after the conversion is carried out filtering, conversion and scheduling to be handled, send Date Conversion Unit to, this Date Conversion Unit, CAN bus message information after handling is sent to the pci bus control module carries out exchanges data, finish and the communicating by letter of upper control machine with the pci bus that PC controls.
With reference to Fig. 2; the differential level signal of CAN bus is sent into the input end of CAN bus driver transceiving chip PCA82C250 through protective circuit of diode and filtering circuit; the differential level conversion of signals is become serial number word logic signal, and the CAN bus serial port through delivering to LPC2294 after the isolation of 6N137 photoelectric isolating circuit carries out filtering, conversion and scheduling processing to the CAN message after changing.This 6N137 photoelectric isolating circuit is connected between PCA82C250 and the CAN bus control circuit, to reduce the interference of external bus to the unit internal circuit, improves the quality of communication.This LPC2294 chip internal is integrated 4 tunnel CAN bus controller, its performance is equivalent to single chip integrated SJA1000CAN controller, and programming Control is very convenient.CAN bus serial signal after the isolation can be connected directly to 4 CAN ports of LPC2294.The ARM chip is read and write the CAN message in the internal resource scope, handles accordingly according to program setting.The address wire of LPC2294 links to each other with data conversion module with the read and write access control line, and the data of host computer communication are read and write.Date Conversion Unit is finished by the fpga chip EP1C6 of ALTERA company, and it is sent to pci bus interface as the data buffer between ARM control chip and the pci interface chip with the CAN bus message information after handling.The data line of the PCI9052 of pci bus, address wire and read-write control line also link to each other with the I/O port of the EP1C6 of Date Conversion Unit.Communication data is delivered to EP1C6 at once after the ARM controller is handled, the data of the PCI9052 of EP1C6 control simultaneously read port are carried out exchanges data with the pci bus of PC control.Similarly, when data are passed down by host computer, parallel data is delivered to the I/O port of EP1C6, come reading of data by EP1C6 control LPC2294 again by PCI9052.So fully guarantee real time of data transmission, reduced the resource overhead of controller, improved the stability and the reliability of unit.
With reference to Fig. 3, the present invention carries out intelligent management by the software program that is solidificated in the ARM chip LPC2294 to CAN network service, and its telecommunication management process is as follows:
Unknown data in the CAN bus; sample by CAN interface unit PCA82C250 through protective circuit of diode and filtering circuit; and after isolating, the 6N137 photoelectric isolating circuit delivers to the CAN bus serial port of CAN communication control unit LPC2294; data are after sending into the CAN communication control unit; while completion bit rate detection; dynamically adjust priority, the communication check and the management of fault diagnosis three parts.
1. bit rate detects
Sampled data is delivered to after the communication control unit, and control module is judged the Frame of sampling and analyzed, and interrupts recursive algorithm according to the CAN bus error, detects the current network bit rate.At first communication control unit is set a bit rate, and the current bit rate of this default bit rate and network is different usually.Because can not produce the frame of makeing mistakes only listening pattern can not send message under the CAN controller, it has just produced wrong an interruption like this, bit rate to this setting reduces gradually then, when being reduced to when equating with current bit rate, CAN bus communication control module will receive a message, detect correct bit rate.The bit rate that the CAN communication control unit obtains detection is delivered to control module internal register 1 and is preserved.
2. dynamically adjust priority
After sampled data is delivered to communication control unit, dynamically divide network node priority according to the QoS theory by control module.
At first, communication control unit is created a priority management table, in table, network node is divided into three classes, comes to carry out original allocation, divide 127 priority domain value ranges jointly to the priority of bottom layer node according to node classification, network security alarm and QoS quality services.
Secondly, each node is according to the priority transceive data of original allocation.When stable state network generation temporal variations, second category node need send the message of a large amount of occupied bandwidths, and this moment, network blockage will take place, and two category nodes send priority to communication control unit and promote request, and this promotion request obtains the network limit priority and distributes.Communication control unit receives several above-mentioned requests, will ask to search in the node administration tables of data, according to the communication queue in the table node request that communication control unit receives is sorted, and produces an interim request communication sequence.
Once more, in next communication cycle, if should ask the node of highest level in the communication sequence temporarily, continue to send request to communication control unit, then communication control unit allows this node to promote the priority of self to this node transmission network service administrative message.This node is received after the network service administrative message, promotes communication priority, if communicate by letter successfully, then sends response message to communication control unit, and expression priority is promoted successfully, if not success then continues to send the request of promotion.
At last, this node is finished data communication, sends communication to communication control unit and finishes message, proposes the priority recovery request.This moment, communication control unit directly carried out the priority recovery according to the priority management table to requesting node.Communication control unit is delivered to its internal register 1 preservation with interim request communication sequence in the one-period and priority management table.
3. fault handling
After sampled data is delivered to communication control unit, carry out fault restoration and fault diagnosis according to sampled data by communication control unit.
(1) process of fault restoration is as follows:
At first, communication control unit is created a fault management table, reads the garble value of each node in the sampled data, according to self CAN network service requirement, preestablishes an error flag value.
Secondly, if the improper value of node is greater than predefined error flag value, then communication control unit directly sends the fault diagnosis message to this node, promotes the communication priority of this node, if the error count value of node no longer increases, illustrate that then this fault repairs.After node communication finished, node sent the priority recovery request to communication control unit, and communication control unit correspondingly recovers this node priority; If the error count value continues to increase, then communication control unit is this node assigned highest priority.
At last, when the node that has distributed limit priority,, then repair this node failure if the error count value no longer increases.If its error count value still increases, communication control unit recovers the priority of this node and changes the fault diagnosis process over to according to the priority management table.
(2) failure diagnostic process is as follows:
At first, communication control unit carries out bus to current C AN network tests oneself, be divided into the part test oneself and integral body test oneself.Testing oneself in the part is that individual node is tested, and does not need to come from replying of other nodes.Integral body is tested oneself, and to be that controller is the same with local test under operator scheme carry out identical order, but need replying of CAN bus in operational system.
Secondly, after the end bus was tested oneself, communication control unit carried out the judgement of abort situation and two parameters of fault category to node failure.
Judgement for the node failure position, be according to the fault management table by CAN network service control module, by transceiver the node of appointment in the network is sent the fault test frame, the misjudgment position is come with situation in the position of the communications data frame respective fields by fault test field and malfunctioning node in the fault test frame.
For the judgement of node failure classification, be to pass through the reception in the statistics controller and send the error count value by CAN network service control module, come the type of error of decision node.When sending the error counter value more than or equal to 256 the time, the error condition of node is " bus is closed "; When the count of receive error value between 1 and 127, after successfully receiving message, the value of count of receive error device subtracts 1.When count of receive error device value is 0, then its keeps 0, when count of receive error device value greater than 127, then it sets the value between 119 to 127.When transmission error counter value equals or exceeds 128, or when count of receive error device value equaled or exceeded 128, the error condition of node was " mistake is passive ".
At last, with abort situation and the fault category parameter that judgement obtains, deliver to communication control unit internal register 2 and preserve.
After the detection of finishing CAN network parameters and management, communication control unit is with the parameter of preserving in register 1 and the register 2: the bit rate of current network, ask communication sequence, priority management table, abort situation and fault category to be sent to Date Conversion Unit and pci bus control module temporarily, carry out exchanges data with the pci bus of PC control, with data conversion is upper PC storage data, thereby finishes the intelligent management of whole C AN network service.
Experimental result of the present invention is as follows:
Experiment condition: the traffic rate of CAN bus is 25kbps, the effective rate of utilization of the network bandwidth is 83%, one stylobate is in the host computer of the PCI9810 of Zhou Ligong company card, the CAN network intelligence management devices based on ARM chip LPC2294, ten the next nodes based on CAN controller SJA1000.
Experimentation: this experiment relies on the current experiments platform, utilizes software to pass through ten the next CAN nodes and continues to send long frame message, and the communication extreme case of simulating industry spot is such as network blockage etc.At first by the network intelligence management devices, 16 Frames that test out certain node are received and dispatched average delay and maximum delay, the 3rd row and the 5th row as table 1, dynamically adjust the priority of node then by the intelligent network management devices, test the average delay and the maximum delay of identical 16 Frames transmitting-receiving once more, as the 2nd row and the 4th row of table 1.Relatively the 3rd row and the 2nd row can draw, average delay through the improved CAN bus data transmitting-receiving of intelligent network management devices has reduced by 55.74% at most than the average delay under the general case, as first in table 1 the 6th row, relatively the 5th row and the 4th row can draw, maximum delay through the improved CAN bus data transmitting-receiving of intelligent network management devices has reduced by 40.28% at most than the maximum delay under the general case, as the 5th in table 1 the 7th row.Experiment showed, that the present invention has greatly improved the CAN network communication quality.
Table 1: intelligent network management devices experimental data (ms of unit)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
6.12 6.23 6.11 6.35 6.89 7.08 6.87 6.87 7.46 6.89 7.23 7.68 7.95 7.84 8.21 10.89
10.98 11.52 11.75 12.89 12.97 14.98 16.12 16.33 16.98 17.22 20.67 24.80 28.67 28.78 30.25 34.88
6.92 7.45 7.27 7.50 7.92 8.41 8.29 8.98 9.45 8.63 9.67 9.86 10.20 10.36 10.14 14.99
17.98 18.70 19.51 20.88 19.66 23.53 24.85 26.76 28.64 29.61 30.98 32.33 30.52 35.62 34.70 40.97
55.74 54.08 52.00 49.26 53.12 47.13 42.62 42.07 43.98 40.01 34.98 30.98 27.73 27.24 27.14 35.27
38.49 39.84 37.26 35.92 40.28 35.74 33.36 33.56 33.00 29.16 31.21 30.50 33.42 29.08 29.22 36.69
In the table 1 first row is the Property ID of frame, second row is an average delay of dynamically adjusting priority Frame transmitting-receiving later on, the third line is the average delay of Frame transmitting-receiving under the general case, fourth line is dynamically to adjust after the priority, the maximum delay of Frame transmitting-receiving, fifth line is the maximum delay of Frame transmitting-receiving under the general case, and the 6th row is a Frame average delay optimized proportion, and the 7th row is the optimized proportion of Frame maximum delay.

Claims (6)

1. a utilization is carried out according to the following procedure based on the method that the distributed control network intelligent management apapratus of CAN bus manages network:
(1) the CAN interface unit is sampled to the unknown data in the CAN bus, and delivers to CAN communication control unit completion bit rate detection simultaneously, dynamically adjusts priority, the communication check and the management of fault handling three parts,
Described bit rate detects, and is by control module the Frame of sampling to be judged and analysis, interrupts recursive algorithm according to the CAN bus error, detects the current network bit rate and the bit rate that detection obtains is delivered to control module internal register (1) preservation;
Described dynamic adjustment priority is to create a priority management table by communication control unit, and network node is divided into three classes, according to the theoretical dynamic assignment node priority of QoS, and delivers to its internal register (1) and preserves;
Described fault handling is to carry out fault diagnosis and fault restoration by control module according to sampled data, and with abort situation and fault category parameter that judgement obtains, delivers to communication control unit internal register (2) and preserve;
(2) communication control unit is sent to Date Conversion Unit and pci bus control module with the parameter of preserving in register (1) and the register (2), finishes the intelligent management of whole C AN network service.
2. method according to claim 1 is characterized in that the process of bit rate detection is as follows:
(1) interrupts recursive algorithm according to the CAN bus error, at first set a bit rate by CAN bus communication control module;
(2) reduce the bit rate set gradually, when being reduced to when equating with current bit rate, CAN bus communication control module will receive a message, detect correct bit rate.
3. method according to claim 1, the process that it is characterized in that dynamically adjusting priority is as follows:
(1) create a priority management table by the network service control module, this admin table has comprised the classification of each node, node communication priority, parameters such as QoS management;
(2) communication control unit is divided three classes network node according to self CAN network service situation, distributes the priority thresholding one by one;
When (3) network blockage taking place, node sends priority to communication control unit and promotes request;
(4) communication control unit receives several above-mentioned requests, will ask to search in the node administration tables of data, and according to the communication queue in the table node request that communication control unit receives be sorted, and produces an interim request communication sequence;
(5) in next communication cycle, if should ask the node of highest level in the communication ordering temporarily, continue to send request to the network service control module, then communication control unit sends the network service administrative message for this node, allows this node to promote the priority of self;
(6) after this node is finished data communication, send the priority recovery request to communication control unit, and directly requesting node is carried out priority by communication control unit and recover according to the priority management table.
4. method according to claim 1 is characterized in that the process of fault handling is as follows:
(1) sets up a fault management table, the value of storing each node error counter in the CAN controller by communication control unit;
(2) communication control unit is set an error flag value according to self CAN network service requirement, and the node failure value of read failure admin table and this error flag value compare;
(3) relatively the dynamic priority lifting is carried out to each malfunctioning node in the fault management table in the back, and then node failure is made the highest priority of distribution or reparation;
(4) for the malfunctioning node that can not repair, according to priority management table recovery nodes priority, and communication control unit carries out bus to current C AN network and tests oneself;
(5) will test oneself data and fault management table compares and determines final malfunctioning node, and send the fault test frame to this malfunctioning node by transceiver, return situation according to fault test and judge the bug position, and, judge the type of error of node by receiving in the statistics controller of communication control unit inside and sending the error count value;
(6) communication control unit is delivered to abort situation and fault category parameter that judgement obtains the register (2) of communication control unit inside and is preserved.
5. method according to claim 1, it is characterized in that the CAN interface unit samples to the unknown data in the CAN bus, be to utilize the CAN transceiver that carries in the microprocessor, with reference to the CAN2.0 basic agreement, intercept the data transmission on the CAN network, and sampled data delivered in the microprocessor, adopt the CAN bus state check algorithm that is added in the processor Frame of sampling is judged and to be analyzed, finish whole data sampling.
6. method according to claim 4, it is characterized in that in the step (3) that it is that continuation according to the error count value increases and carries out different processing that node failure is made the highest priority of distribution or reparation, it is the read failure admin table, if the node failure value greater than the error flag value, then promotes the priority of this node by dynamic adjustment priority; If the error count value continues to increase, then distribute the highest priority for this node; If the node failure value no longer takes place, then the next cycle after distributing data is reduced the priority of this node, repairs node failure; If the node failure value still continues to increase, then according to the priority management table, recovery nodes priority, communication control unit carries out bus to current C AN network and tests oneself.
CNB2006100426226A 2006-04-04 2006-04-04 Intelligent management apparatus and management method for distributed control network based on CAN bus Expired - Fee Related CN100424605C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100426226A CN100424605C (en) 2006-04-04 2006-04-04 Intelligent management apparatus and management method for distributed control network based on CAN bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100426226A CN100424605C (en) 2006-04-04 2006-04-04 Intelligent management apparatus and management method for distributed control network based on CAN bus

Publications (2)

Publication Number Publication Date
CN1838011A CN1838011A (en) 2006-09-27
CN100424605C true CN100424605C (en) 2008-10-08

Family

ID=37015429

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100426226A Expired - Fee Related CN100424605C (en) 2006-04-04 2006-04-04 Intelligent management apparatus and management method for distributed control network based on CAN bus

Country Status (1)

Country Link
CN (1) CN100424605C (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101426055B (en) * 2008-11-03 2012-05-23 陈伟 Distributed scheduling communication device
FR2942363B1 (en) * 2009-02-13 2016-11-25 Continental Automotive France METHOD OF COMMUNICATION BETWEEN TWO AUTOMOTIVE ELECTRONIC COMPUTERS AND ASSOCIATED DEVICE
CN102681969B (en) * 2011-03-11 2015-11-25 山西国营大众机械厂军品第一研究所 Based on the long frame data transmission method of CAN
US8996931B2 (en) * 2012-03-22 2015-03-31 Infineon Technologies Ag System and method to transmit data, in particular error data over a bus system
DE102012220639A1 (en) * 2012-11-13 2014-05-15 Siemens Aktiengesellschaft User interface and method for troubleshooting an industrial plant
CN103325155A (en) * 2013-03-28 2013-09-25 朱银娟 High-efficiency data recording method based on CAN bus
CN106603365A (en) * 2017-01-23 2017-04-26 全球能源互联网研究院 EtherCAT master station
CN106875664B (en) * 2017-04-18 2020-07-03 连云港杰瑞深软科技有限公司 Exclusive data acquisition method based on CAN bus
CN109164725A (en) * 2017-06-29 2019-01-08 沈阳新松机器人自动化股份有限公司 A kind of pci bus conversion circuit and robot
KR101956604B1 (en) * 2017-12-08 2019-03-11 현대오트론 주식회사 Dynamic routing apparatus for can message of vehicle and method thereof
CN110391960B (en) * 2018-04-18 2021-10-15 珠海全志科技股份有限公司 Bus transmission control device and method
CN110474686B (en) * 2018-05-11 2022-09-16 佛山市顺德区顺达电脑厂有限公司 Network switching device and operation method thereof
CN109597726A (en) * 2018-10-30 2019-04-09 山东超越数控电子股份有限公司 A kind of method of main board failure active detecting
CN109947020B (en) * 2019-03-27 2021-06-04 吉林大学 User-configurable vehicle acceleration data acquisition method
CN111478838B (en) * 2020-04-08 2021-12-21 浙江中控研究院有限公司 High-efficiency high-bandwidth communication method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2423617Y (en) * 2000-05-18 2001-03-14 中国船舶重工集团公司第七研究院第七一一研究所 Marine double-field bus interface card
JP2003264567A (en) * 2002-03-11 2003-09-19 Toyota Motor Corp Can communication method and system
JP2003304265A (en) * 2002-04-10 2003-10-24 Denso Corp Communication system
CN1135794C (en) * 2000-05-13 2004-01-21 三星电子株式会社 Device and method for testing data transfer rate

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1135794C (en) * 2000-05-13 2004-01-21 三星电子株式会社 Device and method for testing data transfer rate
CN2423617Y (en) * 2000-05-18 2001-03-14 中国船舶重工集团公司第七研究院第七一一研究所 Marine double-field bus interface card
JP2003264567A (en) * 2002-03-11 2003-09-19 Toyota Motor Corp Can communication method and system
JP2003304265A (en) * 2002-04-10 2003-10-24 Denso Corp Communication system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CAN 总线PCI接口卡及驱动程序的设计. 陈艳,陈伟.工业控制计算机,第18卷第2期. 2005
CAN 总线PCI接口卡及驱动程序的设计. 陈艳,陈伟.工业控制计算机,第18卷第2期. 2005 *

Also Published As

Publication number Publication date
CN1838011A (en) 2006-09-27

Similar Documents

Publication Publication Date Title
CN100424605C (en) Intelligent management apparatus and management method for distributed control network based on CAN bus
CN105260337B (en) A kind of automatic addressing method and system of single-chip microcomputer
CN108400993A (en) The Internet of things system and storage medium that intelligent industrial apparatus components formula is set up
CN102780713A (en) Vehicle diagnostic system and vehicle diagnostic method
CN102752219B (en) Method for implementing virtual device (VD) interconnection and switching equipment
CN201335955Y (en) CAN bus intelligent electric device based on CANopen protocol
CN109412897A (en) System and method is realized based on the shared MAC of multi-core processor and FPGA
CN108932182B (en) Message bus performance test method and system
CN102291274A (en) System and method for realizing automatic adaptation of network testing instrument
CN108919788A (en) A kind of remote monitoring system and method for the automobile bench test based on vehicle-mounted CAN bus
CN107205059A (en) Manage method, acquisition terminal and the meter equipment of meter device address
CN101964923A (en) Configuration system and method for interactive commands
CN104243246B (en) A kind of FlexRay bus tests and optimization method and device based on ZigBee technology
CN110161898A (en) A kind of substation inspection robot resource sharing system of compatible multiple agent
CN107666401A (en) A kind of configuration information obtaining method and terminal
CN109088949A (en) A kind of matching process and MME of internet of things service
CN105553865B (en) A kind of FC exchanger chips credit management test method
CN115657646B (en) Test method and device of CAN controller
CN101645811A (en) Device and method for automatically testing embedded system
CN107864097B (en) Power utilization data distribution method and system
CN103149909A (en) Field programmable gate array (FPGA)-based controller area network (CAN) simulation node system
CN202870525U (en) Networked data acquisition apparatus applied to changing environment
CN106411616B (en) A kind of device and method by 1553B bus management ethernet terminal
CN104580010A (en) Communication queue processing method, device and system
CN203325197U (en) Front-end information collection device for internet of things

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081008

Termination date: 20140404