CN114374578A - Data transmission system compatible with serial port communication and CAN communication for engineering machinery - Google Patents
Data transmission system compatible with serial port communication and CAN communication for engineering machinery Download PDFInfo
- Publication number
- CN114374578A CN114374578A CN202111611857.3A CN202111611857A CN114374578A CN 114374578 A CN114374578 A CN 114374578A CN 202111611857 A CN202111611857 A CN 202111611857A CN 114374578 A CN114374578 A CN 114374578A
- Authority
- CN
- China
- Prior art keywords
- communication
- serial
- serial port
- transceiver
- communication interface
- 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
- 230000006854 communication Effects 0.000 title claims abstract description 98
- 238000004891 communication Methods 0.000 title claims abstract description 96
- 230000005540 biological transmission Effects 0.000 title claims abstract description 17
- 230000007547 defect Effects 0.000 abstract description 2
- 238000000034 method Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40006—Architecture of a communication node
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40006—Architecture of a communication node
- H04L12/40013—Details regarding a bus controller
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40215—Controller Area Network CAN
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Systems (AREA)
Abstract
The invention discloses a data transmission system compatible with serial communication and CAN communication for engineering machinery, which belongs to the field of control terminals and comprises communication nodes; MCU and CAN transceivers are arranged in the communication nodes; the MCU outputs two communication interfaces, namely a serial communication interface and a CAN communication interface; the serial port communication interface comprises a serial port Rx and a serial port Tx, and the CAN communication interface comprises a receiving CANRx and a sending CANTx; and the communication node is connected with the communication node through a CAN bus. The invention increases the expandability of the bus, solves the defect of limited serial communication transmission distance and solves the problem of easy damage of a serial communication interface chip; mode switching of serial communication and CAN communication is achieved through the control module, current serial communication CAN be achieved, and expansion of subsequent CAN communication CAN be compatible.
Description
Technical Field
The invention relates to the field of control terminals, in particular to a data transmission system compatible with serial port communication and CAN communication for engineering machinery.
Background
For a long time, the engineering machinery has a severe use environment, low product yield, long product verification period, dispersed use scenes of the engineering machinery and high after-sale service cost, so that the reliability requirement of the engineering machinery on the product is very high, the product iteration and updating are slow compared with those of other industries, and the technology is relatively lagged behind. The traditional serial communication mode has many defects, such as higher level value of an interface signal and easy damage of an interface circuit chip; the anti-interference capability is not strong, and the transmission distance is limited, and is usually within 15 meters. At present, engineering machinery faces the requirement of industrial upgrading, a plurality of CAN communication electric control products appear, and the original products are difficult to adapt to serial port communication and CAN communication simultaneously.
Disclosure of Invention
The invention aims to provide a data transmission system compatible with serial communication and CAN communication for engineering machinery, which has high anti-interference and reliable performance.
The purpose of the invention is realized as follows: a data transmission system compatible with serial communication and CAN communication for engineering machinery comprises a communication node; MCU and CAN transceivers are arranged in the communication nodes; the MCU outputs two communication interfaces, namely a serial communication interface and a CAN communication interface; the serial port communication interface comprises a serial port Rx and a serial port Tx, and the CAN communication interface comprises a receiving CANRx and a sending CANTx; and the communication node is connected with the communication node through a CAN bus.
Preferably, the MCU transceiver controls the four control tubes S1, S2, S3 and S4 to be turned on and off by control signals; when the control signal is 1, S1 and S3 are conducted, a serial port Rx and a serial port Tx are respectively connected to a sending end and a receiving end of the CAN transceiver, and serial port data are sent and received through the CAN transceiver; when the control signal is 0, S2 and S4 are conducted, the CANRx and the CANTx are respectively connected to the transmitting end and the receiving end of the CAN transceiver, and CAN bus data are transmitted and received through the CAN transceiver. The communication node 2 CAN access the serial port communication interface or the CAN communication interface into the CAN transceiver to realize communication with the communication node 1.
Preferably, when the CAN transceiver Txd is at a high level, the output stage NMOS and PMOS are turned off, CANH and CANL output a voltage value of 2.5V by the combination of the middle constant current source and the resistor, and the CAN bus is in an invisible state: CANH-CANL ═ 0V.
Preferably, when the CAN transceiver Txd is at a low level, the output stage NMOS is turned on, and Vcc outputs a 3.5V voltage value at the CANH pin through the NMOS and the diode in combination with the constant current source; the output level PMOS is opened, the CANL outputs a voltage value of 1.5V, and the CAN bus is in a display state: CANH-CANL ═ 2V.
Compared with the prior art, the invention has the advantages that:
1. the remote transmission of serial devices such as serial instruments and meters is realized, and the transmission distance of hundreds of meters can be achieved;
2. the anti-interference capability of the serial port data transmission process is greatly improved, and the method is particularly suitable for places with complex electromagnetic interference and special equipment and operation scenes with high requirements on serial port communication;
3. the problems that the level value of a traditional serial communication interface signal is high and an interface circuit chip is easy to damage are solved, and the hardware reliability of serial communication is greatly improved;
4. automatically detecting a current communication mode in a power-on process; the communication of industrial instruments and meters can be adapted, and the communication of vehicle-mounted equipment can be compatible;
5. the vehicle-mounted terminal and the engineering mechanical equipment terminal can be accessed into the industrial standard equipment through reliable and stable serial communication, and the connection of the Internet of things is better realized.
Drawings
FIG. 1 is a schematic view of the flow structure of the present invention.
Fig. 2 is a schematic diagram of data transmission and reception processes of the CAN transceiver according to the present invention.
Fig. 3 is a schematic diagram of a CAN communication process according to the present invention.
Fig. 4 is a schematic diagram of a serial port communication process according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1-4, a data transmission system compatible with serial communication and CAN communication for engineering machinery includes a communication node; MCU and CAN transceivers are arranged in the communication nodes; the MCU outputs two communication interfaces which are a serial communication interface and a CAN communication interface; the serial port communication interface comprises a serial port Rx and a serial port Tx, and the CAN communication interface comprises a receiving CANRx and a sending CANTx; the communication node is connected with the communication node through a CAN bus.
The MCU transceiver controls the on and off of four control tubes S1, S2, S3 and S4 through control signals; when the control signal is 1, S1 and S3 are conducted, a serial port Rx and a serial port Tx are respectively connected to a sending end and a receiving end of the CAN transceiver, and serial port data are sent and received through the CAN transceiver; when the control signal is 0, S2 and S4 are conducted, the CANRx and the CANTx are respectively connected to the transmitting end and the receiving end of the CAN transceiver, and CAN bus data are transmitted and received through the CAN transceiver; the communication node 2 CAN access the serial port communication interface or the CAN communication interface into the CAN transceiver to realize communication with the communication node 1.
When the CAN transceiver Txd is at a high level, the NMOS and the PMOS of the output stage are closed, the CANH and the CANL output 2.5V voltage values through the combination of the middle constant current source and the resistor, and the CAN bus is in an invisible state: CANH-CANL ═ 0V.
When the CAN transceiver Txd is at a low level, the output stage NMOS is turned on, and Vcc outputs a 3.5V voltage value at a CANH pin through the NMOS and the diode and a constant current source; the output level PMOS is opened, the CANL outputs a voltage value of 1.5V, and the CAN bus is in a display state: CANH-CANL ═ 2V.
When the system is powered on, the communication node 1 firstly enables the CAN module and the serial port module; outputting the control signal as 0, and selecting a CAN communication mode by default; the MCU detects CAN data messages in real time, when CAN data are received, the current communication mode is judged to be a CAN bus mode, a control signal is kept to be 0, and CAN communication is normally carried out through a CAN transceiver; when the CAN data message is not received within a certain time, the control signal is output to be 1, a serial communication mode is selected, and the serial communication is normally communicated through the CAN transceiver, so that the power-on process is realized.
The present invention is not limited to the above-mentioned embodiments, and based on the technical solutions disclosed in the present invention, those skilled in the art can make some substitutions and modifications to some technical features without creative efforts according to the disclosed technical contents, and these substitutions and modifications are all within the protection scope of the present invention.
Claims (4)
1. The utility model provides a data transmission system of compatible serial communication and CAN communication for engineering machine tool which characterized in that: comprises a communication node; MCU and CAN transceivers are arranged in the communication nodes; the MCU outputs two communication interfaces, namely a serial communication interface and a CAN communication interface; the serial port communication interface comprises a serial port Rx and a serial port Tx, and the CAN communication interface comprises a receiving CANRx and a sending CANTx; and the communication node is connected with the communication node through a CAN bus.
2. The data transmission system compatible with serial communication and CAN communication for engineering machinery according to claim 1, characterized in that: the MCU transceiver controls the on and off of four control tubes S1, S2, S3 and S4 through control signals; when the control signal is 1, S1 and S3 are conducted, a serial port Rx and a serial port Tx are respectively connected to a sending end and a receiving end of the CAN transceiver, and serial port data are sent and received through the CAN transceiver; when the control signal is 0, S2 and S4 are conducted, the CANRx and the CANTx are respectively connected to the transmitting end and the receiving end of the CAN transceiver, and CAN bus data are transmitted and received through the CAN transceiver. The communication node 2 CAN access the serial port communication interface or the CAN communication interface into the CAN transceiver to realize communication with the communication node 1.
3. The data transmission system compatible with serial communication and CAN communication for engineering machinery according to claim 1, characterized in that: when the CAN transceiver Txd is at a high level, the NMOS and the PMOS of the output stage are closed, the CANH and the CANL output 2.5V voltage values through the combination of the middle constant current source and the resistor, and the CAN bus is in an invisible state: CANH-CANL ═ 0V.
4. The data transmission system compatible with serial communication and CAN communication for engineering machinery according to claim 1, characterized in that: when the CAN transceiver Txd is at a low level, the NMOS of the output stage is turned on, and the Vcc outputs a 3.5V voltage value at a CANH pin through the NMOS and the diode and combining with a constant current source; the output level PMOS is opened, the CANL outputs a voltage value of 1.5V, and the CAN bus is in a display state: CANH-CANL ═ 2V.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111611857.3A CN114374578A (en) | 2021-12-27 | 2021-12-27 | Data transmission system compatible with serial port communication and CAN communication for engineering machinery |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111611857.3A CN114374578A (en) | 2021-12-27 | 2021-12-27 | Data transmission system compatible with serial port communication and CAN communication for engineering machinery |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114374578A true CN114374578A (en) | 2022-04-19 |
Family
ID=81142129
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111611857.3A Pending CN114374578A (en) | 2021-12-27 | 2021-12-27 | Data transmission system compatible with serial port communication and CAN communication for engineering machinery |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114374578A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN204215234U (en) * | 2014-09-19 | 2015-03-18 | 王有闯 | CAN test macro |
CN206077440U (en) * | 2016-08-31 | 2017-04-05 | 天津七所高科技有限公司 | A kind of communication protocol converter |
CN208722030U (en) * | 2018-10-24 | 2019-04-09 | 天津金米特科技股份有限公司 | A kind of electric bicycle communication interface switching circuit |
CN209057229U (en) * | 2019-01-15 | 2019-07-02 | 北京爱泰联合科技有限公司 | A kind of CAN bus communication signal fiber transmission device |
CN111371661A (en) * | 2020-03-23 | 2020-07-03 | 许昌中科森尼瑞技术有限公司 | System and method for realizing communication of multiple monitoring backgrounds based on CAN bus |
-
2021
- 2021-12-27 CN CN202111611857.3A patent/CN114374578A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN204215234U (en) * | 2014-09-19 | 2015-03-18 | 王有闯 | CAN test macro |
CN206077440U (en) * | 2016-08-31 | 2017-04-05 | 天津七所高科技有限公司 | A kind of communication protocol converter |
CN208722030U (en) * | 2018-10-24 | 2019-04-09 | 天津金米特科技股份有限公司 | A kind of electric bicycle communication interface switching circuit |
CN209057229U (en) * | 2019-01-15 | 2019-07-02 | 北京爱泰联合科技有限公司 | A kind of CAN bus communication signal fiber transmission device |
CN111371661A (en) * | 2020-03-23 | 2020-07-03 | 许昌中科森尼瑞技术有限公司 | System and method for realizing communication of multiple monitoring backgrounds based on CAN bus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105141491B (en) | RS485 communication circuit and method for realizing spontaneous self-receiving | |
CN202872757U (en) | RS485 photoelectric communication conversion device | |
CN101813935B (en) | Non-polar field bus system and realization method | |
CN102169472B (en) | RS485 bus interface circuit | |
CN201557127U (en) | RS485 half-duplex transmit-receive automatic switch circuit | |
CN117040562B (en) | Full duplex transmitting and receiving circuit, serializer, deserializer and vehicle | |
CN101662369B (en) | Universal network adapter | |
CN114374578A (en) | Data transmission system compatible with serial port communication and CAN communication for engineering machinery | |
CN203722640U (en) | Electric loopback light module | |
CN101291230B (en) | Receiving apparatus with electricity saving function, and method thereof | |
CN211124025U (en) | Multi-protocol simulation simulator | |
CN209930254U (en) | Serial port self-sending and self-receiving control circuit | |
CN103312407B (en) | The high accuracy transmission method of time frequency signal between a kind of satellite borne equipment | |
CN108494889B (en) | Communication circuit based on I2C bus and debugging method | |
CN104683116B (en) | A kind of mining RS 485 isolates repeater | |
CN111404504A (en) | RS485 bus differential signal amplifier | |
CN219322401U (en) | Half-duplex optical communication module and multi-device communication system thereof | |
CN220913640U (en) | Communication protocol conversion device for CAN bus | |
CN220933481U (en) | Serial communication time-sharing multiplexing circuit | |
CN216697257U (en) | Single-wire asynchronous serial communication circuit realized by photoelectric coupler | |
US11146336B2 (en) | Media converter and method for operating a media converter | |
CN113055050B (en) | Wired communication circuit and wired communication system | |
CN220122954U (en) | MES system integrated output interface assembly | |
CN208836162U (en) | Double terminal telecommunication circuits | |
CN103051524A (en) | Signal processing method and gateway |
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 |