Waveshare USB-CAN-A

Waveshare USB to CAN Adapter Model A Instruction Manual

Model: USB-CAN-A

1. Introduction and Overview

The Waveshare USB to CAN Adapter Model A is a versatile device designed for communication between a computer and a CAN bus network. It utilizes an STM32 chip solution, ensuring stable and reliable performance. This adapter supports both CAN2.0A (standard frame) and CAN2.0B (extended frame) protocols, with a configurable CAN baud rate ranging from 5Kbps to 1Mbps. It offers multiple working modes and data sending/receiving options, making it suitable for various applications including data acquisition, analysis, and monitoring of CAN bus networks. The device is compatible with multiple operating systems, including Windows and Linux.

2. Package Contents

Upon opening the package, please verify that all the following items are included:

Waveshare USB to CAN Adapter Model A package contents including the adapter, USB cable, and screwdriver.

Image: Package contents of the Waveshare USB to CAN Adapter Model A.

  • USB-CAN-A Adapter (x1)
  • USB Cable (~1.5m) (x1)
  • Screwdriver (x1)

3. Key Features

The Waveshare USB to CAN Adapter Model A offers a robust set of features for efficient CAN bus communication:

Waveshare USB to CAN Adapter Model A with a list of its key features.

Image: Overview of the Waveshare USB to CAN Adapter Model A and its features.

  • Supports CAN2.0A (standard frame) and CAN2.0B (extended frame).
  • CAN baud rate is configurable from 5Kbps to 1Mbps.
  • Features 4 working modes: normal, loopback, silent, and silent loopback.
  • Supports multiple CAN data sending modes: single frame, multiple frames, manually, regularly, and cyclic sending.
  • Supports multiple CAN data receiving modes: configurable to receive data from a specific ID or automatically answer with configured data.
  • Data can be saved in TXT or Excel formats.
  • Includes CAN bus detection for status checking.
  • Sending/receiving CAN data with time scale for sequential display.
  • USB virtual COM port baud rate configurable from 9600 to 2000000bps (2000000bps by default).
  • Working parameters can be set via configuration software or serial command and saved after power off.
  • Adopts STM32 chip solution for stable and reliable communication.
  • Onboard TVS (Transient Voltage Suppressor) to effectively suppress surge voltage and transient spike voltage.
  • Comes with master computer software for Windows system.
  • Easy for secondary development by modifying sending and receiving commands.

4. Version Upgrade

The Waveshare USB to CAN Adapter Model A has undergone a design upgrade, transitioning from an open board design to a more robust, dedicated case. This enhancement improves durability and protection for the internal components.

Comparison of the old version (without case) and new version (with dedicated case) of the Waveshare USB to CAN Adapter Model A.

Image: Visual comparison of the previous and current versions of the adapter.

5. System Compatibility

The adapter is designed for broad compatibility with various operating systems, facilitating integration into diverse development and testing environments.

Screenshots showing the Waveshare USB to CAN Adapter Model A compatible with Windows and Linux systems, including Raspberry Pi OS and Ubuntu on Jetson Nano.

Image: Demonstrates compatibility with Windows and Linux systems.

  • Windows XP/7/8/10/11
  • Linux Systems (e.g., Raspberry Pi OS, Ubuntu on Jetson Nano)

6. Primary Functions

The primary function of the USB to CAN Adapter Model A is to collect data from a CAN bus and transmit it to a PC via USB. This enables transceiver control, data analysis, acquisition, and monitoring of the CAN bus network.

Diagram illustrating the primary function of the USB to CAN Adapter Model A, connecting a Windows PC, Raspberry Pi, or Jetson Nano via USB to a CAN device.

Image: Diagram of the adapter's primary function in a CAN network.

7. CAN Baud Rate Configuration

The CAN baud rate of the adapter is highly flexible and can be configured to suit various application requirements, supporting a wide range of speeds for different CAN bus setups.

Diagram showing the configurable CAN baud rate range of the Waveshare USB to CAN Adapter Model A, from 5Kbps to 1Mbps.

Image: Illustration of the configurable CAN baud rate range.

The CAN baud rate is configurable within the range of 5Kbps to 1Mbps.

8. Multiple Working Modes

The adapter supports four distinct working modes to cater to different testing and operational scenarios:

Diagrams illustrating the four working modes of the Waveshare USB to CAN Adapter Model A: Normal Mode, Loopback Mode, Silent Mode, and Silent Loopback Mode.

Image: Diagrams explaining the four operational modes.

  • Normal Mode: Standard CAN communication for sending and receiving data to and from the CAN bus.
  • Loopback Mode: Data sent to the CAN bus is internally looped back to the receiver. Useful for self-testing without affecting the external CAN bus.
  • Silent Mode: The adapter can receive data normally but will not transmit any implicit bit reports. This mode is used for analyzing CAN bus activity without interfering with the network.
  • Silent Loopback Mode: A combination of silent and loopback modes, used for 'warm self-testing' where the device can test its own transmission and reception capabilities without affecting the CAN bus network.

9. Interfaces Introduction

The adapter features several indicators and controls for easy operation and monitoring:

Labeled diagram of the Waveshare USB to CAN Adapter Model A showing TX indicator, PWR indicator, RX indicator, Reset button, and 120Ω resistor switch.

Image: Labeled diagram of the adapter's interfaces.

No.Interface/IndicatorDescription
1TX indicatorBlinks when CAN data is being transmitted.
2PWR indicatorLights up red when the USB port is connected and powered.
3RX indicatorBlinks when CAN data is being received.
4Reset buttonPress before power on, then release after power on to restore factory settings.
5120Ω resistor switchSwitch to the CAN terminal side to enable the 120Ω resistor; switch to the other side to disable it.

10. STM32 Chip Solution

The Waveshare USB to CAN Adapter Model A integrates the original STM32F103 chip, which is central to its stable and reliable communication capabilities. This microcontroller provides the processing power necessary for efficient CAN bus operations.

Close-up view of the STM32F103 chip on the Waveshare USB to CAN Adapter Model A board.

Image: Detailed view of the STM32 chip on the adapter.

11. Outline Dimensions

Understanding the physical dimensions of the adapter is important for integration into various setups.

Diagram showing the outline dimensions of the Waveshare USB to CAN Adapter Model A in millimeters.

Image: Outline dimensions of the adapter.

The adapter measures approximately 78.52mm in length, 18.36mm in width (USB side), and 8.87mm in width (terminal side).

12. Setup and Installation

Follow these steps to set up your Waveshare USB to CAN Adapter Model A:

  1. Driver Installation: Before connecting the adapter, install the necessary USB virtual COM port drivers on your computer. These drivers are typically available on the Waveshare product page or included with the software package.
  2. Connect to PC: Plug the USB-CAN-A adapter into an available USB port on your computer (PC, Laptop, Raspberry Pi, Jetson Nano).
  3. Power Indicator: Verify that the PWR indicator on the adapter lights up red, indicating successful power connection.
  4. CAN Bus Connection: Connect the CAN H, CAN L, and GND terminals of the adapter to your CAN bus network. Ensure correct polarity.
  5. 120Ω Resistor: If your adapter is at either end of the CAN bus, enable the 120Ω termination resistor using the onboard switch. For mid-bus connections, disable the resistor.
  6. Software Configuration: Launch the provided master computer software (for Windows) or use serial commands (for Linux) to configure the CAN baud rate and other working parameters.
  7. Test Communication: Initiate a test communication to ensure the adapter is correctly sending and receiving data on the CAN bus.

13. Operating Instructions

Once the adapter is set up, you can begin operating it for CAN bus communication:

  • Select Working Mode: Choose the appropriate working mode (Normal, Loopback, Silent, Silent Loopback) based on your application requirements using the configuration software.
  • Configure Baud Rate: Set the desired CAN baud rate within the 5Kbps-1Mbps range.
  • Send Data: Use the software to send CAN data frames. You can choose between single frame, multiple frames, manual, regular, or cyclic sending modes.
  • Receive Data: Monitor incoming CAN data. Configure the receiving mode to filter by specific IDs or to automatically respond to configured data.
  • Data Logging: Save received CAN data to TXT or Excel files for later analysis.
  • CAN Bus Detection: Utilize the CAN bus detection feature to check the status and health of the CAN network.
  • Secondary Development: For custom applications, modify the sending and receiving commands as needed.

14. Maintenance

To ensure the longevity and optimal performance of your Waveshare USB to CAN Adapter Model A, follow these maintenance guidelines:

  • Keep Clean: Regularly clean the adapter with a soft, dry cloth. Avoid using harsh chemicals or solvents.
  • Storage: Store the adapter in a cool, dry place away from direct sunlight, extreme temperatures, and humidity when not in use.
  • Handle with Care: Avoid dropping or subjecting the adapter to physical shocks.
  • Cable Management: Ensure USB and CAN cables are not bent sharply or under excessive strain to prevent damage.
  • Software Updates: Periodically check the Waveshare website for updated drivers or software to ensure compatibility and access to the latest features.

15. Troubleshooting

If you encounter issues with your Waveshare USB to CAN Adapter Model A, refer to the following troubleshooting tips:

  • Adapter Not Detected:
    • Ensure USB cable is securely connected to both the adapter and the computer.
    • Verify that the PWR indicator on the adapter is lit.
    • Check if the USB virtual COM port drivers are correctly installed and recognized by your operating system. Try reinstalling them.
    • Test with a different USB port or computer.
  • No CAN Communication:
    • Confirm that the CAN H, CAN L, and GND connections to the CAN bus are correct and secure.
    • Verify that the CAN baud rate configured in the software matches the baud rate of the CAN bus network.
    • Check the 120Ω termination resistor switch setting. It should be enabled if the adapter is at the end of the bus, and disabled otherwise.
    • Ensure the CAN bus itself is operational and other devices on the bus are functioning correctly.
    • Try different working modes (e.g., Loopback mode for self-testing).
  • Data Corruption/Errors:
    • Check for electromagnetic interference (EMI) near the adapter or CAN bus cabling.
    • Ensure proper grounding of the CAN bus and the adapter.
    • Verify cable quality and length; excessively long or poor-quality cables can introduce errors.
    • Confirm that the CAN bus is properly terminated at both ends.
  • Software Issues:
    • Ensure you are using the latest version of the master computer software.
    • Restart the software and/or your computer.
    • Consult the software's documentation or help files for specific error messages.

If these steps do not resolve the issue, please contact Waveshare technical support for further assistance.

16. Specifications

Detailed technical specifications for the Waveshare USB to CAN Adapter Model A:

SpecificationValue
Model NumberUSB-CAN-A
CAN Protocol SupportCAN2.0A (standard frame), CAN2.0B (extended frame)
CAN Baud Rate5Kbps - 1Mbps (configurable)
USB Virtual COM Port Baud Rate9600 - 2000000bps (2000000bps by default)
Working ModesNormal, Loopback, Silent, Silent Loopback
Chip SolutionSTM32
ProtectionOnboard TVS (Transient Voltage Suppressor)
Compatible DevicesPersonal Computer, Laptop, Raspberry Pi OS systems
Hardware InterfaceUSB
Package Dimensions4.21 x 3.19 x 1.14 inches
Item Weight2.82 ounces (0.08 Kilograms)
ManufacturerWaveshare
Date First AvailableNovember 17, 2022

17. Warranty and Support

Waveshare products are designed for reliability and performance. For specific warranty details, please refer to the official Waveshare website or the documentation included with your purchase. For technical assistance, support resources, and additional information, please visit the Waveshare support portal or contact their customer service team. Keep your purchase receipt for warranty claims.