diff options
author | Andre Hartmann <aha_1980@gmx.de> | 2016-08-11 20:19:06 +0200 |
---|---|---|
committer | André Hartmann <aha_1980@gmx.de> | 2019-02-22 18:47:37 +0000 |
commit | 6ddb74e8165fc9658ab57ff5a3e09eb23ad9c69e (patch) | |
tree | 3944ab8ed5c5523d30e2f25bee7946447fe3484b /src/serialbus | |
parent | eb85cebadb546dafe7c87db931164491ad5cca89 (diff) |
SocketCAN: Set and get bitrate by loading libsocketcan dynamically
Can be extended for further functions from this library also.
[ChangeLog][Plugins][SocketCAN] If libsocketcan is available,
the CAN bus bitrate can be get and set at runtime.
Fixes: QTBUG-54296
Change-Id: Ie677ddb5cf4ee9f99927973d837ef7a2810a2b37
Reviewed-by: Rolf Eike Beer <eb@emlix.com>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Diffstat (limited to 'src/serialbus')
-rw-r--r-- | src/serialbus/doc/src/socketcan.qdoc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/serialbus/doc/src/socketcan.qdoc b/src/serialbus/doc/src/socketcan.qdoc index df58dae..9ae778d 100644 --- a/src/serialbus/doc/src/socketcan.qdoc +++ b/src/serialbus/doc/src/socketcan.qdoc @@ -179,9 +179,13 @@ By default, the connection is configured to accept any CAN bus message. \row \li QCanBusDevice::BitRateKey - \li This configuration is not supported by the socketcan plugin. However - it is possible to set the rate when configuring the CAN network interface using - the \c {ip link} command. + \li Determines the bit rate of the CAN bus connection. The following bit rates + are supported: 5000, 10000, 20000, 33000, 47000, 50000, 83000, 95000, + 100000, 125000, 250000, 500000, 800000, 1000000. Note that this configuration + parameter can only be adjusted while the QCanBusDevice is not connected. To set + this configuration parameter, the library libsocketcan is needed at runtime + http://www.pengutronix.de/software/libsocketcan + Usually, root rights are needed to set the CAN bus bitrate. \row \li QCanBusDevice::CanFdKey \li This configuration option determines whether CANFD frames may be sent or received. |