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.
Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 1 Introduction ................................................................................... 4 1.1 Functional Description .................................................................................. 4 1.2 LED Description ............................................................................................. 5 Block Diagram ...........................................
Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 5 6 4.1.18 Reset Microcontroller (R) ...........................................................................27 4.1.19 Prepare Bootloader (B)..............................................................................28 Electrical details ........................................................................... 29 5.1 Power Requirements ......................................
Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 1 Introduction 1.1 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. The integrated electronics include a Microchip PIC with the ECAN controller.
Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 1.2 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.
Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 Block Diagram DE-9S RS232 Connector RS232 CANbus Controller Level Shifter PIC18F2680 CANbus Transceiver MCP2551 DE-9P CANbus Connector Figure 1.2 – S1-A-7001 Block Diagram 1.2.1 Block description RS232 DE-9S Connector This connector provides the interface for connection a RS232 device. Most PC RS232 ports or other RS232 adapters are configured for DTE.
Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 1.4 Performance Figures Parameter RS232 Interface CANbus Interface Performance 2.4Kbps, 9.6Kbps, 19.2Kbps, 38.4Kbps, 57.6Kbps (default), 115.2Kbps, 230.4Kbps, 460.8Kbps and 1.0Mbps. 10Kbps to 1Mbps Table 1.2 – Performance Figures 1.5 Ordering Information Part Number Description S1-A-7001 CAN-Plus RS232 to 1-Port CANbus Adapter Table 1.
Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 2 Installation 2.1 Example Applications and Configurations 2.2 Hardware Installation There are no switches or jumpers to configure on the S1-A-7001. 2.2.1 Mounting The S1-A-7001 can be installed in-line with a standard RS232 DE-9P to DE-9S straight-through cable. It can also be attached directly to the back of a host computer DE-9P RS232 port. 2.2.
Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 3 Connections 3.1 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.
Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 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_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 4.1.1 Help (H, h or ?) Summary Lists available commands. Definition H, h or ? Parameters None Remarks Example: ? List available commands.
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.3 Set UART Baud Rate (U) Summary Configure RS232 interface with a chosen baud rate. This rate is independent of the CANbus baud rate. 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.
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.
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.5 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_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.
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.
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. 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_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. Definition O Parameters None Remarks Example: O Open CAN channel in normal communication mode. Once the CAN channel is open, it is necessary to execute the Echo/Synchronize (E or e) command to flush the data buffers.
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. Listen Only mode is useful for monitoring the CAN channel without interaction from the CAN bus.
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 Parameters None Remarks Example: C Close CAN channel. Return Codes = OK = ERROR ©2009-10 EasySync Ltd.
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. Definition E Parameters None Remarks Example: E Clear data buffers. Return Codes E = OK = ERROR ©2009-10 EasySync Ltd.
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. 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_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. 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_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 8bits of the COMSTAT register of the PIC18F4680.
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.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 Parameters None Remarks Example V Get serial number Return Codes Vxxyy = OK xx = hardware version yy = firmware version = ERROR ©2009-10 EasySync Ltd.
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.17 Get Serial Number (N) Summary Get serial number of S1-A-7001. Definition N Parameters None Remarks Example N Get serial number Return Codes Nxxxx = OK xxxx = serial number of the S1-A-7001. It is possible to have alphanumeric values. = ERROR ©2009-10 EasySync Ltd.
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) 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. The RS232 baud rate set by the U command is not changed. The CANbus data rate is reset to 1Mbps.
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. Definition B Parameters None Remarks Example B Prepare to load new firmware Return Codes Entering Bootloader Mode… Boot:> = ERROR ©2009-10 EasySync Ltd.
Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 5 Electrical details 5.1 Power Requirements Parameter VCC Description Minimum Input Power Voltage Typical 6.0 Maximum Units 15 V Conditions *Normal operation Icc Supply current 10 40* 100** mA **Fault condition of CANbus in constant Dominant state Table 5.1 – Power Supply Electrical Details 5.
Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 6 Mechanical Details 6.1 Module Mechanical Dimensions Figure 6.1 – S1-A-7001 Case Dimensions ©2009-10 EasySync Ltd.
Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 7 Physical Environment Details 7.1 Storage Parameter T Description Storage Temperature Range Minimum Typical Maximum TBD TBD Units Conditions o C Table 7.1 – Storage Temperature 7.2 Operating Parameter T Description Operating Temperature Range Minimum Typical Maximum –40 +85 Units o C Conditions 5% to 95% RH, non condensing Table 7.
Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 8 Environmental Approvals & Declarations 8.1 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.
Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 8.5 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 – No License Required Table 8.1 – Import / Export Information ©2009-10 EasySync Ltd.
Document Reference No.: ES_000008 S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide Version 1.2 Clearance No.: ES #03 9 Troubleshooting 9.
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.
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 Tel: +44 (0) 141 418 0181 Fax: +44 (0) 141 418 0110 E-mail (Sales) E-mail (Support) E-mail (General Enquiries) Web Site URL Web Shop URL sales@easysync.co.uk support@easysync.co.uk admin@easysync.co.uk http://easysync.co.uk http://easysync.co.
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.
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 – Canbus Network ...
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 20th March 2009 Version draft 2nd Draft 11th May 2009 Version draft 3rd Draft 18th May 2009 Version 1.0 1st Release 19th May 2009 Version 1.01 Corrected Get Flags “F” command return value Corrected power input voltage range 20th May 2009 Version 1.