background image

Document Reference No.: ES_000008 

S1-A-7001 RS232 to 1-Port CANbus Adapter User Guide 

Version 1.2 

Clearance No.: ES #03 

 

 

©2009-10 EasySync Ltd. 

9

 

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. 

 

Pin Number 

Pin Type 

Description 

Input 

RXD = RS232 Data INPUT 

Output 

TXD = RS232 Data OUTPUT 

Ground 

GND = RS232 signal ground 

Input 

CTS = RS232 Handshake INPUT 

Output 

RTS = RS232 Handshake OUTPUT 

Table 3.1 – RS232 Pin-Out 

 

3.1.2

 

CANbus 

The CANbus port conforms to the CiA DS102-2 pin-out through a 9-contact D-Sub Pin connector.  Pin 
assignments are noted below: 

 

Pin Number 

Pin Type 

Description 

n/a 

Not Connected 

Bidirectional 

CAN_L - CANbus low-side signal of differential pair 

Ground 

Signal Ground 

n/a 

Not Connected 

Ground 

Signal Ground 

Ground 

Signal Ground 

Bidirectional 

CAN_H – CANbus high-side signal of differential pair 

n/a 

Not Connected 

PWR 

+6V to +15V Battery Supply Voltage 

Table 3.2 – DE-9P DS102-2 CANbus Pin-Out 

Содержание S1-A-7001

Страница 1: ...ng 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 ...

Страница 2: ...1 External Connectors 9 3 1 1 RS232 9 3 1 2 CANbus 9 4 Application Programming Interfaces 10 4 1 ASCII commands 10 4 1 1 Help H h or 11 4 1 3 Set UART Baud Rate U 12 4 1 4 Set CAN Channel Timing simple S 13 4 1 5 Set CAN Channel Timing advanced s 14 4 1 6 Set Acceptance Mask m 15 4 1 7 Set Acceptance Filter M 16 4 1 8 Enable Time Stamp Z 17 4 1 9 Open CAN Channel O 18 4 1 10 Open CAN Channel for L...

Страница 3: ... 29 6 Mechanical Details 30 6 1 Module Mechanical Dimensions 30 7 Physical Environment Details 31 7 1 Storage 31 7 2 Operating 31 8 Environmental Approvals Declarations 32 8 1 EMI Compatibility 32 8 2 Safety 32 8 3 Environmental 32 8 4 Reliability 32 8 4 1 MTTF 32 8 5 Import Export Information 33 9 Troubleshooting 34 9 1 Hardware 34 Technical Support 35 10 Contact Information 36 Appendix A Referen...

Страница 4: ...A 7001 requires an external power supply with an input voltage range of 6VDC to 15VDC Figure 1 1 S1 A 7001 Its small size allows the S1 A 7001 to be used in a variety of applications from a portable adapter to accompany a laptop to permanent installations in industrial and commercial locations The enclosure incorporates a DE 9S connector that allows connection to an RS232 device in DTE configurati...

Страница 5: ...A 7001 On Active Power is connected to the S1 A 7001 Green RUN CAN Run LED State Description Blinking PREOPERATIONAL The device initialized Single flash STOPPED The device is in state STOPPED Channel is Closed On OPERATIONAL The device is in state OPERATIONAL Channel is Open Red ERR ERR LED State Description Category Off No error The device is in working condition Blinking Invalid Configuration Ge...

Страница 6: ...bus Controller CANbus Controller The Microchip PIC18F4680 runs firmware that converts the communication from the RS232 to CANbus protocol CANbus Transceiver The Microchip MCP2551 converts logic level signals from the CANbus controller to CANbus physical signals These signals consist of a differential pair CAN_H and CAN_L DE 9P Connector Male The DE 9P connector is configured in an industry standar...

Страница 7: ...Performance Figures Parameter Performance RS232 Interface 2 4Kbps 9 6Kbps 19 2Kbps 38 4Kbps 57 6Kbps default 115 2Kbps 230 4Kbps 460 8Kbps and 1 0Mbps CANbus Interface 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 3 Ordering Information ...

Страница 8: ...ng Connect the DE 9S connector to a RS232 port 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 Wiring to CANbus nodes through the middle of the network must ensure a short tap length Figure 2 1 Canbus Network 2 3 Firmware Update Th...

Страница 9: ...Data OUTPUT 5 Ground GND RS232 signal ground 7 Input CTS RS232 Handshake INPUT 8 Output RTS RS232 Handshake OUTPUT Table 3 1 RS232 Pin Out 3 1 2 CANbus The CANbus port conforms to the CiA DS102 2 pin out through a 9 contact D Sub Pin connector Pin assignments are noted below Pin Number Pin Type Description 1 n a Not Connected 2 Bidirectional CAN_L CANbus low side signal of differential pair 3 Grou...

Страница 10: ... settings for a terminal program to assist in the human readability of command responses are 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 The CAN messages are received...

Страница 11: ...ds Return Codes List of Supported Commands O Open CAN Channel C Close CAN Channel t Transmit Standard Frame T Transmit Extended Frame F Read Status Flag V S1 A 7001 Version N Serial Number of S1 A 7001 Z TimeStamp Option On Off S Set CAN Bit Rate s Set BRGCON Registers m Set Acceptance Mask M Set Acceptance Filter B Enter Bootload Mode L Set Listen Mode E Clear Buffers and Echo Char R Reset S1 A 7...

Страница 12: ...en number of times NOTE Ensure the attached RS232 device can be configured for the new baud rate prior to using this command Failure to do so may result in an unusable configuration Many terminal programs do not have settings beyond 115 2Kbps The 1 0Mbps setting cannot be used with a COM port set to 921 6Kbps Definition Urate_selector CR Parameters LED Flash on Power Up Reset rate_selector 0 230 4...

Страница 13: ...mission 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 Definition Srate_selector CR Parameters rate_selector 0 10Kbps 1 20Kbps 2 50Kbps 3 100Kbps 4 125Kbps 5 250Kbps 6 500Kbps 7 800Kbps 8 1Mbps default Remarks Example S5 CR Set CAN transmission...

Страница 14: ... to the Open state Definition Saabbcc CR Parameters aa contents of PIC 18F4680 BRGCON1 register in hexadecimal bb contents of PIC 18F4680 BRGCON2 register in hexadecimal cc 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 prov...

Страница 15: ...tion For example if the channel is Open when this command is executed the channel will update the setting and return to the Open state Definition miii CR for standard 11 bit CAN messages miiiiiiii CR for extended 29 bit CAN messages Parameters iii standard 11 bit CAN mask 0x000 through 0x7FF iiiiiiii extended 29 bit CAN mask 0x00000000 through 0x1FFFFFFF A value of 0 in a bit location indicates th...

Страница 16: ... 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 Definition Miii CR for standard 11 bit CAN messages Miiiiiiii CR for extended 29 bit CAN messages Parameters iii standard 11 bit CAN ID 0x000 through 0x7FF iiiiiiii extended 29 bit CAN ID 0x00000000 through 0x1FFFFFFF Default i...

Страница 17: ... counter that increments once every millisecond and rolls over at 60 000mS 1 minute Valid hex values are 0x0000 through 0xEA5F 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 Definition Zn CR Parameters n 0 disable time stamp feature 1 enable time st...

Страница 18: ... be initiated with selected speed S or s prior to use of Open Definition O CR Parameters None Remarks Example O CR 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 Once the CAN channel is synchronized received data is automatically sent from the CAN network to the controlling applicat...

Страница 19: ...ul for monitoring the CAN channel without interaction from the CAN bus CAN channel must be initiated with selected speed S or s prior to use of Listen When in Listen mode the channel must first be Closed C and then opened with Open O prior to attempting to transmit frames NOTE A minimum of three nodes are required on the CANbus network for Listen mode to function Definition L CR Parameters None Re...

Страница 20: ...ion 1 2 Clearance No ES 03 2009 10 EasySync Ltd 20 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 Parameters None Remarks Example C CR Close CAN channel Return Codes CR OK BELL ERROR ...

Страница 21: ...0 EasySync Ltd 21 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 CR Parameters None Remarks Example E CR Clear data buffers Return Codes E CR OK BELL ERROR ...

Страница 22: ... prior to transmitting any messages Definition tiiildd dd CR 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 The number of bytes must match message length Remarks Example t34580123456789ABCDEF Transmit a 11 bit ID frame with ID 0x345 Data 0x01 0x23 0x45 0x67 0x89 0xAB 0xCD 0xEF Example t4560 Transmit an 11 bit ID ...

Страница 23: ...ng any messages Definition Tiiiiiiiildd dd CR 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 The number of bytes must match message length Remarks Example T1234567880123456789ABCDEF Transmit a 29 bit ID frame with ID 0x12345678 Data 0x01 0x23 0x45 0x67 0x89 0xAB 0xCD 0xEF Example T123456780 Transmi...

Страница 24: ...t CANbus status Return Codes xx CR OK xx CANbus status A bit set to 1 indicates a true condition bit 0 Flag bit 1 or Flag bit 2 is set bit 1 Receive Warning 127 Receive Error Counter 95 bit 2 Transmit Warning Transmit Error Counter 95 bit 3 Receive Bus Passive Receive Error Counter 127 Will cause RED LED to Single Flash bit 4 Transmit Bus Passive Transmit Error Counter 127 Will cause RED LED to Si...

Страница 25: ...nc Ltd 25 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 Remarks Example V CR Get serial number Return Codes Vxxyy CR OK xx hardware version yy firmware version BELL ERROR ...

Страница 26: ...2 Clearance No ES 03 2009 10 EasySync Ltd 26 4 1 17 Get Serial Number N Summary 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 ...

Страница 27: ...onfigurations 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 Definition R CR Parameters None Remarks Example R CR Reset PIC18F4680 Return Codes CR OK BELL ER...

Страница 28: ...09 10 EasySync Ltd 28 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 CR Parameters None Remarks Example B CR Prepare to load new firmware Return Codes Entering Bootloader Mode Boot BELL ERROR ...

Страница 29: ...ctrical Details 5 2 CANbus Parameter Description Minimum Typical Maximum Units Conditions Vtrans Transmitter output voltage swing 0 5 4 5 V See Microchip MCP2551 datasheet for complete details Vrec Receiver input voltage range 0 3 5 3 V See Microchip MCP2551 datasheet for complete details ESD HBM 6 KV See Microchip MCP2551 datasheet for complete details Table 5 2 CANbus Electrical Details 5 3 RS23...

Страница 30: ...ence No ES_000008 S1 A 7001 RS232 to 1 Port CANbus Adapter User Guide Version 1 2 Clearance No ES 03 2009 10 EasySync Ltd 30 6 Mechanical Details 6 1 Module Mechanical Dimensions Figure 6 1 S1 A 7001 Case Dimensions ...

Страница 31: ...sical Environment Details 7 1 Storage Parameter Description Minimum Typical Maximum Units Conditions T Storage Temperature Range TBD TBD o C Table 7 1 Storage Temperature 7 2 Operating Parameter Description Minimum Typical Maximum Units Conditions T Operating Temperature Range 40 85 o C 5 to 95 RH non condensing Table 7 2 Operating Temperature ...

Страница 32: ...io communications However there is no guarantee that interference will not occur in a particular installation If this equipment does cause harmful interference to radio or television reception which can be determined by turning the equipment off and on the user is encouraged to try to correct the interference by one or more of the following measures Reorient or relocate the receiving antenna Incre...

Страница 33: ... 1 2 Clearance No ES 03 2009 10 EasySync Ltd 33 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 ...

Страница 34: ...ork If additional termination resistors are present through the CANbus network or if one of the termination resistors is missing at one of the ends the CANbus network will not communicate Twisted Pair The CANbus network consists of a differential pair of signals which greatly reduce noise on the signals Failure to use twisted pair may cause erroneous communications or cause the CANbus network to c...

Страница 35: ... 1 Port CANbus Adapter User Guide Version 1 2 Clearance No ES 03 2009 10 EasySync Ltd 35 Technical Support Technical support may be obtained from your nearest EasySync office United Kingdom support easysync co uk United States support easysync ltd com ...

Страница 36: ...l Sales sales easysync co uk E mail Support support easysync co uk E mail General Enquiries admin easysync co uk Web Site URL http easysync co uk Web Shop URL http easysync co uk Branch Office Hillsboro Oregon USA EasySync Limited USA 7235 NW Evergreen Parkway Suite 600 Hillsboro OR 97123 5803 USA Tel 1 503 547 0909 Fax 1 503 547 0990 E Mail Sales sales easysync ltd com E Mail Support support easy...

Страница 37: ...rt CANbus Adapter User Guide Version 1 2 Clearance No ES 03 2009 10 EasySync Ltd 37 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 ...

Страница 38: ... 1 Canbus Network 8 Figure 6 1 S1 A 7001 Case Dimensions 30 List of Tables Table 1 1 LED Description 5 Table 1 2 Performance Figures 7 Table 1 3 Ordering Information 7 Table 3 1 RS232 Pin Out 9 Table 3 2 DE 9P DS102 2 CANbus Pin Out 9 Table 5 1 Power Supply Electrical Details 29 Table 5 2 CANbus Electrical Details 29 Table 5 3 RS232 Electrical Details 29 Table 7 1 Storage Temperature 31 Table 7 2 ...

Страница 39: ...ft 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 20th May 2009 Corrected power input voltage range Version 1 1 Changed Acceptance Code to Acceptance Filter throughout the document 9th July 2009 Corrected Acceptance Mask and Acceptance Filter definitions Version 1 2 Changed to silver black ...

Страница 40: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information EasySync S1 A 7001 ...

Отзывы: