WS-TTL-CAN

From Waveshare Wiki
Revision as of 09:49, 13 May 2024 by WS-eng25- end (talk | contribs) (→‎Software Operation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
WS-TTL-CAN
WS-TTL-CAN.png

TTL TO CAN
CAN, TTL
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

{{{name6}}}

Overview

Introduction

WS-TTL-CAN is a TTL UART to CAN module which is compact and easy to integrate, onboard high-performance MCU, with TTL and CAN conversion protocol, easily achieving UART to CAN via simple configuration. The CAN parameters (such as the baud rate) and serial port parameters of the device can be modified using the configuration software.

Features

  • Support the bidirectional data communication between CAN and TTL.
  • Supports device firmware upgrade via TTL, more convenient for firmware update and function customization.
  • ESD Protection, Anti-surge Protection, Excellent EMC Performance.
  • 14 groups of configurable filters.
  • Four operation modes: transparent conversion, transparent conversion with identifiers, format conversion, and Modbus RTU protocol conversion.
  • Offline detection and automatic recovery functionality.
  • Compliance with CAN 2.0B specifications, compatible with CAN 2.0A; complies with ISO 11898-1/2/3 standards.
  • Baud rate range: 10kbps ~ 1000kbps.
  • CAN buffer capacity of 1000 frames to prevent data loss.
  • High-speed conversion:At a serial port baud rate of 115200 and CAN rate of 250kbps, the CAN sending speed can reach up to 1270 extended frames per second (close to the theoretical maximum of 1309).
    At a serial port baud rate of 460800 and CAN rate of 1000kbps, the CAN sending speed can exceed 5000 extended frames per second.

Parameters

Model TTL TO CAN Converter
Host Interface CAN
Device Interface TTL (RS485 direction control included)
CAN Baud Rate 10kbps~1000kbps
Direction Control Hardware Automatic Control
Resistor Default 120R
Interface pin CAN-H, CAN-L, GND
TTL Baud Rate 1200bps ~ 460800bps
Direction Control Hardware Automatic Control
Interface pin TXD, RXD, GND
Button Press 1s Reset the system
Press and hold 5s Restore to the factory default
Indicator RUN Running status indicator, blinks at 1-second intervals when it is normally operated
Usage Environment Temperature Range -40~85℃

Pinout

WS-TTL-CAN-Pinout-2.png

Dimensions

WS-TTL-CAN-Dimensions.png

Device Configuration

Use USB TO TTL (or other USB to TTL devices) for initialization configuration. If you do not want to configure it, keep the factory setting.

Hardware Connection

  • Connect the USB to TTL device (the following is for connecting USB TO TTL):
WS-TTL-CAN USB TO TTL
GND GND
RXD TXD
TXD RXD

Software Operation

  • Open SSCOM, view the used COM port, and COM42 is currently used for the demonstration:

RS232-485-422 to can03.png

RS232-485-422 to can04.png

  • Select the language:

RS232-485-422 to can05.png

  • Select the COM port that corresponds to the USB TO TTL, and then open the serial port:

RS232-485-422 to can06.png

  • Click on Read Device Parameters.

RS232-485-422 to can07.png

  • If you need to modify the device parameters, you can directly modify it and click on "Save Device Parameters", and then click on "Restart Device" (for example, modifying CAN ID):

RS232-485-422 to can08.png

Module Usage Explanation

Transparent Conversion

Transparent Conversion With ID

Format Conversion

Modbus Protocol Conversion

Verify Functions

TTL TO CAN Test

Use USB-CAN-A and USB TO TTL to demonstrate.

Hardware Connection

  • Connect to CAN device:
WS-TTL-CAN - CAN USB-CAN-A
CAN H CAN H
CAN L CAN L
  • Connect to TTL device:
WS-TTL-CAN - TTL USB TO TTL
GND GND
RXD TXD
TXD RXD

Software Operation

  • Open USB-CAN-A-TOOL.
  • Select the corresponding COM port of the USB-CAN-A, and click on "Open".

RS232 Software Operation-1.png

  • Select the baud rate of the CAN device as 250kbps, click on "Set and Start" , input the data to send, and select "Cycle".

RS232 Software Operation-2.png

  • Open an SSCOM, select the corresponding COM port of the USB TO 4CH Serial Converter's Port D, and open the serial port.

RS232 Software Operation-3.png

  • In the SSCOM software, check "Hexshow", "sendHex" and "Show Time and Package", input the data to be sent.
11 22 33 44 55 66 77 88

RS232 Software Operation-4.png

  • Select data in USB-CAN-A_TOOL, click on "Send selected frame".

RS232 Software Operation-5.png

  • And then you can see that it transmits and receives.

RS232 Software Operation-6.png

  • Or you can click on "Send every...ms/Time".

RS232 Software Operation-7.png

  • And then you can see that it transmits and receives.

RS232 Software Operation-6.png

Resource

Software

Document

FAQ

 Answer:
  • Please press and hold the reset button for more than 5 seconds until the indicator blinks continuously (factory restored), and then reconfigure the communication parameters as required.

{{{5}}}


 Answer:
  • Please note that the received data frame type. If the received data type is an extended frame, the frame ID is 0xFFFFFFFF & CAN_ID. If the received data type is a standard frame, the frame ID is 0x000007FF & CAN_ID, which is not related to the frame type configured by the software (in transparent conversion mode).
  • Use the one configured by the software as the frame type when sending data, as follows:

RS232 TO CAN FAQ02.png

{{{5}}}


 Answer:

Yes, the CAN interface is connected to a 120ohm resistor by default.

{{{5}}}


 Answer:

The DIR pin on the board serves the purpose of configuring the interface. When a customer needs to adjust the TTL interface to an RS485 interface (requiring RS485 chip support), they can use this pin. If the interface is not expanded to RS485, then leave this pin floating (unconnected).

{{{5}}}


Support



Technical Support

If you need technical support or have any feedback/review, please click the Submit Now button to submit a ticket, Our support team will check and reply to you within 1 to 2 working days. Please be patient as we make every effort to help you to resolve the issue.
Working Time: 9 AM - 6 PM GMT+8 (Monday to Friday)