This is a collection of C programs which all demonstrate various features of the CANlib library included in the Kvaser CANlib SDK.
- Monitor CAN channel, a program which dumps any incoming messages to the screen.
- List CAN channels, displays information about all the available CAN channels. It does this using calls to canGetChannelData.
- Receive and reply to CAN message, listens for messages on a channel. When it receives a message, it increases its identifier by 1 and sends it back.
- Multi threading in CANlib, an example of how to use CANlib in a multi threaded program. Runs several threads that send and receive messages on different channels.
- Echo server, when you send a message to this little program, it will respond with the same message where the identifier is increased by one.
- Send database signal, a program that generates a stream of CAN messages. The data in the signals form a selectable shape, e.g. it can be sine, ramp or square wave.
- High frequency sampling with CANtegrity, a program that uses the CANtegrity API to sample CAN frames and print information about them.
- Bitrate calculation with CANtegrity, a program that uses the CANtegrity API to find the bitrate of a running CAN bus.