Exp No: 2.B Can Implementation Using Canking Date
Exp No: 2.B Can Implementation Using Canking Date
B
CAN IMPLEMENTATION USING CANKING
DATE :
1. AIM:
2. System Requirements:
3. INTRODUCTION
3.1. CANKING
CANKing is a CAN bus monitor and general-purpose diagnostic tool. It is especially suited
for interactive development work. CAN messages can be easily sent and the corresponding
impact on the target module observed. To use CANKing it is necessary to purchase one of
our CAN interfaces such as the Kvaser Leaf USB to CAN converters. It is a free software
that comes with the Kvaser product. This product allows the user to see all CAN messages on
the bus in either either decimal or hexadecimal forms. It also allows the user to send out
simple test messages.
CanKing for Windows is a CAN bus monitor and general-purpose diagnostic tool. It is
especially suited for interactive development work. CAN messages can be easily sent and the
corresponding impact on the target module observed.
CanKing Features:
Traffic Generator
4. SOFTWARE SIMULATION:
In the templates window, the number of CAN channels can be selected under “Standard”
toolbox. The CANKing supports up to maximum 5 channels for simulation. Under “CAN
Kingdom” tool, CAN Kingdom Basics can be selected.
After the CAN channels are getting selected, The CAN Controller window is opened. The CAN
controller window consists of all the parameters for bus monitoring in the Configuration tab and
Hardware filters tab.
5. BUS CONFIGURATION :
This section is for setting up the bit rate and bit timing for the CAN controller.
CAN Channel - Selects the CAN channel.
CAN Mode - Selects the CAN mode. There are different modes available depending on
the selected controller. The modes are CAN ,CAN FD and CAN FD non-ISO
Access Mode - Selects the access mode. There are three different modes available.
Init Access - The default mode. It means that the Can King owns the handle
and can set bit rate and CAN driver mode. At most one thread can have init
access to any given channel.
No init access - Means that Can King will not try to (nor is it allowed to)
change the prevailing bit rate on the channel.
Exclusive Access - Ensure that KvaserCanKing has exclusive access tothe
CAN channel.
Silent Mode - Selects the CAN driver mode: Normal (unchecked) or Silent . Silent
mode means that nothing is transmitted on the bus. The interface is in a non-obtrusive
listening mode and can not affect the ongoing traffic. Not all controllers supports silent
mode.
Standard Text Format - Creates lines with the CAN Identifier, message flags, length,
and contents, plus a time stamp and a letter indicating the direction of the message.
Pass Filter - Acts as a software message filter. Only messages with CAN
identifiers within a certain range are let through.
Direction Filter - Here one can choose to receive TX or RX or both.
On the CAN Controller screen, the correct CAN Channel is selected depending on what card and
drivers are properly installed. The correct Baud Speed (same bit rate as set for all nodes) is
selected On the Bus Statistics tab, “Go On Bus” options is selected.
6. OUTPUT
The output window shows the information about the channel which transmits the data, Identifier
number, Data length, actual data and time required for data transfer on the bus.
7. RESULT
Thus the Controller Area Network protocol was simulated using CANKing Simulation Software.