background image

Chengdu Ebyte Electronic Technology Co., Ltd.

E78-900M22S

User manual

Copyright ©2012–2021

Chengdu Ebyte Electronic Technology Co.,Ltd.

1

ECAN-401 Intelligent Protocol Converter

User Manual

Содержание ECAN-401

Страница 1: ...Chengdu Ebyte Electronic Technology Co Ltd E78 900M22S User manual Copyright 2012 2021 Chengdu Ebyte Electronic Technology Co Ltd 1 ECAN 401 Intelligent Protocol Converter User Manual ...

Страница 2: ...ETHOD 11 4 1 1 Transparent conversion mode 11 4 1 2 Transparent transmission with logo mode 14 4 1 3 Protocol mode 16 4 1 4 Modbus mode 18 4 1 5 Custom protocol mode 20 5 AT COMMAND 23 5 1 ENTER AT COMMAND 23 5 2 EXIT AT COMMAND 23 5 3 QUERY VERSION 24 5 4 RESTORE DEFAULT PARAMETERS 24 5 5 ECHO SETTINGS 24 5 6 SERIAL PORT PARAMETERS 25 5 7 SETTING QUERYING CAN INFORMATION 26 5 8 SETTING QUERYING M...

Страница 3: ...d is given including but not limited with respect to the accuracy correctness reliability and fitness for a particular purpose of the information This document may be revised by EBYTE at any time For most recent documents visit www ebyte com Note The contents of this manual are subject to change due to product version upgrades or other reasons Chengdu Ebyte Electronic Technology Co Ltd reserves th...

Страница 4: ...nd user defined user At the same time ECAN 401 intelligent protocol converter has the characteristics of small size easy installation and high protection isolation design for CAN interface It has a very high cost performance in the development of CAN BUS products and data analysis applications It is an engineering application and project debugging And reliable assistants for product development 1 ...

Страница 5: ...du Ebyte Electronic Technology Co Ltd 5 1 3 Application CAN BUS network such as industrial control Networking of automobiles and railway equipment Security and fire protection network Underground remote communication Public address system Parking equipment control Smart home smart building ...

Страница 6: ...r 24V power supply is recommended Working current 18mA 12V standby Operating temperature 40 85 industrial grade Interface Type RS485 RS422 CAN 5 08 terminal block crimping method RS232 DB9 terminal 2 2 Factory default parameters RS485 RS232 RS422 Serial port baud rate 115200 bps Parity check No Data bit 8 Stop bit 1 Flow Control shut CAN CAN baud rate 100K bps CAN ID 0x00000000 Default working mod...

Страница 7: ... light 4 CAN_DATA Data light 5 RX Serial port receiving indicator 6 TX Serial port sending indicator 7 V Power supply default 8 28V standard 5V version can be customized 12V 24V is recommended 8 V Power ground 9 GND RS485 RS422 common terminal connect to the GND of other equipment RS485 RS422 equipment 10 T A RS422 bus data T RS485 bus data A 11 T B RS422 bus data T RS485 bus data B 12 R RS422 bus...

Страница 8: ...Chengdu Ebyte Electronic Technology Co Ltd ECAN 401 User Manual Copyright 2012 2022 Chengdu Ebyte Electronic Technology Co Ltd 8 16 CAN_H CAN communication interface 3 2 Dimensions ...

Страница 9: ...gdu Ebyte Electronic Technology Co Ltd ECAN 401 User Manual Copyright 2012 2022 Chengdu Ebyte Electronic Technology Co Ltd 9 3 3 Connection method 3 3 1 RS485 connection method 3 3 2 RS422 connection method ...

Страница 10: ...S232 connection method 3 3 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: ...ion Transparent band information conversion CAN and RS485 bidirectional conversion Protocol conversion CAN and RS485 bidirectional conversion MODBUS conversion CAN and RS485 bidirectional conversion 4 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 th...

Страница 12: ...verted into a CAN message transparent mode Assuming that the configuration CAN frame information is standard frame frame ID 0x0213 serial frame data is 0x01 0x0C then the conversion format is as follows The frame ID of the CAN message is 0x0213 user configuration frame type standard Frame user configuration the data part of the serial frame will be converted to the CAN message without any modifica...

Страница 13: ...ce you need to enable the corresponding function Only then can you receive the corresponding information CAN Message Serial frame Frame information User configuration Frame information User configuration Frame ID User configuration Frame ID User configuration User configuration User configuration Data field data 1 0 data 1 data 2 1 data 2 data 3 2 data 3 data 4 3 data 4 data 5 4 data 5 data 6 5 da...

Страница 14: ...erial frame can be set by configuration The starting address ranges from 0 to 7 and the length ranges from 1 to 2 standard frame or 1 to 4 extended frame During the conversion the CAN message frame ID in the serial frame is converted into the frame ID field of the CAN message according to the prior configuration if the number of frame IDs is less than the number of frame IDs of the CAN message the...

Страница 15: ...essage 2 CAN Message 2 01 Frame informatio n 88 Frame informatio n 85 02 Frame ID 00 Frame ID 00 03 03 03 04 04 04 05 05 05 06 Data field 01 Data field 0C 07 02 0D 08 06 0E 09 07 0F 0A 08 10 0B 09 0C 0A 0D 0B 0E 0F 10 2 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 correspondin...

Страница 16: ...sion is as follows CAN Message Serial frame Frame informatio n 88 99 Frame ID 00 88 00 00 01 01 23 23 Data field 99 77 88 66 77 55 66 44 55 33 44 22 33 Example of CAN message conversion to serial frame transparent with information conversion 4 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...

Страница 17: ...serial frame to CAN message When the frame data is converted in CAN format the length is fixed to 8 bytes The effective length is determined by the value of DLC3 DLC0 When the effective data is less than the fixed length it needs to be filled with 0 to the fixed length In this mode it is necessary to pay attention to the serial data format in strict accordance with the fixed byte format to success...

Страница 18: ...d on the CAN bus does not require a CRC validation method Data validation on the CAN bus already has a more complete validation method In this mode the device supports Modbus verification and forwarding not the Modbus master or slave and the user can communicate according to the Modbus protocol Segmented transmission protocol A method for segmenting and reorganizing information with a length great...

Страница 19: ...e received frame without converting it 2 can message to serial frame For the Modbus protocol data of the CAN bus there is no need to do cyclic redundancy check CRC16 the module receives according to the segmentation protocol and automatically adds the cyclic redundancy check CRC16 after receiving a frame analysis and converts it into Modbus RTU frame to send To the serial bus If the received data ...

Страница 20: ...ept for the data field if the content of other bytes is wrong this frame will not be sent successfully The content of the serial frame frame header frame length frame information frame ID data field frame end Note In this mode the frame ID and frame type configured by the user are invalid and the data will be forwarded according to the format in the serial frame 1 Convert serial frame to CAN messa...

Страница 21: ...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 User configuratio n Frame informati on Frame information Frame length Frame length Frame ID Frame ID1 Frame informatio n Frame information Frame ID0 Frame ID Frame ID1 ...

Страница 22: ...ustom 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 Serial frame CAN Message Serial frame header...

Страница 23: ...f 4 After setting the parameters you need to restart the device to make the set parameters take effect Error code table error code instruction 1 Invalid command format 2 Invalid command 3 Not yet defined 4 Invalid parameter 5 Not yet defined Default parameters Parameter category parameter name Parameter value Related instructions Serial port Baud rate 115200 AT UART digit 8 Stop bit 1 Parity check...

Страница 24: ...F Remark x x version number Example Send AT VER r n Response CR LF VER x x CR LF 5 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 5 5 Echo settings Command E Functi...

Страница 25: ... OK CR LF Inquire Send AT UART r n Response CR LF OK CR LF AT UART 115200 8 1 EVEN NFC CR LF 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 9216...

Страница 26: ...FFFFFF Extended frame mode Frame category NDTF Standard frame EDTF Extended frame Example set up Send AT CAN 100 70 NDTF r n Response CR LF OK CR LF Inquire Send AT CAN r n Response CR LF OK CR LF AT CAN 100 70 NDTF CR LF 5 8 Setting Querying Module Conversion Mode Command MODE Function Set query module conversion mode Setting AT MODE mode CR LF Back CR LF OK CR LF Inquire AT MODE Parameter mode M...

Страница 27: ...LF OK CR LF Inquire Send AT MODE r n Response CR LF OK CR LF AT MODE MODBUS CR LF 5 10 Set query frame header and frame end data Command UDMHT Function Set query frame header and end data in custom mode Setting AT UDMHT head tail CR LF Back CR LF OK CR LF Inquire AT UDMHT Parameter head Header data tail End of frame data data range 0 0xFF Example Settings Set the frame header data to FF and the fr...

Страница 28: ...frame information enable Setting AT MSG flag_id flag_type CR LF Back CR LF OK CR LF Inquire AT MSG Parameter flag_id frame header data tail frame tail data Data range 0 0xFF Example Settings enable frame ID frame information Send AT MSG 1 1 r n Response CR LF OK CR LF Inquire Send AT MSG r n Response CR LF OK CR LF AT MSG 1 1 CR LF 5 13 Set query transmission direction Command DIRECTION Function S...

Страница 29: ...an extended frame ID date ID data Example Settings Set frame filtering parameters standard frame ID 719 Send AT LFILTER NDTF 719 r n Response CR LF OK CR LF Query Will return all IDs that have been set Send AT FILTER r n Response CR LF OK CR LF AT LFILTER NDTF 719 CR LF 5 15 Delete the filter parameters that have been set Command DELFILTER Function Set query filter frame information Setting AT DEL...

Страница 30: ...y 1 0 2021 10 08 Initial version WSM 1 1 2021 12 21 Content updates XXN 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 ...

Отзывы: