| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The original terminology is Error active, Error warning,
Error Passive and Bus Off. We map them to GoodStatus,
WarningStatus, ErrorStatus and BusOffStatus here.
[ChangeLog][QCanBusDevice] Added the function busStatus()
to query the CAN bus status from the CAN bus device.
Fixes: QTBUG-70766
Change-Id: I22b99e2a02a6b22509005dd177796b861d536281
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently missing:
* VectorCAN: no information in the documentation found
* PassthroughCAN: no documentation
[ChangeLog][QCanBus][QCanBusDevice] Added the function
QCanBusDevice::resetController() to reset a CAN controller
from bus off state, as far as supported by the various
plugins.
Fixes: QTBUG-54943
Change-Id: Ic098054b012726c0c69970c0ae84f434c2b3964a
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
By moving the send frame logic to a separate panel, the MainWindow
gets easier to understand as it only connects signals to slots.
The new SendFramesBox also does more sanity check on the parameters
(options that exclude each other are checked) and forbids invalid input
by using QValidators. The payload input is also prettified with spaces.
This was first done by InputMasks but this had strange side effects
so now the input validator is used for this task also.
Change-Id: Ib95605ce4bc23b52d1cf5d082b1533b2a59f7749
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The different plugins have varying runtime requirements,
that should be described in the plugins documentation.
Allow the user to open the documentation easily.
[ChangeLog][QCanBus] Added a menu to open plugins online
documentation to the CAN Example.
Change-Id: I2ae19b439f91042c6bcb09a7db079249fb34355c
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
QCanBusFrame:
Added hasBitrateSwitch and setBitrateSwitch to QCanBusFrame
and therefore, increased the QCanBusFrame version number.
* Setting QCanBusFrame::setBitrateSwitch(true)
also sets QCanBusFrame::setFlexibleDataRateFormat(true)
* Setting QCanBusFrame::setFlexibleDataRateFormat(false)
also sets QCanBusFrame::setBitrateSwitch(false)
QCanBusDevice:
Reference implementation and documentation are done for
the SocketCAN plugin. The CAN Example allows to send
frames with Bitrate Switch enabled and visualize received
frames with Bitrate Switch set.
Unfortunately, the SocketCAN plugin does not allow to change
any bitrate yet, so the newly added data bitrate selection
box in ConnectDialog seems a bit useless. This box is
however needed once other plugins become CAN FD capable and
implement bitrate switching.
[ChangeLog][QCanBusFrame] Introduced flag to allow data
bitrate switching for CAN FD frames. Reference
implementation is done for the SocketCAN plugin.
Task-number: QTBUG-56720
Change-Id: Ieab04020f4750c8b0085624d2250ad7cd982cd96
Reviewed-by: Rolf Eike Beer <eb@emlix.com>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
|
|
|
|
|
| |
Change-Id: I0ffac644fc510d4657c44085810fff38dba5cd36
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
|
|
|
|
|
|
|
|
| |
This affects only the examples, not the QCanBus API.
Change-Id: Iccfe0cb7713572eb95ae23aabab51e2f10dd3593
Reviewed-by: Andreas Wilhelm <aw@emlix.com>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This limits the three fields CAN-ID, length and data better.
SocketCAN's candump does it this way and with this change
canbusutil get's more compatible to candump.
This function is new in 5.8, so there is no behavior change
for existing code outside Qt.
Change-Id: Ifc26cb7584a572d7aef91763242e7def909a6083
Reviewed-by: Rolf Eike Beer <eb@emlix.com>
Reviewed-by: Andreas Wilhelm <aw@emlix.com>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
SocketCAN gives timestamp in UNIX format, which looks like this after
formatting: "1472763249.2678". Adjust the header bar and the format
specifier to cover this case and shorter formats also.
Change-Id: Ib95f831f02a5e0434ec776c4611b2decd6abb77a
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
|
|
|
|
|
| |
Change-Id: I5cb5d358bb276050f469a1718f67e906715f9752
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
|
|\ |
|
| |\
| | |
| | |
| | | |
Change-Id: I5202af1faa3b92018747b38fe54524cc712d2f43
|
| | |
| | |
| | |
| | |
| | | |
Change-Id: I726e3e739494cc2a6224260149d29b7977da767c
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
Now the rows are aligned on Windows and Ubuntu Linux.
Change-Id: I3b7648311e99ad5451833acb968b51b4e04d0c2c
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
|
|/
|
|
|
|
|
|
|
| |
Use the new QCanBusFrame::toString() function to format received
messages and add the timestamp.
Change-Id: Iee237b02e4c0f0fe50dd8d8956ec405cefc4ef42
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This simplifies the handling and makes it more like
how other CAN monitors behave.
* After startup, the connect dialog is shown
* If the dialog is accepted, the selected device
is connected instantly
* To interrupt a connection, the disconnect action
can be used
* To connect again, the action connect can be used
Change-Id: I47db596658e90cc0393981fba135cd6d89191f1a
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
|
|
|
|
|
|
|
|
|
| |
In the same step, adjust the checkbox object name to the
other one.
Change-Id: Ie1b6e729fc0c345a1167c3fff4c506e8bc73c0b5
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
|
|
|
|
|
|
|
| |
Change-Id: If7376627326328a9d657e490d617b21ac76e28fb
Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I45c7594eb429ffe144e21bd3af4d648e7f119a21
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Data bytes usually contain binary information so just
display them as hex dump. Do so also for the input side.
Tested with PCAN-USB Pro, both channels connected,
Linux with socketcan, cangen and candump on can0,
CAN-Example on can1. CAN-FD was not tested.
Change-Id: I55a82bbec874de808bc84a8ea016649e09b5c6d6
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
|
|
|
|
|
|
| |
Change-Id: Ifbd1d35f05078de0db4c969f651f5214f23b8e35
Reviewed-by: Rolf Eike Beer <eb@emlix.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
| |
* The SettingsDialog class is added
* The menu-bar actions and icons are added
* All widgets are wrapped with layouts
* A code related to device accessing is modified
Change-Id: I45d056951163441195f61df411669d1130a41867
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
| |
The example UI must not create ambiguous situations where the user can
select remote and error frame type at the same time. This patch
adds a groupbox permitting mutually exclusive selection of the
frame type.
Change-Id: I7d6202cb6179ba0af9aa29a9bd4d5fd16a89d5b2
Reviewed-by: Janne Heikki Partala <janne.partala@bitfactor.fi>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
|
|
Example applications are now divided by plugin (Only Socket CAN currently available).
Code is cleaned up for better readibility.
Change-Id: I07512a75190bf7637a759fc007af7089a43196ae
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
|