background image

Troubleshooting 

 

1-4 

 

 

CAN USB-232 User Manual 

1.4 CAN Network 

Before trying to send commands to the CAN USB-232, make sure the unit is attached to a valid CAN 
network with at least one other node attached and running. Without another node on the network, the CAN 
USB-232 will attempt to transmit the message indefinitely (as per CAN 2.0A/B specifications). 

Make sure there are terminating resistors on the network. A terminating resistance of 120 ohms is 
appropriate for ISO11898 drivers. Attempts to communicate over the CAN network without terminating 
resistors can lead to erratic behavior and many long hours of trouble shooting. 

CAN ISO11898 specifies a three wire bus: CAN_H, CAN_L, and GROUND. Failure to provide a common 
ground between network nodes will create some weird behavior. At best, the system will appear to 
communicate correctly until either the weather changes, you touch something, or the date changes. CAN_H 
and CAN_L form a differential pair and each one must be referenced to ground in order to work properly. 

 

PIN 

Function 

CAN-L 

CAN-Ground 

CAN-Ground 

CAN-H 

Summary of Contents for CAN USB-232

Page 1: ...CAN USB 232 User Manual Revision E August 1 2016 ...

Page 2: ......

Page 3: ...e information contained herein Grid Connect Inc products are not designed intended authorized or warranted for use as components in systems intended for surgical implant into the body or in other applications intended to support or sustain life or in any other application in which the failure of a Grid Connect Inc product could create a situation where personal injury death or severe property or e...

Page 4: ...stallation This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with this guide may cause harmful interference to radio communications Changes or modifications to this device not explicitly approved by Grid Connect will void the user s authority to operate this device The information in this guide may change without notice The manufacture...

Page 5: ... operate substantially for a period of 60 DAYS after the date of shipment In no event will Grid Connect be responsible to the user in contract in tort including negligence strict liability or otherwise for any special indirect incidental or consequential damage or loss of equipment plant or power system cost of capital loss of profits or revenues cost of replacement power additional expenses in th...

Page 6: ...Input Power 2 11 2 2 7 Isolated Power Option 2 12 2 2 8 OEM Options 2 12 2 2 9 Configuration Push Button 2 13 2 2 10 CAN Driver 2 14 2 2 11 TTL Option 2 15 2 3 Entering Configuration Mode 2 16 2 3 1 RS232 Interface 2 16 2 3 2 USB Interface 2 16 2 3 3 Config Button 2 17 2 4 Mode Options 2 19 2 4 1 Get Mode 2 19 2 4 2 Set Mode 2 19 2 5 COM Options 2 19 2 5 1 Get Com Port 2 19 2 5 2 Set Com Port 2 20...

Page 7: ...6 2 8 8 Set CAN Virtual Circuit Forced Wake Code 2 37 2 8 9 Set CAN Virtual Circuit Timeout Send 2 38 2 8 10 Set CAN Virtual Circuit Wake Timeout 2 39 2 8 11 Set CAN Virtual Circuit Wait after Wakeup 2 40 2 8 12 Set CAN Virtual Circuit Wakeup Message 2 41 2 9 Defining Filter Entries 2 42 2 10 Using Message Filters 2 42 2 10 1 How Filtering Works 2 42 2 10 2 Setting Up Message Filters 2 43 2 10 3 G...

Page 8: ...e Note Text 2 54 2 15 8 Set Active Profile to Default 2 54 2 15 9 Set Specific Profile to Default 2 54 2 15 10 Set All Profiles to Default 2 54 2 16 Serial Number in Config Mode 2 54 2 16 1 CAN Port SERNUM Interaction 2 54 2 16 2 Get Serial Number 2 54 2 16 3 Get Version Number 2 55 2 17 Test Options 2 55 2 17 1 Cycling LED Indicators 2 55 2 17 2 Generating CAN Square Wave 2 55 2 17 3 Test LEDs 2 ...

Page 9: ... the config button Pressing the button causes the CAN USB 232 to enter configuration mode where it then prompts the user to modify configuration parameters In addition to parameter configuration the configuration mode also provides diagnostic tools to assist in the measurement of bus signal propagation time and termination characteristics The CAN USB 232 represents an evolution of the earlier CAN ...

Page 10: ...ons This option must be selected at the time of purchase With the additional microcontroller FLASH memory available the new units support a user accessible boot loader allowing users to download firmware updates by themselves By using the time tested and very simple XMODEM protocol widely available in terminal emulation programs end users can download firmware directly through the COM RS232 or COM...

Page 11: ... Data Power COM RX Serial Receive Data CAN TX Transmit Data CAN RX Receive Data COM TX Serial Transmit Data Power 1 3 Model Description There are two hardware platforms both of which execute the same firmware with one providing a CAN RS232 interface and the other a CAN USB interface The CAN RS232 platform has the option of DTE male or DCE female on the RS232 serial cable and the option of a Male o...

Page 12: ... 120 ohms is appropriate for ISO11898 drivers Attempts to communicate over the CAN network without terminating resistors can lead to erratic behavior and many long hours of trouble shooting CAN ISO11898 specifies a three wire bus CAN_H CAN_L and GROUND Failure to provide a common ground between network nodes will create some weird behavior At best the system will appear to communicate correctly un...

Page 13: ...r Window XP AN_104_FTDI_Drivers_Installation_Guide_for_WindowsXP FT_000093 pdf See Note 1 AN 119 Drivers for Windows 7 AN_119_FTDI_Drivers_Installation_Guide_for_Windows7 pdf See Note 1 Windows CE 4 2 5 2 Installation Guide Windows_CE_Installation_Guide pdf See Note 2 Windows CE 6 0 Installation Guide Windows_CE_Installation_Guide pdf See Note 2 Help Tips Additional Help Information help tips pdf ...

Page 14: ...into your CD ROM drive The CD will automatically start and display the main window If the CD does not launch automatically a Locate your CD Drive Example CD RW Drive D b Double click on autorun exe to start the CD browser Figure 1 CD Main Window 1 Click on an item for more information 2 Click the Browse CD button to view the contents of the CD 3 Click the Go to Software Page button to view softwar...

Page 15: ...6 32 bit folder 2 1 2 2 MAC OS X Please read the AN_134_FTDI_Drivers_Installation_Guide_for_MAC_OSX pdf file in the Mac OS X folder on the software CD 2 1 2 3 Windows The drivers for Windows includes the following versions of the Windows operating system Windows XP Windows Server 2003 Windows Vista Windows Server 2008 Windows 7 Windows Server 2008 R2 Please read the Windows application note AN_104...

Page 16: ...ws Mobile 6 Windows Mobile 6 1 Windows Mobile 6 5 Please read the application note Windows_CE_Installation_Guide pdf The purpose of this document is to provide users of FTDI chips with a simple procedure for installing drivers for their devices on PDAs and targets running Windows CE 4 2 and later The application note and drivers files are contained on the software CD in the Windows CE 4 2 5 2 fold...

Page 17: ...t power source The factory default configuration has no internal connection to J1 pin 2 For more details about power see Power Options on page 2 10 The signal on J1 pin 9 is named XCFG PB which is the External Configuration Push Button input This signal is NOT connected to the DB9 Male cable at the factory If you need the push button input contact the sales department to get a quote for a custom c...

Page 18: ...2 2 3 Power Options For the CAN 232 model power 7 24 VDC can be supplied through a Phoenix terminal block J7 through a barrel jack J9 through the serial cable usually pin 9 to J1 Pin 2 or through the OEM option connector J10 pin 1 The factory default is the Barrel Jack J9 The Jumper J8 should be in position 3 2 for Phoenix or barrel jack power Jumper J8 should be in position 1 2 for serial cable o...

Page 19: ...em Locator CAN 232 J4 J3 J5 J9 J1 S1 J8 J2 J6 2 2 5 Item Locator CAN USB J6 J4 J3 J2 J1 S1 J5 2 2 6 Input Power The input power range is from 7 24VDC for the CAN 232 model The 5V regulator U5 supplies power to the U6 the 3 3V regulator D8 is the Power LED ...

Page 20: ...e a full industrial operating temperature range of 40 C to 85 C without derating The device is 2kVDC rated in a UL94V 0 package Note The isolated option must be selected at the time the unit is ordered This is not a field upgrade option 2 2 8 OEM Options The OEM version comes without a USB or RS232 cable It is designed to be part of an embedded product Instead of a cable connector a 10 pin header ...

Page 21: ...and ground to pin 10 2 2 9 Configuration Push Button Pressing the recessed push button for less than 3 seconds will put the processor into configuration mode Pressing the recessed push button for MORE than 3 seconds will reset the unit to factory defaults See the Configuration chapter for detailed operation ...

Page 22: ...o the bus and differential receive capability to a CAN controller at signaling rates up to 1 megabit per second Mbps Designed for operation in especially harsh environments the device features cross wire overvoltage and loss of ground protection from 27 V to 40 V and over temperature shut down as well as 12 V to 12 V common mode range The ISO1050 is characterized for operation over the ambient tem...

Page 23: ...h for normal operation This shutdown circuit prevents catastrophic failure due to short circuit faults on the bus lines If the device cools sufficiently after thermal shutdown it will automatically re enable and may again rise in temperature if the bus fault is still present Prolonged operation with thermal shutdown conditions may affect device reliability BUS LOADING In the CAN standard ISO 11898...

Page 24: ...t the COM port parameters to 115200 8 1 None The cable should be a null modem since the CAN 232 is wired as DTE 2 3 2 USB Interface Use Device Manager to determine which port the CAN USB module is assigned Device Manager will show the device as a USB Serial Port To view the Configuration menu first connect the CAN USB cable to a PC running a monitor program such as Terra Term Set the COM port para...

Page 25: ...tarted CAN USB 232 User Manual 2 17 2 3 3 Config Button Press the Config button for less than 3 seconds located next to the cable The config prompt should appear as 0 Type help or to display the prompt messages ...

Page 26: ...ly change from RUN to CONFIG and back to RUN mode without needing to change COM port settings Note For USB devices the COM port settings have no effect as the actual baud rate is the full USB speed at all times To get help with a specific item type help xx where xx is the number in the left column next to each menu item The commands are detailed in the same sequence as they appear in the following...

Page 27: ...SCII formatted message strings In virtual circuit mode VC the CAN USB 232 establishes a full duplex virtual circuit between itself and another CAN USB 232 or application device By providing a virtual circuit over the CAN network applications can exchange data in a network transparent fashion using existing CAN network cabling as a data link 2 4 2 Set Mode 2 5 COM Options 2 5 1 Get Com Port ...

Page 28: ... bit rate settings can be specified as a bit rate sampling point and tolerance The code will find the best fit solution 2 6 2 CAN Bus State During Configuration While the CAN USB 232 is in the configuration mode the CAN controller is in the bus off state It does not interact with the bus and is effectively invisible Thus it is possible to perform configuration of the CAN USB 232 while still connec...

Page 29: ...Getting Started CAN USB 232 User Manual 2 21 2 6 3 Get CAN Port 2 6 4 Set CAN Port Baud Sample Point ...

Page 30: ...Troubleshooting 2 22 CAN USB 232 User Manual 2 6 5 Set CAN Port Baud Sample Point Tolerance 2 6 6 Set CAN Port Baud Sample Point Browse ...

Page 31: ...8 Set CAN Port CLK_DIV BRG TSEG1 TSEG2 SJW The TSEG1 parameter determines the amount of time to wait before the hardware attempts to sample the bit The value can range from 1 to 16 The TSEG2 parameter determines the amount of time remaining before the end of the bit The value can range from 1 to 8 ...

Page 32: ... out over the CAN network Conversely when a CAN message is received by the CAN USB 232 it converts it to an ASCII message string and transmits it out of the serial port The CAN USB 232 supports ten 10 CAN receive message filters consisting of STD EXT STD RANGE or EXT RANGE By using the masks to specify which bits of an identifier are to be compared to the filter value the CAN USB 232 is capable of...

Page 33: ...nd receive message strings are identical There are two types of message strings Normal CAN messages Request To Transmit CAN messages RTR As per the CAN 2 0A B specification RTR messages do not contain data To support RTR messages the syntax is modified to include an explicit single digit length 2 7 2 Normal CAN Message A normal CAN message consists of the type 11 bit or 29 bit identifier length an...

Page 34: ...he value of the identifier Note that if a 29 bit value is entered and an 11 bit value was specified the command will be treated as invalid and ignored The character R indicates that the message is a RTR transmission The LENGTH field is a single ASCII decimal character from 0 to 8 that specifies the length of the message The terminating character signals the end of the message 2 7 3 1 Examples Exam...

Page 35: ...Getting Started CAN USB 232 User Manual 2 27 2 7 5 Binary Formatted Messages The tables below show the format for Binary message format ...

Page 36: ...Troubleshooting 2 28 CAN USB 232 User Manual ...

Page 37: ...Getting Started CAN USB 232 User Manual 2 29 2 7 6 Get CAN Command Mode Settings 2 7 7 Set CAN Command Mode Filter On Off ...

Page 38: ...Troubleshooting 2 30 CAN USB 232 User Manual 2 7 8 Set CAN Command Mode RX Operating Mode 2 7 9 Set CAN Command Mode RX Input Format 2 7 10 Set CAN Command Mode TX Output Format ...

Page 39: ...s and recreates the original data stream on its serial output port This operation is fully transparent to the connected application devices The virtual circuit requires two user configurable CAN identifiers in order to identify the source destination devices for the circuit Since virtually every CAN protocol provides a sub set of unused or user specific identifiers establishing a virtual circuit o...

Page 40: ...om the serial COM port The CAN message is then sent over the CAN network This identifier signals that the CAN message which contains it also contains serial port stream data Other CAN USB 232 units can be configured to look for this identifier and will then extract the stream data from the CAN message The XMIT identifier can be either standard 11 bit or extended 29 bit 2 8 3 RCEV Identifier The RC...

Page 41: ...Getting Started CAN USB 232 User Manual 2 33 2 8 4 Get CAN Virtual Circuit Setting ...

Page 42: ...Troubleshooting 2 34 CAN USB 232 User Manual 2 8 5 Set CAN Virtual Circuit TX ID ...

Page 43: ...Getting Started CAN USB 232 User Manual 2 35 2 8 6 Set CAN Virtual Circuit RX ID ...

Page 44: ...Troubleshooting 2 36 CAN USB 232 User Manual 2 8 7 Set CAN Virtual Circuit Forced Send Code ...

Page 45: ...Getting Started CAN USB 232 User Manual 2 37 2 8 8 Set CAN Virtual Circuit Forced Wake Code ...

Page 46: ...Troubleshooting 2 38 CAN USB 232 User Manual 2 8 9 Set CAN Virtual Circuit Timeout Send ...

Page 47: ...Getting Started CAN USB 232 User Manual 2 39 2 8 10 Set CAN Virtual Circuit Wake Timeout ...

Page 48: ...Troubleshooting 2 40 CAN USB 232 User Manual 2 8 11 Set CAN Virtual Circuit Wait after Wakeup ...

Page 49: ...hese codes will be overridden by the CONFIG sequence check For example if either of the force wake or force tx codes is enabled and the CONFIG command is enabled should the config command sequence match one of the force codes it will be treated as a config command character To avoid this either change the force codes or change the config command sequence ...

Page 50: ...x100 0x001 to 0x010 29 bit 0x200 0x300 to 0x3FF All other IDs received are ignored 2 10 Using Message Filters In command mode the CAN USB 232 supports message filtering through the use of identifier masks and filter values providing the ability to receive only a sub set of all the possible CAN identifiers This can greatly reduce the required data bandwidth on a busy network by only allowing certai...

Page 51: ...order 1 Enable the filter 2 Specify if standard or extended and if single ID or ID range Once all configuration parameters have been saved and the CAN USB 232 enters the normal operating mode the new filter settings will become active and will be applied to each received CAN message 2 10 3 Get CAN Filter The list can be viewed with the get can filter command The list is sorted in ascending order E...

Page 52: ...AN ID or id min id max ____ std or ext Note Once you set the CAN filter make sure you set the command mode Filter to ON 2 10 5 Delete CAN Filter Either a single entry or and entry range can be specified Entries are identified by their index number Indexes remaining are re sorted so there are no gaps EX 1 del can filter 1 ...

Page 53: ...Getting Started CAN USB 232 User Manual 2 45 2 10 6 Delete CAN Filter Range 2 10 7 Delete CAN Filter All ...

Page 54: ... the BINARY command are ASCII C O N F I G In VC mode 1 second idle time followed by three characters followed by 1 second idle time The exact sequence can be specified by the user The set get cfgcmd configuration command will allow you to enable disable the CONFIG command and set additional parameters described below CM Mode get cfgcmd cm Returns the current state of the CM mode config command set...

Page 55: ...nce 1000 to 10000 ms default 1000 set cfgcmd vc tid timeout Maximum IDLE time between sequence characters 10 to 1000 ms default 1000 set cfgcmd vc seq text Defines the command sequence text to match 1 to 10 characters long default Note For the text specified in the seq parameter arbitrary ASCII values can be entered with the backslash escape sequence followed by three decimal digits from 0 to 255 ...

Page 56: ...et cfgcmd vc tend timeout 2 11 7 set cfgcmd vc tid timeout 2 11 8 set cfgcmd vc seq sequence 2 12 CAN Timestamp Commands Received CAN messages can now have a 16 bit time stamp appended to them with a 1 ms resolution For backward compatibility this feature is disabled by default and can be enabled by a configuration command ...

Page 57: ...ppear as they would normally except the prefixed timestamp is added Ex 1 S12N12 F00F This is a 11 bit identifier with 1 data byte and timestamp of F00F ms Ex 2 X13N 2EDF This is a 29 bit identifier with 0 data bytes and timestamp of 2EDF ms Ex 3 S14R5 15E5 This is a 11 bit identifier with RTR 5 and timestamp of 15E5 ms In short the timestamp is always prefixed with a character The timestamp is var...

Page 58: ...es are lost while waiting for the CAN bus to become available In order to prevent this a timeout parameter can be specified that will ensure additional input parsing can occur at the expense of some CAN messages This will allow a CONFIG command sequence to be recognized even when the CAN bus is overloaded or faulty The command to set get the timeout follows get can timeout Gets the timeout setting...

Page 59: ... CM mode In VC mode it is automatically disabled Operation when enabled Received CAN messages are compared against the RX identifier specified during configuration If there is a match ID type RTR etc then the unit will respond with two CAN messages using the two TX identifiers defined during configuration The identifiers can be all the same or different so long as they respect the rules of the CAN...

Page 60: ...0 to 9 profile note all Returns a list of all profile notes Note When all is specified the return format depends on whether the command was entered in EDIT or ANGLED mode If in edit mode it is returned as a list with each profile note on a separate line In angled mode it is returned as a single line between angle brackets profile note Text Sets the profile note for the current profile to Text defa...

Page 61: ...the currently active profile 2 15 4 Profile Note profile note Returns the nore for the specified profile number 0 to 9 2 15 5 Profile Note All profile note all Returns a list of all profile notes 2 15 6 Profile Note Text profile note Text Sets the profile note for the current profile to Text default ...

Page 62: ...et Specific Profile to Default 2 15 10 Set All Profiles to Default 2 16 Serial Number in Config Mode 2 16 1 CAN Port SERNUM Interaction The SERNUM command provides a means for the user to query the CAN USB 232 for its unique 128 bit serial number The GET SERNUM command only works while in CONFIG mode and always returns the serial number over the COM port 2 16 2 Get Serial Number ...

Page 63: ...y To terminate the diagnostic press any key or the config button 2 17 2 Generating CAN Square Wave The CAN USB 232 can generate a square wave output onto the CAN bus arbitrary frequencies It is useful for measuring propagation delay through cabling with the aid of an oscilloscope and can be used to evaluate bus termination The square wave frequency can be in the range of 10 000 to 1 000 000 Hz 2 1...

Page 64: ...Send S 5 Enter the path to the IMAGE file and press enter You should see a progress bar indicating how the download is proceeding When it is done the device will start up in CM mode as per defaults To confirm operation press the CONFIG button normally i e less than three seconds and you will be in CONFIG mode 2 19 Technical Support If you are experiencing a problem please read the user manual and ...

Page 65: ...CAN USB 232 User Manual 2 1 ...

Reviews: