CN201910814U - General data quick exchange device for serial port communication and CAN (controller area network) bus communication - Google Patents
General data quick exchange device for serial port communication and CAN (controller area network) bus communication Download PDFInfo
- Publication number
- CN201910814U CN201910814U CN2010206261712U CN201020626171U CN201910814U CN 201910814 U CN201910814 U CN 201910814U CN 2010206261712 U CN2010206261712 U CN 2010206261712U CN 201020626171 U CN201020626171 U CN 201020626171U CN 201910814 U CN201910814 U CN 201910814U
- Authority
- CN
- China
- Prior art keywords
- communication
- bus
- microcontroller
- transceiver
- exchange device
- 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
Images
Abstract
The utility model relates to a general data quick exchange device for serial port communication and CAN (controller area network) bus communication, wherein an RS232 interface end is connected to an RS232 level converter; the RS232 level converter is connected to a micro controller; the micro controller is connected to a photoelectric isolator; the photoelectric isolator is connected to a CAN transceiver; the CAN transceiver is connected to a CAN bus; a signal at the RS232 interface end is input into the microcontroller after being converted into a TTL (transistor-transistor logic) level through the RS232 level converter; the microcontroller is used for extracting information and then sending the information to the CAN dispatcher through the photoelectric isolator; and the information is sent to the CAN bus by the CAN transceiver. By using the device, the RS232 communication network can be converted into the CAN communication network, thereby conveniently meeting the demands of an RS232 multi-point network and remote communication and realizing the remote CAN bus communication without changing the original serial port communication.
Description
Technical field
The utility model relates to the conventional data quick exchange device of a kind of serial communication and CAN bus communication.
Background technology
Serial ports RS232 or RS485 interface are adopted in the communication between the industrial equipment at present mostly, but along with the continuous progress of science and technology, serial communication can not satisfy the objective requirement of people to communication speed and communication distance.Only about about 15 meters and anti-interference relatively poor of RS232 at point-to-point communication and communication distance, release the RS485 communication of differential configuration subsequently with anti-common mode disturbances, can realize one-to-many communication, bus efficiency is low, system real time is poor, communication reliability is low, the network debugging is complicated, use shortcomings such as dumb but itself exist.
Summary of the invention
The purpose of this utility model is to overcome the deficiency that prior art exists, and the conventional data quick exchange device of a kind of serial communication and CAN bus communication is provided.
The purpose of this utility model is achieved through the following technical solutions:
The conventional data quick exchange device of serial communication and CAN bus communication, characteristics are: the RS232 interface end is connected with the RS232 level translator, described RS232 level translator is connected to microcontroller, described microcontroller connects photoisolator, described photoisolator connects the CAN transceiver, and described CAN transceiver accesses to the CAN bus; RS232 interface end signal changes into Transistor-Transistor Logic level through the RS232 level translator and is input to microcontroller, and microcontroller after photoisolator is delivered to the CAN transceiver, sends to CAN bus by the CAN transceiver with information extraction.
Further, the conventional data quick exchange device of above-mentioned serial communication and CAN bus communication, wherein, described microcontroller is provided with the CAN control unit interface.
The substantive distinguishing features of technical solutions of the utility model and progressive being mainly reflected in:
The utility model can convert the RS232 communication network to the CAN communication network, realizes the requirement of RS232 multidrop network, telecommunication easily.Can realize long-range CAN bus communication under the prerequisite that does not change original serial communication, there is more wide application in the system that makes.
Description of drawings
Below in conjunction with accompanying drawing technical solutions of the utility model are described further:
Fig. 1: organigram of the present utility model.
The implication of each Reference numeral sees the following form among the figure:
Embodiment
Superiority based on the CAN bus communication is that its dcs realizes that real-time between each node, reliable, high performance data communication provides powerful technical support, have good flexibility and transmission rate, be adapted at using in the distributing industrial control system.In the CAN system between the node with the form communication of message, message has 5 types: Frame, remote frame, erroneous frame, overload frame and frame period.Every kind of frame all has due set form, wherein Frame and remote frame close association in application.The CAN controller can carry out filtering match choosing to message, makes the valid data message information enter the reception buffering area, thereby is received and send to application program by node.
Serial communication and CAN bus communication are two kinds of diverse transmission meanss.Be that the transfer of data or the voltage of logic level represent it all is different, the purpose of the utility model design is exactly the realization conversion between RS232 and CAN bus protocol, realizes the transmitted in both directions of data.
As shown in Figure 1, the conventional data quick exchange device of serial communication and CAN bus communication, RS232 interface end 1 is connected with RS232 level translator 2, RS232 level translator 2 is connected to microcontroller 3, microcontroller 3 is provided with the CAN control unit interface, microcontroller 3 connects photoisolator 4, and photoisolator 4 connects CAN transceiver 5, and CAN transceiver 5 accesses to CAN bus 6.The signal of RS232 interface end 1 changes into Transistor-Transistor Logic level through RS232 level translator 2, be directly inputted to the universal asynchronous receiver and transmitter of microcontroller 3, microcontroller sends the CAN controller to and delivers to CAN transceiver 5 via photoisolator 4 after with information extraction and re-sends to CAN bus 6.Microcontroller 3 is control centres of whole transition of communications, the two-way communication of control RS232 and CAN bus.
Microcontroller 3 has the CAN control unit interface, can reduce design size, reduces power consumption, improves reliability, reduce cost.The serial ports level is changed into Transistor-Transistor Logic level to be connected with computer, preset relevant parameters such as CAN bus communication data message structure, type of message, heading, traffic rate by serial communication, make it meet the design instructions for use, make product have good versatility, improve the practicality of product, satisfy different occasion requirements.
The design comprises that mainly serial ports initialization, CAN interface initialization, microprocessor serial ports receive interrupt routine, the microprocessor serial ports sends interrupt routine, microprocessor CAN Data Receiving program, exception handler etc.
The utility model can convert the RS232 communication network to the CAN communication network, can realize the requirement of RS232 multidrop network, telecommunication easily.Can realize long-range CAN bus communication under the prerequisite that does not change original serial communication, there is more wide application in the system that makes.
It is emphasized that: above only is preferred embodiment of the present utility model, be not that the utility model is done any pro forma restriction, every foundation technical spirit of the present utility model all still belongs in the scope of technical solutions of the utility model any simple modification, equivalent variations and modification that above embodiment did.
Claims (2)
1. the conventional data quick exchange device of serial communication and CAN bus communication, it is characterized in that: the RS232 interface end is connected with the RS232 level translator, described RS232 level translator is connected to microcontroller, described microcontroller connects photoisolator, described photoisolator connects the CAN transceiver, and described CAN transceiver accesses to the CAN bus; RS232 interface end signal changes into Transistor-Transistor Logic level through the RS232 level translator and is input to microcontroller, and microcontroller after photoisolator is delivered to the CAN transceiver, sends to CAN bus by the CAN transceiver with information extraction.
2. the conventional data quick exchange device of serial communication according to claim 1 and CAN bus communication, it is characterized in that: described microcontroller is provided with the CAN control unit interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010206261712U CN201910814U (en) | 2010-11-25 | 2010-11-25 | General data quick exchange device for serial port communication and CAN (controller area network) bus communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010206261712U CN201910814U (en) | 2010-11-25 | 2010-11-25 | General data quick exchange device for serial port communication and CAN (controller area network) bus communication |
Publications (1)
Publication Number | Publication Date |
---|---|
CN201910814U true CN201910814U (en) | 2011-07-27 |
Family
ID=44303012
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010206261712U Expired - Fee Related CN201910814U (en) | 2010-11-25 | 2010-11-25 | General data quick exchange device for serial port communication and CAN (controller area network) bus communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN201910814U (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103199853A (en) * | 2013-03-19 | 2013-07-10 | 启东文鑫电子有限公司 | Optoelectronic isolation protector |
CN111628920A (en) * | 2020-05-28 | 2020-09-04 | 上海辰瞻医疗科技有限公司 | Intercommunication method between multiple serial interface devices |
-
2010
- 2010-11-25 CN CN2010206261712U patent/CN201910814U/en not_active Expired - Fee Related
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103199853A (en) * | 2013-03-19 | 2013-07-10 | 启东文鑫电子有限公司 | Optoelectronic isolation protector |
CN111628920A (en) * | 2020-05-28 | 2020-09-04 | 上海辰瞻医疗科技有限公司 | Intercommunication method between multiple serial interface devices |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104142900A (en) | Communication interface converting device | |
CN201839319U (en) | Plc remote diagnosis control system | |
CN107204992B (en) | Multifunctional serial server and data transmission method | |
CN201910814U (en) | General data quick exchange device for serial port communication and CAN (controller area network) bus communication | |
CN207968522U (en) | A kind of RS485 bus driving circuits for realizing multi-host communication mode | |
CN102014032A (en) | General data quick exchange device for serial port communication and CAN bus communication | |
CN205920595U (en) | Long -range accuse system of copying of intelligence water gauge with high commonality | |
CN201199700Y (en) | Information exchanger | |
CN204044808U (en) | The device that a kind of RS232 of realization, RS485 and USB turn mutually | |
CN103873330A (en) | RS422-CAN bus converter | |
CN202111701U (en) | Bluetooth data USB transmitter | |
CN202339635U (en) | Locomotive air conditioning equipment infrared converter with remote control function | |
CN202077022U (en) | 485-bus Bluetooth conversion device | |
CN204029145U (en) | A kind of photovoltaic data acquisition transmission communication equipment | |
CN203734667U (en) | Bluetooth bridge for realizing long-distance data communication | |
CN202975787U (en) | Acquisition and control platform for Internet of Things | |
CN209168387U (en) | A kind of remote relay controller terminal based on NB-IoT | |
CN202210806U (en) | Bus communication repeater | |
CN209184617U (en) | A kind of CANFD bus data radio transmitting device | |
CN202013571U (en) | Bluetooth conversion card of controller area network (CAN) bus | |
CN202282867U (en) | Wireless Ad Hoc network node of M-Bus system | |
CN208820801U (en) | A kind of rs 232 serial interface signal conversion equipment based on ARM | |
CN202334588U (en) | Communication protocol conversion device | |
CN202309215U (en) | Interface expanding apparatus applicable to detection of distribution automation terminal unit | |
CN203340078U (en) | ARM and network interface communication module of a remote terminal modem |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110727 Termination date: 20131125 |