Page 1
USR-CAN115 Manual Communication Expert of Industrial IOT Ethernet to CAN User Manual USR-CAN115 Be Honest & Do Best Your Trustworthy Smart Industrial IoT Partner w w w . u s r . c n...
USR-CAN115 Manual Product Feature CAN and Ethernet bidirectional conversion CAN2.0A and CAN2.0B standard protocols Support transparent conversion, transparent band ID conversion, standard protocol conversion TCP server, TCP client, UDP server, UDP client Support extended frame only, standard frame only, custom frame ID reception ...
Page 4
USR-CAN115 Manual 4.2. Transparent Zone ID Conversion ..................34 4.2.1. Ethernet to CAN-Transparent Band ID Conversion ........... 34 4.2.2. CAN to Ethernet-Transparent Band ID Conversion ........... 35 4.3. Standard Protocol Conversion ..................37 5. Contact Information ............................39 6. Disclaimer ................................40 7.
1. Product Overview 1.1. Product Introduction USR-CAN115 is an ultra-small rail-type CAN to Ethernet device independently developed by the Internet of Things. This series of products features high speed, low latency, small size and simple use. TCP server, TCP client, UDP server and UDP client are supported. It supports three data conversion modes: transparent conversion, transparent band ID conversion and standard protocol conversion.
Page 6
USR-CAN115 Manual Reload key Press and hold to restore factory settings Indicator light POWER、WORK、NET、CAN CAN port 1-way CAN port, support standard CAN2.0A/B, press Specification terminal wiring CAN port 5kbps ~ 1000kbps, support custom Baud rate Terminal Interface Built-in CAN bus 120Ω termination resistor...
USR-CAN115 Manual Time custom packaging time Support bi-directional conversion, Switch direction only network port to CAN, only CAN to network port Work pattern Normal, Loop, Hear Only Firmware Support firmware upgrade on PC upgrade Parameter AT command, PC software configuration...
USR-CAN115 Manual 1.USR-DR115 Standard size diagram 2.2. Interface Description USR-CAN115 has one CAN-bus interface and one network interface. CAN-bus interface adopts push-type terminal wiring, which is convenient and fast. The connector pinsare defined as follows. 2.API description Table 3 Terminal wiring definition...
3.CAN bus connection 2.3. Indicator Description The USR-CAN115 has 4 indicators: POWER, WORK, NET, CAN. The user can easily observe the status of the equipment through the indicator lights, which aredefined as follows. Table 4 Indicator light rule...
USR-CAN115 Manual Strobe: Enter CAN bus passive error state; Constant light: CAN bus operation abnormal Flashing: indicates that data is being received Green at the network port Flashing: indicates that CAN port has data Green being received 3. Product Features 3.1.
USR-CAN115 Manual After configuration, click Set Parameters Click Restart and all parameter configurations take effect. 5.Connection Network Configuration 3.2. CAN Parameters Frame type:The frame type of CAN message during conversion, with standard frame and extended frame optional. CAN ID:Hex adecimal, Hex format. Range: 0~7FF(standard frame) , 0~ 1FFFFF (extended frame) CAN Baud Rate: Range 5K~1000K, default 100kbps.
USR-CAN115 Manual 6.CAN parameter configuration 3.3. Ethernet Port Parameters (1) IP address acquisition: IP address is the identity representation of module in local area network, unique in local area network, so it cannot be duplicated with other devices in the same local area network. The IP address of CAN 115 can be obtained in two ways: static IP and DHCP.
Page 13
USR-CAN115 Manual applicable to scenarios where there is no requirement for IP, and there is no requirement for IP to correspond to modules one by one. Advantages:Access routers and otherdevices with DHCP Server can communicate directly,reducing the trouble ofsetting IP address, gateway addressand subnet mask;...
USR-CAN115 Manual 3.4. Transformation Function 3.4.1. Conversion Parameter Conversion mode:Support transparent conversion, transparent band ID conversion, standard protocol conversion. Each mode conversion rule is different, and can realize the conversion between network port data information and CAN frame information. See Chapter 4 for a detailed description of conversion patterns.
USR-CAN115 Manual 8.Schematic diagram of conversion parameter configuration 3.4.2. Filtering Function CAN115 has the function of filtering ID, which can filter CAN bus data and selectively receive it. This minimizes network load from the network. There are three filtering methods: ...
Page 16
USR-CAN115 Manual 9.Filtering Settings In custom mode, users can add their own IDs to receive, and up to 14 groups can be set. The configuration is as follows: Network Search Select the device that needs to be set Filter Mode Selection Custom ...
USR-CAN115 Manual 10.Custom Frame ID Configuration 3.5. Socket Function The socket mode of CAN115 is divided into TCP Client, TCP Server, UDP Client and UDP Server. Details are as follows: 3.5.1. TCP Client Mode (1) Model description: TCP Client provides client connections for TCP network services. Initiate a connection request to the server and establish a connection to realize the interaction between serial port data and server data.
Page 18
USR-CAN115 Manual data. According to the relevant provisions of TCP protocol, TCP Client has the difference between connection and disconnection, thus ensuring reliable exchange of data. CAN115 is a TCP Client and requires a TCP Server connection. Parameters that need attention: target IP/domain name and target port number.
USR-CAN115 Manual TCP short connections are mainly used to save server resources and are generally applied to multi-point to one point scenarios. Using short connections ensures that all connections that exist are useful connections and that no additional controls are needed to filter them.
Page 20
USR-CAN115 Manual 14.TCP Server Mode Description Typically used for communication with TCP clients within a local area network. Suitable for scenarios where there is no server in the local area network and multiple computers or mobile phones request data from the server. As with TCP Client, there is a difference between connection and disconnection to ensure reliable exchange of data.
USR-CAN115 Manual KEEP: Keep existing connections and kick out new connections. The setup diagram is as follows: Setup Schematic 3.5.3. UDP Client Mode This mode of operation is subordinate to UDP protocol. UDP Client is a connectionless transmission protocol that provides simple, unreliable, transaction-oriented messaging services. There is no connection to establish and disconnect, and only IP and ports are required to send data to each other.
USR-CAN115 Manual broadcast within the network segment, such as xxx.xxx.255 broadcast mode. Support UDP multicast function. Multicast can realize one-to-multipoint connection mode between data sender and receiver. Many receivers join the same multicast group and share the same IP address. At the same time, the members in the multicast group are dynamic, and the joining and exiting of a member does not affect the original multicast group.
USR-CAN115 Manual IP and port number sent to the most recent communication. This mode is usually used in data transmission scenarios where multiple network devices need to communicate with modules and do not want to use TCP due to its high speed and frequency.
USR-CAN115 Manual 21.Heartbeat packet setup and data transferdiagram CAN Port Heartbeat Package: It can be sent to CAN as a fixed query command by heartbeat packet. Content must conform to CAN format. CAN frame format, frame type and frame ID can be configured.
USR-CAN115 Manual The connectionsending registration packageis mainly used to connect to the server that needs to be registered. The application diagramis as follows: Schematic diagram of connecting to send registration package Data carryingregistration packet: sending datain the front of the data access registration packet,mainly...
USR-CAN115 Manual cannot be sent to the module. This mode is mainly used for testing. 25.Operation mode settingdiagram 3.6.4. CAN Packaging Mechanism Since the data on the network side is transmitted in data frames, it is necessary to send CAN data to the network side in frames, which can transmit data more efficiently and quickly.
USR-CAN115 Manual Packing length: default is 100frames, can be set, range: 1~10 0. 27.Diagram of subcontracting time setting 3.6.5. Clear CAN Cache Data When the TCP connection is not established, the data received by the CAN port will be placed in the buffer area, and the CAN port will receive abufferof up to 200 frames.
USR-CAN115 Manual Clear Cache Data Settings Illustration 3.6.6. No Data Restart The function of no data restart (timeout restart) is mainly used to ensure the long-term stable operation of CAN115. When the network port does not receive data for a long time, or the network does not receive data for a long time, CAN115 will restart after exceeding theset time, so as to avoid abnormal conditions affecting communication.
USR-CAN115 Manual No data restart function 3.7. Firmware Upgrade Support easy firmware upgrade of equipment through host computer. The specific operation methods are as follows: Click Firmware Upgrade--> Device automatically fills in target IP address, target MAC address, local IP address-->...
USR-CAN115 Manual 30.Firmware Upgrade Diagram 3.8. Factory Data Reset Hardware factory reset: The module can restore the factory settings through hardware. After power-on, press the Reload button, keep the Reload pressed and release it after 3-15s. The hardware factory settings can be restored.
USR-CAN115 Manual 31.Setup Software Schematic 4. Examples of Conversion Patterns The device supports three conversion modes: transparent conversion, transparent band ID conversion and standard protocol conversion. TCP server, TCP client, UDP server, UDP client protocol under the three modes are applicable, data conversion is more flexible. The following are detailed examples of three conversion modes.
USR-CAN115 Manual 32.Transparent transmission-Ethernet data to CAN Examples: Under TCP server protocol, the frame ID is configured as standard frame, CAN ID is "0006", and the conversion example is as follows: 33.Transparent Transmission--Ethernet Data to CAN Transmission Example 4.1.2. CAN to Ethernet--Transparent Conversion For CAN bus messages, receive a frame of CAN messages immediately forward a frameto the network.
Page 33
USR-CAN115 Manual CAN messages to the first byte of the network data frame. CAN frame information is not converted when unchecked. If the enable frame ID is enabled, the converter will add the frame ID of the CAN message before the frame data of the network data frame and after the frame information (e.g.
USR-CAN115 Manual 4.2. Transparent Zone ID Conversion Transparent band identification transformation is a special use of transparent transformation and has no protocol attached. This method can convert the "address" inEthernet datainto the identification field of CAN message, where the starting position and length of frame ID inEthernet datacan be configured. The converter will extract this frame ID during conversion and fill it in the frame ID field of the CAN message as the ID of the CAN message whenthe Ethernet data isforwarded.
USR-CAN115 Manual 36.Transparent tape ID transmission-serial frame to CAN Examples: In TCP server mode, the configuration frame type is extended frame, the starting address is 1, the length is 2, and the serial frame is converted to CAN as follows: 37.Transparent tape ID transmission--Network data to CAN example...
Page 36
USR-CAN115 Manual received CAN message is converted accordingly according to the position and length of the CAN frame ID configured in advance in Ethernet data during each forwarding. Other data are forwarded sequentially. Note: If the CAN frame ID length is greater than the set transparent tape ID length, only the lower byte is converted to the corresponding position of the serial frame.
USR-CAN115 Manual 39.Transparent tape ID transmission--CAN to serial frame example 4.3. Standard Protocol Conversion Standard CAN frame format, each CAN frame contains 13 bytes, 13 bytes of content includes CAN frame information + frame ID + data frame. By configuring the frame information correctly (the first byte of data), you can flexibly send out standard frames, extended frames, and even remote frames.
Page 38
USR-CAN115 Manual CAN Fixed Format (1 CAN frame contains 13 bytes) Frame Frame ID Frame data Information 1Byte 4Byte 8Byte Frame information: length 1 byte, used to identify frame information: frame type, frame length. Bit7 Bit0 retain retain FF: Identification bit of standard frame and extension frame, 1 is extension frame, 0 is standard frame RTR: identification bit of remote frame and data frame, 1 is remote frame, 0 is data frame Reserved: reserved bit must be filled in 0, not 1.
USR-CAN115 Manual 40.Standard Protocol Transmission Examples 5. Contact Information Official Website: www.pusr.com Official Shop: shop.usriot.com Technical Support:h.usriot.com Inquiry Email: inquiry@usriot.com Skype & WhatsApp: +86 13405313834 Click to view more: Product Catalog & Facebook & Youtube w w w . u s r . c n...
USR-CAN115 Manual 6. Disclaimer This document provides information about the USR-CAN115series of products and does not grant any license to intellectual property rights, expressed or implied, or by suppression of speech or otherwise. Our company assumes no liability other than that stated in the terms and conditions of sale of its products.
Page 41
USR-CAN115 Manual Official Website: www.pusr.com Official Shop: shop.usriot.com Technical Support: h.usriot.com Inquiry Email: inquiry@usriot.com Skype & WhatsApp: +86 13405313834 Click to view more: & & Product Catalog Facebook Youtube w w w . u s r . c n...
Need help?
Do you have a question about the USR-CAN115 and is the answer not in the manual?
Questions and answers