CN110850779A - Circuit of CAN bus interface expansion interface - Google Patents
Circuit of CAN bus interface expansion interface Download PDFInfo
- Publication number
- CN110850779A CN110850779A CN201911166656.XA CN201911166656A CN110850779A CN 110850779 A CN110850779 A CN 110850779A CN 201911166656 A CN201911166656 A CN 201911166656A CN 110850779 A CN110850779 A CN 110850779A
- Authority
- CN
- China
- Prior art keywords
- interface
- bus interface
- transceiver
- bus
- transceiver chip
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/25—Pc structure of the system
- G05B2219/25257—Microcontroller
Abstract
The invention provides a circuit of a CAN bus interface expansion interface, which comprises: the system comprises an embedded processor, an interface transceiver module and a logic module, wherein a control port sending end of the embedded processor is connected with a signal input interface of the interface transceiver module, and a signal output interface of the interface transceiver module is connected with a control port receiving end of the embedded processor through the logic module; the interface transceiver module is provided with a first CAN bus interface and a second CAN bus interface, and the first CAN bus interface and the second CAN bus interface are both used for accessing external equipment. According to the technical scheme, the logic module is added, two CAN bus interfaces are expanded, the purpose that when a first CAN bus interface is physically damaged, the second CAN bus interface CAN be switched to be continuously used is achieved, the two interfaces are standby interfaces, functions are completely consistent, plug and play are achieved, and other extra means are not needed for switching control.
Description
Technical Field
The invention relates to the technical field of data communication, in particular to a circuit of a CAN bus interface expansion interface.
Background
At present, in the design of an embedded hardware system, a CAN bus interface is sometimes required to be provided as a way for interconnecting devices, generally, the number of CAN control ports provided by an embedded processor is limited, sometimes, there are no enough CAN control ports and the requirements of a user cannot be met, and in this case, two options are generally available:
1. selecting and replacing a higher level embedded processor chip;
2. and adding other expansion chips to expand an additional CAN control port.
Wherein, the higher level embedded processor chip is selected, which is expensive, thus increasing the cost;
on one hand, such chips are expensive and complicated in circuit design, and on the other hand, additional programming workload needs to be added. Therefore, how to solve these problems simply and effectively becomes a technical problem to be solved urgently.
Disclosure of Invention
The present invention is directed to solving the problems described above. It is an object of the present invention to provide a circuit of a CAN bus interface extension interface that solves any of the above problems. Specifically, the invention provides a method for solving the problem that the number of CAN control ports of an embedded processor is not enough when the equipment is used in hardware.
According to a first aspect of the present invention, there is provided a circuit of a CAN bus interface extension interface, the circuit comprising:
an embedded processor, an interface transceiver module and a logic module,
the control port sending end of the embedded processor is connected with the signal input interface of the interface transceiver module, and the signal output interface of the interface transceiver module is connected with the control port receiving end of the embedded processor through a logic module;
the interface transceiver module is provided with a first CAN bus interface and a second CAN bus interface, and the first CAN bus interface and the second CAN bus interface are both used for accessing external equipment.
The circuit of the CAN bus interface expansion interface CAN also have the following characteristics:
the interface transceiver module includes: a transceiver chip a and a transceiver chip B,
the signal input interface of the interface transceiver module comprises: a first input interface of the transceiver chip a and a second input interface of the transceiver chip B;
the signal output interface of the interface transceiver module comprises: a first output interface of the transceiver chip a and a second output interface of the transceiver chip B;
the circuit comprises:
the control port sending end of the embedded processor is connected with the first input interface of the transceiver chip A and the second input interface of the transceiver chip B, and the first output interface of the transceiver chip A and the second output interface of the transceiver chip B are connected with the control port receiving end of the embedded processor through logic modules;
the transceiver chip A is provided with the first CAN bus interface, and the transceiver chip B is provided with the second CAN bus interface.
The circuit of the CAN bus interface expansion interface CAN also have the following characteristics:
the first output interface of the transceiver chip A and the second output interface of the transceiver chip B are connected with the control port receiving end of the embedded processor through a logic module, and the connection comprises the following steps:
the first output end of the transceiver chip A is connected with the first signal input end of the logic module, the second output end of the transceiver chip B is connected with the second signal input end of the logic module, and the signal output end of the logic module is connected with the control port receiving end of the embedded processor.
The circuit of the CAN bus interface expansion interface CAN also have the following characteristics:
the circuit further comprises: the logic module is any one of the following chips: CPLD chip, FPGA chip, AND gate logic chip.
The circuit of the CAN bus interface expansion interface CAN also have the following characteristics:
the first CAN bus interface and the second CAN bus interface have the same function.
According to the technical scheme, the simple logic module is skillfully added, and an AND gate logic chip CAN be selected, so that the use requirement CAN be met, the logic module is a very common and widely used simple device, the cost is very low, the design does not need software personnel to process, and the hardware is completely realized, so that the first CAN bus interface and the second CAN bus interface which are expanded have the plug-and-play characteristic, and the requirement in the use process is perfectly met.
Other characteristic features and advantages of the invention will become apparent from the following description of exemplary embodiments, which is to be read in connection with the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention. In the drawings, like reference numerals are used to indicate like elements. The drawings in the following description are directed to some, but not all embodiments of the invention. For a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 schematically shows a circuit model diagram of an embodiment of the circuit of the CAN bus interface extension interface of the present invention;
fig. 2 shows a schematic structural diagram of an embodiment of the circuit of the CAN bus interface expansion interface of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The circuit of the CAN bus interface expansion interface according to the present invention will be described in detail below with reference to the accompanying drawings.
In some application scenarios of the embedded system, an additional CAN bus interface needs to be provided as a spare interface, so that when a physical damage occurs to a current interface, for example, the interface is damaged or a transceiver chip on a circuit board is damaged, another available interface needs to be provided to connect the device. When the number of the CAN control ports of the embedded processor is not enough, the circuit of the CAN bus interface expansion interface simply and effectively solves the problem.
Figure 1 shows a circuit model diagram of a specific embodiment of the circuit of the CAN bus interface extension interface of the present invention,
as shown in FIG. 1, the circuit of the CAN bus interface expansion interface of the present invention comprises an embedded processor, an interface transceiver module and a logic module, wherein a control port transmitting terminal 1 of the embedded processor is connected with a signal input interface of the interface transceiver module, and a signal output interface of the interface transceiver module is connected with a control port receiving terminal 2 of the embedded processor through the logic module; the interface transceiver module is provided with a first CAN bus interface and a second CAN bus interface, and the first CAN bus interface and the second CAN bus interface are both used for accessing external equipment.
Optionally, the first CAN bus interface and the second CAN bus interface have the same function.
In general, under the condition that interface resources are insufficient, a designer only searches for a device with more interface resources to meet requirements, or switches the interfaces through an electronic switch, but not only increases more hardware cost, but also increases the complexity of software programming, and is not very flexible in practical use.
Wherein, the logic module can be any one of the following chips: CPLD chip, FPGA chip, AND gate logic chip.
Specifically, the interface transceiver module includes: transceiver chip A and transceiver chip B, the signal input interface of interface transceiver module includes: a first input interface 4 of transceiver chip a and a second input interface 5 of transceiver chip B;
the signal output interface of the interface transceiver module comprises: a first output interface 3 of transceiver chip a and a second output interface 6 of transceiver chip B;
the circuit comprises: the control port sending end 1 of the embedded processor is connected with a first input interface 4 of a transceiver chip A and a second input interface 5 of a transceiver chip B, and a first output interface 3 of the transceiver chip A and a second output interface 6 of the transceiver chip B are connected with a control port receiving end 2 of the embedded processor through logic modules; the transceiver chip A is provided with a first CAN bus interface, and the transceiver chip B is provided with a second CAN bus interface.
The signal input end of the logic module of the embodiment of the invention comprises: a first signal input terminal 7 and a second signal input terminal 8.
Specifically, the connection of the first output interface 3 of the transceiver chip a and the second output interface 6 of the transceiver chip B with the control port receiving end 2 of the embedded processor through the logic module includes: the first output end 3 of the transceiver chip A is connected with the first signal input end 7 of the logic module, the second output end 6 of the transceiver chip B is connected with the second signal input end 8 of the logic module, and the signal output end 9 of the logic module is connected with the control port receiving end 2 of the embedded processor.
The circuit of the CAN bus interface expansion interface is invented on the basis of fully researching the working mode of a CAN data line through detailed demand analysis and circuit analysis, two CAN bus interfaces are expanded by adding a logic module, so that a first CAN bus interface and a second CAN bus interface CAN be communicated with a control port of an embedded processor, the purpose of switching to the second CAN bus interface for continuous use when the first CAN bus interface is physically damaged is achieved, the two interfaces are mutually standby interfaces, the functions are completely consistent, the circuit is plug-and-play, and the control is switched without other extra means.
According to the technical scheme, the simple logic module is ingeniously added, and an AND gate logic chip CAN be selected, so that the use requirement CAN be met, the logic module is a very common and widely used simple device, the cost is very low, the design does not need software personnel to process, the hardware is completely realized, the first CAN bus interface and the second CAN bus interface which are expanded have the plug-and-play characteristic, and the requirement in the use process is perfectly met.
The above-described aspects may be implemented individually or in various combinations, and such variations are within the scope of the present invention.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Finally, it should be noted that: the above examples are only for illustrating the technical solutions of the present invention, and are not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (5)
1. A circuit for a CAN bus interface expansion interface, the circuit comprising:
an embedded processor, an interface transceiver module and a logic module,
a control port sending end (1) of the embedded processor is connected with a signal input interface of the interface transceiver module, and a signal output interface of the interface transceiver module is connected with a control port receiving end (2) of the embedded processor through a logic module;
the interface transceiver module is provided with a first CAN bus interface and a second CAN bus interface, and the first CAN bus interface and the second CAN bus interface are both used for accessing external equipment.
2. The circuit of CAN bus interface expansion interface of claim 1, wherein the interface transceiver module comprises: a transceiver chip a and a transceiver chip B,
the signal input interface of the interface transceiver module comprises: a first input interface (4) of the transceiver chip A and a second input interface (5) of the transceiver chip B;
the signal output interface of the interface transceiver module comprises: a first output interface (3) of the transceiver chip A and a second output interface (6) of the transceiver chip B;
the circuit comprises:
a control port sending end (1) end of the embedded processor is connected with a first input interface (4) of the transceiver chip A and a second input interface (5) of the transceiver chip B, and a first output interface (3) of the transceiver chip A and a second output interface (6) of the transceiver chip B are connected with a control port receiving end (2) of the embedded processor through logic modules;
the transceiver chip A is provided with the first CAN bus interface, and the transceiver chip B is provided with the second CAN bus interface.
3. The CAN bus interface expansion interface circuit of claim 2, wherein the connection of the first output interface (3) of the transceiver chip A and the second output interface (6) of the transceiver chip B to the control port receiving end (2) of the embedded processor via a logic module comprises:
the first output end (3) of the transceiver chip A is connected with the first signal input end (7) of the logic module, the second output end (6) of the transceiver chip B is connected with the second signal input end (8) of the logic module, and the signal output end (9) of the logic module is connected with the control port receiving end (2) of the embedded processor.
4. The circuit of a CAN bus interface extension interface of claim 1, further comprising: the logic module is any one of the following chips: CPLD chip, FPGA chip, AND gate logic chip.
5. The CAN bus interface expansion interface circuit of any one of claims 1 to 4, wherein the first CAN bus interface and the second CAN bus interface have the same function.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911166656.XA CN110850779A (en) | 2019-11-25 | 2019-11-25 | Circuit of CAN bus interface expansion interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911166656.XA CN110850779A (en) | 2019-11-25 | 2019-11-25 | Circuit of CAN bus interface expansion interface |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110850779A true CN110850779A (en) | 2020-02-28 |
Family
ID=69604365
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911166656.XA Pending CN110850779A (en) | 2019-11-25 | 2019-11-25 | Circuit of CAN bus interface expansion interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110850779A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115562134A (en) * | 2022-11-24 | 2023-01-03 | 北京紫光芯能科技有限公司 | CAN bus protection module, method and system and vehicle |
-
2019
- 2019-11-25 CN CN201911166656.XA patent/CN110850779A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115562134A (en) * | 2022-11-24 | 2023-01-03 | 北京紫光芯能科技有限公司 | CAN bus protection module, method and system and vehicle |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA2446983A1 (en) | Programmable logic device including programmable interface core and central processing unit | |
EP3029884A1 (en) | Commissioning method, master control board, and service board | |
CN102508533A (en) | Reset control device and method | |
CN102665302B (en) | A kind of wireless communication system | |
US11703910B2 (en) | Docking station, electrical device, and method for configuring basic input output system | |
CN109446145A (en) | A kind of channel server master board I2C extended chip, circuit and control method | |
CN104636303B (en) | A kind of bus control method, electronic equipment and bus system | |
CN102591836B (en) | Configuration method and configuration device for communication connector personal identification number (PIN) foot | |
US20160156518A1 (en) | Server for automatically switching sharing-network | |
CN110850779A (en) | Circuit of CAN bus interface expansion interface | |
CN108897710B (en) | System for automatically switching system management bus | |
CN210804054U (en) | Circuit of CAN bus interface expansion interface | |
CN105512085A (en) | Information processing method and electronic equipment | |
CN204440378U (en) | Communication transfer switching device shifter and electronic system | |
CN116032746B (en) | Information processing method and device of resource pool, storage medium and electronic device | |
CN217562026U (en) | Serial port adapter plate and system of hardware simulation accelerator | |
CN216561773U (en) | Automatic wire jumper device and communication equipment | |
CN209980238U (en) | Compatible expansion device and electronic equipment | |
CN109388216A (en) | The veneer and the network equipment of starter, the network equipment | |
CN115826450A (en) | Logic control device of serial peripheral interface, master-slave system and master-slave switching method thereof | |
CN110418121B (en) | Electronic component and projection equipment | |
CN108009113B (en) | Method for realizing debugging serial port in double-master control system | |
CN109328447B (en) | Interface module, system having an interface module and method for coupling a data bus | |
CN108599843B (en) | Function detection control method for supporting output of 1PPS and TOD signals in SFP ONT optical module and host | |
CN108108124B (en) | Memory array and method for controlling memory array |
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 |