- Add GMLAN 29bit filtering feature. In addition to J1939 matching, it is now possible to match DBC messages using only the Arbitration Id (bits 14-26 of CAN Address), since Priority id (higher bits) and Sender Id (lowest 13 bits) are not relevant when interpreting the CAN message content. This allows to use the excellent GM Global A DBC files on https://github.com/commaai/opendbc. Just remember to select the "GMLAN" matching criteria on DBC File manager. - Add "Filter labeling" feature. Using loaded DBC files, it matches the filter Ids with DBC messages and shows them in filter windows. Labeling works in the main window (no need to set "Frame interpret" on, since this is a separate feature), as well as in Flow view, Frame data analysis, Playback and Fuzzzing windows. This makes it so much easier to concentrate on those CAN messages that matter. To use this feature, select global "Label filters using messages from DBC files" on Main Configuration page, and then enable the feature on individual DBC files (on DBC file manager) as needed. This is needed if there's overlap in CAN addresses between DBC files, and because the filter labeler cannot tell apart anymore which Filter ID is associated to which bus, it might label them incorrectly. But usually it's ok to just enable the labeling with all the DBC files. - In Frame data analysis window, in addition to J1939 decoding show also GMLAN (Priority bits, Arbitration Id, Sender Id) decoding. - FilterUtility static class used for centralized ListWidgetItem creation and for other helper functions - DBC handler: To allow setting bus numbers even before connection is configured, do not enforce "valid" bus numbers
23 lines
715 B
C++
23 lines
715 B
C++
#ifndef FILTERUTILITY_H
|
|
#define FILTERUTILITY_H
|
|
|
|
#include <QListWidget>
|
|
|
|
|
|
class FilterUtility
|
|
{
|
|
|
|
public:
|
|
static QListWidgetItem * createFilterItem(uint32_t id, QListWidget* parent=NULL); // if parent is given, add item automatically to listwidget
|
|
static QListWidgetItem * createCheckableFilterItem(uint32_t id, bool checked, QListWidget* parent=NULL);
|
|
|
|
static uint32_t getIdAsInt( QListWidgetItem * item );
|
|
static QString getId( QListWidgetItem * item );
|
|
static QString getId( QString itemText );
|
|
|
|
static uint32_t getGMLanArbitrationId(uint32_t id);
|
|
static uint32_t getGMLanSenderId(uint32_t id);
|
|
static uint32_t getGMLanPriorityBits(uint32_t id);
|
|
};
|
|
|
|
#endif // DBCLOADSAVEWINDOW_H
|