EasySync S1-A-7001 User Manual

Rs232 to 1-port canbus adapter
Table of Contents

Advertisement

Quick Links

EasySync Ltd
S1-A-7001 RS232 to 1-Port CANbus
Adapter

User Guide

Document Reference No.: ES_000008
Version 1.2
Issue Date: 2010-02-23
The S1-A-7001 provides a simple method of adapting CANbus devices to RS232.
EasySync Ltd
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 (Support):
support@easysync.co.uk
Web:
http://www.easysync.co.uk
Neither the whole nor any part of the information contained in, or the product described in this manual, may be adapted or reproduced
in any material or electronic form without the prior written consent of the copyright holder. This product and its documentation are
supplied on an as-is basis and no warranty as to their suitability for any particular purpose is either made or implied. EasySync Ltd will
not accept any claim for damages howsoever arising as a result of use or failure of this product. Your statutory rights are not affected.
This product or any variant of it is not intended for use in any medical appliance, device or system in which the failure of the product
might reasonably be expected to result in personal injury. This document provides preliminary information that may be subject to
change without notice. No freedom to use patents or other intellectual property rights is implied by the publication of this document.
EasySync Ltd, Unit 1, 2 Seaward Place, Centurion Business Park, Glasgow, G41 1HH, United Kingdom. Scotland Registered Number:
SC224924
Copyright © 2009-10 EasySync Limited

Advertisement

Table of Contents
loading

Summary of Contents for EasySync S1-A-7001

  • Page 1: User Guide

    This product and its documentation are supplied on an as-is basis and no warranty as to their suitability for any particular purpose is either made or implied. EasySync Ltd will not accept any claim for damages howsoever arising as a result of use or failure of this product.
  • Page 2: Table Of Contents

    Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 Introduction ................... 4 Functional Description .................. 4 LED Description ..................... 5 Block Diagram ......................6 1.2.1 Block description ..................6 Features ......................6 Performance Figures ..................
  • Page 3 Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 4.1.18 Reset Microcontroller (R) ................27 4.1.19 Prepare Bootloader (B)................28 Electrical details ................29 Power Requirements ................... 29 CANbus ....................... 29 RS232 ......................29 Mechanical Details ................
  • Page 4: Introduction

    Clearance No.: ES #03 Introduction Functional Description The S1-A-7001 is a RS232 to CANbus adapter which operates at up to 1Mbps on both RS232 and CANbus interfaces. Each S1-A-7001 contains a small internal electronic circuit board mounted inside of a plastic case capable of withstanding industrial temperature ranges.
  • Page 5: Led Description

    Version 1.2 Clearance No.: ES #03 LED Description The S1-A-7001 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.5Hz, alternating ON and OFF...
  • Page 6: Block Diagram

    This connector provides the interface for connection a RS232 device. Most PC RS232 ports or other RS232 adapters are configured for DTE. The S1-A-7001 pin connection allows use of a straight-through DE-9P to DE-9S cable. The S1-A-7001 can also be connected directly to a mating RS232 port with the integral thumb-screws.
  • Page 7: Performance Figures

    Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 Performance Figures Parameter Performance 2.4Kbps, 9.6Kbps, 19.2Kbps, 38.4Kbps, 57.6Kbps (default), 115.2Kbps, RS232 Interface 230.4Kbps, 460.8Kbps and 1.0Mbps. CANbus Interface 10Kbps to 1Mbps Table 1.2 –...
  • Page 8: Document Reference No.: Es

    Figure 2.1 – Canbus Network Firmware Update The S1-A-7001 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.
  • Page 9: Connections

    Connections External Connectors 3.1.1 RS232 The S1-A-7001 is configured to allow use of a straight-through 9-pin RS232. It can also be directly connected to a host computer port. RS232 signal names are defined in Table 3.1. Pin Number Pin Type...
  • Page 10: Application Programming Interfaces

    Echo typed characters locally – the S1-A-7001 does not echo characters. Append line feeds to incoming carriage returns (0x0D). The S1-A-7001 defaults to 57.6Kbps RS232 communications. If a different RS232 bit rate is chosen, that rate will be the new default on subsequent power cycles.
  • Page 11: Help (H, H Or ?)

    L - Set Listen Mode E - Clear Buffers and Echo Char R - Reset S1-A-7001 U – Set UART Baud Rate H, ? or h - Help on S1-A-7001 Commands <CR> = OK <BELL> = ERROR ©2009-10 EasySync Ltd.
  • Page 12: Set Uart Baud Rate (U)

    The RS232 baud rate is stored and retained across power cycles. Upon power-up or reset (R) of the S1-A-7001, the RED LED will flash a given number of times. NOTE: Ensure the attached RS232 device can be configured for the new baud rate prior to using this command.
  • Page 13: Set Can Channel Timing - Simple (S)

    Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 4.1.4 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.
  • Page 14: Set Can Channel Timing - Advanced (S)

    = contents of PIC 18F4680 BRGCON3 register (in hexadecimal) Remarks The S1-A-7001 utilizes a 24MHz clock for the PIC 18F4680. Use this value when referring to the PIC datasheet if a custom transmission rate different from those provided with the “S” command above is required.
  • Page 15: Set Acceptance Mask (M)

    Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 4.1.6 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 RS232 interface. The Acceptance Mask value corresponds to bits within a range of valid CAN IDs for either standard or extended CAN messages.
  • Page 16: Set Acceptance Filter (M)

    Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 4.1.7 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 RS232 interface. The Acceptance Filter value corresponds to a valid CAN ID for either standard or extended CAN messages.
  • Page 17: Enable Time Stamp (Z)

    Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 4.1.8 Enable Time Stamp (Z) Summary Sets or clears time stamp on received frames. This value is persistent in EEPROM across reset or restart.
  • Page 18: Open Can Channel (O)

    Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 4.1.9 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.
  • Page 19: Open Can Channel For Listen Only (L)

    Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 4.1.10 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.
  • Page 20: Close Can Channel (C)

    Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 4.1.11 Close CAN Channel (C) Summary Closes the CAN channel. This command provides backward compatibility with some existing CANbus adapters. Definition C<CR>...
  • Page 21: Echo / Synchronize (E)

    Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 4.1.12 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.
  • Page 22: Transmit Standard Can Frame - 11-Bit Id (T)

    Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 4.1.13 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.
  • Page 23: Transmit Extended Can Frame - 29-Bit Id (T)

    Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 4.1.14 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.
  • Page 24: Get Status Flags (F)

    Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 4.1.15 Get Status Flags (F) Summary Get CANbus and controller status. A two-byte BCD number is returned to correspond to the 8- bits of the COMSTAT register of the PIC18F4680.
  • Page 25: Get Hardware And Firmware Versions (V)

    S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 4.1.16 Get Hardware and Firmware Versions (V) Summary Get hardware and firmware version numbers of S1-A-7001. Each value consists of a two-digit, binary coded decimal (BCD) number. Definition V<CR> Parameters None...
  • Page 26: Get Serial Number (N)

    Get serial number of S1-A-7001. Definition N<CR> Parameters None Remarks Example N<CR> Get serial number Return Codes Nxxxx<CR> = OK xxxx = serial number of the S1-A-7001. It is possible to have alphanumeric values. <BELL> = ERROR ©2009-10 EasySync Ltd.
  • Page 27: Reset Microcontroller (R)

    Reset Microcontroller (R) Summary Resets PIC18F4680 MCU. Configurations are preserved in EEPROM. This command is useful if the S1-A-7001 becomes unresponsive. The RED LED will flash to indicate the RS232 baud ate, followed by entering the state mentioned in Section 1.2.
  • Page 28: Prepare Bootloader (B)

    Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 4.1.19 Prepare Bootloader (B) Summary Resets PIC18F4680 MCU into Bootloader mode. Only use this command immediately prior to loading new firmware onto the S1-A-7001.
  • Page 29: Electrical Details

    Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 Electrical details Power Requirements Parameter Description Minimum Typical Maximum Units Conditions Input Power Voltage *Normal operation **Fault condition of Supply current 100**...
  • Page 30: Mechanical Details

    Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 Mechanical Details Module Mechanical Dimensions Figure 6.1 – S1-A-7001 Case Dimensions ©2009-10 EasySync Ltd.
  • Page 31: Physical Environment Details

    Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 Physical Environment Details Storage Parameter Description Minimum Typical Maximum Units Conditions Storage Temperature Range Table 7.1 – Storage Temperature Operating Parameter Description...
  • Page 32: Environmental Approvals & Declarations

    EMI Compatibility FCC and CE The S1-A-7001 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.
  • Page 33: Import / Export Information

    Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 Import / Export Information Import / Export Information Country of Origin China Harmonized Code 8471.80.1000 Product Description RS232 to CANbus Computer Adapter, Single Port USA ECCN EAR99 –...
  • Page 34: Troubleshooting

    Polarity: The CANbus network consists of a CAN_H and CAN_L signal. Care must be taken to follow the polarity. Always connect CAN_H to CAN_H, and CAN_L to CAN_L. Ensure the CANbus network is only connected to the S1-A-7001 after connection to a RS232 port. See Section 1.2 for default LED power-up patterns.
  • Page 35: Technical Support

    Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 Technical Support Technical support may be obtained from your nearest EasySync office: United Kingdom: support@easysync.co.uk United States: support@easysync-ltd.com ©2009-10 EasySync Ltd.
  • Page 36: 10 Contact Information

    Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 10 Contact Information Head Office – Glasgow, UK EasySync Limited Unit 1, 2 Seaward Place, Centurion Business Park Glasgow, G41 1HH United Kingdom...
  • Page 37: Appendix A - References

    Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 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 Microchip www.microchip.com ©2009-10 EasySync Ltd.
  • Page 38: Appendix B - List Of Figures And Tables

    Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 Appendix B - List of Figures and Tables List of Figures Figure 1.1 –S1-A-7001 ............................4 Figure 1.2 – S1-A-7001 Block Diagram ......................6 Figure 2.1 –...
  • Page 39: Appendix C - Revision History

    Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 Appendix C - Revision History Version draft Initial Draft March 2009 Version draft 2nd Draft May 2009 Version draft Draft May 2009 Version 1.0...
  • Page 40 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: EasySync S1-A-7001...

Table of Contents