EasySYNC Ltd USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Document Reference No.: ES_000005 Version 1.32 Issue Date: 2011-04-06 The USB2-F-7001 and USB2-F-7101 provide a simple method of adapting CANbus devices to USB. The USB2-F-7101adds optical isolation for the CAN interface. Flexible mounting options allow the USB2-F-7001 and USB2-F-7101 to be used in a variety of applications. Indicator LEDs provide functional status.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 1 Introduction ................................................................................... 4 1.1 Functional Description .................................................................................. 4 1.2 LED Description ............................................................................................. 5 1.3 Block Diagram ...........................
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 5 6 7 8 4.1.14 Get Serial Number (N) ..............................................................................29 4.1.15 Reset Microcontroller (R) ...........................................................................30 4.1.16 Prepare Bootloader (B)..............................................................................31 Electrical details ............
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 1 Introduction 1.1 Functional Description The USB2-F-7001 and USB2-F-7101 are USB to CANbus adapters which incorporate the FTDI FT245R USB to FIFO interface IC device. The USB2-F-7101adds optical isolation for the CAN interface. These adapters provide a fast, simple way to CANbus devices to a host PC with a USB port.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 1.2 LED Description The USB2-F-7x01 uses three LEDs to indicate a valid link as well as CANbus status. The table below uses the following LED definitions. ON = LED constantly lit OFF = LED is constantly not lit Blinking = 2.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 1.3 Block Diagram USB B Client Connector USB Serial Bridge CANbus Controller FT245R PIC18F2680 CANbus Transceiver MCP2551 DE-9P Connector Optical Isolation USB2-F-7101 Only Figure 1.2 – USB2-F-7x01 Block Diagram 1.3.1 Block description USB B Client Connector This connector provides the interface for connection to a USB Host or Hub port.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 1.4 Features • Adds one CANbus port by connecting to USB • Easy plug & play installation and CANbus device connection • Works with USB 1.1 & 2.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 2 Installation 2.1 Hardware Installation There are no switches or jumpers to configure on the USB2-F-7x01. 2.1.1 Mounting The USB2-F-7x01 is provided with two mounting options: UniClip™ Wall/DIN rail mount or rubber feet. The UniClip Wall/DIN rail mount allows the USB2-F-7x01 to be permanently mounted to a wall or attached to a DIN rail.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 1 2 NODE CAN 0 NODE CAN NODE CAN NODE CAN 0 2 1 Pair Twisted The CANbus interface is provided through a DE-9P connector as defined by the CiA DS102-2 pin-out. Bus termination is not provided. A CANbus network requires 120Ω termination resistors at each end as noted in Figure 2.3.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 COM Port Assignment To determine which COM port has been assigned, open the Windows Device Manager from the System Control Panel. Figure 2.4 – Device Manager Click on the Plus “+” sign next to the Ports tree to list the available COM port. You will see “EasySYNC USB COM Port”, followed by a COMn assignment. In the figure below, the USB2-F-7x01 is assigned to COM3. Figure 2.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 Next, click on the “Port Settings” tab. Figure 2.7 – Settings Tab Then click on the “Advanced…” button. Figure 2.8 – Advanced Options This will display the various advanced settings. Note the COM port assignment in the upper left. Clicking on the drop-down list will display the available port numbers.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 The USB2-F-7x01 firmware can be updated for bug fixes and enhanced features. In order to update the firmware, obtain the updated firmware from the EasySYNC web site and follow the instructions contained in the readme file of the download. ©2008 - 2011 EasySYNC Ltd.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 3 Connections 3.1 External Connectors 3.1.1 USB The USB-F-7x01 is a downstream USB 2.0 Device. A standard USB Series “B” receptacle is mounted inside the USB-F-7x01 to facilitate connection to an upstream USB Host or Hub.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 4 Application Programming Interfaces 4.1 ASCII commands The following ASCII commands provide a means of utilizing an interactive terminal program, or communication through a standard COM or TTY port. Unrecognized commands return the ASCII BELL character (0x07).
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 Help (H, h or ?) Summary Lists available commands. Definition H, h or ? Parameters None Remarks Example: ? List available commands.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 4.1.1 Set CAN Channel Timing – simple (S) Summary Configure CAN interface with a pre-configured channel transmission rate. NOTE: The CAN channel will revert to its prior state after execution. For example if the channel is Open when this command is executed, the channel will update the setting and return to the Open state.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 4.1.2 Set CAN Channel Timing – advanced (s) Summary Configure CAN interface with a custom channel transmission rate. NOTE: The CAN channel will revert to its prior state after execution. For example if the channel is Open when this command is executed, the channel will update the setting and return to the Open state.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 4.1.3 Set Acceptance Mask (m) Summary The Acceptance Mask, in conjunction with the Acceptance Filter (M), defines which received messages (i.e. of a specific ID or range of CAN IDs) will be passed to the USB interface. The Acceptance Mask value corresponds to bits within a range of valid CAN IDs for either standard or extended CAN messages.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 4.1.4 Set Acceptance Filter (M) Summary The Acceptance Filter, in conjunction with the Acceptance Mask (m), defines which received messages (i.e. of a specific ID or range of CAN IDs) will be passed to the USB interface. The Acceptance Filter value corresponds to a valid CAN ID for either standard or extended CAN messages.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 4.1.5 Enable Time Stamp (Z) Summary Sets or clears time stamp on received frames. This value is persistent in EEPROM across reset or restart. Four (4) bytes are added to the end of a received frame. This value is a rolling 16-bit counter that increments once every millisecond and rolls over at 60,000mS (1 minute). Valid hex values are 0x0000 through 0xEA5F.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 4.1.6 Open CAN Channel (O) Summary Opens CAN channel for read/write operations. CAN channel must be initiated with selected speed (S or s) prior to use of Open. Definition O Parameters None Remarks Example: O Open CAN channel in normal communication mode.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 4.1.7 Open CAN Channel for Listen Only (L) Summary Opens the CAN channel in Listen Only mode. This is essentially the same as Open, although attempts to use either Transmit command (T or t) will result in an error. Listen Only mode is useful for monitoring the CAN channel without interaction from the CAN bus.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 4.1.8 Close CAN Channel (C) Summary Closes the CAN channel. This command provides backward compatibility with some existing CANbus adapters. Definition C Parameters None Remarks Example: C Close CAN channel. Return Codes = OK = ERROR ©2008 - 2011 EasySYNC Ltd.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 4.1.9 Echo / Synchronize (E) Summary Clear transmit data buffers. Data buffers should be cleared immediately after opening the CAN channel to prevent erroneous as a result of sending old data in the buffer. Definition E Parameters None Remarks Example: E Clear data buffers. Return Codes E = OK = ERROR ©2008 - 2011 EasySYNC Ltd.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 4.1.10 Transmit Standard CAN Frame – 11-bit ID (t) Summary Transmits a standard CAN frame with an 11-bit ID. The CAN channel must be Open (O) prior to transmitting any messages. Definition tiiildd..dd Parameters iii = 3-digit identifier in hex (000 through 7FF) l = Length (number of bytes) of data message dd = Data bytes in hex (00 through FF).
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 4.1.11 Transmit Extended CAN Frame – 29-bit ID (T) Summary Transmits an extended CAN frame with a 29-bit ID. The CAN channel must be Open (O) prior to transmitting any messages. Definition Tiiiiiiiildd..dd Parameters iiiiiiii = 8-digit identifier in hex (00000000 through 1FFFFFFF) l = Length (number of bytes) of data message dd = Data bytes in hex (00 through FF).
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 4.1.12 Get Status Flags (F) Summary Get CANbus and controller status. A two-byte BCD number is returned to correspond to the 8bits of the COMSTAT register of the PIC18F2680.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 4.1.13 Get Hardware and Firmware Versions (V) Summary Get hardware and firmware version numbers of USB2-F-7x01. Each value consists of a two-digit, binary coded decimal (BCD) number. Definition V Parameters None Remarks Example V Get serial number Return Codes Vxxyy = OK xx = hardware version yy = firmware version = ERROR ©2008 - 2011 EasySYNC Ltd.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 4.1.14 Get Serial Number (N) Summary Get serial number of USB2-F-7x01. Definition N Parameters None Remarks Example N Get serial number Return Codes Nxxxx = OK xxxx = serial number of the USB2-F-7x01. It is possible to have alphanumeric values. = ERROR ©2008 - 2011 EasySYNC Ltd.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 4.1.15 Reset Microcontroller (R) Summary Resets PIC18F2680 MCU. Configurations are preserved in EEPROM. This command is useful if the USB2-F-7x01 becomes unresponsive. LEDs will be in the state mentioned in Section 1.2. Definition R Parameters None Remarks Example R Reset PIC18F2680 Return Codes = OK. = ERROR ©2008 - 2011 EasySYNC Ltd.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 4.1.16 Prepare Bootloader (B) Summary Resets PIC18F2680 MCU into Bootloader mode. Only use this command immediately prior to loading new firmware onto the USB2-F-7x01. Definition B Parameters None Remarks Example B Prepare to load new firmware NOTE: The firmware programming utility must be run in order to recover from the Bootloader Mode.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 5 Electrical details 5.1 USB Parameter Description USB_VCC Input Power Voltage Minimum Typical Maximum Units 4.25 5.0 5.25 V Conditions Present when USB cable is attached and USB Host or Hub powered. USB2-F-7001 150 mA USB current Icc USB Host or SelfPowered Hub ports only. USB2-F-7101 Bus-powered hubs are 450 mA Maximum Units Conditions 0.5 4.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 6 Mechanical Details 6.1 Module Mechanical Dimensions Figure 6.1 – USB2-F-7x01 Case Dimensions ©2008 - 2011 EasySYNC Ltd.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 6.2 UniClip™ Mechanical Dimensions Figure 6.2 – USB2-F-7x01 Case Dimensions with UniClip ©2008 - 2011 EasySYNC Ltd.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 7 Physical Environment Details 7.1 Storage Parameter T Description Storage Temperature Range Minimum Typical TBD Maximum TBD Units Conditions o C Table 7.1 – Storage Temperature 7.2 Operating Parameter T Description Operating Temperature Range Minimum –40 Typical Maximum +85 Units o C Conditions 5% to 95% RH, non condensing Table 7.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 8 Environmental Approvals & Declarations 8.1 EMI Compatibility FCC and CE The USB2-F-7x01 has been tested to be compliant with both FCC Part 15 Subpart B and European EMC Directive. NOTE: This is a Class B product. In a domestic environment, this product may cause radio interference, in which case the user may be required to take adequate measures.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 8.5 Import / Export Information Import / Export Information for USB2-F-7001 and USB2-F-7101 Country of Origin China Harmonized Code 8471.80.1000 Product Description USB to CANbus Computer Adapter, Single Port USA ECCN EAR99 – No License Required Table 8.1 – Import / Export Information ©2008 - 2011 EasySYNC Ltd.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 9 Troubleshooting 9.1 Hardware If the Yellow LED is not lit when plugged into the host our hub, check the following: - USB cable is properly inserted at both ends - Computer power is ON - Computer is not in Sleep or Standby - If a USB Hub is used, be sure it is set for “Self-Powered” operation - If a USB Hub is used, be sure all cables are properly inserted.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 ©2008 - 2011 EasySYNC Ltd.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 10 Technical Support Technical support may be obtained from your nearest EasySYNC office: United Kingdom: support@easysync.co.uk United States: support@easysync-ltd.com Application Notes and support documentation For further CAN support documentation, refer to the following EasySYNC CAN programmers guide, application and technical notes: PG_USB2-F-7x01_API_Guide.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 11 Contact Information Head Office – Glasgow, UK EasySYNC Limited Unit 1, 2 Seaward Place, Centurion Business Park Glasgow, G41 1HH United Kingdom Tel: +44 (0) 141 418 0181 Fax: +44 (0) 141 418 0110 E-Mail (Sales) E-Mail (Support) E-Mail (General Inquiries) Web Site URL Web Shop URL sales@easysync-ltd.com support@easysync-ltd.com admin@easysync-ltd.com http://easysync-ltd.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 Appendix A – References Bosch CAN Specification, Version 2.0: http://www.semiconductors.bosch.de/pdf/can2spec.pdf CAN in Automation (CiA): www.can-cia.org Future Technology Devices International Ltd. (FTDI) www.ftdichip.com Microchip www.microchip.com ©2008 - 2011 EasySYNC Ltd.
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 Appendix B – List of Figures and Tables List of Figures Figure 1.1 –USB2-F-7x01 ........................................................................................... 4 Figure 1.2 – USB2-F-7x01 Block Diagram ................................................................... 6 Figure 2.1 – USB2-F-7x01 with UniClip Brackets ..................................................
Document Reference No.: ES_000005 USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide Version 1.32 Clearance No.: ES#02 Appendix C – Revision History Version 1.0 Initial Release Apr 2009 Version 1.01 Added reference to USB2-F-7001 API Guide May 2009 Version 1.02 Corrected Get Flags “F” command return value May 2009 Version 1.1 Changed “Acceptance Code” to “Acceptance Filter” throughout the document. Corrected Acceptance Mask and Acceptance Filter definitions.
Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: EasySync: USB2-F-7101 USB2-F-7001