CN204993440U - Can protocol conversion device - Google Patents
Can protocol conversion device Download PDFInfo
- Publication number
- CN204993440U CN204993440U CN201520843800.XU CN201520843800U CN204993440U CN 204993440 U CN204993440 U CN 204993440U CN 201520843800 U CN201520843800 U CN 201520843800U CN 204993440 U CN204993440 U CN 204993440U
- Authority
- CN
- China
- Prior art keywords
- control module
- protocol conversion
- connects
- communication
- buffer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Communication Control (AREA)
Abstract
The utility model provides a CAN protocol conversion device, includes the RS232 data transmission module, and the RS232 data transmission module is connected with STC12C5608AD singlechip host system, and STC12C5608AD singlechip host system connects CAN physics converting circuit, and CAN physics converting circuit connects the CAN communication control module. The utility model discloses advantages such as the singlechip has small, low power dissipation, control function is strong, the extension is nimble, miniaturation and convenient to use, the wide application combines different kinds of data signal standards to carry out data communication's interconversion in various data signal conversion equipment. Adopt single chip microcomputer control to make that the communication mechanism transformation is digital more, intelligent, the miniaturation, and the function is more powerful compared with adopting electron or digital circuit.
Description
Technical field
The utility model relates to a kind of CAN protocol conversion equipment.
Background technology
At present, single-chip microcomputer is a kind of integrated circuit (IC) chip, adopt very large scale integration technology, having the perfect computer system of that the central processor CPU of data-handling capacity, random access memory ram, read only memory ROM, multiple I/O mouth and the function i ntegration to one piece of silicon chip such as interrupt system, timer/timer are formed.
Single-chip microcomputer has the advantages such as volume is little, low in energy consumption, controlling functions strong, expansion is flexible, microminiaturized and easy to use, be widely used in various data-signal conversion equipment, in conjunction with dissimilar data-signal standard, the mutual conversion of the data communications such as such as RS232, RS485, RS422, CAN can be realized.RS232 is widely used as the computer serial interface of standard, meanwhile, along with the develop rapidly of field bus technique, have that real-time is good, reliability is high, the CAN of advantages of simple structure and simple is also used more and more in TT&C system, but because both bus structures, communication protocol and transmission feature are different, bring inconvenience thus to the connection between distinct device.
Utility model content
The utility model will solve above-mentioned prior art Problems existing, a kind of CAN protocol conversion equipment is provided, with a kind of CAN protocol conversion equipment that STC12C5608AD single-chip microcomputer is core, this communication switching unit can realize the mutual conversion between RS232 rs 232 serial interface signal and CAN communication signal, and supports standard frame and expansion frame two kinds of patterns of CAN2.0 agreement.
The utility model solves the technical scheme that its technical problem adopts: this CAN protocol conversion equipment, comprise RS232 data transmission module, RS232 data transmission module is connected with STC12C5608AD single-chip microcomputer main control module, STC12C5608AD single-chip microcomputer main control module connects CAN physical transformation circuit, and CAN physical transformation circuit connects CAN communication control module.This device is divided into two parts: Part I converts the RS232 communications regime signal that external world's transmission is come in CAN communication standard signal, and Part II converts the CAN communication standard signal that external world's transmission is come in RS232 communications regime signal.System can realize the mutual conversion between RS232, CAN communication standard, and can realize the selection of CAN communication pattern, and 65536 addresses are called out and support large batch of transfer of data.
In order to perfect further, CAN communication control module is primarily of interface management logic device, information buffer, acceptance fitration, bit stream processor, bit timing logic, mismanage logic device composition, information buffer comprises transmission buffer and reception buffer, described interface management logic device is link information buffer, bit stream processor and bit timing logic respectively, transmission buffer connection bit stream handle in information buffer, bit stream processor connects acceptance fitration, and acceptance fitration connects reception buffer and mismanage logic device respectively.
Interface management logic device is mainly used in explaining from the order of CPU, the addressing of control CAN register and provide interrupting information and corresponding state to controller.Transmission buffer is the interface between CPU and bit stream processor, and it can store the complete information be sent in CAN network.Reception buffer is annoying interface between acceptance fitration and CPU, for storing the information received from CAN.Acceptance fitration is the information of identification code received for comparison, to determine the information whether receiving this.Bit stream processor is the timer of a control data stream between transmission buffer and CAN, simultaneously its also error detection and error handle in CAN.Bit timing logic device is for monitoring the bit timing that the CAN of serial ports is relevant with bus with process.The error message of mismanage logic device primary responsibility transport layer module and the error report of received bit stream handle, notify that bit stream processor and interface management logic device carry out error statistics simultaneously.
Perfect further, be provided with restorer in CAN communication control module.
Perfect further, be provided with oscillator in CAN communication control module.
The effect that the utility model is useful is: the utility model single-chip microcomputer has the advantages such as volume is little, low in energy consumption, controlling functions strong, expansion is flexible, microminiaturized and easy to use, be widely used in, in various data-signal conversion equipment, carrying out the mutual conversion of data communication in conjunction with dissimilar data-signal standard.Adopt Single-chip Controlling make communication mechanism change digitlization more, intellectuality, microminiaturization, and function compared with employing electronics or digital circuit more powerful.
Accompanying drawing explanation
Fig. 1 is structured flowchart of the present utility model;
Fig. 2 is the structural representation of CAN communication control module in the utility model;
Fig. 3 is the structural representation of RS232 data transmission module in the utility model.
Embodiment
Below in conjunction with accompanying drawing, the utility model is described in further detail:
With reference to accompanying drawing: CAN protocol conversion equipment in the present embodiment, comprise RS232 data transmission module, RS232 data transmission module is connected with STC12C5608AD single-chip microcomputer main control module, STC12C5608AD single-chip microcomputer main control module connects CAN physical transformation circuit, and CAN physical transformation circuit connects CAN communication control module.This device is divided into two large divisions, and Part I is that RS232 signal is converted to CAN communication signal, and Part II is that CAN communication signal is converted to RS232.RS232 signal is converted to CAN communication signal section: single-chip microcomputer first receives RS232 data, and judges pattern and the address of changing CAN signal, then by the conversion of CAN chip, converts corresponding CAN communication signal to.CAN communication signal is converted to RS232:CAN data first by CAN physical transformation circuit, is then sent to single-chip microcomputer, and single-chip microcomputer reads corresponding data bit and carries out data time-out and judges, finally converts CAN communication signal to RS232 communication signal.System can be divided into RS232 data transmission module, STC12C5608AD single-chip microcomputer main control module, CAN physical transformation circuit, CAN communication control module, and physical relationship as shown in Figure 1.
RS232 data transmission module mainly contain two large divisions's function, Part I carries out data communication with extraneous serial port terminal, and the data received are sent on single-chip microcomputer, Part II is that the serial data sent by single-chip microcomputer is sent to extraneous serial port terminal.To realize 0.1M---the serial data transmission of any distance between 10M.
MAX232A chip is powered by direct current 5V, has two passage serial ports and exports, can change two-way RS232 communication signal simultaneously.In the design, we only adopt first via ALT-CH alternate channel.R1OUT port in MAX232A is connected with the RXD port in STC12C5608AD, and the R1IN port in MAX232A is connected with the TXD port in STC12C5608AD, namely constitutes the serial data link of MAX232 and STC12C5608AD.And only to connect these two ports be to realize serial communication function completely, also must add the minimum system of MAX232A, RS232 data transmission module is just calculated and is really realized its serial data transfer function.The minimum system of MAX232A connects as shown in Figure 3.
Wherein CAN communication control module is primarily of interface management logic device, information buffer, acceptance fitration, bit stream processor, bit timing logic, mismanage logic device composition, information buffer comprises transmission buffer and reception buffer, described interface management logic device is link information buffer, bit stream processor and bit timing logic respectively, transmission buffer connection bit stream handle in information buffer, bit stream processor connects acceptance fitration, and acceptance fitration connects reception buffer and mismanage logic device respectively.Restorer and oscillator is provided with in CAN communication control module.Reset is the initialization operation of single-chip microcomputer, only need add that the high level being greater than 2 machine cycles just can make monolithic processor resetting to the reset pin RST of single-chip microcomputer.As shown in Figure 2.
Although the utility model has illustrated by reference to preferred embodiment and has described, those skilled in the art should understand, and in the scope of claims, can do the various change in form and details.
Claims (4)
1. a CAN protocol conversion equipment, comprise RS232 data transmission module, it is characterized in that: described RS232 data transmission module is connected with STC12C5608AD single-chip microcomputer main control module, STC12C5608AD single-chip microcomputer main control module connects CAN physical transformation circuit, and CAN physical transformation circuit connects CAN communication control module.
2. CAN protocol conversion equipment according to claim 1, it is characterized in that: described CAN communication control module is primarily of interface management logic device, information buffer, acceptance fitration, bit stream processor, bit timing logic, mismanage logic device forms, information buffer comprises transmission buffer and reception buffer, described interface management logic device is link information buffer respectively, bit stream processor and bit timing logic, transmission buffer connection bit stream handle in information buffer, bit stream processor connects acceptance fitration, acceptance fitration connects reception buffer and mismanage logic device respectively.
3. CAN protocol conversion equipment according to claim 2, is characterized in that: be provided with restorer in described CAN communication control module.
4. CAN protocol conversion equipment according to claim 1, is characterized in that: be provided with oscillator in described CAN communication control module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201520843800.XU CN204993440U (en) | 2015-10-28 | 2015-10-28 | Can protocol conversion device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201520843800.XU CN204993440U (en) | 2015-10-28 | 2015-10-28 | Can protocol conversion device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN204993440U true CN204993440U (en) | 2016-01-20 |
Family
ID=55127759
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201520843800.XU Expired - Fee Related CN204993440U (en) | 2015-10-28 | 2015-10-28 | Can protocol conversion device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN204993440U (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107544328A (en) * | 2017-09-06 | 2018-01-05 | 天津大学 | CAN controller chip interface serialization device |
CN109725575A (en) * | 2018-12-27 | 2019-05-07 | 南京熊猫电子股份有限公司 | The application system of compatible adaptive various field industrial bus communication |
-
2015
- 2015-10-28 CN CN201520843800.XU patent/CN204993440U/en not_active Expired - Fee Related
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107544328A (en) * | 2017-09-06 | 2018-01-05 | 天津大学 | CAN controller chip interface serialization device |
CN109725575A (en) * | 2018-12-27 | 2019-05-07 | 南京熊猫电子股份有限公司 | The application system of compatible adaptive various field industrial bus communication |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN202084028U (en) | Modularized multi-serial port expanding device | |
CN101087235A (en) | A FPGA-based multi-functional communication interface conversion device and method | |
CN103218337B (en) | Based on wishbone bus realize main and master and slave with from the SOC (system on a chip) communicated and method | |
CN110471872A (en) | One kind realizing M-LVDS bus data interactive system and method based on ZYNQ chip | |
CN102420877B (en) | Multi-mode high-speed intelligent asynchronous serial port communication module and realizing method thereof | |
CN203224621U (en) | Weather radar high-speed data transmission device based on PCI-E bus | |
CN202167015U (en) | Serial interface converting circuit | |
CN104679702B (en) | Multipath high-speed serial interface controller | |
CN104991880B (en) | A kind of FC AE ASM Communication Cards based on PCI E interfaces | |
CN105261328A (en) | ARM and FPGA-based LED display screen control system | |
CN204993440U (en) | Can protocol conversion device | |
CN204423111U (en) | A kind of SOC (system on a chip) be applied in intelligent grid concentrator | |
CN101106504A (en) | Distributed communication system for intelligent independent robot based on CAN bus | |
JP4022442B2 (en) | Control method of fieldbus interface board | |
CN114153775B (en) | FlexRay controller based on AXI bus | |
CN107436851A (en) | The line shielding system of Serial Peripheral Interface (SPI) four and its control method | |
CN201378851Y (en) | CCD image data collecting device | |
CN102158400B (en) | Communication interface of space-based route switching system and space-based route switching system | |
CN201150103Y (en) | Access machine for city monitoring alarm networking system | |
CN101464844B (en) | Control method and bus interface of RAM use right | |
CN103218325B (en) | Based on SJA1000 Interface IP Core and the control method thereof of PLB bus | |
CN114338837A (en) | HDLC communication conversion controller based on ZYNQ | |
CN203084719U (en) | SJA1000 interface IP core based on processor local bus (PLB) | |
CN105589824A (en) | Multi-configuration manner USB/RS232-CAN converting and debugging device | |
Luo | Wireless transmission of RS232 interface signal based on ZigBee |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160120 Termination date: 20161028 |
|
CF01 | Termination of patent right due to non-payment of annual fee |