From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B415CC43331 for ; Mon, 11 Nov 2019 17:25:34 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5532B2084F for ; Mon, 11 Nov 2019 17:25:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="W2ohjDte"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="yMc+mwyo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5532B2084F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kroah.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.3) (envelope-from ) id 1iUDQq-0000QJ-Qh; Mon, 11 Nov 2019 12:24:52 -0500 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1iUDQn-0000QD-L1 for kernelnewbies@kernelnewbies.org; Mon, 11 Nov 2019 12:24:50 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 682464BA; Mon, 11 Nov 2019 12:24:44 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 11 Nov 2019 12:24:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=MLwtHV0NzIO2O9zFAZXSbyrZ8lG Ndjtr7qsFCycZk4g=; b=W2ohjDteEHRtsg1oPKaMpNCeZXks1hRc+nq6rSJPwus yldoxniUwJw52fJTyUbnWsnIJnw4LZR9RTjrdpMO7kl699K8RcnnMtFRAP2Nfosc qp+4a1QGYpTS/YIvZ/8OQZIapjDOdjWLgW7qu3tOZlrYly3XTA/hyMo5H8mJICqn EkgJv8EG446WIbnR783itesmBbSbRdT0ssWI+HAVmoQLSpnnDgBDlQDl5fN18qiw AVhKEZlO4cJrtb73ZG82b1w3dbQW1OYtZtiZeLtpGep0gntRRVGmI/K4gw9Ob/PD Wu34H5vRQJCnhqty1SMUBJu+qWHIp9XtJBoVm7iEcCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=MLwtHV 0NzIO2O9zFAZXSbyrZ8lGNdjtr7qsFCycZk4g=; b=yMc+mwyo19DgHWv7QDle/6 PZ7wlN7+Ijcm/NH2omp8E8CXxROe747x6vgxFbzZIab9pfBj7c+97dQrjH0hS+sT EeJPZhOZ1fnnx1KZdayEtaByP0xWAwCGxA2vJb8N1yx1LQVzJ7xusacLN3eaRnkP op5vIEZte2E7sIqiuzw7ZKXmzEE272uE4YFE1CYwz/3m1ISfyVdGA+BgG786u6OZ KLiJHLmvdioUR6zgCITegS+ZiQkdff69G5t8e7XMedkD8QyVzt8GVKqyUrLfQIVB wuRsych4mHee3BSVjRvOi/Bq9wn2XmSCxkfXD1HH3JNU9B+1roWnqAIZPLOZbwaA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedruddvjedguddtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjfgesth dtredttdervdenucfhrhhomhepifhrvghgucfmjfcuoehgrhgvgheskhhrohgrhhdrtgho mheqnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucfkphepkeefrdekiedrkeelrd dutdejnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhhdrtghomhen ucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 7CC903060066; Mon, 11 Nov 2019 12:24:43 -0500 (EST) Date: Mon, 11 Nov 2019 18:24:42 +0100 From: Greg KH To: Jeffrey Walton Subject: Re: How to log USB modem data for a specific device? Message-ID: <20191111172442.GC1077444@kroah.com> References: <20191111163131.GB1017642@kroah.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) Cc: kernelnewbies X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Mon, Nov 11, 2019 at 11:40:51AM -0500, Jeffrey Walton wrote: > On Mon, Nov 11, 2019 at 11:31 AM Greg KH wrote: > > > > On Mon, Nov 11, 2019 at 11:11:06AM -0500, Jeffrey Walton wrote: > > > Hi Everyone, > > > > > > I'm having trouble with a C application that opens a USB modem. The > > > application is not receiving some data from a USR modem. Conexant > > > modems are OK. > > > > > > I'm working through > > > https://www.kernel.org/doc/Documentation/usb/usbmon.txt . I found the > > > modem at Bus=01 Dev=24: > > > > > > T: Bus=01 Lev=03 Prnt=07 Port=00 Cnt=01 Dev#= 24 Spd=480 MxCh= 0 > > > D: Ver= 2.00 Cls=02(comm.) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 > > > P: Vendor=0baf ProdID=0303 Rev= 2.00 > > > S: Manufacturer=U.S.Robotics > > > S: Product=USB Modem > > > > > > This is where my confusion lies. It is not clear to me how to > > > determine which socket to use for step #3 in usbmon.txt. Step #3 says: > > > > > > # cat /sys/kernel/debug/usb/usbmon/3u > /tmp/1.mon.out > > > > > > How do I determine which socket to use for Bus=01 Dev=24? > > > > From the above documentation, it says to use "3u" for all devices on the > > 3rd bus. You want the 1st bus, right? So did you try using "1u"? > > > > I think wireshark can intrepret usbmon output, so maybe just use that > > instead and point it at the USB bus you want to watch? > > Thanks Greg. > > I want Bus 1, but I want Device 24 (not all devices). That's not what usbmon will show. Look at wireshark and see if it can filter the output for just that one device. There's also the old-style USB device snoop interface, that works on a per-device level. good luck! greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies