From: janusz.uzycki@elproma.com.pl Subject: Re: slcanpty Date: Tue, 11 Jun 2013 23:19:55 +0200 Message-ID: References: <2DAB3DC2841347E7AF7833620339B427@laptop2> <51AF950D.1050004@hartkopp.net> <8BA0AB4D19CC422597E52513948E2EF0@laptop2> <51B0D58F.2010401@hartkopp.net> <51B7896D.7080608@hartkopp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailmxout15.mailmx.agnat.pl ([193.239.45.95]:57860 "EHLO mailmxout15.mailmx.agnat.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756048Ab3FKVUI (ORCPT ); Tue, 11 Jun 2013 17:20:08 -0400 In-Reply-To: <51B7896D.7080608@hartkopp.net> Sender: linux-can-owner@vger.kernel.org List-ID: To: Oliver Hartkopp Cc: linux-can@vger.kernel.org, Krzysztof Borgulski >>> The SLCAN protocol is a nice and simple ASCII protocol that fits for >>> many >>> purposes. But it also has some disadvantages e.g. when you want >>> timestamps and >>> additional error signaling you can usually get from a CAN >>> controller. >>> >>>> (https://github.com/dschanoeh/socketcand/blob/master/doc/protocol.md) >>>> some >> >> I noticed that both slcanpty and socketcand don't implement bitrate >> settings yet. >> iproute2 includes libnetlink but the library avoids CAN support. >> libsocketcan seems to be the best choice but libnl also good. >> >> What do you prefer for CAN interface control? > > I'm personally using the standard ip tool from iproute together with > this script: > > https://gitorious.org/linux-can/can-misc/blobs/master/etc/can_if The script is nice but I thought about "< can0 B bitrate sample_point tq prop_seg phase_seg1 phase_seg2 sjw brp >" command in https://github.com/dschanoeh/socketcand/blob/master/doc/protocol.md exactly. I looked for a proper code in socketcand and I didn't find. Is the command planned? I'm asking because if it would be implemented in socketcand it could be also implemented in slcanpty for S/s command support. Unfortunately using an external library will introduce dependency :/ kind regards Janusz