CANUSB and CAN232

CAN232 Support

Documentation, Code Examples and Supplemental Information for CAN232

Latest Documents

CAN232 User Manual

The CAN232 ASCII manual includes all commands for setting up CAN232 though RS232 and send and receive CAN frames through RS232.

CAN232 User Manual V3

Testing the CAN232

To get started, a quick test of the relevant settings and connections can be quite useful. And sometimes, you may wish to reset a used device in order to re-establish default settings. Follow the link to find out how to perform a quick check on a CAN232 adapter.

How to set up Acceptance Filters

CAN232 uses the SJA1000 CAN controller. For more information on how acceptance filters work please refer to the SJA1000 datasheet pages 44-48 and SJA1000 application note pages 19-22 (AN97076).

CAN232 can use both single and dual filter mode (from version 3). We have made two documents that show how to set these filters for both 11 bit IDs and 29 bit IDs in dual mode (default). When using dual filter mode, it is possible to set to regions of CAN IDs. When using 11 bit IDs this means it is possible to accept only one ID, but when using 29 bit IDs it is not possible to mask the whole ID. Also remember, if you only need one ID or one group of IDs, set both masks to the same, so the unwanted CAN frames do not slip through the second filter!

CAN Acceptence Filter for 11bit IDs using Dual Filter Mode

CAN Acceptence Filter for 29bit IDs using Dual Filter Mode


Latest Drivers

CAN232 works as an RS232-attached device, therefore it does not require any special drivers. Use the build-in serial / COM port functions of your operating system to read from or write to the CAN232.


Example Programs

Example programs in source code which we made or others have provided to us. We cannot support code not made by us, please contact the maker (if any) for support.

CAN232 Monitor Lite (C#)

C# CAN232 Monitor Lite

This CAN232 Monitor Lite is written in C# and Visual Studio 2010 and uses .Net version 4. It is a simple program which demonstrates how to “talk” to the CAN232 in C#. The code comes in full source code and may be used as you like as long as it is used together with our products. If you do not need source code, we have also provided an installer which installs the executables files only.

C# CAN232 Monitor Lite (Version 1.0.0, Source only)

C# CAN232 Monitor Lite (Version 1.0.0, 32bit Windows Installer)

CAN232 Demo (VB6)

Visual Basic 6 Demo for CAN232

This demo CAN232 software is written in VB version 6 and is a simple software to demonstrate how to “talk” to the CAN232 in Visual Basic 6. To be able to compile and change the code you need the VB6. If you only need the executable file, just download the ZIP file and unpack and run the CAN232.EXE file (Note however that you need the VB6 runtime files to be able to run it, we didn’t include them here to save space and bandwidth). Instructions are in the frmMain.frm file on how to use the sofware. Download the latest version, the old version 1.0.0 is there only for reference and for old CAN232 version 1 users.

VB6 Sample (Old Version 1.0.0)

VB6 Sample (Version 1.0.1)

CAN232 Monitor (Delphi 5)

CAN232 Monitor (Delphi 5)

CAN232 Monitor software is written in Delphi version 5 and is a simple tool to send and receive CAN frames at any given standard CAN speed and COM port. The software polls the CAN232 automatically at 100mS interval and an eventual frame is automatically listed in the window. It is also possible to send frames from it by setting up an ID, Data length (DLC) and 0 to 8 data bytes in hex. The software comes with full source code and uses a freeware LIB for the RS232 communication (see below for links to the RS232 LIB). This free version is free to use and modify to suit your needs and we cannot give any support on it or the RS232 LIB since it is freeware. To be able to compile and change the code you need the RS232 LIB as well. If you only need the executable file, just download the ZIP file and unpack and run the CAN232.EXE file. We originally developed this using version 2.6.3 of Dejan Crnila’s ComPort LIB, however his original Website has disappeared from the web, after a bit of research we found out that the project has moved to SourceForge and is now developed by several peoples. A new version is available which we havn’t tested yet with the Delphi Application.

Delphi 5 project (Version 1.05, Provided as is, no support from us)

Visit Dejan Crnila TComPort Library for Delphi & BC++.

CAN Delphi Example (Delphi 7)

CAN Delphi Example (Delphi 7)

CAN232 Project CANDe in Delphi 7 for Windows including full source code. This project uses a freeware COMlib (also included inside the zip). Currently LAWICEL cannot answer any support related questions of this project, contact the authour for support/information and that info can be found inside this package. We have tested the package and it works very will and we want to thanks the author for contributing his work!

One small note though, since the program also supports setting up diffrent RS232 speeds, do not select 230Kbaud unless you know your PC can handle this high RS232 speed. Most PC’s doesn’t unless they have a special UART board or e.g. a USB/RS232 dongle (like the US232B from FTDI) which can handle this high speed. If you accedently set the CAN232 into 230K, you can only reset it in an environment that can handle that speed or by by looking at the Attila Vass project above, how he solved it in his code or by contacting us for support.

CANDe Delphi 7 project (Provided as is, no support from us)


Other Tools

Terminal Software

For easy testing and learn our LAWICEL CAN ASCII protocol, we recommend using a terminal software and we have been using Terminal by Bray for many years now, it is just one file and requires no installation. Just visit the link below, download and place executable in a new folder or on desktop. This terminal software is nice in the way you can see non printable characters.

Terminal software by Bray


Legacy Documents

These manuals are here for reference only if you have an older version CAN232.

CAN232 ASCII Manual V2

CAN232 ASCII Manual V1


Disclaimer

THE SOFTWARE IS PROVIDED TO YOU “AS IS,” AND WE MAKE NO EXPRESS OR IMPLIED WARRANTIES WHATSOEVER WITH RESPECT TO ITS FUNCTIONALITY, OPERABILITY, OR USE, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR INFRINGEMENT. WE EXPRESSLY DISCLAIM ANY LIABILITY WHATSOEVER FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR SPECIAL DAMAGES, INCLUDING, WITHOUT LIMITATION, LOST REVENUES, LOST PROFITS, LOSSES RESULTING FROM BUSINESS INTERRUPTION OR LOSS OF DATA, REGARDLESS OF THE FORM OF ACTION OR LEGAL THEORY UNDER WHICH THE LIABILITY MAY BE ASSERTED, EVEN IF ADVISED OF THE POSSIBILITY OR LIKELIHOOD OF SUCH DAMAGES.

By downloading software from this site, you agree with the specified terms.