» » USB-CAN

USB-CAN

$ 125.00

Fgallery1-2

SKU: USB-CANV3.0 Category:

Product Description

USB-CAN allows interface between a P.C. with a USB port to any CAN (Controller Area Network) CAN(Controller Area Network) provides a powerful robust communications engine that is built into hardware. For real-time motion control applications. The deterministic nature of the CAN bus makes it a powerful tool for distributed motion control. Here are some of CAN important traits

  • When a bus collision occurs, the higher priority message wins, and transmission continues as if nothing happened. (With Ethernet, the collision would cause both nodes to wait a random time before re-transmission, and is therefore not a deterministic bus)
  • CAN’s physical layer uses a Differential transceiver, which makes for a robust noise immune transmission medium.
  • CAN’s hardware bit-stuffs and appends checksums to message packets, to provide 100% assurance that the message a Slave received was accurate
  • CAN’s hardware will also continually re-transmit a message packet until another CAN node acknowledges the proper reception of the message packet

Hardware Version 4.0 is now available in both isolated and non-isolated versions

 

FEATURES:

  • This is a great little board that really screams. It can run up to 127 CAN nodes.
  • This board is available in an ISOLATED version while maintaining the maximum CAN baud rate of 1 MBPS.
  • 4 Leds provide visual feedback for the devices operation
  • A USB based bootloader updates the on-board firmware in approx. 3 seconds.
  • 40MHz PIC Microcontoller 18F6680 running at 10MIPS
  • CAN (Controller Area Network Interface) running up to 1Mbps
  • BAUD rate is selectable via USB port 125K, 250K, 500K or 1M BAUD or set the BRGCON1, BRGCON2, and BRGCON3 internal registers for user controllable BAUD and SJW settings
  • Microchips ICD2 Debugging Port Header available for experimentors
  • FTDI’s FT245BM allows USB messages at 12Mbps and provides lots of buffering for high speed USB messages
  • Philips TJA1050 CAN transceiver for superior high speed performance
  • Transient Voltage suppressing diodes protect the board against an ESD event.
  • Built in 120 Ohm terminator! You always need one for the master side anyway! (Don’t forget the terminating resistor at the end of the cable) The resistor has a user-removable jumper if termination is not needed.
  • The board is fully passive when unplugged from the USB-port
  • A silent mode allows the board to listen to the bus, but not transmit any ACK’s for passive CAN bus monitoring
  • A loopback mode allows you to easily test windows software code without requiring another CAN node on the bus.
  • A special SYNC mode allow the microcontroller to send out a user defined CAN message at a constant user defined beat rate.
  • This board is powered via the USB bus, and is a great way for DIY’s(Do it yourself’ers) to get started in USB and CAN. For beginners, you can use FTDI’s virtual com port drivers and program the board like a standard serial port. Or use FTDI’s Visual C++ D2XX drivers for high speed communication.
  • All CAN Hardware Emergency messages are asychronously passed back to the Host Computer for instant notification of CAN bus problems. Most of the CAN hardware registers are readable to find out exactly what the problem is.
  • You can set all CAN Receive message FILTERS and MASKS directly from the Host Computer.
  • If you want to have multiple CAN busses, each USB-CAntastic board is pre-programmed at the factory with a unique serial number (in a seperate EEPROM) that allows you to run multiple boards from your HOST Computer.(A cheap USB HUB would be required.)
  • Free Windows source code and free technical support get you up and running fast!

PINOUT:

  • CAN_H and CAN_L should always be a twisted pair and must be terminated with a 120 Ohms resistor at the opposite end of the bus. (Simply connect a 120Ohm resistor between CAN_L and CAN_H)
  • The CAN_SHIELD (The shield inside your cable) should only be connected on one side of the cable to earth ground. (You don’t want to setup a ground loop.)
  • SPARE1 and SPARE2 are currently not programmed to do anything, but can be used as either an analog input, digital input, or digital output. Please contact sales@apoxcontrols.com if you would like custom features added to the firmware.
  • The +5V and GND pins should be used sparingly, never draw more than 50 mA from the +5V pin.

LED OPERATION

The unit has 4 LEDS. The two LEDS closest to the CAN connector are used for CAN, and the two leds closest to the USB cable are used for USB! However, the unit always powers up in bootcode (This allows you to download new firmware). A Green LED will blink in a steady on-off pattern while in bootcode. The PC must switch the unit out of bootcode into maincode to begin operation. When the PC switches the unit into the maincode (The normal firmware), you will see a chase pattern on the leds, This will only last a second or two. Then all LEDS will turn off until a valid message is received

  • The red LED closest to the USB cable will blink once when the USB-CANtastic receives a valid message packet from the HOST Computer.
  • The green LED closest to the USB cable will blink once when it is sending a message packet to the Host Computer via USB.
  • The red LED closest to the CAN connector will blink once when the USB-CANtastic receives a valid CAN message packet from the CAN bus.
  • The green LED closest to the CAN connector will blink once when the USB-CANtastic is transmitting a CAN message over the CAN bus.

USB-CAN Drivers…

Note: Before you can begin software development with the USB-CAN board, you must install the correct driver. This allows your software to interface to your operating systems USB hardware interface. After the driver has been installed, you can download the example software written in Microsoft Visual C++ V6.0 by clicking on the “Example Software” link to your left.

Step 1.) Download the latest  USBCANDriver2.04.06 and unzip to a local directory. Step 2.) Plug in your USB-CAN4 board, the Windows Plug and Play System will ask you for the location of the driver. Point the installation to the directory you used in Step 1, and the drivers will be installed. Step 3.) Your USB-CAN4 board is now ready to be used.
To check for the latest drivers available from FTDI, please click the following link to obtain drivers for your Operating System. FTDI’s web site
LINUX USERS: Example software for the LINUX Operating system is now being developed, however LINUX drivers are available from the FTDI web site, if you would like to port the current Windows Example software to the Linux Operating System.

USB-CAN Firmware…

Get the latest firmware .HEX file     LATEST BOOTLOADER FIRMWARE:

Hardware Version Software Version
V4.0  USB-CAN Bootloader

Download the latest USB Bootloader This file can be downloaded via the ICD2 (In Circuit Debugger) port. It comes pre-installed on all boards to allow for easy upgrading of the main firmware.   LATEST FIRMWARE:   Right Click on the file, and Select “Save Target as” to download to your PC.

Hardware Version Firmware File
V3.0 USBCAN3.0 Firmware Version 4.1 (Obsolete)
V3.0 USBCAN3.0 Firmware Version 4.3 (Obsolete)
V4.0 USBCAN4.0 Firmware Version 4.1 (Obsolete)
V4.0      USBCAN4.0 Firmware Version 4.3 (Obsolete)
V4.A      USBCAN4.0 Firmware Version 4.A (Latest)

This is the actual firmware that runs the PIC18F Microcontroller to control the USB and CAN communications. You should burn this code in using the Bootloader program in the sample Windows code. Or if you do not want/need the bootloader, you can burn this code in directly using the ICD port. PC SIDE SOFTWARE (C++)

USB-CANtastic PC Side Software Download Center

 

Most companies charge a premium for high quality source code. But at Apox Controls Electronics you get a complete working Source Code example including the Driver Code to interface to FTDI’s D2XX DLL file. This will literally save you hundreds of hours getting synchronized CAN communications working. It is a fairly simple task to add on higher level protocols such as CANopen or DeviceNet to this base software!

Download the Latest Windows Visual C++ example here. NOTE: Version 2.0 includes a installation program, and 29 bit support, as well as timestamp support.

Latest USB-CAN C++ Visual Studio example software

Software developers: I have provided the Windows software code to show you how the byte stuffing is accomplished. The protocol is actually fairly straight forward, and a small byte stuffing state machine insures reliable communications. (every serial protocol needs some sort of framing and checksums to insure proper reception) Luckily this is handled in hardware on the CAN side. Support for this board is free, and we will be available for any questions via e-mail. All USB software drivers for this kit are provided by FTDI. (So I highly suggest you get the latest D2XX drivers directly from the FTDI web site.) This site also has all the information you need concerning the USB side of things. (www.ftdichip.com) The Microchip 18F258 was used for this project. and the 5 pin header interfaces to Microchips ICD2 header. Source code for the CCS compiler is available.

Features of this software:

  • Send CAN messages
  • Receive CAN messages
  • Setup Special Hardware Sync CAN message with beat rate
  • Change the CAN hardware modes. (LISTEN MODE, and LOOPBACK MODE is very useful for debugging your software)
  • Set all of the CAN RX filters
  • Read all data from the USB EEPROM
  • Get notifications about any Emergency messages from the CAN hardware.
  • Query various CAN hardware registers
  • A Bootloader Interface allows quick downloads of the latest main firmware

 


If you have any technical questions about this board, please contact us at support@apoxcontrols.com


Copyright © 2014, Apox Controls.

  USBCAN

Additional Information

Weight 0.2 lbs
Dimensions 6 x 2.5 x 2 in