.. _tutorials:

Tutorials
=========

This section contains tutorials for Kvaser CL Configuration Tool. The tutorials are designed to help you get started with the tool and learn how to use its features effectively.

All examples and tutorials assumes that Kvaser CL Configuration Tool and any dependencies have been installed according to :ref:`setup`.

.. _first_time_setup_example:

First time setup example
------------------------

This tutorial will guide you through the first time setup of Kvaser CL Configuration Tool, including how to connect to a Kvaser Arcus device and update its interfaces' link configurations.

1. Open the Devices view by clicking on the 'Devices' tab in the left sidebar.
2. Click on the 'Scan for devices' button at the top left of the application. The list of connected Kvaser Arcus devices will now be updated.
3. Hover over a device in the list to reveal the 'Rename' button, and click it to change the device nickname.
4. Press enter to save the new nickname, or press escape to cancel the renaming.
5. Click on the device you want to configure to open the Device details view.
6. In the Device details view, select an interface to edit from the dropdown.
7. Click on the 'Edit' button to the right to open the Edit interface dialog.
8. In the Edit interface dialog, you can change the interface nickname and update the interface's link configuration, including Auto Negotiation, Speed and role. Make the desired changes and click 'Save' to apply the new settings to the interface.

.. _list_connected_devices:

List connected devices
----------------------

Any connected Kvaser Arcus devices are automatically detected when starting the application and listed in the :ref:`devices_view` and the list of connected devices is also automatically updated every 15 seconds. However, if you want to list all connected Kvaser Arcus devices manually, or reload the list, follow these steps:

1. Open the Devices view by clicking on the 'Devices' tab in the left sidebar.
2. Click on the 'Scan for devices' button at the top left of the application, or use the shortcut Ctrl+R. It is also possible to scan for devices by pressing the dotted button at the top left of the application and selecting 'Scan for devices'.
3. The list of connected Kvaser Arcus devices will be updated to reflect any changes, such as new devices being connected or disconnected.

.. _reload_device_and_interface_information:

Reload device and interface information
---------------------------------------

To reload the device and interface information, follow these steps:

1. Open the Devices view by clicking on the 'Devices' tab in the left sidebar.
2. Click on the device you want to reload to open the Device details view.
3. In the Device details view, click on the 'Reload' button to the right.

.. _update_interface_link_configuration:

Update interface link configuration
-----------------------------------

To update the interface link configuration of a Kvaser Arcus device, follow these steps:

1. Open the Devices view by clicking on the 'Devices' tab in the left sidebar.
2. Click on the device you want to configure interfaces for to open the Device details view.
3. In the Device details view, select an interface to edit from the dropdown.
4. Click on the 'Edit' button to the right to open the Edit interface dialog.
5. In the Edit interface dialog, you can change the interface nickname and update the interface's link configuration, including Auto Negotiation, Speed and role. Make the desired changes and click 'Save' to apply the new settings to the interface.

.. _change_device_nickname:

Change device nickname
----------------------

To change the nickname of a Kvaser Arcus device, follow these steps:

1. Open the Devices view by clicking on the 'Devices' tab in the left sidebar.
2. Hover over a device in the list to reveal the 'Rename' button and click it to change the device nickname, or press F2 while a device is selected.
3. Press enter to save the new nickname, or press escape to cancel the renaming.

.. _change_interface_nickname:

Change interface nickname
-------------------------

To change the nickname of a Kvaser Arcus interface, follow these steps:

1. Open the Devices view by clicking on the 'Devices' tab in the left sidebar.
2. Click on the device you want to update the nickname of to open the Device details view.
3. In the Device details view, click on the 'Edit' button to the right to open the Edit device dialog.
4. In the Edit device dialog, change the nickname of the device as desired. Click 'Save' to apply the new nickname to the device.


.. _identify_device:

Identify device
---------------

To identify, or find a connected Kvaser Arcus device, follow these steps:

1. Open the Devices view by clicking on the 'Devices' tab in the left sidebar.
2. Click on the device you want to find to open the Device details view.
3. In the Device details view, click on the 'Identify' button to the right. The device will now start blinking its LED, making it easier for you to find it among other devices.

.. _identify_interface:

Identify interface
------------------

To identify, or find a connected Kvaser Arcus interface, follow these steps:

1. Open the Devices view by clicking on the 'Devices' tab in the left sidebar.
2. Click on the device corresponding to the interface you want to find to open the Device details view.
3. In the Device details view, select the interface to find using the dropdown, then click on the 'Identify' button to the right. The interface will now start blinking its LED, making it easier for you to find it among other interfaces and devices.

.. _send_tc10_sleep_command:

Send TC10 sleep command
-----------------------

Kvaser Arcus devices support TC10 for Automotive Ethernet 100/1000 BASE-T1 for wake up and sleep functionality. For more information on TC10 support in Kvaser Arcus devices, please refer to the :ref:`tc10` section of this user guide.

To send a TC10 sleep command to a Kvaser Arcus interface, follow these steps:

1. Open the Devices view by clicking on the 'Devices' tab in the left sidebar.
2. Click on the device corresponding to the interface to which you want to send the sleep command to open the Device details view.
3. In the Device details view, select the interface to send the sleep command to using the dropdown, and verify that the TC10 state is 'normal'.
4. Click on the 'Send TC10 sleep command' button to the right. The command will be sent to the selected interface, and the TC10 state and TC10 command result will be updated accordingly. Please refer to :ref:`tc10_states` for more information on the different TC10 states.

.. _send_tc10_wake_command:

Send TC10 wake command
----------------------

Kvaser Arcus devices support TC10 for Automotive Ethernet 100/1000 BASE-T1 for wake up and sleep functionality. For more information on TC10 support in Kvaser Arcus devices, please refer to the :ref:`tc10` section of this user guide.

To send a TC10 wake command to a Kvaser Arcus interface, follow these steps:

1. Open the Devices view by clicking on the 'Devices' tab in the left sidebar.
2. Click on the device corresponding to the interface to which you want to send the wake command to open the Device details view.
3. In the Device details view, select the interface to send the wake command to using the dropdown, and verify that the TC10 state is 'sleep', 'sleep failed', or 'sleep aborted'.
4. Click on the 'Send TC10 wake command' button to the right. The command will be sent to the selected interface, and the TC10 state and TC10 command result will be updated accordingly. Please refer to :ref:`tc10_states` for more information on the different TC10 states.
