background image

 

                                                 

                     

                         

www.buenoptic.net     

Contact: [email protected] 

Chapter

 3 Application Software development   

3.1 Communication Protocol   

69 Bytes

Frame info

Frame ID

Frame Data

1Byte

4 Byte

64 Bytes

 

Figure 3-1: CAN packets in UDP Frame

 

1) Frame Info 

 

Bit7   

Bit6   

Bit5   

Bit4   

Bit3   

Bit2   

Bit1   

Bit0   

FF   

RTR   

EDL 

BRS 

DLC3   

DLC2   

DLC1   

DLC0   

FF

              0: standard frame

          1: extend frame. 

RTR         

0: data frame,                    1: remote frame. (If the frame is CANFD, it must be zero) 

EDL         

0: CAN,                            1: CANFD   

BRS

          0: do not switch bit rate,    1: switch bit rate (If the frame is CAN, it must be zero) 

 

DLC3

DLC0   

data length, see the figure below 

Summary of Contents for CANFDNET-100T

Page 1: ...www buenoptic net Contact sales buenoptic net CANFDNET 100T 200T Isolated CAN FD to Ethernet Converter V1 0 ...

Page 2: ...ations 3 1 4 Ordering Information 3 1 5 Product Sales list 4 Chapter 2 Product Installation 5 2 2 Connector 5 2 2 CAN bus connections 6 2 3 Configing and Using the CANFDNET 100T 200T 7 2 3 1 Introduction for the Config software and parameters 7 2 3 2 Using the CANFDNET 100T 200T 8 Chapter 3 Application Software development 9 3 1 Communication Protocol 9 ...

Page 3: ...nish CAN Bus message sending and receiving 1 2 Parameters Application as Ethernet based interface to the CAN FD bus Cortex M7 based Microcontroller 400M Ethernet 10M 100M One or Two CAN FD channels Baud rates up to 5Mbps CAN 2 0A 11 bit ID standard frames and 2 0B 29 bit ID extended frames Configuration software available through the Ethernet interface Max data flow 5000 S extend frame Operating t...

Page 4: ...www buenoptic net Contact sales buenoptic net 1 5 Product Sales list 1 CANFDNET 100T 200T Isolated CAN FD to Ethernet Converter 2 CD ROM Datasheet CANFDNET 100T 200T config and test software ...

Page 5: ...net Chapter 2 Product Installation 2 2 Connector CANFDNET 200T module integrates two CAN bus channels while CANFDNET 100T integrates one The pin signal definitions see Figure 2 1 and Table 2 1 Figure 2 1 CANFDNET 100T 200T CAN interface module ...

Page 6: ...nd DEF are short circuited internal 120Ω resistance is activated 10 H1 CAN bus Signal H 1 Power 0V GND 2 VS VCC DC 10 30V 3 Default DEF When DEF and DEF are short circuited the parameters of Ethernet and CAN saved in CANFDNET 100T 200T module will be changed to default if you restart the CANFDNET 100T 200T module see Figure 2 4 4 DEF 2 2 CAN bus connections To connect CANFDNET 100T 200T module to ...

Page 7: ...IP Address of the CANFDNET 100T 200T module 2 Main View Setup Ethernet HostIP IP Address of the host such as PC or other device with Ethernet interface HostUdpPort Port of UDP protocol of host DeiveIP IP Address of the device CANFDNET 100T 200T module which you want to setup DevieceUdpPort Port of UDP protocol of the device CANFDNET 100T 200T module which you want to setup 3 Main View Setup CAN0 o...

Page 8: ...er the CANFDNET 100T 200T module with a DC of 10 30V 3 Insert the LAN cable into the plug labeled LAN and connect it either to a hub or switch or directly to the PC using a crossover cable 4 Run CANFDNETConfig exe 5 Using the CANET I II Config software to modify the parameter of Ethernet and CAN port 6 Run NetAssist exe 7 Now you can send and receive any CAN FD packet based on CAN2 0A or CAN2 0B ...

Page 9: ...tes Figure 3 1 CAN packets in UDP Frame 1 Frame Info Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 FF RTR EDL BRS DLC3 DLC2 DLC1 DLC0 FF 0 standard frame 1 extend frame RTR 0 data frame 1 remote frame If the frame is CANFD it must be zero EDL 0 CAN 1 CANFD BRS 0 do not switch bit rate 1 switch bit rate If the frame is CAN it must be zero DLC3 DLC0 data length see the figure below ...

Page 10: ... bytes A can frame can contain up to 8 bytes of data and the insufficient bytes are supplemented by 0 According to the definition of CANFD message a CANFD frame contains up to 64 bytes of data and if it is insufficient you should fill it with zero Note the number of valid data needs to be specified in DLC3 0 of frame info as shown in Figure 3 2 4 Examples of CAN FD frame Example 1 ...

Page 11: ...Data 11h 22h 33h 44h 55h 66h 77h 88h 11h 22h 33h 44h 55h 66h 77h 88h 11h 22h 33h 44h 55h 66h 77h 88h UDP Frame AC 12 34 56 78 11 22 33 44 55 66 77 88 11 22 33 44 55 66 77 88 11 22 33 44 55 66 77 88 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Example 4 CANFD Frame Extend frame Data frame Bit rate switch is enabled ID 0x1234...

Page 12: ... net Contact sales buenoptic net CAN FD packets in every UDP packet is 10 In addition when you finish sending a UDP packet including 10 CAN FD packet you should delay some time according the baud rate which you set ...

Reviews: