The CAN232 ASCII manual includes all commands for setting up CAN232 though RS232 and send and receive CAN frames through RS232.
CAN232 can use both single and dual filter mode (from version 3). We have made two documents that shows how to set these filters for both 11bit ID’s and 29bit ID’s in dual mode (default). When using dual filter mode, it is possible to set to regions of CAN ID’s. When using 11bit ID’s this means it is possible to accept only one ID, but when using 29bit ID’s it is not possible to mask the who ID. Also remember if you only need one ID or one group of ID to set both masks to the same, so the unwanted CAN frames do not slip through the second filter!
CAN232 uses SJA1000 CAN controller. For more information on how acceptence filters works we refer to the SJA1000 datasheet pages 44-48.
CAN232 do not require a special COM port driver, since COM ports can be read and written to without any special drivers in all OS and/or compilers.
Sample Programs (source code):
Sample code 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.
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)
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 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)
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 Software (no source code):
For easy testing without getting to know the LAWICEL CAN ASCII protocol, check out our new CAN Monitor Lite C# application which requires .Net 4, but the installer will take care of that if it is missing. While composing the transmit CAN frame, you could see the result on how to send ASCII commands. The application supports both 11bit and 29bit ID’s and also RTR frames.
It can also be downloaded in full source code (see above). This software also works with CANUSB and FTDI VCP USB driver. It works in Windows XP, Windows Vista and Windows 7. Will be tested shortly in Windows 8.
C# CAN232 Monitor Lite (Version 1.0.0, 32bit Windows Installer)
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.
External Projects for CAN232:
CAN232 Project in C for Linux is written by Attila Vass from USA. He has made some excellent programs for the CAN232 such as a Acceptance Register Calculator, Data Collector and Logger and much more mainly to be used to log CAN from 04 Prius, however much of the general source code could be used as getting started with C & Linux. All source code and information could be found at his site.
These C files can be ported to e.g. Windows platform or any other C environment, since all source code is included. Currently LAWICEL cannot answer any support related questions of this project, contact information can be found at the site below.
Visit Attila Vass 04 Prius Project (Project is on external server)
If you have any projects made with/for CANUSB and want to display them here, please contact us and we will be happy to put them here either on our server or a link to yours. It could be for Visual Basic 6, Delphi, C, C++, C#, Linux, Windows, MacOS, PDA’s or other embedded projects. It doesn’t need to include source code (though we like that). It could be an executable, picture or a story. We will give you full credit for the work. Use our contact form in our webshop to get in contact with us.
These manuals are here for reference only if you have an old CAN232.
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.