Ebyte ECAN-101 Manual
Ebyte ECAN-101 Manual

Ebyte ECAN-101 Manual

Intelligent protocol converter

Advertisement

Quick Links

ECAN-101 Intelligent Protocol Converter

Advertisement

Table of Contents
loading

Summary of Contents for Ebyte ECAN-101

  • Page 1 ECAN-101 Intelligent Protocol Converter...
  • Page 2: Table Of Contents

    contents 1. OVERVIEW ..............................3 1.1 Introduction ................................4 1.2 Features and functions ............................4 1.3 Application Scenario .............................. 4 2. PRODUCT SPECIFICATIONS AND CHARACTERISTICS ............4 2.1 Basic parameters ..............................5 2.2 Factory default parameters ............................5 3. QUICK START ............................6 Software preparation: You can download "Serial Port Assistant (X-COM)" in the "Related Downloads" of the official product website and configure the host computer ....................6 3.1 Connecting devices ..............................
  • Page 3 6.12 Set/Query Identity Parameters ..........................35 6.13 Set/query transmission direction ..........................36 6.14 Set/Query Filter Parameters ..........................36 6.15 Delete filter parameters that have already been set .................... 36 REVISION HISTORY ..........................38 ABOUT US ..............................38 Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 4: Overview

    Modbus RTU conversion, and customization (user). In MODBUS mode, It can play the role of a single CAN interface replacing multiple 485 lines. At the same time, the ECAN-101 intelligent protocol converter has the characteristics of compact size and easy installation.
  • Page 5: Basic Parameters

    Serial Port Baud Rate 115200 bps Parity check none Data bits RS485 Stop bit Flow control close 100K bps CAN Baud Rate 0x0000000 CAN ID Default working mode Receive all data types Transparent conversion mode Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 6: Quick Start

    Software preparation: You can download "Serial Port Assistant (X-COM)" in the "Related Downloads" of the official product website and configure the host computer 3.1 Connecting devices Here, using this device as ECAN-U01an example to demonstrate how to get started quickly. Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 7 CAN-L is connected to CAN-L, and CAN-H is connected to CAN-H. The USB end of ECAN-U01 is directly connected to the computer. Note: When using the USB to RS485 converter for the first time, you need to install software and drivers. Please consult the relevant manufacturer for detailed usage.. Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 8: Rs485 Connection Method

    For example, if the characteristic impedance of a twisted pair is 120 Ω, the two endpoints on the bus should also integrate a 120 Ω terminal resistance Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 9: Device Transparent Debugging

    (baud rate 115200, 8 data bits, no parity bit, 1 stop bit); Open ECAN-U01 to debug the upper computer and set the CAN baud rate to 100K (ECAN-101 defaults to the factory CAN baud rate);...
  • Page 10: Upper Computer Configuration

    1. To change the device parameters, open ECAN-101 to configure the upper computer, select the default serial port parameters (baud rate 115200, 8 data bits, no parity bit, 1 stop bit), and click to open the serial port.
  • Page 11 3. The device's "serial port parameter settings", "CAN bus settings", "conversion direction", "conversion mode", "device filtering settings" and other parameters can be changed according to different application scenarios. After modifying the parameters, click Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 12 "Check bit", and "Stop bit". The baud rate range is: 6001200240048009601440019200384004300057600, 76800, 115200, 128000, 230400, 256000, 460800 units: bps; Inspection bits: odd parity (ODD), bits: 1, 2. even parity (EVEN), and no parity (NONE); Stop Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 13 The unit is bps. If the baud rate set is inconsistent with the bus baud rate of the access module, normal communication conversion will not be possible. Frame category: NDTF (standard frame), EDTF (extended frame), Frame ID: 0-7FF (standard frame), 0-1FFFFFFF (extended frame) Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 14 (protocol mode), USER (custom protocol), MODBUS (MODBUS). The protocol rules for each mode are different, as described in Chapter 5. Device filtering settings: There are four filtering methods: 1. Receive all data 2. Only receive extended frames 3. Only Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 15 The first three options only require configuration selection, while the last user defined filter can add 14 sets of custom ID filters. Click "Add Information", add the desired filtering ID in the left information box, and then click "Write" to complete. Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 16: Introduction To Hardware Parameter Design

    CAN_ L CAN communication interface CAN_ H CAN communication interface CAN_ G CAN grounding 120 ohm matching resistor positive, short circuited R120- for use 120 ohms matching resistance negative, short circuited to R120+for use Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 17: Dimensional Drawing

    DLC3~DLC0: Identify the data length of the CAN message; 5.1 Data conversion method The ECAN-101 device supports five data conversion methods: transparent conversion, transparent tape identification conversion, protocol conversion, MODBUS conversion, and custom protocol conversion. Supports bidirectional conversion between CAN and RS485.
  • Page 18 ECAN-101 User Manual The ECAN-101 device can convert valid data received from the CAN bus intact to the RS485 serial bus output. Similarly, the device can also convert the valid data received from the RS485 serial bus to the CAN bus output intact. Realize transparent conversion between RS485 and CAN.
  • Page 19 0x08 0x08 Frame 0x01 0x01 0x23 0x23 0x12 0x12 0x34 0x34 0x56 0x56 Data 0x78 0x78 Domain 0xAB 0xAB 0xCD 0xCD 0xEF 0xEF 0xFF 0xFF Converting CAN messages into serial frames (transparent mode) Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 20: Transparent Tape Identification Mode

    5.1.2 Transparent tape identification mode Transparent band identification conversion is a special use of transparent conversion. In the serial frame, the ID information of the CAN message can be sent with different IDs as needed. It is beneficial for users to establish their own network more conveniently through modules and use customized application protocols.
  • Page 21 0E 0F 10. From this, it can be seen that the device has already extracted the second bit in the serial frame, with the last three bits 03 04 05 as frame IDs, The remaining data is repackaged as CAN frame data domain. Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 22 The CAN configuration parameters for this example configuration. Conversion mode: Transparent tape identification conversion, starting address 2, length 3. Frame type: extended frame, frame type: data frame. Conversion direction: bidirectional. The upper computer configuration interface is as follows: Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 23: Protocol Mode

    The configured frame type is also invalid, and the frame type is determined by the frame information in the format serial frame. The format is as follows: Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 24 Conversion direction: bidirectional. Frame ID: No configuration required; The configuration of the upper computer is as follows: The schematic diagram of the data before and after conversion is as follows: Serial frame CAN message Frame information Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 25: Modbus Mode

    Modbus authentication and forwarding, rather than the master or slave of Modbus. Users can communicate according to the Modbus protocol. Segmented transmission protocol: Bit number Frame DLC (Data Length) information Frame ID3 ID.28-ID.24 Frame ID2 ID.23-ID.16 Frame ID1 ID.15-ID.8 Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 26 (CRC16) after receiving a frame for analysis, converts it into a Modbus RTU frame, and sends it to the serial bus. If the received data does not comply with the segmentation protocol, the set of data will be discarded and not converted. Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 27 Frame 1 CAN message: 81 01 03 14 00 0A 00 00 Frame 2 CAN message: a2 00 00 00 14 00 00 00 Frame 3 CAN message: a3 00 00 17 00 2C 00 37 Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 28: Custom Protocol Mode

    Frame information Frame ID0 information Data 1 Frame ID1 Frame ID Data 2 Frame ID0 Data 0 Data 3 Data Data 1 Data 4 Domain Data 5 Data Data 6 Data 6 Domain Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 29 The CAN configuration parameters for this example configuration. Conversion mode: custom protocol, frame header AA, frame footer FF, conversion direction: bidirectional. Frame ID: No configuration required, frame category: No configuration required, upper computer configuration is as follows: Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 30: At Instruction

    2. Unless otherwise specified, all subsequent AT instruction operations need to add "/r/n". 3. All examples were conducted with the command echo function turned off. 4. After setting the parameters, it is necessary to restart the device to ensure that the set parameters take effect. Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 31: Enter At Command

    Exit AT instruction mode set up AT+EXAT<CR><LF> return <CR><LF>+OK<CR><LF> [Example] Sending: AT+EXAT/r/n Response:<CR><LF>+OK<CR><LF> 6.3 Query version instructions VER? function Query firmware version query AT+VER< CR><LF> return <CR><LF>VER=x.x<CR><LF> Remarks x. X version number Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 32: Restore Default Parameters

    AT+UART=baud, date, stop, party, flowcontrol return <CR><LF>+OK=<snString><CR><LF> query AT+UART? Baud (Serial Port Baud Rate): 6001200240048009601440019200384004300057600, 76800, 115200, 128000, 230400, 256000, 460800 Unit: bps Date: 8 parameter Stop: 1,2 Party: NONE, EVEN, ODD Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 33: Setting/Querying Can Information

    AT+MODE=mode<CR><LF> return <CR><LF>+OK<CR><LF> query AT+MODE? Mode: TRANS (transparent), TPRTL (transparent tape identification), parameter PROTOL (protocol mode), USER (custom protocol), MODBUS (MODBUS), [Example] Settings: Send: AT+CANLT=ETF/r/n Response:<CR><LF>+OK<CR><LF> Query: Send: AT+CANLT/ R/n Response:<CR><LF>+OK<CR><LF>AT+CANLT=ETF<CR><LF> Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 34: Set/Query The Filtering Method Of The Can Bus

    Settings: Set the frame header data to FF and the frame footer data to 55 Sending: AT+UDMHT=FF, 55/r/n Response:<CR><LF>+OK<CR><LF> Query: Send: AT+UDMHT/ R/n Response:<CR><LF>+OK<CR><LF>AT+UDMHT=FF, 55<CR><LF> 6.11 Set/Query Identity Parameters instructions RANDOM function Set/Query Query Identification Parameters set up AT+RANDOM=idLength, idLocation<CR><LF> return <CR><LF>+OK<CR><LF> Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 35: Set/Query Identity Parameters

    AT+MSG=flag_ ID, flag_ Type<CR><LF> return <CR><LF>+OK<CR><LF> query AT+MSG? parameter Flag_ ID (frame header data), tail (frame tail data). Data range 0~0xFF [Example] Settings: Enable frame ID, frame information Sending: AT+MSG=1,1/r/n Response:<CR><LF>+OK<CR><LF> Query: Send: AT+MSG/ R/n Response:<CR><LF>+OK<CR><LF>AT+MSG=1,1<CR><LF> Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 36: Set/Query Transmission Direction

    Sending: AT+LFILTER=NDTF, 719/r/n Response:<CR><LF>+OK<CR><LF> Query: will return all IDs that have been set Sent to: AT+FILTER/ R/n Response:<CR><LF>+OK<CR><LF>AT+LFILTER=NDTF, 719<CR><LF> 6.15 Delete filter parameters that have already been set instructions DELFILTER function Set/Query Filter Frame Information Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 37 NDTF: Represents that this command is a standard ID, and EDTF represents that this parameter command is an extended frame ID. Date: ID data. [Example] Settings: Delete filtering parameters: Standard frame 719 Sending: AT+DELFILTER=NDTF, 719/r/n Response:<CR><LF>+OK<CR><LF> Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 38: Revision History

    Initial version About us Technical support: support@cdebyte.com Documents and RF Setting download link: www.ebyte.com Thank you for using Ebyte products! Please contact us with any questions or suggestions: info@cdebyte.com ------------------------------------------------------------------------------------------------- Phone: +86 028-61399028 Web: www.ebyte.com Address: B5 Mould Park, 199# Xiqu Ave, High-tech District, Sichuan, China...

Table of Contents