1 Table of contents Introduction ................................4 Operating Instructions for download ........................4 Intended use ................................4 Features and Applications ...........................5 5.1 Features .................................5 5.2 Applications ..............................5 Delivery content ..............................5 Description of symbols ............................5 Safety instructions ...............................6 8.1 General information ............................6 8.2 Handling .................................6 8.3 Operating environment ..........................6 8.4 Operation ...............................6 8.5 Connected devices ............................6...
Page 3
12 AT Command ..............................22 12.1 Enter AT command ............................23 12.2 Exit AT command ............................23 12.3 Query version ............................23 12.4 Restore default parameters ........................24 12.5 Echo settings .............................24 12.6 Serial port parameters ..........................25 12.7 Setting/Querying CAN Information ......................26 12.8 Setting/Querying Module Conversion Mode ....................26 12.9 Set/query the filtering mode of the CAN bus .....................27 12.10 Set/query frame header and frame end data ...................27 12.11 Setting/Querying Identification Parameters .....................28...
2 Introduction Dear customer, Thank you for purchasing this product. If there are any technical questions, please contact: www.conrad.com/contact 3 Operating Instructions for download Use the link www.conrad.com/downloads (alternatively scan the QR code) to download the complete operating in- structions (or new/current versions if available). Follow the instructions on the web page. 4 Intended use This product is a small intelligent protocol conversion product.
5 Features and Applications 5.1 Features Bidirectional conversion between CAN and RS485/RS232/RS422 different protocol data Support transparent conversion, transparent conversion with logo, protocol conversion, Modbus RTU conversion, custom protocol conversion Support RS485/RS232/RS422 interface parameter configuration Support AT command parameter configuration Support the configuration of upper computer parameters Support AT command and host computer to restore factory settings With power indicator, status indicator and other status indicators...
8 Safety instructions Read the operating instructions carefully and especially observe the safety information. If you do not follow the safety instructions and information on proper handling in this manual, we assume no liability for any resulting personal injury or damage to property. Such cases will invalidate the warranty/guarantee.
9 Product overview Name Description RS232 D-SUB connector for RS232 Power LED CAN bus error LED DATA Status LED for CAN bus data transmission Serial port receiving LED Serial port sending LED Positive terminal of power supply Negative terminal of power supply (GND) Earth (GND) for RS485/RS422 T+(A) RS422 data bus T+/RS485 data bus A...
10.4 CAN connection method The linear topology is the most commonly used in the CAN bus wiring specification. That is, the two lines of the main trunk branch out branch lines to each node. Both ends of the backbone are equipped with suitable terminal resistors to achieve impedance matching (usually 120 ohms within 2km).
11.1.1 Transparent conversion mode Transparent conversion: The converter converts the bus data in one format as it is to the data format of another bus without adding or modifying the data. In this way, the data format is exchanged without changing the data content. For the bus at both ends, the converter is like “transparent”, so it is a transparent conversion.
Page 12
Convert serial frame into CAN message (transparent mode) Serial frame CAN Message 1 CAN Message 2 0x01 Frame information 0x08 0x04 0x02 0x02 0x02 Frame ID 0x03 0x13 0x13 0x04 0x01 0x09 0x05 0x02 0x0A 0x06 0x03 0x0B 0x07 0x04 0x0C Data field 0x08...
Conversion example: The CAN message “frame information” is enabled and “frame ID” is enabled in this example configuration. Frame ID1: 0x123, frame type: standard frame, frame type: data frame. Conversion direction: two-way. The data is 0x12, 0x34, 0x56, 0x78, 0xab, 0xcd, 0xef, 0xff. The data before and after conversion is as follows: CAN message is converted into serial frame (transparent mode) CAN Message Serial frame...
Page 14
Serial frame is converted into CAN message (transparent transmission with identification) Serial frame CAN Message CAN Message x Data 1(ID1) Frame information User configuration User configuration Data 2(ID0) Frame ID Data 1(ID1) Data 1(ID1) Data 3 Data 2(ID0) Data 2(ID0) Data 4 Data field Data 3...
Page 15
CAN message to serial frame For CAN messages, a frame is immediately forwarded after a frame is received. Each time it is forwarded, the ID in the received CAN message is corresponding to the position and length of the CAN frame ID configured in advance in the serial frame.
11.1.3 Protocol mode The fixed 13 bytes of CAN format conversion represent a CAN frame data, and the content of 13 bytes includes CAN frame information + frame ID + frame data. In this conversion mode, the CANID set is invalid, because the identifier (frame ID) sent at this time is filled with the frame ID data in the serial frame of the above format.
Conversion example: Serial frame to CAN message (protocol mode). CAN configuration parameters configured in this example. Conversion mode: protocol mode, frame type: extended frame, conversion direction: two-way. Frame ID: No need to configure, the data before and after conversion is as follows. Serial frame to CAN message (protocol mode) Serial frame CAN Message...
Page 18
Segmented transmission protocol A method for segmenting and reorganizing information with a length greater than the maximum data length of a CAN message. In the case of a CAN message, “Data 1” is used to segment identification data. The format of the segment message is as follows, and the content of the transmitted Modbus protocol is sufficient.
Page 19
Convert serial frame to can message The serial interface adopts the standard Modbus RTU protocol, so the user frame only needs to comply with this protocol. If the transmitted frame does not conform to the Modbus RTU format, the module will discard the received frame without converting it.
Conversion example: Modbus RTU Serial CAN Message CAN Message CAN Message Frame frame Address field Frame Information function code Frame ID3 Data field Frame ID3 Frame ID1 Frame ID0 Frame ID Frame ID Data 1 Data 2 Data 3 Data 4 CRC Field Data 5 Data 6...
Page 21
Note: In the custom protocol conversion, regardless of the data length contained in the data field of each frame, the frame information content is fixed. It is fixed as standard frame (0x00) or extended frame (0x80). The frame ID needs to conform to the ID range, otherwise the ID may be wrong. Serial frame CAN Message Serial frame header...
Conversion example: Serial frame to CAN message (custom protocol). CAN configuration parameters configured in this example. Conversion mode: custom protocol, frame header AA, frame end: FF, conversion direction: bidirectional. Frame ID: No need to configure, Frame type: No need to configure, the data before and after conversion is as follows. CAN message to serial frame: the reverse form of serial frame to CAN message.
Default parameters: Parameter category parameter name Parameter value Related instructions Baud rate 115200 digit Serial port AT+UART Stop bit Parity check None 12.1 Enter AT command Command Function Enter AT command mode Send Back <CR><LF>+OK<CR><LF> Example: Send: +++ // no line break Send: AT // no line break Response: <CR><LF>AT MODE<CR><LF>...
12.4 Restore default parameters Command RESTORE Function Restore the default parameters of the device (factory parameters) Setting AT+RESTORE<CR><LF> Back <CR><LF>+OK<CR><LF> Remark Need to restart the device for the parameters to take effect Example: Send: AT+RESTORE \r\n Response: <CR><LF>+OK<CR><LF> 12.5 Echo settings Command Function User command echo setting/query...
12.6 Serial port parameters Command UART Function Set the serial communication parameters of the module Setting AT+UART=baud,date,stop,parity,flowcontrol Back <CR><LF>+OK=<snString><CR><LF> Inquire AT+UART? Parameter Baud (Serial port baud rate: 600, 1200, 2400, 4800, 9600, 14400, 19200, 38400, 43000, 57600, 76800, 115200, 128000, 230400, 256000, 460800, 921600 : bps date: 8 stop: 1, 2 parity: NONE, EVEN, ODD.
12.9 Set/query the filtering mode of the CAN bus Command CANLT Function Set/query the filtering method of CAN bus Setting AT+CANLT =mode<CR><LF> Back <CR><LF>+OK<CR><LF> Inquire AT+CANLT? Parameter mode (Filter mode): OFF(Receive all functions), ETF(Only receive extended frames), NTF(Only receive standard frames), USER (customize) Example: set up: Send: AT+MODE=MODBUS\r\n...
12.11 Setting/Querying Identification Parameters Command RANDOM Function Set/query query identification parameters Setting AT+RANDOM = idLength, idLocation <CR><LF> Back <CR><LF>+OK<CR><LF> Inquire AT+RANDOM? Parameter id Length (Frame header ID length), idLocation (Frame ID position), Data range: length range 0-4 position 0-7 Example: Settings: Set the frame ID length to 4, position 2 Send: AT+RANDOM=4,2 \r\n Response: <CR><LF>+OK<CR><LF>...
12.13 Set/query transmission direction Command DIRECTION Function Set/query frame ID frame information enable Setting AT+DIRECTION= parameter<CR><LF> Back <CR><LF>+OK<CR><LF> Inquire AT+ DIRECTION? Parameter parameter (direction parameter), UART-CAN (serial port to can). CAN-UART (CAN to serial port) BOTHWAY (two-way) Example: Setting: Only convert serial port data to can bus Send: AT+DIRECTION=UART-CAN\r\n Response: <CR><LF>+OK<CR><LF>...
12.15 Delete the filter parameters that have been set Command DELFILTER Function Set/query filter frame information Setting AT+DELFILTER=id_type,date<CR><LF> Back <CR><LF>+OK<CR><LF> Inquire AT+FILTER? Parameter type (frame type), date (frame data) NDTF: Represents this command as a standard ID, EDTF represents this command as an extended frame ID.
15 Disposal This symbol must appear on any electrical and electronic equipment placed on the EU market. This symbol indicates that this device should not be disposed of as unsorted municipal waste at the end of its service life. Owners of WEEE (Waste from Electrical and Electronic Equipment) shall dispose of it separately from unsorted municipal waste.
Page 32
This is a publication by Conrad Electronic SE, Klaus-Conrad-Str. 1, D-92240 Hirschau (www.conrad.com). All rights including translation reserved. Reproduction by any method, e.g. photocopy, microfilming, or the capture in electronic data processing systems require the prior written approval by the editor. Reprinting, also in part, is prohibited. This publication represent the technical status at the time of printing.
Need help?
Do you have a question about the 2973411 and is the answer not in the manual?
Questions and answers