Processor, interface conversion device and electronic equipment
By designing processors that support multiple protocol types, the conversion of multiple interfaces and CAN bus interfaces is realized, solving the problem of excessive redundancy of microcontrollers and reducing costs and complexity.
Patent Information
- Application Number
- CN202323618652.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-27
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2033-12-27
AI Technical Summary
The existing interface conversion device can only convert the protocol of a certain interface to the CAN bus protocol, and cannot complete the conversion between other types of interfaces and the CAN bus interface, resulting in excessive redundant use of microcontrollers.
Design a processor with built-in multiple uplink interface controllers, protocol conversion circuits and CAN controllers, supporting conversion of multiple protocol types, including USB, SPI, UART, I2C and MAC controllers, and implementing multiple protocol conversion circuits through protocol conversion circuits. The conversion of interface and CAN bus interface is replaced by multiple microcontrollers.
The conversion of interfaces of various protocol types and CAN bus interfaces is realized, eliminating the excessive redundant use of microcontrollers and reducing the investment cost and complexity of microcontrollers.
Smart Images

Figure CN222147645U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of interface conversion, in particular to a processor, an interface conversion device and electronic equipment. Background Art
[0002] Since the CAN (Controller Area Network) bus has the advantages of supporting multiple hosts and multiple slaves, it can simplify the complexity of the wiring harness in communication transmission and reduce wiring costs. Therefore, the CAN bus has been widely used in industrial control.
[0003] When establishing a communication connection between a master device and a controlled device, a conversion device with a protocol conversion function is usually used between the master device and the controlled device to achieve protocol conversion between the master device interface and the CAN bus interface of the controlled device. This type of conversion device uses a single-chip microcomputer to connect to the master chip, converting the corresponding interface of the master chip into an interface that supports the CAN bus protocol to achieve communication with external CAN bus devices.
[0004] At present, the device using single-chip microcomputer for interface conversion can only convert the protocol of a certain interface into the CAN bus protocol, and cannot complete the conversion between other types of interfaces and the CAN bus interface. The conversion function of this conversion device is single. When it is necessary to convert other types of interfaces of the main control chip, multiple single-chip microcomputers need to be reused to convert different interfaces, and each single-chip microcomputer only uses its interface conversion function. Many pins on the single-chip microcomputer are idle and wasted, resulting in excessive redundant use of the single-chip microcomputer. Utility Model Content
[0005] In view of this, the utility model provides a processor, an interface conversion device and an electronic device, so as to at least solve the problem of excessive redundant use of single-chip microcomputers in existing interface conversion solutions.
[0006] In order to achieve the above object, the technical solution of the utility model is implemented as follows:
[0007] In a first aspect, the utility model discloses a processor, wherein a plurality of uplink interface controllers, a protocol conversion circuit and a CAN controller are arranged in the processor, wherein the protocol types of the plurality of uplink interface controllers are different;
[0008] Each of the upstream interface controllers is electrically connected to the CAN controller via the protocol conversion circuit, each of the upstream interface controllers forms a transmission pin of a corresponding interface outside the processor, and the CAN controller forms a CAN transmission pin outside the processor.
[0009] Optionally, the multiple upstream interface controllers include a USB controller, a SPI controller, a UART controller, an I2C controller and a MAC controller.
[0010] Optionally, the USB controller is a controller supporting the OTG protocol.
[0011] Optionally, there are multiple CAN controllers, and each of the CAN controllers is electrically connected to the protocol conversion circuit.
[0012] Optionally, the CAN controller is a controller supporting the CAN-FD protocol.
[0013] In a second aspect, the utility model discloses an interface conversion device, which includes the processor described in the first aspect.
[0014] Optionally, the interface conversion device further comprises a CAN connector, and a CAN transmission pin of each CAN controller is electrically connected to one of the CAN connectors.
[0015] Optionally, the interface conversion device further includes a CAN transceiver, and the CAN transceiver is electrically connected between the CAN connector and the CAN controller.
[0016] Optionally, the interface conversion device further includes a PHY chip, and the PHY chip is electrically connected to a transmission pin corresponding to a MAC controller in the uplink interface controller.
[0017] In a third aspect, the utility model discloses an electronic device, which includes the interface conversion device described in the first aspect.
[0018] Compared with the prior art, the processor, interface conversion device and electronic device described in the utility model have the following advantages:
[0019] This processor in the embodiment of the utility model can realize the conversion between interfaces of multiple different protocol types and CAN bus interfaces, can replace the use of multiple single-chip microcomputers, eliminate the problem of excessive redundant use of single-chip microcomputers when converting multiple interfaces and CAN bus interfaces, and can reduce the investment cost of single-chip microcomputers. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation on the present invention. In the accompanying drawings:
[0021] Figure 1 is a schematic diagram of the hardware architecture of a processor in this embodiment;
[0022] Figure 2 is a schematic diagram of the hardware architecture of the first interface conversion device in this embodiment;
[0023] Figure 3 It is a schematic diagram of the hardware architecture of the second interface conversion device in this embodiment. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0025] The terms "first", "second", etc. in the specification and claims of the present utility model are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the utility model can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0026] It should be understood that the reference to "one embodiment" throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the utility model. Therefore, the "in one embodiment" appearing in various places throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner.
[0027] The following describes in detail an interface conversion device and an electronic device provided by the utility model by listing specific embodiments.
[0028] Reference Figure 1 The utility model discloses a processor 10, wherein the processor 10 is provided with a plurality of uplink interface controllers 101, a protocol conversion circuit 102 and a CAN controller 103, wherein the protocol types of the plurality of uplink interface controllers 101 are different;
[0029] Each of the uplink interface controllers 101 is electrically connected to the CAN controller 103 via the protocol conversion circuit 102. Each of the uplink interface controllers 101 forms a transmission pin of a corresponding interface outside the processor 10, and the CAN controller 103 forms a CAN transmission pin outside the processor.
[0030] Specifically, if Figure 1 As shown in the figure, the processor 10 of the embodiment of the utility model is internally integrated with a plurality of uplink interface controllers 101 that support different transmission protocols respectively. These uplink interface controllers 101 each form transmission pins corresponding to different interfaces on the outside of the processor 10, and can be connected to the uplink main control device through these transmission pins. For example, the main control device can be an industrial control host, etc. The processor 10 also integrates a protocol conversion circuit 102 and a CAN controller 103. The CAN transmission pins formed by the CAN controller 103 outside the processor 10 are used to connect to the CAN bus device. The protocol conversion circuit 102 is connected between the uplink interface controller 101 and the CAN controller 103, and can realize the mutual conversion between the uplink interface controller 101 and the CAN protocol, and realize the communication between the main control device and the CAN bus device.
[0031] It should be noted that the protocol conversion circuit 102 of the embodiment of the utility model may include multiple conversion sub-circuits, each of which may correspond to the conversion between a protocol of an uplink interface and a CAN bus protocol, and each conversion sub-circuit operates independently of each other. Thus, the protocol conversion circuit 102 can convert between a plurality of different protocols and the CAN bus protocol. Among them, each conversion sub-circuit may be a circuit for realizing the conversion between a single interface protocol and a CAN bus protocol inside a traditional single-chip microcomputer, and the embodiment of the utility model will not be described in detail.
[0032] Therefore, the processor of the utility model embodiment can realize the conversion of interfaces of multiple different protocol types and CAN bus interfaces, can replace the use of multiple single-chip microcomputers, eliminate the problem of excessive redundant use of single-chip microcomputers when converting multiple interfaces and CAN bus interfaces, and can reduce the investment cost of single-chip microcomputers.
[0033] Optionally, refer to Figure 1 The multiple upstream interface controllers 101 include a USB controller 1011, an SPI controller 1012, a UART controller 1013, an I 2 C controller 1014 and MAC controller 1015.
[0034] Specifically, if Figure 2In the embodiment of the utility model, the uplink interface controller 101 may include a USB (Universal Serial Bus) controller 1011, an SPI (Serial Peripheral Interface) controller 1012, a UART (Universal Asynchronous Receiver / Transmitter) controller 1013, an I 2 C (Inter-Integrated Circuit, integrated circuit bus) controller 1014 and MAC (Media Access Control, media access control) controller 1015. It is easy to understand that these rich and diverse interface controllers provide a variety of options for connecting the main control device with the CAN bus device. For example, when the USB interface of the main control device is occupied, the SPI interface, UART interface, I 2 Any idle interface in the C interface and the network port is electrically connected to the transmission pin of the corresponding uplink interface controller 101 in the processor 10. Thus, the communication between the main control device and the CAN bus device is guaranteed. In addition, the appropriate uplink interface can be flexibly selected for conversion for communication according to the transmission requirements such as the communication rate.
[0035] Optionally, the USB controller 1013 is a controller supporting an OTG (On-The-Go) protocol.
[0036] Specifically, in one implementation, the USB controller 1013 can be a controller that supports the OTG protocol. At this time, while realizing the conversion between the USB interface and the CAN bus interface, with the support of the OTG technology, the device connected to the USB controller 1013 in the processor 10 can be a device without a host control function, and data transmission between devices can be realized without a host. For example, a USB flash drive is inserted into the interface corresponding to the USB controller 1013, and the data in the USB flash drive is converted by the processor 10 and transmitted to the CAN bus device in the manner specified by the CAN bus protocol.
[0037] Optionally, refer to Figure 1 There are multiple CAN controllers 103 , and each of the CAN controllers 103 is electrically connected to the protocol conversion circuit 102 .
[0038] Specifically, if Figure 1 As shown, the CAN controller 103 of the embodiment of the utility model can be multiple, and each CAN controller 103 is electrically connected to the protocol conversion circuit 102. Therefore, the processor 10 can be used to expand a multi-channel CAN bus interface, and multiple CAN bus devices can be connected at the same time.
[0039] Optionally, the CAN controller 103 is a controller supporting the CAN-FD protocol.
[0040] Specifically, CAN-FD, or CAN with Flexible Data rate, is an upgraded version of the traditional CAN bus protocol. While being compatible with the traditional CAN bus protocol, it can also support higher transmission rates and more data transmission volume, and can better adapt to the increasing usage requirements of the CAN load rate. Therefore, the CAN controller 103 of the embodiment of the utility model can be a controller that supports the traditional earlier version of the CAN2.0 protocol, as well as a controller that supports the upgraded CAN-FD protocol. It should be noted that when the CAN controller 103 supports the CAN-FD protocol, it can be compatible with supporting various subdivided protocol types included in the CAN-FD protocol. For example, the CAN controller 103 can be compatible with the CAN-FD Light protocol, a lightweight version of CAN-FD.
[0041] Reference Figure 2 The utility model discloses an interface conversion device 20, which includes the processor 10 described in the first aspect.
[0042] By adopting any of the aforementioned processors 10 in the embodiments of the utility model, the single-chip microcomputer in the traditional interface conversion device can be replaced, so that a single processor 10 can be used to realize the conversion of uplink interfaces of multiple different protocol types and CAN bus interfaces, establish an effective connection with the CAN bus device, and help reduce the complexity and cost of conversion between multiple interfaces and the CAN bus interface.
[0043] Optionally, refer to Figure 2 The interface conversion device 20 also includes a CAN connector 11, and each CAN transmission pin of the CAN controller 103 is electrically connected to one of the CAN connectors 11.
[0044] Specifically, the CAN bus device has a physical interface that supports the CAN bus protocol, and the physical interface can be a socket structure. Accordingly, Figure 2 As shown, the interface conversion device 20 also includes a CAN connector 11, which can be a plug corresponding to the socket structure on the CAN bus device. For example, the CAN connector 11 can be a 9-pin industrial standard connector. Specifically, the structural form of the CAN connector 11 is not limited in the embodiment of the utility model, and it can match the physical interface of the CAN bus device.
[0045] Optionally, refer to Figure 3The interface conversion device 20 also includes a CAN transceiver 12 , and the CAN transceiver 12 is electrically connected between the CAN connector 11 and the CAN controller 103 .
[0046] Specifically, if Figure 3 As shown, in one embodiment of the utility model, the interface conversion device 20 may also include a CAN transceiver 12, which is connected between the CAN connector 11 and the CAN controller 103, and is used to realize the conversion between the TTL signal supported by the CAN controller 103 and the differential signal supported by the CAN bus device, thereby realizing bidirectional transmission of data.
[0047] Optionally, refer to Figure 3 The interface conversion device 20 also includes a PHY chip 13, and the PHY chip 13 is electrically connected to the transmission pin corresponding to the MAC controller in the uplink interface controller 10.
[0048] Specifically, PHY (Physical Layer) is the physical layer of the OSI seven-layer model in the network structure. The PHY chip is a chip that implements the functions of the physical layer. Different network devices are connected through PHY chips and transmission media such as network cables or optical fibers. Figure 3 As shown in the figure, the PHY chip 13 is connected to the transmission pin corresponding to the MAC controller in the uplink interface controller 10, and the data transmitted by the uplink line device through Ethernet can be input to the MAC controller. Therefore, the interface conversion device 20 of the embodiment of the utility model can realize the interface conversion and data transmission between the LAN network device and the CAN bus device.
[0049] In addition, the utility model discloses an electronic device, which includes the interface conversion device described in the first aspect.
[0050] The embodiment of the utility model also provides an electronic device, which includes the aforementioned interface conversion device 20. In practical applications, the electronic device can be a computer device such as a server, a personal computer, an industrial computer, etc., thereby reducing the complexity of controlling CAN bus devices and improving the economic efficiency of connecting and controlling CAN bus devices.
[0051] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0052] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A processor, characterized in that: The processor is provided with a plurality of uplink interface controllers, a protocol conversion circuit and a CAN controller, wherein the protocol types of the plurality of uplink interface controllers are different; Each of the upstream interface controllers is electrically connected to the CAN controller via the protocol conversion circuit, each of the upstream interface controllers forms a transmission pin of a corresponding interface outside the processor, and the CAN controller forms a CAN transmission pin outside the processor.
2. The processor according to claim 1, characterized in that The multiple upstream interface controllers include a USB controller, a SPI controller, a UART controller, an I2C controller and a MAC controller.
3. The processor according to claim 2, characterized in that The USB controller is a controller supporting the OTG protocol.
4. The processor according to claim 1, characterized in that There are multiple CAN controllers, and each of the CAN controllers is electrically connected to the protocol conversion circuit.
5. The processor according to any one of claims 1 to 4, characterized in that: The CAN controller is a controller that supports the CAN-FD protocol.
6. An interface conversion device, characterized in that: The interface conversion device comprises the processor according to any one of claims 1 to 5.
7. The interface conversion device according to claim 6, characterized in that: The interface conversion device also includes a CAN connector, and a CAN transmission pin of each CAN controller is electrically connected to one of the CAN connectors.
8. The interface conversion device according to claim 7, characterized in that: The interface conversion device also includes a CAN transceiver, and the CAN transceiver is electrically connected between the CAN connector and the CAN controller.
9. The interface conversion device according to claim 6, characterized in that: The interface conversion device also includes a PHY chip, and the PHY chip is electrically connected to a transmission pin corresponding to a MAC controller in the uplink interface controller.
10. An electronic device, characterized in that: The electronic device comprises the interface conversion device according to any one of claims 6 to 9.
