CN112637375B - Circuit for setting CAN bus equipment address - Google Patents
Circuit for setting CAN bus equipment address Download PDFInfo
- Publication number
- CN112637375B CN112637375B CN202011489289.XA CN202011489289A CN112637375B CN 112637375 B CN112637375 B CN 112637375B CN 202011489289 A CN202011489289 A CN 202011489289A CN 112637375 B CN112637375 B CN 112637375B
- Authority
- CN
- China
- Prior art keywords
- resistor
- capacitor
- equipment
- diode
- addrx
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 239000003990 capacitor Substances 0.000 claims abstract description 28
- 239000003985 ceramic capacitor Substances 0.000 claims description 3
- 238000000034 method Methods 0.000 claims description 2
- 238000012423 maintenance Methods 0.000 abstract description 10
- 238000013461 design Methods 0.000 abstract description 9
- 238000010586 diagram Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 238000009736 wetting Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5038—Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]
-
- 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
-
- 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
-
- 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/40267—Bus for use in transportation systems
- H04L2012/40273—Bus for use in transportation systems the transportation system being a vehicle
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a circuit for setting an address of CAN bus equipment, which relates to the technical field of CAN buses and comprises CAN equipment, an MCU module, a power supply VCC, a diode D3, a diode D4, a capacitor C3, a capacitor C4, a resistor R8, a resistor R9, a resistor R10 and a grounding end GND. A resistor R9 is connected in series between an Addrx pin of the CAN equipment and a McuPin signal end of the MCU module, the Addrx pin of the CAN equipment is connected with an output end of a power supply VCC through a diode D4 and a resistor R10, the Addrx pin of the CAN equipment is connected with a grounding end GND through a capacitor C4, and the McuPin signal end of the MCU module is connected with the grounding end GND through a capacitor C3. Through the circuit design and the use of the invention, the address wire is solidified on the wire harness, the spare parts are universal, only a small number of spare parts are needed to be prepared, the management cost is reduced, only the replacement is needed during maintenance, the maintenance efficiency is improved, and the vehicle stop time is reduced.
Description
Technical Field
The invention belongs to the technical field of CAN buses, and particularly relates to a circuit for setting an address of CAN bus equipment.
Background
The controller local network CAN (ControllerArea Network) bus belongs to the field bus category and is a serial data communication protocol developed for solving the data exchange between a plurality of control and test instruments in modern automobiles. Specifically, the CAN bus is a new generation network communication technology with an open architecture and broadcast, has higher real-time performance and reliability, and has been widely used in industrial sites. A common CAN bus is a twisted pair structure, typically consisting of a high bit data line (can_h) and a low bit data line (can_l) with polarity.
CAN buses are used in a large number of vehicles, and a large number of devices are connected to a vehicle-mounted system through the CAN buses, wherein one type of device, such as a combustible volatile sensor, a battery compartment fire extinguisher, a vehicle body control module and the like, is arranged on one vehicle, and a plurality of devices are required to be installed on one vehicle, and management devices are distinguished on the aspect of the system through addresses of the devices. The current address allocation method is that the equipment address is fixed, and the equipment is installed according to a design drawing during installation; or the device address is adjustable, and the address is adjusted according to the design diagram during installation. The former needs to use a whole set of equipment as spare parts, and the spare parts are very inconvenient to manage; the latter is convenient in spare part management, but requires address configuration during maintenance and training of maintenance personnel.
Disclosure of Invention
The invention aims to provide a circuit for setting the address of CAN bus equipment, which is characterized in that address wires are solidified on a wire harness through circuit design and use, spare parts are universal, only a few spare parts are needed to be prepared, the management cost is reduced, only replacement is needed during maintenance, the maintenance efficiency is improved, the vehicle stop time is reduced, and the existing problems are solved.
In order to solve the technical problems, the invention is realized by the following technical scheme:
the invention relates to a circuit for setting an address of CAN bus equipment, which comprises CAN equipment, an MCU module, a power supply VCC, a diode D3, a diode D4, a capacitor C3, a capacitor C4, a resistor R8, a resistor R9, a resistor R10 and a grounding end GND; a resistor R9 is connected in series between an Addrx pin of the CAN equipment and a McuPin signal end of the MCU module; an Addrx pin of the CAN equipment is connected with the output end of a power supply VCC through a diode D4 and a resistor R10; an Addrx pin of the CAN equipment is connected with a ground end GND through a capacitor C4; the McuPin signal end of the MCU module is connected with the ground end GND through a capacitor C3;
as a preferable technical scheme of the invention, the anode of the diode D4 is connected with the output end of the power supply VCC; the cathode of the diode D4 is connected with one end of a resistor R10; the other end of the resistor R10 is connected between an Addrx pin of the CAN equipment and the resistor R9.
As a preferable technical scheme of the invention, the cathode of the diode D3 is connected between the resistor R9 and the McuPin signal end of the MCU module; the positive electrode of the diode D3 is connected to the ground GND.
As a preferable technical scheme of the invention, one end of the resistor R8 is connected between the resistor R9 and the cathode of the diode D3; the other end of the resistor R8 is connected with the ground GND.
As a preferable technical scheme of the invention, the capacitor C3 and the capacitor C4 are both multilayer ceramic capacitors.
As a preferable embodiment of the present invention, the capacitance value of the capacitor C3 is 2.2uF, and the capacitance value of the capacitor C4 is 2.2uF.
As a preferable technical scheme of the invention, the model of the MCU module is MC9S08DZ60.
As a preferable technical scheme of the invention, the resistance value of the resistor R8 is 15K, the resistance value of the resistor R9 is 100K, and the resistance value of the resistor R10 is 3.3K.
The invention has the following beneficial effects:
through the circuit design and the use of the invention, the address wire is solidified on the wire harness, the spare parts are universal, only a small number of spare parts are needed to be prepared, the management cost is reduced, only the replacement is needed during maintenance, the maintenance efficiency is improved, and the vehicle stop time is reduced.
Of course, it is not necessary for any one product to practice the invention to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic circuit diagram of a CAN bus device address setting according to the invention;
fig. 2 is a circuit system diagram of address setting of a CAN bus device according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a circuit for address setting of a CAN bus device includes a CAN device, an MCU module, a power supply VCC, a diode D3, a diode D4, a capacitor C3, a capacitor C4, a resistor R8, a resistor R9, a resistor R10, and a ground GND. The capacitor C3 and the capacitor C4 are multilayer ceramic capacitors, and the model of the MCU module is MC9S08DZ60. The capacitance value of the capacitor C3 is 2.2uF, the capacitance value of the capacitor C4 is 2.2uF, the resistance value of the resistor R8 is 15K, the resistance value of the resistor R9 is 100K, and the resistance value of the resistor R10 is 3.3K.
A resistor R9 is connected in series between an Addrx pin of the CAN equipment and a McuPin signal end of the MCU module, the Addrx pin of the CAN equipment is connected with an output end of a power supply VCC through a diode D4 and a resistor R10, the Addrx pin of the CAN equipment is connected with a grounding end GND through a capacitor C4, and the McuPin signal end of the MCU module is connected with the grounding end GND through a capacitor C3.
The positive pole of diode D4 is connected with the output of power VCC, and diode D4's negative pole is connected with the one end of resistance R10, and the other end of resistance R10 inserts between the Addrx pin of CAN equipment and resistance R9. The diode D4 is used to prevent the Addrx pin of the CAN device from being connected in series with a voltage greater than the voltage of the power supply VCC, and burn the power supply chip.
The cathode of the diode D3 is connected between the resistor R9 and the McuPin signal end of the MCU module, and the anode of the diode D3 is connected with the grounding end GND. The diode D3 is used to prevent the Addrx pin of the CAN device from being connected in series with a voltage greater than the voltage of the power supply VCC, and burn the power supply chip.
One end of the resistor R8 is connected between the resistor R9 and the cathode of the diode D3, and the other end of the resistor R8 is connected with the ground end GND.
Referring to fig. 1, when the Addrx pin of the CAN device is suspended, the power supply in the device pulls up the MCUPin signal line of the MCU module to a high level, and when the Addrx pin of the CAN device is grounded, an R10 resistor provides a 8mA wetting circuit to protect the contact point of the connector, and the MCUPin signal line of the MCU module is set to a low level. The MCU module can acquire the address coding information by sampling the MCUPin pin level.
Referring to fig. 2, the CAN device in fig. 2 is designed with 4 address lines, and supports 16 device addresses at maximum. When the vehicle-mounted system is designed, the corresponding pins of the Addr are connected to the ground according to the address numbers, and as shown in the CAN equipment 8 in fig. 2, the Addr3 is connected to the ground.
Through circuit design and use in this embodiment, solidify address line on the pencil, spare parts are general, only need prepare a small amount of several can, reduced the management cost, also only need change can when maintaining, improved maintenance efficiency, reduced vehicle downtime.
When the device is researched and developed, enough address line pins are reserved on the connector according to the number of the same vehicle of the device, the pins are suspended and grounded to represent a one-bit address, and when the device is powered on, the address lines are checked first to determine the address of the device. The address configuration is then cured on the harness and the devices can be interchanged at will. When the equipment is used, the address can be well set in the system design, and the pins corresponding to the wire harness are grounded or not connected according to the address on the design drawing.
The utility model provides a circuit design, the address is disposed with the pencil, and equipment can exchange the position wantonly, removes the trouble when spare part management and maintenance.
In the description of the present specification, the descriptions of the terms "one embodiment," "example," "specific example," and the like, mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The preferred embodiments of the invention disclosed above are intended only to assist in the explanation of the invention. The preferred embodiments are not intended to be exhaustive or to limit the invention to the precise form disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best understand and utilize the invention. The invention is limited only by the claims and the full scope and equivalents thereof.
Claims (5)
1. The circuit for setting the address of the CAN bus equipment comprises CAN equipment, an MCU module, a power supply VCC, a diode D3, a diode D4, a capacitor C3, a capacitor C4, a resistor R8, a resistor R9, a resistor R10 and a ground end GND; the method is characterized in that:
a resistor R9 is connected in series between an Addrx pin of the CAN equipment and a McuPin signal end of the MCU module;
an Addrx pin of the CAN equipment is connected with the output end of a power supply VCC through a diode D4 and a resistor R10; an Addrx pin of the CAN equipment is connected with a ground end GND through a capacitor C4;
the McuPin signal end of the MCU module is connected with the ground end GND through a capacitor C3;
the positive electrode of the diode D4 is connected with the output end of the power supply VCC; the cathode of the diode D4 is connected with one end of a resistor R10; the other end of the resistor R10 is connected between an Addrx pin of the CAN equipment and the resistor R9;
the cathode of the diode D3 is connected between the resistor R9 and the McuPin signal end of the MCU module; the positive electrode of the diode D3 is connected with the ground end GND;
one end of the resistor R8 is connected between the resistor R9 and the cathode of the diode D3; the other end of the resistor R8 is connected with the ground GND.
2. The circuit for address setting of a CAN bus device of claim 1, wherein: the capacitor C3 and the capacitor C4 are multilayer ceramic capacitors.
3. The circuit for address setting of a CAN bus device of claim 1, wherein: the capacitance value of the capacitor C3 is 2.2uF, and the capacitance value of the capacitor C4 is 2.2uF.
4. The circuit for address setting of a CAN bus device of claim 1, wherein: the model of the MCU module is MC9S08DZ60.
5. The circuit for address setting of a CAN bus device of claim 1, wherein: the resistance value of the resistor R8 is 15K, the resistance value of the resistor R9 is 100K, and the resistance value of the resistor R10 is 3.3K.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011489289.XA CN112637375B (en) | 2020-12-16 | 2020-12-16 | Circuit for setting CAN bus equipment address |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011489289.XA CN112637375B (en) | 2020-12-16 | 2020-12-16 | Circuit for setting CAN bus equipment address |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112637375A CN112637375A (en) | 2021-04-09 |
CN112637375B true CN112637375B (en) | 2023-05-23 |
Family
ID=75313782
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011489289.XA Active CN112637375B (en) | 2020-12-16 | 2020-12-16 | Circuit for setting CAN bus equipment address |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112637375B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102006048109A1 (en) * | 2006-10-11 | 2008-04-17 | Audi Ag | Controller for use with controller area network bus of motor vehicle, has terminals connected with central node point over capacitive unit and resistor unit, and central node point connected with mass over capacitive unit |
CN109462531A (en) * | 2019-01-10 | 2019-03-12 | 杭州中恒云能源互联网技术有限公司 | Multi-energy data monitoring device and system |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203558021U (en) * | 2013-09-09 | 2014-04-23 | 安徽阿瑞特汽车电子科技有限公司 | Vehicle controller area network (CAN) bus switch |
CN203840364U (en) * | 2014-03-30 | 2014-09-17 | 杭州之山科技有限公司 | CAN bus isolation circuit based on ISO1050 |
DE102015012002A1 (en) * | 2015-09-18 | 2017-03-23 | Hella Kgaa Hueck & Co. | Locking circuit and method for locking a data line |
CN205017347U (en) * | 2015-10-22 | 2016-02-03 | 安徽阿瑞特汽车电子科技有限公司 | Many CAN network data collection of [electric] motor coach and wireless transmission device |
CN105489063B (en) * | 2016-01-13 | 2018-04-13 | 吉林航盛电子有限公司 | A kind of new-energy automobile pedestrian's sound alarming device with active forewarning |
CN109960199B (en) * | 2019-03-18 | 2022-04-22 | 曾蒙汉 | Distributed small and micro energy station automatic control system and control method |
-
2020
- 2020-12-16 CN CN202011489289.XA patent/CN112637375B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102006048109A1 (en) * | 2006-10-11 | 2008-04-17 | Audi Ag | Controller for use with controller area network bus of motor vehicle, has terminals connected with central node point over capacitive unit and resistor unit, and central node point connected with mass over capacitive unit |
CN109462531A (en) * | 2019-01-10 | 2019-03-12 | 杭州中恒云能源互联网技术有限公司 | Multi-energy data monitoring device and system |
Non-Patent Citations (1)
Title |
---|
虞泽宇 ; 惠晶 ; .变频器通用型CAN总线接口卡的设计.江南大学学报(自然科学版).2014,(01),全文. * |
Also Published As
Publication number | Publication date |
---|---|
CN112637375A (en) | 2021-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN201166796Y (en) | Universal controller of an air conditioner | |
CN112327211B (en) | Vehicle-mounted microphone power supply connection state monitoring circuit and method | |
CN112637375B (en) | Circuit for setting CAN bus equipment address | |
CN108417002A (en) | A kind of high-performance MBUS collectors for water meter | |
CN204535758U (en) | Power transmission and transforming equipment integration monitoring device | |
CN214707730U (en) | Intelligent electrical appliance system | |
CN108528240B (en) | Electric energy conversion system and electric automobile | |
CN109976315A (en) | A kind of embedded vehicle fault diagnosis system | |
CN213600062U (en) | Acceleration inclination angle integrated sensor based on digital gyroscope | |
CN209921228U (en) | Tractor electrical box with self fault diagnosis function | |
CN211956576U (en) | Monitoring transmitter of vehicle operation fault remote diagnosis monitoring system | |
CN206644765U (en) | 360 degree of panorama low-voltage protection circuits of automobile | |
CN208384368U (en) | Large-scale data center generating set dynamic redundancy control system | |
CN212658800U (en) | Hardware addressing circuit of hydrogen fuel electric pile | |
CN209008515U (en) | A kind of car electric box | |
CN208559238U (en) | A kind of master system based on electric automobile whole CAN network | |
CN220962576U (en) | CAN bus ground short circuit alarm device | |
CN216599891U (en) | Intelligent data monitoring system | |
CN220773455U (en) | Automobile electronic control module OBD tool diagnosis brush box | |
CN215677337U (en) | Temperature detection device of interface charges | |
CN208890423U (en) | A kind of battery group string location module and management system for monitoring | |
CN108258344A (en) | From control module and battery management system | |
CN220933391U (en) | Remote vehicle state monitoring and data storage device | |
CN215300246U (en) | Video monitoring device with solar double-circuit power supply | |
CN217637996U (en) | Multifunctional diagnosis wire harness applied to diesel engine |
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 | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A Circuit for Setting the Address of CAN Bus Devices Granted publication date: 20230523 Pledgee: Hefei high tech Company limited by guarantee Pledgor: ANHUI ART AUTOMOBILE ELECTRONIC TECHNOLOGY CO.,LTD. Registration number: Y2024980025314 |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right |