From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oliver Hartkopp Subject: Re: read() question from newbie Date: Sat, 03 Mar 2012 10:05:52 +0100 Message-ID: <4F51DEF0.9060501@hartkopp.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mo-p00-ob.rzone.de ([81.169.146.161]:18825 "EHLO mo-p00-ob.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751046Ab2CCJF5 (ORCPT ); Sat, 3 Mar 2012 04:05:57 -0500 In-Reply-To: Sender: linux-can-owner@vger.kernel.org List-ID: To: Michael Economides Cc: linux-can@vger.kernel.org On 02.03.2012 23:09, Michael Economides wrote: > I am trying to use the cantest program to read. It just blocks on the > read, and stays there forever. > > I can see on my scope there are can messages coming across the bus (from a > different microcontroller attached to the bus). > > I have already verified I can write using cantest. > > In other words, this works: ./cantest can0 1F334455#1122334455667788 > > But this doesn't: ./cantest can0 > Hello Mike, where is this tool 'cantest' from? I don't know it either from the SocketCAN utils https://gitorious.org/linux-can/can-utils nor from the Pengutronix canutils http://git.pengutronix.de/?p=tools/canutils.git;a=summary Maybe you can alternatively try the SocketCAN utils to test. Regards, Oliver