Configuration of COM ports within BSKD7 project

<< Click to Display Table of Contents >>

Navigation:  Diagnostics with CanEasy >

Configuration of COM ports within BSKD7 project

 

The COM port defines in BSKD7 projects, how the diagnostics is being connected to the bus with its diagnostics channel. This must be defined with the command "cp <port>".

 

 

Communication via serial ports (RS232)

 

With the COM ports 1-8 the access to the serial interfaces COM1-COM8 via Windows API are possible. Also USB-COM interfaces are supported, but in certain circumstances not all bit rates are possible and the time response is not as expected.

 

Hinweis Note:
Because of the general functionality of CanEasy it is needed to add a virtual bus to the workspace of the BSKD7 project with RS232 port communication. For this please select the hardware type "Schleißheimer GmbH - Virtual (internal)" inside the bus editor.

 

 

Communication via CAN interfaces

 

The following COM ports inside BSKD7 are mapped with the configured buses in CanEasy via the display channel and could be selected via the named command.

 

BSKD
COM port

CanEasy
display channel

32

1

33

2

34

3

35

4

...

...

63

32

 

This means: If e.g. two buses were created in the workspace and configured in the bus editor with Bus1 = display channel 1 and Bus2 = display channel 2, the BSKD project has access to the Bus1 via "cp 32" and Bus2 via "cp 33". For the communication the hardware configured for the corresponding bus is used.

 

Example: The diagnosis is connected via CP 32 to Bus1 actually. Via CP 33 it could be connected to Bus2.

Example: The diagnosis is connected via CP 32 to Bus1 actually. Via CP 33 it could be connected to Bus2.

 

Hinweis Note:
If a bus is not available, the selected COM port is automatically mapped with display channel . This means that e.g. if cp 34 was selected and only one bus is available, this bus is being selected.

 

 

Displaying the diagnostics connection (channel mapping)

 

The tree entry BSK Diagnose 7 displays during a running/active simulation and diagnostics project, to which bus the BSKD7 is connected.
 
Example:
 

bskd05
 
In this case the COM port 32 of the BSKD7 is connected to Bus1 (configured display channel 1).

 

Possible announcements for a diagnostics connection are explained in the subsequent table:

 

Announcement

Impact

cp 32: Bus1

COM port 32 of BSKD7 is connected to Bus1. Bus1 is the configured name of the bus within the bus editor.

cp 128: Bus1 [AIDA 2]

BSKD7 is connected via the AIDA stacks to Bus1. Thereby AIDA channel 2 is used.
(The usage of the AIDA stacks is documented in the documentation of BSKD7)

cp33

In the BSKD7 project the COM port 33 is configured. The simulation was stopped, hence it is not possible to display the bus connection.

cp0: ---

No valid COM port was configured or bus connection can not be determined yer, hence dashes ("---") are displayed.