From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <516BA7C4.1050403@grandegger.com> Date: Mon, 15 Apr 2013 09:09:56 +0200 From: Wolfgang Grandegger MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] patch to src/utils/can/rtcansend.c to support data from a file List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel M. Drucker, Ph.D." Cc: xenomai@xenomai.org Hi Daniel, thanks for your contribution... On 03/28/2013 11:00 PM, Daniel M. Drucker, Ph.D. wrote: > When sending a large number of CAN messages from a script (in our case, to > initialize a servo), rtcansend can be somewhat slow because every message > requires a setup and teardown. > > I added a --file flag to rtcansend which allows you to instead read bytes > from a file (or stdin, using '-' as the filename). The file has one CAN > message per line, in the same format (space-separated) as it would have > been in the can-msg on the command line. Blank lines are ignored. Lines > which start with a ' ' (space) or '#' (hash) character are ignored. If a > filename is given, any can-msg specified on the command line is ignored. > > I hope this of use to someone, and it'd be really great if this could be > merged! Well, I actually see it as a nice extension for a special purpose. I do not see an general benefit for basic CAN testing. I also prefer to keep rtcansend short and simple. Wolfgang.