summaryrefslogtreecommitdiffstats
path: root/examples/serialbus/can/mainwindow.ui
Commit message (Collapse)AuthorAgeFilesLines
* Add QCanBusDevice::busStatus()Andre Hartmann2019-07-171-1/+8
| | | | | | | | | | | | | 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>
* Add QCanBusDevice::resetController() for CAN controller resetAndre Hartmann2019-05-021-0/+10
| | | | | | | | | | | | | | | | 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>
* CAN-Example: Add a dedicated send frame group boxAndre Hartmann2017-07-171-114/+11
| | | | | | | | | | | | | | 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>
* CAN Example: Add menu entry to show online documentationAndre Hartmann2017-05-291-0/+9
| | | | | | | | | | | | | 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>
* CAN: Introduce CAN FD Bitrate Switch (BRS)Andre Hartmann2017-01-171-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* CAN-Example: Add action to clear log windowAndre Hartmann2016-11-041-0/+13
| | | | | Change-Id: I0ffac644fc510d4657c44085810fff38dba5cd36 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* CAN: One more space between timestamp and CAN frame in examplesAndre Hartmann2016-11-031-1/+1
| | | | | | | | 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>
* QCanBusFrame::toString(): Add one more space around the length fieldAndre Hartmann2016-10-311-1/+1
| | | | | | | | | | | | | | | | 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>
* CAN-Example: Fix long timestamp formattingAndre Hartmann2016-09-051-1/+1
| | | | | | | | | | 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>
* CAN-Example: Don't wrap long frames in receive windowAndre Hartmann2016-08-261-0/+3
| | | | | Change-Id: I5cb5d358bb276050f469a1718f67e906715f9752 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Merge "Merge remote-tracking branch 'gerrit/5.7' into dev" into refs/staging/devAlex Blasche2016-08-021-9/+15
|\
| * Merge remote-tracking branch 'gerrit/5.7' into devAlex Blasche2016-08-011-9/+15
| |\ | | | | | | | | | Change-Id: I5202af1faa3b92018747b38fe54524cc712d2f43
| | * CAN-Example: Add mnenomics and buddiesAndre Hartmann2016-07-191-9/+15
| | | | | | | | | | | | | | | Change-Id: I726e3e739494cc2a6224260149d29b7977da767c Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* | | CAN-Example: Prettify received messages header barAndre Hartmann2016-08-011-1/+9
|/ / | | | | | | | | | | | | | | 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>
* / CAN-Example: Display all received messages in one log windowAndre Hartmann2016-07-291-36/+38
|/ | | | | | | | | 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>
* CAN-Example: Change SettingsDialog to ConnectDialogAndre Hartmann2016-05-031-18/+1
| | | | | | | | | | | | | | | 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>
* CAN-Example: Improve description of Extended Frame Format boxAndre Hartmann2016-05-021-2/+7
| | | | | | | | | 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>
* CAN-Example: Better window titleAndre Hartmann2016-05-021-1/+1
| | | | | | | 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>
* CAN-Example: Better name for receive list widgetAndre Hartmann2016-05-021-1/+1
| | | | | Change-Id: I45c7594eb429ffe144e21bd3af4d648e7f119a21 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* CAN-Example: Display CAN-IDs and data bytes in hexAndre Hartmann2016-04-151-4/+12
| | | | | | | | | | | | 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>
* Make it more obvious in the example what Flexible Data rate meansAlex Blasche2016-01-081-1/+2
| | | | | | Change-Id: Ifbd1d35f05078de0db4c969f651f5214f23b8e35 Reviewed-by: Rolf Eike Beer <eb@emlix.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Refactor the UI of CAN example applicationDenis Shienkov2015-08-311-273/+201
| | | | | | | | | | * 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>
* Make frame type decision exclusiveAlex Blasche2015-07-311-30/+46
| | | | | | | | | | | 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 application improvementsJanne Partala2015-07-211-0/+293
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>