Page 1
CAN232 FD User Manual Revision B January 13, 2020...
Page 3
Grid Connect and the Grid Connect logo, and combinations thereof are registered trademarks of Grid Connect, Inc. All other product names, company names, logos or other designations mentioned herein are trademarks of their respective owners. CAN232 FD is a trademark of Grid Connect, Inc. Grid Connect 1630 W. Diehl Rd.
Page 4
The information in this guide may change without notice. The manufacturer assumes no responsibility for any errors that may appear in this guide. Date Rev. Author Comments 10/30/2019 Preliminary Release 01/13/2020 Updated pictures and diagrams CAN232 FD User Manual...
Page 5
The contents of this document shall not become part of or modify any prior or existing agreement, commitment or relationship. CAN232 FD User Manual...
1. Overview 1.1 Introduction The CAN232 FD enables the use of an RS232 COM port to send and receive CAN messages on an ISO11898 CAN or CAN FD network. The CAN232 FD can be configured to operate in either the serial command mode or the serial tunnel mode, providing the user with a choice as to the type of functionality desired.
The following drawing shows the location and function of the LEDs. 1.3 Model Description The CAN232 FD platform has the option of DTE (male) or DCE (female) on the RS232 serial cable. It has a Male DB9 CAN connector. CAN232 FD User Manual...
1.4 CAN Network Before trying to send commands to the CAN232 FD, 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 CAN232 FD will attempt to transmit the message indefinitely (as per CAN 2.0A/B specifications).
2.1 Software Installation 2.1.1 TeraTerm Install You will need an RS232 serial port and terminal emulation software in order to configure the CAN232 FD device over the serial line. For Windows platforms we recommend the Tera Term terminal emulator. You...
2.2.1 RS232 Serial Cable The table below lists the serial line data and control signals for the CAN232 FD. The RS232 interface is a 9- pin D-style connector. Male connectors are wired as DTE and female connectors are wired as DCE.
Dominant time-out circuit to expire. FAILSAFE The supply terminals have undervoltage detection that places the device in protected mode. This protects the bus during an undervoltage event on either of the supply terminals. CAN232 FD User Manual...
2.2.7 TTL Option This CAN-232 model option allows a user to connect TTL level signals to the board through the serial interface. This option is by special order and NOT a field option. CAN232 FD User Manual...
2.3.1 RS232 Interface: To view the Configuration menu, first connect the CAN232 FD serial cable to a PC running a monitor program, such as Tera Term. Set the COM port parameters to 115200, 8, 1, None. The cable should be a null-modem if the CAN232 FD is wired as DTE.
ASCII or Binary formatted message strings (Figure 3). Figure 3 When the CAN232 FD receives a valid command message on the serial line, it converts it to a CAN message and transmits it out over the CAN network.
Page 18
Normal CAN Message Syntax : <S | X> <IDENTIFIER> <N | F | H> <DATA-0> <DATA-1> … <DATA-n> ; The first character,‘:’, is for synchronization and allows the CAN232 FD parser to detect the beginning of a command string. The following character is either ‘S’ for standard 11-bit, or ‘X’ for extended 29-bit identifier type.
Page 19
RTR CAN Message Syntax : <S | X> <IDENTIFIER> <R> <LENGTH> ; The first character ,‘:’, is for synchronization and allows the CAN232 FD parser to detect the beginning of a command string. The following character is either ‘S’ for standard 11-bit, or ‘X’ for extended 29-bit identifier type.
3.1.1.4 Appending CR/LF To Received Command Strings When using the CAN232 FD to view received CAN messages directly on a terminal, the user can set a configuration parameter to append a <CR> <LF> sequence to each message string generated. This makes it easier for the user to see each received message as each message will be on a separate line.
Page 21
After the DLE SYNC sequence to start the message, a CAN message header format is defined, followed by the CAN data values. Note any of the header or data bytes might contain the $FF value and must be scanned to perform the byte stuffing. CAN232 FD User Manual 3-13...
Page 22
DATA-4 Byte-10 DATA-5 Byte-11 DATA-6 Byte-12 DATA-7 STD-RTR Message Format BIT-7 BIT-6 BIT-5 BIT-4 BIT-3 BIT-2 BIT-1 BIT-0 Byte-0 SYNC Byte-1 SELF- TYPE Byte-2 EXT=0 RTR=1 FD=0 LENGTH Byte-3 ID (10 -8) Byte-4 ID (7-0) 3-14 CAN232 FD User Manual...
Page 23
Byte-14 DATA-7 EXT-RTR Message Format BIT-7 BIT-6 BIT-5 BIT-4 BIT-3 BIT-2 BIT-1 BIT-0 Byte-0 SYNC Byte-1 SELF- TYPE Byte-2 EXT=1 RTR=1 FD=0 LENGTH Byte-3 ID (28-24) Byte-4 ID (23-16) Byte-5 ID (15-8) Byte-6 ID (7-0) CAN232 FD User Manual 3-15...
Page 24
BIT-2 BIT-1 BIT-0 Byte-0 SYNC Byte-1 SELF- TYPE Byte-2 EXT=0 FD=1 LENGTH CODE Byte-3 ID (10 -8) Byte-4 ID (7-0) Byte-5 DATA-0 Byte-6 DATA-1 Byte-7 DATA-2 Byte-8 DATA-3 DATA Byte-9 DATA-4 Byte-10 DATA-5 Byte-n DATA-N 3-16 CAN232 FD User Manual...
Page 25
LENGTH CODE Byte-3 ID (28-24) Byte-4 ID (23-16) Byte-5 ID (15-8) Byte-6 ID (7-0) Byte-7 DATA-0 Byte-8 DATA-1 Byte-9 DATA-2 Byte-10 DATA-3 DATA Byte-11 DATA-4 Byte-12 DATA-5 Byte-n DATA-N Length Code Defined Length Code Length $00-$08 CAN232 FD User Manual 3-17...
Page 26
The time-stamp field is always two logical bytes, but can be expanded up to four in the case where both MSB and LSB bytes are $FF. NORMAL Timestamped Message Format BIT-7 BIT-6 BIT-5 BIT-4 BIT-3 BIT-2 BIT-1 BIT-0 Byte-0 SYNC Byte-1 TYPE Byte-n DATA-N DATA Byte-n+1 TIMESTAMP (15-8) TIME STAMP Byte-n+2 TIMESTAMP (7-0) 3-18 CAN232 FD User Manual...
3.2.2 How Filtering Works Whenever the CAN232 FD receives a CAN message from the network, it checks to see if any filters are enabled. If none of the filters are enabled, it assumes no filtering should be performed and outputs the command message format to the serial port.
Page 28
The receive ID is used to specify which CAN message should be received by the CAN232 FD when waiting for incoming stream data. The CAN232 FD will filter out all other messages. When a CAN message containing this identifier is received, the data in the message is assumed to be stream data from another application on the CAN bus or perhaps from another CAN232 FD.
The root level is the entry point into configuration mode. Under the root level you can navigate to the config and status levels. There are also tools for backing up and restoring the configuration settings. >? config status export config import config exit CAN232 FD User Manual 4-21...
Here is an example of using Tera Term to log the configuration output to a file. First, configure the CAN232 FD to the desired settings and return to the root level. Second, in Tera Term click on File then Log…...
Page 31
Note: The configuration is stored as simple text and it can be edited, but it is recommended that edits to the configuration be done on the device for error checking and then use the export config command and log to a new file. Next, Click Close in the Tera Term: Log window. CAN232 FD User Manual 4-23...
Writes new configuration settings received over the serial line from a configuration file created using the export config command. Here is an example of using Tera Term to send the configuration file to the CAN232 FD. First, enter the import config command.
Exits the root level and leaves configuration mode. The device restarts with the last saved configuration settings. 4.3 status level Under the status level you can view device information and diagnostic data. status>? show all test exit CAN232 FD User Manual 4-25...
4.3.1 show all This will show all the CAN232 FD status information which includes factory settings, general configuration and a CAN bus health status. status>show all Device Name : CAN232 Serial Number : 000002 FW Version : 01.00 COM 115200 baud, 8, none, 1, none, command...
Page 35
4.5 config com The com level contains the serial communication settings. config com>? show baud <value> data bits <value> parity <value> stop <value> flow <value> mode <value> startup delay <value> exit CAN232 FD User Manual 4-27...
Page 36
Sets the serial communication mode to the options of command or tunnel. In the command mode, the CAN232 FD is capable of sending and receiving arbitrary CAN messages over the serial line via the use of ASCII or binary formatted messages.
Page 37
CAN Bus State During Configuration While the CAN232 FD 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 CAN232 FD while still connected to an active CAN network and not adversely affect network operation.
Page 38
4.6.5 FD <value> Set the CAN FD feature to enable or disable. With the CAN FD feature disabled (default), the CAN232 FD can only send and receive CAN 2.0A/B packets on the bus and makes the device incompatible with CAN FD networks.
Page 39
Sets the synchronization jump width (sjw) for the CAN receiver. This is the maximum number of Tq adjustment the receiver can make to adjust for oscillator differences between CAN nodes. It does not normally need to be adjusted. Any value from 1 to tseg2 will be accepted. CAN232 FD User Manual 4-31...
Page 40
It does not normally need to be adjusted. Any value from 1 to 16 will be accepted. The FDbaud rate, FDsample point, FDsjw and other FDexpert settings will be automatically adjusted accordingly when this parameter is changed. 4-32 CAN232 FD User Manual...
Page 41
Values of none, cr, lf, crlf and lfcr are valid. 4.9.6 config cmd <value> It is possible to enter configuration mode through the COM port in Command mode by enabling this option. Valid settings are enable or disable. ASCII mode command = :CONFIG; CAN232 FD User Manual 4-33...
When a CAN FD transmit is initiated by the trigger byte or the timer then the largest possible data length code, based on the remaining data length, is transmitted in successive packets until the initiated serial data is completely transferred. 4-34 CAN232 FD User Manual...
4.11.4 Setting Up Message Filters To use message filtering, each filter used must be enabled and configured as to the type of filtering that is desired. Once all configuration parameters have been saved and the CAN232 FD enters the normal CAN232 FD User Manual...
Sets the limiter type for this filter between none, divide and frequency. The none selection is the default and disables the limiter so all messages pass. The divide setting will only pass 1 message out of every scale messages. The frequency setting will only pass 1 message every scale milliseconds. 4-36 CAN232 FD User Manual...
Sets the limiter type for this filter between none, divide and frequency. The none selection is the default and disables the limiter so all messages pass. The divide setting will only pass 1 message out of every scale messages. The frequency setting will only pass 1 message every scale milliseconds. CAN232 FD User Manual 4-37...
Need help?
Do you have a question about the CAN232 FD and is the answer not in the manual?
Questions and answers