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 0C8B2C43331 for ; Mon, 11 Nov 2019 16:32:30 +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 C56D720656 for ; Mon, 11 Nov 2019 16:32:29 +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="MlDTsiTA"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="i2ReZ/WU" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C56D720656 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 1iUCbP-0007ua-Bv; Mon, 11 Nov 2019 11:31:43 -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 1iUCbM-0007uU-PG for kernelnewbies@kernelnewbies.org; Mon, 11 Nov 2019 11:31:41 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id C98EE379; Mon, 11 Nov 2019 11:31:35 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 11 Nov 2019 11:31:35 -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=dw3ll5gkFjt9A4aMqD26W2lm5ui a9vf8U+PUxi7Ynek=; b=MlDTsiTAN4nkuHmYo5B68EsBpKB0GmD5ZUBzFmzrJk/ J/L65rWvlByIB8kW2L1AScuwOIGDSaQzDSoz0f1j6e4cuHj493tTax9bjV6CdM3m QPRX/trYZRsyoB4s/JLOWuq5yz4dqWxl6NaKIVMYumvW+ZRDRd8pZICwsh+LbXXh lSD+TIihFa362vxyOckPTnghWChaGgAVt5BPGQ3jvtL7slxncXN7uXa1+O4tK10S RT0YMstawBWQj/UXorIIpXc9hDJaGb1zvzvtZU+XQ39/fZsVdXmzEpxdXb9zzsJS /4xvwzaEQddqftjcr6HWyJsWXSBZN2hlFBnig54s9uA== 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=dw3ll5 gkFjt9A4aMqD26W2lm5uia9vf8U+PUxi7Ynek=; b=i2ReZ/WUzL46YxArTSwXvz QohMC74CRmrWOrLj3cloDHi24AsMD/XOAr56DEHbTejqk0kG1Coi58237+ME5brB 85fpqtth6oKKO5PTLaLkKKoR9TitN7xLxjNn/sVuLSIH896rXrMg58DntEjhf03o HAShVBFqa6G+Xh70R+CK7/3O4lV4igXFtstsuOzpCfvFqwi9S792h3bFF529OmpT YrMmmLuDgMLpjPcy9EhpyQ/3F47knGlF4nIQqLTc7HSj2bUSu13Y+nR/SOU6mVTS lMfL183bdH1W8XRNH/4C03HHEdo+leOtrh7BDm/uTEeoOTsoJja3RDBiGpEbAX1w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedruddvjedgleduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujggfsehttd ertddtredvnecuhfhrohhmpefirhgvghcumffjuceoghhrvghgsehkrhhorghhrdgtohhm qeenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecukfhppeekfedrkeeirdekledrud dtjeenucfrrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorghhrdgtohhmnecu vehluhhsthgvrhfuihiivgeptd 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 9B677306005F; Mon, 11 Nov 2019 11:31:34 -0500 (EST) Date: Mon, 11 Nov 2019 17:31:31 +0100 From: Greg KH To: Jeffrey Walton Subject: Re: How to log USB modem data for a specific device? Message-ID: <20191111163131.GB1017642@kroah.com> References: 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: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? good luck! greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies