CN201796248U - Universal serial bus (USB)-controller area network (CAN) communication module based on microcontroller - Google Patents

Universal serial bus (USB)-controller area network (CAN) communication module based on microcontroller Download PDF

Info

Publication number
CN201796248U
CN201796248U CN 200920219193 CN200920219193U CN201796248U CN 201796248 U CN201796248 U CN 201796248U CN 200920219193 CN200920219193 CN 200920219193 CN 200920219193 U CN200920219193 U CN 200920219193U CN 201796248 U CN201796248 U CN 201796248U
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
circuit
communication
bus
microcontroller
usb
Prior art date
Application number
CN 200920219193
Other languages
Chinese (zh)
Inventor
侯留业
张育华
熊跃平
王洪
郑洁
Original Assignee
镇江恒驰科技有限公司
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
Grant date

Links

Abstract

The utility model provides a universal serial bus (USB)-controller area network (CAN) communication module based on a microcontroller, which comprises a USB bus control circuit, a microcontroller circuit, a communication isolating circuit, a power source isolating circuit, an LED display circuit and a CAN bus interface circuit. The communication module adopts the designs of communication isolation and power source isolation, the USB bus control circuit is connected with the CAN bus interface circuit via the microcontroller, the communication isolating circuit is added between the microcontroller circuit and the CAN bus interface circuit, a power source provided by the aid of an USB slot of a personal computer (PC) is divided into two portions through a voltage reducing chip, one portion supplies power to the CAN bus interface circuit and the communication isolating circuit, and the other portion supplies power to the USB bus control circuit, the connecting end of the microcontroller circuit and the communication isolating circuit and the microcontroller circuit. The module can be used for realizing communication between electronic equipment with CAN interfaces and the PC, is high in transmission accuracy, simple in structure, lower in cost, and particularly adaptable to USB-CAN communication environments of automobile electronic control modules.

Description

一种基于微控制器的USB-CAN通信模块 USB-CAN communication module based on a microcontroller

技术领域 FIELD

[0001 ] 本发明涉及一种汽车电子控制模块ECM与外部个人电脑PC机进行通信的转接模块,具体为一种USB-CAN通信模块。 [0001] The present invention relates to an automotive electronic control modules ECM with an external personal computer PC, adapter module in communication, in particular to a USB-CAN communication module.

背景技术 Background technique

[0002] 现代汽车内电子控制模块ECM的应用越来越多,一些模块需要通过外部个人电脑PC机进行检测、程序数据更新以及标定。 [0002] in the modern automotive electronic control module ECM applications more and more, some of the modules need to be detected by an external PC PC, program updates, and calibration data. 为了实现模块与外部PC机的通信,通常在他们之间接一个USB-CAN通信模块,USB为PC机驳接端,CAN为ECM驳接端。 In order to realize a communication module with an external PC, usually in their indirect communication module is a USB-CAN, USB connections are for the PC side, CAN docking end for the ECM. 由于车载环境存在大量的电磁干扰,这些干扰信号通过通信线传输,可能引起数据出错或丢失,影响到信息交互的质量。 Due to the large number of vehicle environment of electromagnetic interference, such interference signals transmitted through the communication line, or may cause loss of data error, affect the quality of information exchange. 在通信模块电路的设计中采取隔离设计措施可抑制电磁干扰,提高信息传递的质量。 Isolation design measures taken in the design of the communication module circuit of electromagnetic interference can be suppressed, improving the quality of information transmission. 现有的技术中采用的隔离设计,较多的采用光电耦合进行通信模块与通信线路间的物理隔离,这种方法在上电或掉电状态下输入逻辑临时缺少时, 其隔离没有专门的更新特征来保证直流正确性,容易引起数据丢失,并且CAN总线上数据需采用CAN总线控制芯片来控制总线上数据传输,电路复杂增加了成本且造成新的干扰来源。 Employed in the prior art isolation design, coupled with optical more physical separation between the communication module and the communication line, in this method the input power up or down on a temporary lack of logic state, no dedicated update its isolation wherein the DC to ensure accuracy, easily lead to loss of data and requires the use of CAN data bus CAN bus control chip to control the data transfer on the bus, the circuit is complicated and the cost increases caused by new interference sources.

发明内容 SUMMARY

[0003] 本实用新型提供一种基于微控制器USB-CAN通信模块,采用专用的通信芯片和带有集成控制器局域网络(MSCAN)的微控制器,解决了采用上述光电耦合隔离所存在的问题。 [0003] The present invention provides a USB-CAN microcontroller-based communication module, and the communication chip using a dedicated microcontroller with integrated controller area network (the MSCAN) is solved using the present photocoupler isolation problem.

[0004] 本实用新型采用的技术方案如下: [0004] The present invention adopts the technical solution as follows:

[0005] 这种基于微控制器的USB-CAN通信模块由USB总线控制电路、微控制器电路、通信隔离电路、电源隔离电路、LED显示电路及CAN总线接口电路组成。 [0005] Such USB-based communication module CAN microcontroller bus by the USB control circuit, a microcontroller circuit, a communication circuit isolation, power isolation circuit, LED display circuit, and CAN bus interface circuit. USB总线控制电路通过微控制器电路和CAN总线接口电路连接,微控制器电路与CAN总线接口电路间加通信隔离电路。 USB bus control circuit by the microcontroller circuit, and CAN bus interface circuit connected between the microcontroller circuit and CAN bus interface circuit isolation communication circuit added. USB-CAN模块分别和PC机的USB插口与车用ECM的CAN 总线接口连接。 USB-CAN module and a USB port, respectively, and the PC is connected to the vehicle's CAN bus interface ECM.

[0006] 本发明采用通信隔离及电源隔离设计解决外界干扰问题。 [0006] The present invention uses a communication and power isolation isolated design solutions outside interference. 通信隔离:内部加通信隔离电路,隔断通信线上的干扰信号传输,并在CAN总线接口电路与CAN总线中间串接两个小电感削弱CAN总线上的干扰对CAN总线接口芯片的影响。 Communication isolation: Add the internal communication isolation circuit, cut off the communication signal transmission interference line, and two small series inductor weaken the influence of interference on the CAN bus of CAN bus interface chip with the CAN bus interface circuit intermediate CAN bus. 电源隔离:利用USB插口提供的电源作为基本电源,采用一个降压芯片把电源隔离成两部分。 Power Isolation: USB port provided by the power supply as a basic power source, the power supply using a buck chip segregated into two portions. 基本电源过滤后给CAN总线接口电路和通信隔离电路与CAN总线接口电路连接端供电,隔离后的电源给USB总线控制电路、微控制器电路与通信隔离电路连接端以及微控制器电路供电。 After the filter is connected to the base power source circuit and a CAN bus interface isolation circuit communication with the CAN bus interface circuit supply terminal, the power supply to the USB bus isolation control circuit, a microcontroller and the communication circuit connection terminal isolation circuit and a microcontroller circuitry. 电源隔离隔断了与CAN总线上外围器件引起的电压波动对微控制器的影响。 Cut off the power isolation and voltage fluctuation caused by the CAN bus peripheral devices to the microcontroller.

[0007] 基于微控制器的USB-CAN通信模块,所述的微控制器采用内部集成控制器局域网络(MSCAN),芯片两管脚直接控制CAN接口芯片,无需外接CAN总线控制芯片, 简化了电路设计,减少了干扰来源。 [0007] USB-CAN communication module based on a microcontroller, the microcontroller uses internal integrated controller area network (the MSCAN), two chip pins directly control the CAN interface chip, no external CAN bus controller chip, simplifying the circuit design, reduces interference sources. 在微控制器电路与CAN总线接口电路之间加通信隔离电路实现通信隔离连接,彻底隔离CAN总线与PC间之间的电气干扰。 Add communication isolation circuit connected to communicate isolation, total isolation between the electrical interference between the CAN bus and the PC circuit between the microcontroller and CAN bus interface circuit. 同时,微控制器采用BKGD单线背景调试接口,方便调试。 Meanwhile, the microcontroller uses BKGD single-wire background debug interface for easy debugging.

[0008] USB-CAN通信模块,微控制器电路连接一个LED指示灯,用于显示微控制器工作状况;USB插口电源连接另一个指示灯,用于显示电源情况。 [0008] USB-CAN communication module, a microcontroller circuit connected to LED indicators for displaying the condition of operation of the microcontroller; the USB connector is connected to another power LEDs, for displaying the power situation. 微控制器电路连接两路开关量输入信号,用于外部调整微控制器的波特率。 Microcontroller circuit connected to two switch input signal for an external microcontroller to adjust the baud rate.

[0009] USB-CAN通信模块,通信隔离电路,采用双通道数字降压芯片,该芯片以模拟器件为基础,性能优于光耦隔离。 [0009] USB-CAN communication module, the communication circuit isolation, Buck dual channel digital chip, the chip is based on analog devices, superior performance opto-isolation. 通信隔离电路可提供两个独立的隔离通道,两部分操作电压范围为2.7V到5.5V之间。 Isolation communication circuit may provide two independent isolation channels, two portions of the operating voltage range is from 2.7V to 5.5V.

[0010] 本发明的有益效果是:PC机可以通过软件对控制单元实现实车实时同步测试, 测试数据准确、效率高。 [0010] Advantageous effects of the invention are: PC machine may be implemented by software real-time synchronization control unit of the actual vehicle test, the test data is accurate and efficient. 模块内部未使用CAN总线控制芯片,节约了成本。 Internal control module does not use the CAN bus chip, cost savings. 因此成本低、轻巧便于携带,可以在不同的环境中使用。 Thus a low cost, lightweight and easy to carry, can be used in different environments.

附图说明 BRIEF DESCRIPTION

[0011] 图1为USB-CAN通信模块结构框图 Block diagram USB-CAN communication module [0011] FIG. 1 is a

[0012] I-USB总线控制电路,2-微控制器电路,3-通信隔离电路,4-CAN总线接口电路,5-LED显示电路,6-电源隔离电路 [0012] I-USB bus control circuit, microcontroller circuit 2-, 3- isolation communication circuit, 4-CAN bus interface circuit, 5-LED display circuit, the power isolation circuit 6-

[0013] 图2为实施例通信隔离及CAN总线接口原理图 [0013] Example 2 is a CAN bus interface and communication isolation Schematic

[0014] 图3为实施例电源原理图 [0014] FIG. 3 is a schematic diagram of an embodiment of the power supply

[0015] 图4为实施例应用示意图 [0015] FIG. 4 is a schematic view of Application Example

[0016] 7-PC 机,8-USB-CAN 通信模块,9-CAN 总线,10、11、N-ECM。 [0016] 7-PC machine, 8-USB-CAN communication module, 9-CAN bus, 10,11, N-ECM. 具体实施方式 detailed description

[0017] 下面以基本电源5V、隔离电源3.3V、降压芯片ADUM1201、微控制器芯片MC9S08DZ60为例结合附图对本实用新型做进一步说明。 [0017] In the following the basic supply 5V, isolated power supply 3.3V, buck chip ADUM1201, an example MC9S08DZ60 microcontroller chip further explanation of the invention made in conjunction with the accompanying drawings.

[0018] 如图1,微控制器判断PC机信号状态后,PC机通过USB总线控制器向下传送数据,数据进入微控制器存储,微控制器检测CAN总线状态后通过CAN总线接口电路4 向ECM传送数据。 [0018] As shown in FIG 1, the microcontroller determines the state of the PC signal, the PC via the USB bus controller transmits down data, the data storage into the microcontroller, the microcontroller detects the state of the CAN bus via the CAN bus interface circuit 4 transmit data to the ECM. 通信隔离电路3把微控制器与CAN总线接口4之间两条通信线路隔离开,解决了CAN总线线路上的外界信号干扰,同时ECM也可以通过CAN总线向PC 机传送数据。 Isolation communication circuit 3 and the microcontroller 4 CAN bus interface between the two communication lines to isolate, to solve the external signal interference on the CAN bus line, while ECM may also transmit data to the PC via the CAN bus. LED显示电路显示5V电源状态及微控制器通信状态。 LED display circuit 5V power status display and the microcontroller communication state. 电源隔离电路6把电源分隔成两部分:3.3V给USB总线控制电路1、通信隔离电路3与微控制器2连接端及微控制器电路2供电;5V给CAN总线接口电路4和通信隔离电路3与CAN总线接口电路4连接端供电。 Isolating the power supply circuit 6 is divided into two parts: 3.3V to the USB bus control circuit 1, the communication with the microcontroller isolation circuit 3 and the second connecting terminal power microcontroller circuit 2; 5V to the CAN bus interface isolation circuit and a communication circuit 4 3 is connected to the power supply terminal CAN bus interface circuit 4.

[0019] 图2为实施例通信隔离及CAN总线接口原理图。 [0019] FIG. 2 is a spacer embodiment of a communication schematic and CAN bus interface. 降压芯片ADUM1201两侧分别采用不同的电源供电:与微控制器连接端用3.3V供电,与CAN总线接口芯片SN65HVD251连接端用5V供电。 Down sides ADUM1201 chip using different power supplies: a microcontroller connected with the 3.3V power supply end, with the 5V power supply terminal connected to the CAN bus interface chip SN65HVD251. CAN接口芯片信号输出线串联一个小电感挂接到CAN 总线上,输出端并联稳压二级管,防止总线上瞬间强干扰损坏CAN接口芯片。 CAN interface chip signal output line, a small series inductor attached to the CAN bus, the output of diode shunt regulator, to prevent damage to the CAN bus high interference moment interface chip. 输出接头采用DB9插头。 Output using DB9 connector plug. 同时DB9还是复位、程序下载接头。 Meanwhile DB9 or reset, the program downloads joints. 微控制器集成BKGD单线调试模块,当需要修改模块微控制器内程序时,上位机通过BDM模块可以直接给模块下载、修改程序。 The microcontroller integrated BKGD wire debug module, the module when the microcontroller need to modify the program, the host computer can be downloaded to the module by module BDM directly modify the program. [0020] 图3为实施例电源原理图。 [0020] FIG. 3 is a schematic diagram of an embodiment of the power supply. USB提供的5V电源为整个模块总电源。 USB 5V power supply for the entire module provides the power. USB-5V 经过磁珠Ll后给模块上5V电系电路供电。 USB-5V after Ll beads to 5V power supply line circuit module. 5V通过LM1117IMAP-3.3降压后输出3.3V 给模块上微控制器等3.3V电系电路供电。 After 5V buck output by LM1117IMAP-3.3 3.3V system circuit is electrically powered microcontroller module to 3.3V.

[0021 ] 图4为实施例USB-CAN模块应用示意图。 [0021] FIG. 4 is a schematic view of the application module according to an embodiment USB-CAN. 模块内部采用freescale公司推出的8位HCS08中央处理器的微控制器MC9S08DZ60。 Internal modules freescale introduced 8-bit microcontroller MC9S08DZ60 HCS08 central processor.

[0022] USB-CAN模块判断上位机(PC机7)信号状态,是向下位机发送数据还是接收下位机传送上来的数据。 [0022] USB-CAN module determines that the host computer (PC 7) signal state, sends a bit down or receive data at up machine transmission. 以此完成程序烧写任务或测试、监控。 In order to complete a task or test has been programmed to monitor. CAN总线上最多允许120个SN65HVD251节点。 SN65HVD251 allows up to 120 nodes on the CAN bus. 实际使用时,USB-CAN模块判断CAN总线的节点状态,接收ECM上传数据并存储在微控制器内。 Actual use, USB-CAN module determines node status CAN bus, the received ECM data is uploaded and stored in the microcontroller. 模块判断PC机USB总线状态后,上传数据。 After the PC module determines the state of the USB bus, uploading data. PC机接收上传的数据后,通过测试监控软件在屏幕上显示。 After the PC receives the uploaded data, displayed on the screen by testing monitoring software. 键盘可实时修改监控参数, 模块检测到PC机下传数据状态,将接收到的数据存储到微控制器内,判断CAN总线状态后,将数据下传到ECM,来控制ECM。 Keyboard can be modified in real time monitoring parameters, the PC module detects the state of downlink data, the received data is stored in the microcontroller, determines the state of the CAN bus, the data transmitted to the ECM, ECM controlled. 因为模块的轻便小巧,适用于实时在线测试、 监控。 Because the module is compact and lightweight, suitable for real-time online testing, monitoring. 模块内部的隔离设计,阻隔了CAN总线上干扰信号的传输。 Inside the module isolation design, blocking the transmission of the interference signal on the CAN bus.

Claims (5)

  1. 1.一种基于微控制器的USB-CAN通信模块,包括USB总线控制电路、CAN总线接口电路,其特征是:还包括微控制器电路、通信隔离电路、电源隔离电路,USB总线控制电路通过微控制器电路与CAN总线接口电路建立通讯连接,在微控制器电路与CAN总线接口电路间加通信隔离电路。 A USB-CAN communication module based on a microcontroller, the control circuit includes a USB bus, CAN bus interface circuit, characterized by: further comprising a microcontroller circuit, a communication circuit isolation, isolation power supply circuit, a control circuit via the USB bus microcontroller circuit and CAN bus interface circuit to establish the communication connection between the microcontroller circuit and CAN bus interface circuit isolation communication circuit added.
  2. 2.根据权利要求1所述的基于微控制器的USB-CAN通信模块,其特征在于所述的微控制器电路内部集成控制器局域网络,通过控制器局域网络控制CAN接口芯片。 The USB-CAN microcontroller-based communication module according to claim 1, characterized in that the internal circuit of the microcontroller of the integrated controller area network, CAN interface chip control through the controller area network.
  3. 3.根据权利要求1所述的基于微控制器的USB-CAN通信模块,其特征在于微控制器电路的波特率通过两路开关量输入电路调节。 The USB-CAN microcontroller-based communication module according to claim 1, characterized in that the microcontroller circuit baud rate by two-way switch input circuit adjustment.
  4. 4.根据权利要求1所述的基于微控制器的USB-CAN通信模块,其特征在于电源隔离电路采用降压芯片隔离PC机USB 口提供的基本电源,微控制器电路、USB总线控制电路、通信隔离电路与微控制器电路连接端采用隔离后电源,CAN总线接口电路和通信隔离电路与CAN总线接口电路连接端采用过滤后的USB电源供电。 The USB-CAN microcontroller-based communication module according to claim 1, characterized in that the step-down power supply isolation circuit chip isolated base power USB port provided by the PC, the microcontroller circuit, USB bus control circuit, isolation circuit communication with microcontroller circuit using the isolated power connection terminal, CAN bus isolation circuit and a communication interface circuit and CAN bus interface circuit USB power connection terminal filtered.
  5. 5.根据权利要求书4所述的基于微控制器的USB-CAN通信模块,其特征在于所述的降压芯片可提供两个独立的隔离通道,隔离前后操作电压范围在2.7V到5.5V之间。 The book microcontroller-based USB-CAN communication module according to claim 4, wherein said step-down chip may provide two independent isolation channels, operating voltage range before and after isolation 2.7V to 5.5V between.
CN 200920219193 2009-10-13 2009-10-13 Universal serial bus (USB)-controller area network (CAN) communication module based on microcontroller CN201796248U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200920219193 CN201796248U (en) 2009-10-13 2009-10-13 Universal serial bus (USB)-controller area network (CAN) communication module based on microcontroller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200920219193 CN201796248U (en) 2009-10-13 2009-10-13 Universal serial bus (USB)-controller area network (CAN) communication module based on microcontroller

Publications (1)

Publication Number Publication Date
CN201796248U true CN201796248U (en) 2011-04-13

Family

ID=43851151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200920219193 CN201796248U (en) 2009-10-13 2009-10-13 Universal serial bus (USB)-controller area network (CAN) communication module based on microcontroller

Country Status (1)

Country Link
CN (1) CN201796248U (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231058A (en) * 2011-04-19 2011-11-02 中国铁道科学研究院机车车辆研究所 Man-machine interface board for rail transit vehicle brake electrical system
CN104808028A (en) * 2015-04-30 2015-07-29 深圳市知用电子有限公司 Oscilloscope intelligent active probe
US9760516B2 (en) 2012-09-13 2017-09-12 Endress+Hauser Conducta Gmbh+Co. Kg Apparatus for transmitting and/or receiving measurement data of a field device with passive adapter interface

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231058A (en) * 2011-04-19 2011-11-02 中国铁道科学研究院机车车辆研究所 Man-machine interface board for rail transit vehicle brake electrical system
US9760516B2 (en) 2012-09-13 2017-09-12 Endress+Hauser Conducta Gmbh+Co. Kg Apparatus for transmitting and/or receiving measurement data of a field device with passive adapter interface
CN104808028A (en) * 2015-04-30 2015-07-29 深圳市知用电子有限公司 Oscilloscope intelligent active probe
CN104808028B (en) * 2015-04-30 2017-12-19 深圳市知用电子有限公司 One kind intelligent active oscilloscope probe

Similar Documents

Publication Publication Date Title
US6704827B1 (en) Hot plug interface (HPI) test fixture
CN101931674A (en) Method and device for sharing Micro-USB interface
EP2309395A1 (en) Method for realizing pins time share multiplexing and a system-on-a-chip
CN1570877A (en) Universal serial communication interface debugging device and method
US20120117294A1 (en) Method and system for detecting and asserting bus speed condition in a usb isolating device
CN201382850Y (en) Test device for liquid crystal display module
CN201348654Y (en) Lithium battery protective circuit board tester
US20090234998A1 (en) Connection system
CN200980086Y (en) A controllable high-power power supplying equipment for the industrial Ethernet
CN2638129Y (en) Mouse, keyboard and display exchanger used in machine group
CN1609817A (en) Method for monitoring PCI Express plate card and apparatus thereof
CN201733310U (en) Self-linking optical returning module capable of power supply indication
CN201184992Y (en) System power supply management card and computer host board embedded with the same
CN101751368A (en) Single-board communication method, device and system
CN102591326A (en) Interface chip for automobile diagnosis
CN1674547A (en) Optical/electric interface module space multiplexing method and apparatus used for Ethernet SFP interface
CN103412562A (en) Commonly-used diagnostic test device for vehicle
US8266348B2 (en) System and method of communicating with portable devices
CN101309193A (en) USB-Flexray bus adapter based on micro-processor
CN101291261A (en) Method and system for in-board device testing
US20050262279A1 (en) USB OTG adapter module for debugging USB OTG devices
CN103625647A (en) Onboard novel comprehensive data loading and transmitting device
CN102981093A (en) Test system for central processing unit (CPU) module
CN1464398A (en) System level memory environment test method and apparatus
CN101184310A (en) Test device for mobile phone

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
C56 Change in the name or address of the patentee
CF01