Difference between revisions of "HANtune/Communication"

From OpenMBD
Jump to: navigation, search
Line 26: Line 26:
 
Please note that these default settings match the default settings of the HANcoder blockset.
 
Please note that these default settings match the default settings of the HANcoder blockset.
  
For help, please refer to chapter [[HANtune/Troubleshooting]].
+
For help, please refer to chapter [[HANtune/Troubleshooting|Troubleshooting]].
  
 
==XCP on UART(USB)==
 
==XCP on UART(USB)==
  
 
==CAN-only==
 
==CAN-only==

Revision as of 11:49, 17 March 2017


HANtune supports various ways of communicating. With regards to hardware support there are three options: Ethernet, USB and CAN. Ethernet and USB/UART can only be used in combination with the XCP (universal Calibration Protocol). The CAN-bus can be used either with or without XCP functionalities. This chapter provides more information about the (combination of) these options, as well as the general communication settings in HANtune.

Communication Settings

Image 11: Communication Settings Dialog shows a screenshot of the communication settings in HANtune. It can be found under the menu item “Communication” > “Communication Settings” and in the connection dialog by clicking the button “Settings”.

In the tab “General” the general communication settings have to be set. A choice has to be made for a communication protocol.

XCP on CAN

The timeout prescaler is used to define the communication time-out. If HANtune doesn’t receive any messages anymore, by default it cancels the connection after 2*t_prescaler. Please note that this is a temporary solution. It is planned that in a future version of HANtune the behavior of the timeout prescaler will be depending on the expected delay time of incoming messages. The other tabs contain hardware-specific settings for CAN, Ethernet and USB, respectively.

XCP on Ethernet

To use the CAN functionality of HANtune, a CAN-dongle is needed. HANtune contains drivers for the PCAN-USB dongle. More info about the USB to CAN dongle can be found on this website: www.peak-system.com/PCAN-USB.199.0.html

The XCP on CAN protocol uses two CAN-ID’s, one for sending XCP messages and one for receiving them. By default HANtune uses 665 for transmission and 666 for reception. Additionally the baud-rate needs to be set in order to be able to establish a connection with the target.

If there is a DBC file available in HANtune, the XCP on CAN option also provides the option to include generic CAN messages (not part of the XCP traffic).

CAUTION: PLEASE VERIFY THAT THE DBC FILE DOES NOT INTERFERE WITH THE RECEPTION AND TRANSMISSION ID’S OF THE XCP TRAFFIC.

Please note that these default settings match the default settings of the HANcoder blockset.

For help, please refer to chapter Troubleshooting.

XCP on UART(USB)

CAN-only