Email: sygckj@gmail.com

中文 | English

Shenyang FuShiDe Technology Co.,Ltd.

Support

Focus on CAN Bus for 10 years,CAN bus industry leading unit.

Your Location: Home > Support > Solution >

Baud rate modification of Ethernet-CAN converter_GCAN

7 Baud rate modification online

7.1 Function Description

In TCP Sever mode, GCAN-202 supports CAN-Bus baud rate modification online via Ethernet. Write the instructions into the upper computer to achieve modification of baud rate. It’s more concise and faster.

7.2 Format Description

The instructions should be sent via Ethernet, as shown in table. Only Byte6, 7, 8, 10 can be modified.



Byte6, Byte7: 02 01 means baud rate set; 0B 03 takes effect immediately.

Byte8: 01 means CAN 1; 02 means CAN 2

Byte10: 00=1000K, 01=800K, 02=666K, 03=500K, 04=400K, 05=250K, 06=200K, 07=125K, 08=100K, 09=80K, 10=50K, 11=40K, 12=20K, 13=10K, 14=5K.

7.3 Example

Transmit to GCAN-202:

10 00 00 08 01 02 01 01 00 05 00 00 00 set CAN 1’s baud rate, 250K.

GCAN-202 will transmit:

10 00 00 08 01 02 01 01 00 05 00 00 00 modified, take effect after re-power.

Transmit to GCAN-202:

10 00 00 08 01 02 01 02 00 00 00 00 00 set CAN 1’s baud rate to 1000K.

GCAN-202 will transmit:

10 00 00 08 01 02 01 02 00 05 00 00 00 modified, take effect after re-power.

Transmit to GCAN-202:

10 00 00 08 01 0B 03 01 00 05 00 00 00 CAN 1 & CAN 2 baud rate setting

GCAN-202 will transmit:

10 00 00 08 01 02 01 01 00 05 01 00 00 earlier modified take effect immediately.

Note: these three group data should be sent in order. If the message of "take effect immediately" not be transmit, it will take effect after re-power.

8 Secondary development

Depend on needs, Ethernet can achieve the function configuration of integrating with GCAN-202 in the specific upper computer by configuration protocol. Meanwhile detail library and explanation can be offered to secondary development.

Also the source code of "CANet test" software provided can achieve secondary development.

"Net Assist" software can test Ethernet Socket communication. And all of these support Socket communication.